Activity › Forums › Salesforce® Discussions › How can we work with Custom Labels to Support Different Languages in Salesforce?
Tagged: Custom Labels in Salesforce, Multilanguage, Quick Find Box, Related List, Translation Settings, Translation Workbench, Workbench
-
How can we work with Custom Labels to Support Different Languages in Salesforce?
Posted by Anjali on July 30, 2018 at 1:45 PMHow can we work with Custom Labels to Support Different Languages in Salesforce?
Parul replied 7 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
Hello Anjali,
First of all, you need to activate the Translation Workbench (Setup –> Translation Workbench –> Translation Settings then Activate button). Then, add the language you want to enable.
When it’s done, you have a related list on each custom label where you can add the translation for each activated language.
Custom label value will be displayed according to the navigation language of the user.
Thanks.
- [adinserter block='9']
-
Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, or Lightning components. The values can be translated into any language Salesforce supports. Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language.
Create and Edit Custom Labels
1.From Setup, enter Custom Labels in the Quick Find box, then select Custom Labels.
2.To create a label, click New Custom Label. To edit a label, click Edit next to the custom label.
3.In the Short Description text box, enter an easily recognizable term to identify this custom label. This description is used in merge fields.
4.If you’re creating a custom label: In the Name text box, enter the name the label uses. This value is used in Apex and Visualforce pages to reference the custom label. Names must contain only alphanumeric characters, start with a letter, contain no spaces or double underscores, and be unique from all other labels in your org.
5.To mark the custom label as protected, check Protected Component..
6.For Categories, enter text to categorize the label. This field can be used in filter criteria when creating custom label list views. Separate each category with a comma. The total number of characters allowed in the Categories text box is 255.
7.In the Value text box, enter text up to 1,000 characters. This value can be translated into any language that Salesforce supports.
8.Click Save.
Log In to reply.