Custom Labels In Site

I have enabled Translations, with languages English and Russian. I have made one Custom Label and added a Russian translation. I have added that Custom Label to my Site. What do I need to change in Salesforce to view the Russian translation of that Custom Label in my Site?

I have tried changing the Locale and Language of Site Site Guest User but it did not work.

Changing my language to Russian and viewing the VisualForce page as /apex/PageName did work – it translated the label into Russian, but that is not what I want. I.e., This is viewing the Visualforce page as ADMIN; I want to know how to achieve the same (view the Russian translation) when viewing the Site as an unauthenticated user.


<apex:page sidebar="true" showHeader="false" language="ru">

The language parameter of the page decides language.

Make a getter setter variable in the controller and use userinfo to get the language or through the query and populate on the language parameter.

This method works but still need to investigate more on why for unauthenticated user it’s weird! Please try in different browser where only unauthenticated user is accessing page.

Source : Link , Question Author : Shumon Saha , Answer Author : Shumon Saha

Leave a Comment