How to add culture name as class in body tag

Posted by Community Admin on 03-Aug-2018 12:07

How to add culture name as class in body tag

All Replies

Posted by Community Admin on 29-Nov-2011 00:00

I am trying to add culture name as class in body tag like example <body class="ar-AE" />. Any one has example how to implement it in sitefinity 4.2?

Posted by Community Admin on 01-Dec-2011 00:00

Hello Renatas,

Can you please let us know of the exact use case scenario that you need to implement, so we can give you a more specific advice? Generally the easiest way to get the name of the current culture, and dynamically assign a class with its name, would be to use CultureInfo.CurrentUICulture in your server-side code, and maybe set the class.

Greetings,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed