You need to sign in to do that
Don't have an account?
Vijay Birsingh
Translate Custom Label values
Hello,
I have to display the name of the object on a visualforce page. I am actually using a custom label to display the name of the standard object. But, this name of the standard object must be displayed in English and French as well, may I know if it is possible to display the name of the object through the use of Translation? Or is there any other way other than If..Else, constructs.
I thank you.
Kind Regards,
Vijay.
I have to display the name of the object on a visualforce page. I am actually using a custom label to display the name of the standard object. But, this name of the standard object must be displayed in English and French as well, may I know if it is possible to display the name of the object through the use of Translation? Or is there any other way other than If..Else, constructs.
I thank you.
Kind Regards,
Vijay.
We can fulfill your requirement with the use of one of the salesforce feature "Translation Workbench (https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_wbench.htm)".
First setup your Custom Label as per below screenshot.
Now, Based on "language" attribute of <apex:page> we can define the whole page language. we can bind any othe variable also there instead of "en_US" and "fr-ch".
Visualforce Page: English
Visualforce Page: French Let me know if you have any question on this.
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
All Answers
We can fulfill your requirement with the use of one of the salesforce feature "Translation Workbench (https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_wbench.htm)".
First setup your Custom Label as per below screenshot.
Now, Based on "language" attribute of <apex:page> we can define the whole page language. we can bind any othe variable also there instead of "en_US" and "fr-ch".
Visualforce Page: English
Visualforce Page: French Let me know if you have any question on this.
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
Thank you.
Regards,
Vijay.