Documentation Center

Localizing a publication or collection

You can configure LiveContent S1000D to display the elements of a single IETM or a collection in a language you specify.

About this task

When configured for localization, elements of an IETM or collection that will be localized include the following.
  • XSL style text values
  • application control text
  • errors, warnings, and other messages

To configure LiveContent S1000D to localize the elements of a single IETM or all the in IETMs in a collection, edit the wietmsd.xml file as follows.

Procedure

  1. Open the wietmsd.xml configuration file for editing.
  2. To set an XSL localization language for an individual IETM, add a language configuration item to the book section of the configuration file as in the following example.
    <book name="model1">
         ...
    
         <configitem name="language"><value>xx</value></configitem>
    
         ...
    </book>

    where xx is the ISO language code for the desired language, such as es for Spanish or it for Italian. The language resource file associated with the value specified in this configuration item will be used to localize the IETM. For example, if fr (for French) is specified, the following resource files are usedLiveContent_home/templates/FullSupport/etc/skins/Carbon/templates/config/resources-fr.prop LiveContent_home/templates/FullSupport/etc/config/resources-fr.prop

  3. To set an XSL localization language for a collection, add a language configuration item to the collection section of the configuration file as in the following example.
    <collection name="default">
         ...
    
         <configitem name="language"><value>xx</value></configitem>
    
         ...
    </collection>

    where xx is the ISO language code for the desired language, such as de for German or fr for French. The language resource file associated with the value specified in this configuration item will be used to localize the collection. For example, if fr (for French) is specified, the LiveContent_home/templates/FullSupport/etc/skins/Carbon/templates/config/resources-fr.prop resource file is used.

  4. Save and close the wietmsd.xml file.
  5. In each appropriate language resource (resources-xx.prop) file, define the variables that will be used in XSL stylesheets as follows.
    1. Open the resource file for editing.
    2. Add each variable name and value as in the following example.
      style.common.category=Category
    3. Save and close the resource file.
  6. Modify the XSL markup as follows.
    1. Open the applicable XSL file.
    2. Locate the class definition representing the style to be localized, such as the WARNING style in the following example.
      <span class="warning" style="font-weight: bold;"><center>WARNING</center></span>
    3. Modify the class definition, changing its name and replacing the explicit text value (WARNING in this case) with the variable name to be applied as follows.
      <span class="warning bold-xsl"><center><xsl:value-of select="$style.common.warning"/></center></span> 
      
      
    4. Save and close the XSL file.

What to do next

To apply the XSL localization changes and related language resource file changes, restart LiveContent S1000D.