Hello, I have a problem with grid pager translation: pagination buttons tooltips and "items per page" label appear always in english.
I've checked the messages translation scripts are linked and working as you can see in the attached screenshot, and other regions such as grid filters are ok.
What am I doing wrong?
Thanks for helping.
22 Answers, 1 is accepted
I was not able to reproduce the issue in our online demo:
http://demos.telerik.com/kendo-ui/grid/localization
Please create an isolated runnable example in a Kendo UI Dojo, where the issue is present and we will be happy to take a look.
Regards,
Atanas Georgiev
Telerik
Thank you Atanas.
I forgot mention I'm using the Razor helper to generate the pager (Telerik MVC). May be there is an error in this helper's code.
Maybe I should ask in a forum about Telerik MVC instead of Kendo UI.
This also failed to reproduce in the offline demos project, located in the Kendo UI installation path, under the \wrappers\aspnetmvc\Examples\VS2012 directory. More specifically the Areas\razor\Views\grid\globalization.cshtml View, after enabling the PageSizes option and adding the es-ES culture.
Regards,
Alexander Popov
Telerik
Thank you Alexander.
The problem has solved after update to 2015.1.408.545.
Hi Alexander,
I'm having the same issue, but it's happening with PT-BR localization.
I've attached my bundle config to confirm that I'm using it correctly.
Could you please advise?
​
Kendo UI v2015.1.318
I've also updated the following archives to version Kendo UI v2015.2.902 and I still facing this issue:
kendo.messages.pt-BR.min.js
kendo.culture.pt-BR.min.js​
kendo.all.min.js
Screenshot available:
​​
Could you follow the steps described in this help topic: If the issue still persists, please send us a repro demo.
Regards,
Georgi Krustev
Telerik
For applying the culture to all elements in the Grid you need to unify the client-side and server-side culture, as in our online demo:
Please follow the exact steps from our globalization help article and let me know if this resolves the problem:
Best Regards,
Konstantin Dikov
Telerik by Progress
Sorry it took me a bit to reply. I think we have done everything listed in the two links you mention in your reply. The issue is that the grid's paging text for the display message is correctly converted to es-MX, but all the other paging footer text (no data to display, items per page and tooltips for first, prev, next, last, refresh) are all still displayed in English. See attached file for what the footer looks like. I know Kendo does not have an es-MX resx file, is this related to the issue? All the different paging text elements are found in the message.es-MX.js file, so I can't figure out why one is translated but the others are not.
Thanks,
Brian
The problem is indeed caused by the missing .resx file for "es-MX" culture and you should follow the approach documented in the following help article for adding additional resource files:
Best Regards,
Konstantin Dikov
Telerik by Progress
The demo that you are referring to is for the Kendo UI suite and it renders everything on client-side, which is not the case with the MVC wrappers.
Best Regards,
Konstantin Dikov
Telerik by Progress
Hello!
I'm facing the same issue as the initial post. We're using the kendo grid (both tried on version 2017.3.1026 T1 and 2014 T1) with asp.net MVC, and at the bottom of the grid, the half right is translated while the half left not (shown on the first screenshot), this happen both on the two non english language we're using (French and Turk).
I confirm that i've added the link to the kendo.message and kendo.culture as shown on the second screenshot (and there's the translations on the files aswell) and on the back side the cuture is set on.
Ater watching all the examples i could find, i don't think i've missed something (else anything would have been translated) and i'll be glad if you can help us.
Best regards,
Hi Philippe,
In order to have the translation messages working correctly, we have to set the culture server-side. Please check this Globalization article from our documentation. It discusses the way the culture should be set in the web.config file.
I am attaching a project in which there is the following line in the web.config file:
<globalization uiCulture="fr-FR" culture="fr-FR"></globalization>
With the above set the correct test/messages translation. The culture itself is set in the _Layout.cshtml file with the following code:
<script src="https://kendo.cdn.telerik.com/2019.2.619/js/cultures/kendo.culture.fr-FR.min.js"></script>
<script>
kendo.culture("fr-FR");
</script>
Please check the attached project + the above description and let me know if you have any questions regarding the proposed solution.
Regards,
Petar
Progress Telerik
Hi Petar,
Unfortunately that didn't resolve my issue.
- I do confirm that i already have the globalization correctly set in the web.config file
- The culture in the layout it already done as show on my previous attached file "KendoCulture"
- About the globalization article, the only thing that differs is the addition of the 4 scripts, which adds me 4 buttons and withdraws the interactions with my main buttons (as shown on my attached file).
I'll be glad to check on your example, but it gave me a 404 error.
Best regards,
Hi Philippe,
I've just sent the project to a few of my colleagues and it is running properly with all the expected translation applied.
Where do you get the 404 error? Is it in the browser window or the console? Can you try running the project on another machine/browser?
What I can advise on the current situation are two things:
- Send me a runnable project in which the issue with the wrong translation can be reproduced and I will give feedback on this project.
- Copy the code from my project and paste it in a new one and try to run it. The important changes are in the _Layout.cshtml and Web.config files.
Looking forward to your reply regarding the above questions.
Regards,
Petar
Progress Telerik
Hi Petar,
Oh sorry i wasn't precise, the 404 is while dowloading your .zip
If with your zip i don't find the issue, i'll try to give a runnable project as much as i can.
Best regards,
Hi Philippe,
Great! Send me a runnable project if you don't find a solution using the provided archive. Based on your last reply, I assume you've managed to download it and the 404 error is no more presented.
Regards,
Petar
Progress Telerik
Hi Petar,
I've managed to dowload your zip and it's well translated, but when i try to replicate on mine, it doesn't, the only thing i found different was the kendo.mvc version (which ours isn't up to date). Somehow, one of my colleague found an alternative (not the best solution but we're fine to stick to it for now) with this below, but i'm thankfull for the time used to help up.
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5)
.Messages(m => m.First(ProjetRsx.KendoPremierePage) .Last(ProjetRsx.KendoDernièrePage) .Next(ProjetRsx.KendoPageSuivante) .Previous(ProjetRsx.KendoPagePrecedente) .Refresh(ProjetRsx.Refresh) .ItemsPerPage(ProjetRsx.ItemPerPage))
)
Best regards,
Hi Philippe,
It is good you've managed to find a solution! Thank you for sharing it with the community.
Regards,
Petar
Progress Telerik