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

Localization not working properly

4 Answers 158 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Maksym
Top achievements
Rank 1
Maksym asked on 22 Jul 2015, 01:49 PM

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.

4 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 24 Jul 2015, 07:40 AM
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
0
Maksym
Top achievements
Rank 1
answered on 24 Jul 2015, 08:49 AM

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.

 

0
Accepted
Bozhidar
Telerik team
answered on 27 Jul 2015, 06:51 AM
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
0
Maksym
Top achievements
Rank 1
answered on 27 Jul 2015, 01:05 PM
Thanks.
Tags
Gantt
Asked by
Maksym
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Maksym
Top achievements
Rank 1
Share this question
or