More in this section

Forums / General Discussions / How to add culture name as class in body tag

How to add culture name as class in body tag

2 posts, 0 answered
  1. Renatas
    Renatas avatar
    14 posts
    02 Aug 2011
    29 Nov 2011
    Link to this post
    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?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    30 Oct 2017
    01 Dec 2011
    Link to this post
    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.

    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
2 posts, 0 answered