Search toolbar, why text not translated?

1 Answer 95 Views
Grid Localization Toolbar
serge
Top achievements
Rank 2
Bronze
Iron
Iron
serge asked on 10 May 2021, 03:56 PM | edited on 10 May 2021, 04:08 PM

having a grid, with a search panel, the text in the search panel "Search..." is not translated, but another toolbars are translated

        .ToolBar(

            toolbar => {
                toolbar.Create(); // translated to french
                toolbar.Save(); // translated to french
                toolbar.Excel(); // translated to french
                toolbar.Search().Text("Recherche..."); // NOT translated to french
            }
        )

I should hardcode translation, but shouldn't it be already translated in JS localization files?

 

Please add this to translation files :

$(function () {
    /* Grid messages */
    if (kendo.ui.Grid) {
        kendo.ui.Grid.prototype.options.messages =
            $.extend(true, kendo.ui.Grid.prototype.options.messages, {
                commands: { search: "Rechercher..." }
            });
    };
});

1 Answer, 1 is accepted

Sort by
1
Accepted
Petar
Telerik team
answered on 13 May 2021, 06:11 AM

Hi Serge,

The translation of the different components is a community-driven effort. More about it you can find in this Contribution section of our documentation. 

To update the messages available in the CDN message files, please do the following:

After your PR is reviewed, it will be merged and the messages will be available on the CDN links.

Let me know if you have any additional questions.

Regards,
Petar
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 15 May 2021, 11:07 AM

ok I did it, thanks
Petar
Telerik team
commented on 18 May 2021, 10:00 AM

Hi, Serge. 

Thank you for your collaboration. The people who have to review the PR will do it in a short period of time.

Tags
Grid Localization Toolbar
Asked by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Petar
Telerik team
Share this question
or