This is a migrated thread and some comments may be shown as answers.

Pager translation not working

22 Answers 256 Views
Globalization
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 2
Mario asked on 17 Apr 2015, 09:19 AM

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

Sort by
0
Atanas Georgiev
Telerik team
answered on 20 Apr 2015, 10:24 AM
Hi Mario,

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
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mario
Top achievements
Rank 2
answered on 20 Apr 2015, 02:36 PM

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.

0
Alexander Popov
Telerik team
answered on 22 Apr 2015, 02:30 PM
Hello Mario,

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
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mario
Top achievements
Rank 2
answered on 22 Apr 2015, 04:05 PM

Thank you Alexander.

The problem has solved after update to 2015.1.408.545.

0
Acacio
Top achievements
Rank 1
answered on 02 Oct 2015, 12:37 PM

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?

 ​

 

0
Acacio
Top achievements
Rank 1
answered on 02 Oct 2015, 12:38 PM
I'm currently using this version:
Kendo UI v2015.1.318
0
Acacio
Top achievements
Rank 1
answered on 02 Oct 2015, 12:45 PM

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:
​​

0
Georgi Krustev
Telerik team
answered on 06 Oct 2015, 11:07 AM
Hello Acacio,

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
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Brian
Top achievements
Rank 1
answered on 11 Jan 2017, 10:53 PM
Was there ever a resolution to the latest issue of the 4 paging buttons' tooltips and the Items per Page not being translated?  I am using Kendo 2016.3.914 with MVC.  As initially stated, some of the paging toolbar text is translated using the message.js file as I can change the file for Message.display and it gets picked up, but the other messages do not.  I saw another Telerik page on localization (http://docs.telerik.com/aspnet-mvc/getting-started/localization) that says only particular locales are supported in mvc and they are through the resx files (which are built into the DLL). If that is the case, then how does some of the text in the paging area get translated and others do not?  Do only some use the resx files?  Trying to find a global fix for all our grids; not really wanting to rebuild Kendo every time we upgrade.
0
Konstantin Dikov
Telerik team
answered on 16 Jan 2017, 06:01 AM
Hi Brian,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Brian
Top achievements
Rank 1
answered on 03 Feb 2017, 05:20 PM

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

0
Konstantin Dikov
Telerik team
answered on 07 Feb 2017, 12:09 PM
Hello 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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Brian
Top achievements
Rank 1
answered on 07 Feb 2017, 09:31 PM
Thank you.  That is what I originally thought, but when I went to your demo site at http://demos.telerik.com/kendo-ui/grid/localization, I was able to add es-MX to the dropdownlist and all the paging labels and tooltips were translated.  I don't think the demo has an resx file for es-MX, so how is it working?
0
Konstantin Dikov
Telerik team
answered on 09 Feb 2017, 08:47 AM
Hello Brian,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Philippe
Top achievements
Rank 1
answered on 13 Sep 2019, 08:32 AM

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,

0
Petar
Telerik team
answered on 16 Sep 2019, 03:49 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Philippe
Top achievements
Rank 1
answered on 17 Sep 2019, 08:23 AM

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,

0
Petar
Telerik team
answered on 17 Sep 2019, 02:04 PM

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:

  1. Send me a runnable project in which the issue with the wrong translation can be reproduced and I will give feedback on this project. 
  2. 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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Philippe
Top achievements
Rank 1
answered on 18 Sep 2019, 02:34 PM

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,

0
Petar
Telerik team
answered on 19 Sep 2019, 07:25 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Philippe
Top achievements
Rank 1
answered on 20 Sep 2019, 08:32 AM

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,

0
Petar
Telerik team
answered on 20 Sep 2019, 12:09 PM

Hi Philippe,

It is good you've managed to find a solution! Thank you for sharing it with the community. 

Regards,


Petar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Globalization
Asked by
Mario
Top achievements
Rank 2
Answers by
Atanas Georgiev
Telerik team
Mario
Top achievements
Rank 2
Alexander Popov
Telerik team
Acacio
Top achievements
Rank 1
Georgi Krustev
Telerik team
Brian
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Philippe
Top achievements
Rank 1
Petar
Telerik team
Share this question
or