Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Define Custom Label Translations in Multi-Language Omniscripts

          Define Custom Label Translations in Multi-Language Omniscripts

          Define translations in various languages for custom labels in multi-language Omniscripts. Create localized content so that users see the Omniscripts in the language based on their locale. Create custom labels in English first, followed by translations for other languages.

          To avoid duplications and improve querying, use naming conventions when you create custom labels in a Salesforce org with multiple developers. For example, jSmithCustomTextLabel.

          Note
          Note

          In addition to Salesforce custom labels, Omnistudio provides default custom labels with translations. Omnistudio doesn't support Salesforce standard labels.

          The Set Values and Set Errors actions don’t support custom labels.

          1. Create a multi-language Omniscript.
            1. From the App Launcher, find and select Omniscripts.
            2. On the Omniscripts tab, click New.
            3. Enter a unique name, type, and subtype for your Omniscript.
            4. From the language dropdown list, remove English and select Multi-Language.
            5. Save your changes.
          2. Create the Omniscript's basic structure by adding elements and their properties.
          3. Add or edit translations for custom labels for elements in the Omniscript.
            • Click Edit icon for multi-language Omniscripts.
            • If you're using the designer for a managed package, click Edit Translations.
            The Edit Your Omniscript Translations window opens.
          4. Add English translations for the custom labels.
            1. Click Settings icon and select English (US) from the dropdown list.
              Note
              Note

              To ensure that the custom label is created properly, always create the English translation first.

            2. For each element that you want to translate, enter a custom label name.
            3. In Custom Label Value in English (US), enter the value that you want for the element in the English Omniscript.
              Merge field syntax is supported in custom label values.
              Note
              Note

              Custom labels must have values. If a custom label value doesn't exist, an error message appears when you preview the Omniscript.

            4. Click Save as English (US).
          5. Create another translation.
            1. Click Settings icon and select another language.
            2. Add a translation by entering custom label values for the element properties for which you entered English values.
            3. Save the translations.
          6. Add other languages as necessary.
          7. Preview the Omniscript and test each language.
            Sometimes it takes a few minutes for the custom labels to be created. If the labels don't appear in the preview at first, try again in a few minutes.
            Note
            Note

            Custom labels don’t render in the design mode. You must preview the Omniscript to render the custom labels correctly.

            If the Save operation is not completed error appears, or if labels don't appear in preview after a few minutes, add the custom labels in Setup. See Create and Edit Custom Labels.

          Example: Translate an Omniscript by Using Custom Labels

          This example illustrates how you can translate Text and Text Block elements by using custom labels. You can follow similar steps to translate other Omniscript elements.

          1. Create a multi-language Omniscript.
            1. From the App Launcher, find and select Omniscripts.
            2. On the Omniscripts tab, click New.
            3. Enter a unique name, type, and subtype for your Omniscript.
            4. From the language dropdown list, remove English and select Multi-Language.
            5. Save your changes.
          2. Configure the multi-language Omniscript.
            1. From the elements panel, drag a second step in the Omniscript.
            2. In the properties of the second step, remove the Step2 value from the field label.
            3. Expand both steps.
            4. From the elements panel, drag a Text element into the first step.
            5. From the elements panel, drag a Text Block element into the second step.
          3. In the Edit Your Omniscript Translations window, edit the custom label values in English.
            1. In the Text1 element's field label row, in Custom Label Name, enter Name and in Custom Label Value in English (US), enter Name.
            2. In the TextBlock1 element's text key row, in Custom Label Name, enter Greeting and in Custom Label Value in English (US), enter <ph>Hello, </ph><ph>%Step1:Text1%</ph>.
              A custom label value for a Text Block can contain HTML markup. To ensure that a merge field value renders correctly, put the merge field between <ph> HTML tags. To begin on a new line, use <br/>.
            3. Save the English translations.
            Two custom labels are created: Name and Greeting.
          4. Create a Spanish translation for the Omniscript.
            1. In the Text1 element's field label row, enter Nombre for the custom label value in Spanish.
            2. In the TextBlock1 element's text key row, enter <ph>Hola, </ph><ph>%Step1:Text1%</ph> for the custom label value in Spanish.
            3. Save the Spanish translations.

            Here's how the first page looks.

            First page of Spanish Omniscript

            Here's how the second page looks.

            Second page of Spanish Omniscript
           
          Loading
          Salesforce Help | Article