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
SimrinSimrin 

Translation of labels in Salesforce | Management of Label


Hello,

I want to use property file like Java in Salesforce;
It is possible by custom field but i am not sure if this will serve my usecase.
My use case is
- I want to use all labels in a file instead of editing each label.
- I use two languages, french and english, so i want that language should be based on user selected language. It will be english or fench only.
- I want to translate in Visaulforce pages and Apex class as well.

How can i achieve this use case.

Thank you
Best Answer chosen by Simrin
Amit Chaudhary 8Amit Chaudhary 8
Hi Simrin,

Please use custom label and Translation Workbench | Salesforce  

-  Enable the translation workbench with the languages you require.
-  Create Translations for objects and fields

Navigation: Setup  > Translation workbench > Translation settings

Adding Translated Languages and Translators

To add or edit translated languages and translators:
      1. From Setup, click Translation Workbench -> Translation Settings.
      2. Click Add to activate a new language or Edit to change an existing supported language.
      3. If adding a new language, choose a language.
      4. To make the entered translations available to your users - select Active. Users can change their           personal language anytime whether or not it's active in the Translation Workbench. Selecting              Active makes the translations available to the users in that language.
        Tip: We recommend you don't make a language active until the translators have translated all values.
      5. To assign translators for this language, select them from the Available List and click Add. If               you don’t    see the member you want to add, enter keywords in
      6. Click Save

Please refer my below blog for step by step process :-
http://amitsalesforce.blogspot.in/2015/01/translation-workbench-salesforce.html

Please let us know if this will help you.

Thanks
Amit Chaudhary

All Answers

Rahul SharmaRahul Sharma
You can use visualforce global variables/apex:inputField/apex:outputField to retrieve appropriate field labels.
Additionally you can also use custom labels wherever required.
And use translation workbench to translate the custom label or field label
Amit Chaudhary 8Amit Chaudhary 8
Hi Simrin,

Please use custom label and Translation Workbench | Salesforce  

-  Enable the translation workbench with the languages you require.
-  Create Translations for objects and fields

Navigation: Setup  > Translation workbench > Translation settings

Adding Translated Languages and Translators

To add or edit translated languages and translators:
      1. From Setup, click Translation Workbench -> Translation Settings.
      2. Click Add to activate a new language or Edit to change an existing supported language.
      3. If adding a new language, choose a language.
      4. To make the entered translations available to your users - select Active. Users can change their           personal language anytime whether or not it's active in the Translation Workbench. Selecting              Active makes the translations available to the users in that language.
        Tip: We recommend you don't make a language active until the translators have translated all values.
      5. To assign translators for this language, select them from the Available List and click Add. If               you don’t    see the member you want to add, enter keywords in
      6. Click Save

Please refer my below blog for step by step process :-
http://amitsalesforce.blogspot.in/2015/01/translation-workbench-salesforce.html

Please let us know if this will help you.

Thanks
Amit Chaudhary
This was selected as the best answer
Makam RuthvikMakam Ruthvik
Hi,

Follow up to the above question.
I have used the above approach of Translation workbench and custom labels for my translations.
The translations are working fine when I am testing Classic Email Templates.
But when the same email template is sent through a workflow action I am always getting the language in English even though the recepient language is changed.
Please help me out here.