Share via


DocLangID Element

Indicates the default language for the document.

Syntax

<DocLangID
    [Unit]
    [F]
    [Err]>
</DocLangID>

Attributes

Unit

Optional string. Represents a unit of measure. The default is NUM. For details about NUM, see Units of measure.

F

Optional string. Represents the element's formula. This attribute can contain one of the following strings: "someFormula" if the formula exists locally, "No Formula" if the formula is locally deleted or blocked, or "Inh" if the formula is inherited.

If the attribute is not present, the element's formula is a simple constant. For example, <element>5</element>.

Err

Optional string. Indicates that the formula evaluates to an error. The value of Err is the current value (an error message string); the value of the element is the last valid value.

Element properties

Property

Value

Name

DocLangID

Minimum Occurrences

0

Maximum Occurrences

1

Element information

Parent elements

DocProps

Child elements

None

The document language is based on the language defined in the Microsoft Office 2010 Language Preferences dialog box (click Start, click All Programs, click Microsoft Office 2010 Tools, and then click Microsoft Office 2010 Language Preferences).

If you want to change the language for a document, instead of editing this element directly, it is best to change this value in the Properties dialog box or by using Automation, using the Language property of the Document object.

The following table contains a list of languages and their corresponding LCIDs.

Language

LCID

Afrikaans

1078

Albanian

1052

Amharic

1118

Arabic

1025

Armenian

1067

Assamese

1101

Azeri (Cyrillic)

2092

Azeri (Latin)

1068

Basque (Basque)

1069

Belarusian

1059

Bengali

1093

Bulgarian

1026

Catalan

1027

Cherokee

1116

Chinese (Simplified)

2052

Chinese (Traditional)

1028

Croatian

1050

Czech

1029

Danish

1030

Dhivehi

1125

Dutch

1043

Edo

1126

English (Australian)

3081

English (Canadian)

4105

English ( U.K.)

2057

English (U.S.)

Estonian

1061

Faeroese

1080

Farsi

1065

Filipino

1124

Finnish

1035

French

1036

French (Canadian)

3084

Frisian

1122

Fulfulde

1127

Galician

1110

Georgian

1079

German

1031

German (Austrian)

3079

German (Swiss)

2055

Greek

1032

Gujarati

1095

Hausa

1128

Hawaiian

1141

Hebrew

1037

Hindi

1081

Hungarian

1038

Ibibio

1129

Icelandic

1039

Igbo

1136

Indonesian

1057

Inuktitut

1117

Italian

1040

Japanese

1041

Kannada

1099

Kanuri

1137

Kashmiri

2144

Kashmiri (Arabic)

1120

Kazakh

1087

Kyrgyz

1088

Konkani

1111

Korean

1042

Latin

1142

Latvian

1062

Lithuanian

1063

Macedonian (F.Y.R.O. Macedonia)

1071

Malay

1086

Malayalam

1100

Maltese

1082

Manipuri

1112

Marathi

1102

Mongolian

1104

Nepali

1121

Norwegian Bokmal

1044

Norwegian Nynorsk

2068

Oriya

1096

Oromo

1138

Pashto

1123

Polish

1045

Portuguese (Brazil)

1046

Portuguese (Portugal)

2070

Punjabi

1094

Romanian

1048

Russian

1049

Sanskrit

1103

Serbian (Cyrillic)

3098

Serbian (Latin)

2074

Sindhi

1113

Sinhalese

1115

Slovak

1051

Slovenian

1060

Somali

1143

Spanish

3082

Swahili

1089

Swedish

1053

Syriac

1114

Tajik

1064

Tamazight (Arabic, Morocco)

1119

Tamazight (Latin)

2143

Tamil

1097

Tatar

1092

Telugu

1098

Thai

1054

Tigrigna (Ethiopia)

1139

Tigrigna (Eritrea)

2163

Turkish

1055

Turkmen

1090

Ukrainian

1058

Urdu

1056

Uzbek (Cyrillic)

2115

Uzbek (Latin)

1091

Vietnamese

1066

Yi

1144

Yiddish

1085

Yoruba

1130

The DocLangID element is relevant only when contained in a DocumentSheet element. It is ignored when contained in a StyleSheet , Shape , or PageSheet element.

See also

DocLangID cell