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. Navigate to your Content Manager installation \Tridion\web\WebUI\Models\CME\Configuration folder.
  2. Open ContentLanguages.xml in a text editor.
  3. Configure the elements as follows:
    <Languages>
    	<Language>
    		<Value>Value of lang</Value>
    		<Description>Description of lang</Description>
    		<Description lang="1036">French description of lang</Description>
    	</Language>
    </Languages>
    <Languages>
    The Parent node for all languages.
    Syntax
    <Languages>...</Languages>
    Children
    <Language>
    <Language>
    Defines a content language.
    Syntax
    <Language>...</Language>
    Attributesnone
    Parent
    <Languages>
    Children
    <Value>
    <description>
    <Value>
    Defines the two letter ISO value of a content language and can include a subtag which identifies the corresponding country. By default the configuration file includes the languages described in Languages and ISO codes
    The value that you specify must conform to ISO codes.
    Syntax
    <Value>
    ...
    </Value>
    Attributesnone
    Parent
    <Language>
    Siblings
    <Description>
    Childrennone
    For example, specify English as:
    <Value>en</Value>
    and United Kingdom English using:
    <Value>en-UK</Value>
    <Description>
    Provide a description of a language that will appear in the drop-down list of the Set Language dialog. You can add as many Description nodes as necessary for each Language.
    Syntax
    <Description lang="nnnn">
    Attributeslang—the language ID:
    • 1043 Dutch
    • 1033 English
    • 1036 French
    • 1031 German
    • 1034 Spanish
    Use the lang attribute to localize the selection list to provide descriptions of each language in the user's own language.
    Parent<Language>
    Siblings<Value>
    Childrennone
    The following example shows settings for Dutch:
    <Language>
    	<Value>nl</Value>
    	<Description>Dutch</Description>
    	<Description lang="1043">Nederlands</Description>
    	<Description lang="1036">Néerlandais</Description>
    </Language>
    Where:
    • Users whose language ID is Dutch (1043) will see Nederlands displayed
    • Users whose language ID is French (1036) will see Néerlandais displayed
    • All users with other language IDs will see Dutch displayed
  4. Save and close ContentLanguages.xml.