I have an issue related to Gantt Chart column text on language change. I want to see the text in the columns (see attached screenshot) in Spain for example. Is there any way to change column's text dynamically or in another language other than English?
7 Answers, 1 is accepted
In order to change the Gantt localization and culture dynamically, the Gantt widget needs to be redrawn once the defined culture is changed. You could take as an example the Scheduler globalization and localization demo and use the same approach
Here is a Dojo example based on the demo linked above where the culture and messages are changed based on a DropDownList selection.
You could read more about Localization and Globalization in the links below:
I hope this helps.
I have another question, is there language support for arabic? If I change gantt chart direction to rtl(right to left) for arabic, dependencies are disappeared and I can't add new dependencies to my gantt tasks.
And also another problem, in culture .js for arabic, there is no translation for years, months and weeks translated correcly, but years don't. Can I something in this case?
In general, the translations of the messages are community-driven and, for the moment, we do not have translations in Arabic. The full list of available translations could be found here:
As a workaround, I would recommend creating a new localization file. Follow the article below that describes the needed steps to create your custom messages file:
It will be great if you decide to share the file with our community, as it could be used for Arabic messages needed for other users around the globe.
I've created messages file for arabic, and everything is ok, thanks.
But you have culture file for arabic, where not years property in calendars object, and for that reason year header isn't translated to arabic as month or week in gantt view. Can you suggest me some solution for this situation?
And also please say me do you gave right to left direction support for arabic?
Thanks in advance
In the Dojo linked here the 'ar-SA' culture is used, for illustration purpose the messages are in 'de-DE'. As you will see, the months in the Year view are translated to Arabic language. Am I missing something?
You could also use the views.monthHeaderTemplate to customzie the months slots:
Regarding the right-to-left support I would suggest you to take a look at the related Gantt demo and the article linked below:
Let me know in case you have addiitonal questions.
The months in the Year view are translated to Arabic language, but years don't. Can I also translate years in arabic?
You can use the views.yearHeaderTemplate to change the content of the header as you desire.
Let me know if that would work for you.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.