Documentation Center

Content language configuration

You determine the list of languages that are available in a Set Language dialog by adding languages in the ContentLanguages.xml file.

About this task

In a Schema format area, content authors may mark text with a language attribute. This attribute may be used to:

  • Allow speech synthesizers to use language dependent pronunciation rules
  • Enable search engines index a document by its language
  • Allow templates to change the style of text depending upon language. For example, a bilingual document may present a language in italic

Procedure

  1. On the Content Manager sever machine, navigate to %TRIDION_HOME%\web\WebUI\Models\baseeditor\Configuration\.
  2. Open ContentLanguages.xml for editing.
  3. Configure the elements as follows:
    <Languages>
    	 <Language>
    		  <Value>LANGCODE</Value>
    		  <Description lang="LANGNUMBER">LANGDESCRIPTION</Description>
    	 </Language>
    </Languages>
    where:
    • LANGCODE is the two-letter ISO value of a content language, optionally with a subtag that identifies the corresponding country. For example, en represents English, and en-UK represents UK English. By default, the configuration file includes the languages listed in Languages and ISO codes.
    • LANGDESCRIPTION is the name of the language, written in the language denoted by LANGNUMBER, as it will appear in the dropdown list of the Set Language dialog in Content Manager Explorer.
    • LANGNUMBER is a four-digit number denoting the language in which the name of the language is written. You can configure multiple Description elements, each with the lang attribute set to a different four-digit number. The possible values for LANGNUMBER are:
      • 1031 for German
      • 1033 for English
      • 1034 for Spanish
      • 1036 for French
      • 1041 for Japanese
      • 1043 for Dutch
    The following Language element shows how the French language dropdown value would be configured:
    <Language> 
    	 <Value>fr</Value>
    	 <Description lang="1031">französisch</Description>
    	 <Description lang="1033">French</Description>
    	 <Description lang="1034">francés</Description>
    	 <Description lang="1036">français</Description>
    	 <Description lang="1041">フランス語</Description>
    	 <Description lang="1043">Frans</Description>
    </Language>
  4. Add more Language sections for other languages you want to appear in the dropdown.
  5. Save and close ContentLanguages.xml.