function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krishna casukhela 7krishna casukhela 7 

How to convert visual force page into multiple languages

I have a simple page as follows. The user enters first name and selects country name from picklist and hits the save button, so values are saved
to backend.

How to convert this page so it can be used for multiple languages?

a user in china should see the page as per chinese lanuage. How to achieve this?

How to use custom settings OR custom labels, translation workbench or do I have to code?

can any one pls explian in detail with code ?

Thanks
krishna
 
Raj VakatiRaj Vakati
Hi  krishna,
Move you Visual force labels into custom labels and translate those.   Use language attribute in the Page. 
<apex:page language="{!lan}" />

controller 
public String lan {get ;set; }
lan = UserInfo.getLanguage()



 
krishna casukhela 7krishna casukhela 7
Hi Rajamohan
if I am translating in germany then I need the german translation for the labels. 
so I need to enable translation workbench and then create custom label.

Pls correct my understanding.
a explanation from ur side will resolve my issue.

Also what about the picklist values?
currently all pciklist values are stored in custom settings along with country codes.

Thanks
krishna
Raj VakatiRaj Vakati
Customer label uses translation workbench. for a picklist, you need to do some sort of your own translations like managing them table or custom settings etc. 
Raj VakatiRaj Vakati
Let me know if you need any additional info