ASPX templates
Version 6.x > ASPX templates > UI Culture reference in Dropdown View modes: 
User avatar
Member
Member
paul.truman-sunmed.co - 12/20/2012 11:27:28 AM
   
UI Culture reference in Dropdown
Hey, I'm stuck on translating the values of a dropdown field in an aspx template. Is there any way that I can insert the UI culture reference within the following code (so I can translate the text shown on screen)?

<asp:ListItem Text="all" Value="all"></asp:ListItem>
<asp:ListItem Text="9" Value="9"></asp:ListItem>
<asp:ListItem Text="18" Value="18"></asp:ListItem>

User avatar
Member
Member
kentico_alleng - 12/21/2012 1:47:28 PM
   
RE:UI Culture reference in Dropdown

You can make use of the UI Cultures and Localization feature to add your own keys to the CMS.resx file, as described here:

UI Cultures and Localization

You can access the keys from your resx file using the following method:

CMS.GlobalHelper.ResHelper.GetString(string key,string culture)

Where "key" is the keyname and "culture" is the culture code.

Regards,

Allen