Thursday 1 January 2015

Translation Workbench - Salesforce ( Multilingual picklist values )

Translation Workbench | Salesforce  

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

Enable the translation work bench
NavigationSetup  > Translation workbench > Translation settings


Note: In a Developer organization with a managed package containing translations, once the Translation Workbench is enabled, it can't be disabled.
Note: The “Manage Translation” permission is enabled by default in the System Administrator profile.
To disable the Translation Workbench, from Setup, Translation Workbench -> Translation Settings -> Disable

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 the search box and click Find.
      6. Click Save



 



Entering Translations and Overrides
  1. Click Translation Workbench -> Translate to translate customizations made to your Salesforce organization or Translation Workbench -> Override to override translations from managed packages.
  2. If you are overriding translations in managed packages, select the Package you are overriding.
  3. Select the Language you're translating into.
  4. Select a Setup Component. Click the pull-down menu to select from the list of translatable       customizations. See Translatable Customizations for a complete list of possible customizations.
  5. If necessary select an object and aspect. For example, workflow tasks have an object (Account, Contact, etc.) and aspect (Subject or Comment).
  6. Double click in the translation column to enter new values. You can press TAB to advance to the next editable field or SHIFT-TAB to go to the previous editable field.
  7. Click Save




How to see the Translation

  NavigationMy settings > Personal > Language & Time Zone
  Change the language in the below screen and verify the localized text which is entered


  
Best Practices for the Translation Workbench

To make the Translation Workbench most effective, administrators should:
  • Let translators know which languages they are responsible for translating.
  • Notify all translators when new translated components are added to your organization.
  • Advise users when customizing reports or list views to use filter criteria values in their personal language.

However, if they use the Starts With or Contains operators, advise them to choose the language of
the filter criteria values they entered.

Localize and Customize Labels and Messages of Visual Force Pages

The following steps are required for localize the labels
  1. Enable the translation workbench with the languages you require.
  2. Create labels for all the localizable text on the page.
  3. Replace the page text with the labels.
  4. Add a translation for each label.
  5. Change your profile language to test

Translate and Customize Labels

Navigation: Setup > Create > Custom Labels

Click on new custom label


Accessing custom label in the visual force page

<apex:page controller="TranslationWorkbenchDemoController">
  <h1>{!$Label.Welcome}</h1>
</apex:page>

Accessing Custom label in the apex classes

  ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, Label.Welcome ));


Thanks,
Amit Chaudhary 

8 comments:

  1. will this work if I have a different namespace?

    ReplyDelete
    Replies
    1. Yes, Just Try to follow all above Step. It will work with namespace also

      Delete
  2. Übersetzungsbüro englisch You make me wish I had time! I'm one of those rare foreigners who make it the advanced stages of Korean. Oh well. =(

    ReplyDelete
  3. Enter your comment...

    ReplyDelete
  4. Hi Amit, I have followed the above steps for adding French language but under Translation Workbench -> Override (to override translations from managed packages) i dont see french language as optiob for Apttus CLM application.

    Is there any step i need to see french language as an option for translation.
    Please advice.

    ReplyDelete
  5. Hi Amit,

    I need to send email to SSO user's.will this work.
    Please advice

    ReplyDelete