Gantt Chart Columns in another Language

7 Answers 45 Views
Gantt
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
Mariam asked on 04 Feb 2022, 07:22 AM

Hi,

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?

Thanks

7 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 09 Feb 2022, 06:30 AM

Hello Mariam,

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

https://demos.telerik.com/kendo-ui/scheduler/localization

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:

- https://docs.telerik.com/kendo-ui/globalization/intl/overview

https://docs.telerik.com/kendo-ui/globalization/localization

I hope this helps.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 16 Feb 2022, 07:40 AM | edited on 18 Feb 2022, 08:10 AM

Thanks Neli, 

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?

0
Neli
Telerik team
answered on 21 Feb 2022, 07:27 AM

Hello,

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:

https://github.com/telerik/kendo-ui-core/tree/master/src/messages

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:

https://docs.telerik.com/aspnet-core/globalization/localization#creating-new-localization-files

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.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 21 Feb 2022, 07:32 AM

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

0
Neli
Telerik team
answered on 24 Feb 2022, 06:45 AM

Hi Mariam,

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:

- https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt/configuration/views.monthheadertemplate

Regarding the right-to-left support I would suggest you to take a look at the related Gantt demo and the article linked below:

- https://demos.telerik.com/kendo-ui/gantt/right-to-left-support

- https://docs.telerik.com/kendo-ui/accessibility/supporting-rtl-languages

Let me know in case you have addiitonal questions. 

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 24 Feb 2022, 06:55 AM
Hi Neli, thanks for responding)

The months in the Year view are translated to Arabic language, but years don't. Can I also translate years in arabic?
0
Martin
Telerik team
answered on 28 Feb 2022, 11:25 AM

Hello, Mariam,

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.

Regards,
Martin
Progress Telerik

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/.

Tags
Gantt
Asked by
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Neli
Telerik team
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
Martin
Telerik team
Share this question
or