Localization not working properly

5 posts, 1 answers
  1. Maksym
    Maksym avatar
    9 posts
    Member since:
    Apr 2015

    Posted 22 Jul 2015 Link to this post

    Hi,

    I have problem with changing the language of gantt view. I followed the tutorial in the link below in order to change the display language of gantt view.

    Tutorial: http://demos.telerik.com/aspnet-ajax/gantt/examples/accessibility-and-internationalization/localization/defaultcs.aspx 

    If I change the language the gantt view is only partly translated. "Day/Week/Month/Year"-Buttons in the top right corner stay in English.

     

    Thanks.

  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 24 Jul 2015 Link to this post

    Hi,

    The demo does show the whole gantt being localized. Can you confirm that you've set the Gantt culture as demonstrated in the CodeBehind file of the demo, as well as include the resource files, as described in the following help article:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/gantt/accessibility-and-internationalization/localization

    Regards,
    Bozhidar
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maksym
    Maksym avatar
    9 posts
    Member since:
    Apr 2015

    Posted 24 Jul 2015 Link to this post

    Hi,

     Thank you for your reply.

    "Telerik controls installation wizard automatically copies the built-in resources to the App_GlobalResources in your local installation."

    The App_GlobalResources folder didn't have the RadGantt.Main.resx file.

    I have added the required.resx files in the App_GlobalResources folder:

    - RadGantt.Main.resx

    - RadGantt.Main.de-DE.resx

    With the following fields: HeaderDay/HeaderWeek/HeaderMonth/HeaderYear

    And set the Gantt culture as in the example:

    - RadGantt1.Culture = CultureInfo.CreateSpecificCulture(Session["Culture"].ToString());

    - Session["Culture"] is set to "de-DE"

     

    Thanks.

     

  5. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 27 Jul 2015 Link to this post

    Hi,

    The gantt control relies on RadGantt.resx file, not RadGantt.Main.resx. For simplicity I've created and attached a simple web page which demonstrates the gantt localized with the apropriate localization file.

    Regards,
    Bozhidar
    Telerik
  6. Maksym
    Maksym avatar
    9 posts
    Member since:
    Apr 2015

    Posted 27 Jul 2015 Link to this post

    Thanks.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017