Documentation Center

Configuring elements for pre-translation

List XML elements that are to be compared for pre-translation in the translation configuration file.

About this task

The elements in the translation configuration file are compared in the order that they are specified. As a best practice, configure top-level elements first. For example, when a complete <section> element is identical, you want to pre-translate the entire element rather than all child elements separately.

Procedure

  1. Login to the Content Manager web client as a user with an Administrator user role.
  2. Select Settings > XML Extension Settings
    The Admin.XMLExtensionConfiguration.xml file is displayed in the right pane.
  3. Locate the section that begins <comparisonelements> in the Admin.XMLExtensionConfiguration.xml file displayed in the right pane.
  4. Add a <xpath> tag within the <comparisonelements> tags, in the format:
    <xpath>//*[contains(@class,' element/element ')]</xpath>
    where element/element indicates parent/child element tags.
    For example, to indicate that <section> tags within<topic> tags are to be pre-translated, enter:
    <xpath>//*[contains(@class,' topic/section ')]</xpath>

Example

The example below is a hierarchy of elements that are to be pre-translated that all fall within the <topic> tags. The hierarchy starts with a top level tag, <section>, within the <topic> tags. Other tags within <topic> are listed in order of significance for pre-translation.
<comparisonelements>
   <xpath identified="y">//*[contains(@class,' topic/section ')]</xpath>
   <xpath>//*[contains(@class,' topic/example ')]</xpath>
   <xpath identified="y">//*[contains(@class,' glossentry/glossentry ')]</xpath>
   <xpath>//*[contains(@class,' glossentry/glossterm ')]</xpath>
   <xpath>//*[contains(@class,' glossentry/glossdef ')]</xpath>
   <xpath>//*[contains(@class,' topic/shortdesc ')]</xpath>
   <xpath>//*[contains(@class,' topic/table ')]</xpath>
   <xpath>//*[contains(@class,' topic/row ')]</xpath>
   <xpath>//*[contains(@class,' topic/ol ')]</xpath>
   <xpath>//*[contains(@class,' topic/ul ')]</xpath>
   <xpath>//*[contains(@class,' topic/li ')]</xpath>
   <xpath>//*[contains(@class,' topic/sli ')]</xpath>
   <xpath>//*[contains(@class,' topic/topic ')]/*[contains(@class,' topic/title ')]</xpath>
   <xpath>//*[contains(@class,' topic/table ')]/*[contains(@class,' topic/title ')]</xpath>
   <xpath>//*[contains(@class,' topic/section ')]/*[contains(@class,' topic/title ')]</xpath>
   <xpath>//*[contains(@class,' topic/navtitle ')]</xpath>
   <xpath>//*[contains(@class,' topic/alt ')]</xpath>
   <xpath>//*[contains(@class,' topic/indexterm ')]</xpath>
   <xpath>//*[contains(@class,' topic/term ')]</xpath>
   <xpath>//*[contains(@class,' topic/tm ')]</xpath>
   <xpath>//*[contains(@class,' topic/fn ')]</xpath>
   <xpath>//*[contains(@class,' topic/xref ')]</xpath>
</comparisonelements>