KEY_LANGUAGE

The KEY_LANGUAGE element instructs the MDEX Engine to treat values from a specified dimension or property as values from a specified language.

The NAME attribute specifies the dimension or property. The LANGUAGE attribute specifies the code for the language. This association is useful when Endeca records in a number of languages are handled by a single dgraph instance.

DTD

<!ELEMENT KEY_LANGUAGE EMPTY>
<!ATTLIST KEY_LANGUAGE
   NAME         CDATA      #REQUIRED
   LANGUAGE     CDATA      #REQUIRED
>

Attributes

The following section describes the KEY_LANGUAGE element's attributes.

NAME

Specifies either a dimension or a property name to associate with a LANGUAGE value.

LANGUAGE

Specifies the language code for values represented in the dimension or property. ISO 639 lists the valid language codes. Common examples include the following: en for English, es for Spanish, fr for French, de for German, ja for Japanese, and ko for Korean. Chinese has a two available codes: zh-CN for simplified Chinese and zh-TW for traditional Chinese.
Note: Language codes are case-sensitive and should be specified in lower case with the exception of zh-TW and zh-CN.

Sub-elements

The KEY_LANGUAGE element has no sub-elements.

Example

This example instructs the MDEX Engine to treat values in dimension called "Title_English" as English language values, and treat values in dimension called "Title_Spanish" as Spanish language values.

<LANGUAGES>
   <KEY_LANGUAGE NAME="Title_English" LANGUAGE="en"/>
   <KEY_LANGUAGE NAME="Title_Spanish" LANGUAGE="es"/>
</LANGUAGES>