Pager translation not working

15 posts, 0 answers
  1. Mario
    Mario avatar
    5 posts
    Member since:
    Sep 2014

    Posted 17 Apr 2015 Link to this post

    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.

  2. Atanas Georgiev
    Admin
    Atanas Georgiev avatar
    126 posts

    Posted 20 Apr 2015 Link to this post

    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!
     
  3. Mario
    Mario avatar
    5 posts
    Member since:
    Sep 2014

    Posted 20 Apr 2015 in reply to Atanas Georgiev Link to this post

    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.

  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1434 posts

    Posted 22 Apr 2015 Link to this post

    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!
     
  5. Mario
    Mario avatar
    5 posts
    Member since:
    Sep 2014

    Posted 22 Apr 2015 in reply to Alexander Popov Link to this post

    Thank you Alexander.

    The problem has solved after update to 2015.1.408.545.

  6. Acacio
    Acacio avatar
    3 posts
    Member since:
    Sep 2015

    Posted 02 Oct 2015 in reply to Alexander Popov Link to this post

    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?

     ​

     

  7. Acacio
    Acacio avatar
    3 posts
    Member since:
    Sep 2015

    Posted 02 Oct 2015 in reply to Acacio Link to this post

    I'm currently using this version:
    Kendo UI v2015.1.318
  8. Acacio
    Acacio avatar
    3 posts
    Member since:
    Sep 2015

    Posted 02 Oct 2015 in reply to Acacio Link to this post

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

  9. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3723 posts

    Posted 06 Oct 2015 Link to this post

    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!
     
  10. Brian
    Brian avatar
    3 posts
    Member since:
    Sep 2015

    Posted 11 Jan in reply to Georgi Krustev Link to this post

    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.
  11. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2067 posts

    Posted 16 Jan Link to this post

    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.
  12. Brian
    Brian avatar
    3 posts
    Member since:
    Sep 2015

    Posted 03 Feb in reply to Konstantin Dikov Link to this post

    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

  13. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2067 posts

    Posted 07 Feb Link to this post

    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.
  14. Brian
    Brian avatar
    3 posts
    Member since:
    Sep 2015

    Posted 07 Feb in reply to Konstantin Dikov Link to this post

    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?
  15. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2067 posts

    Posted 09 Feb Link to this post

    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.
Back to Top