|< C++ .NET Formatting 9 | Main | C++ .NET CultureInfo Class Info 2 >|


 

Supplementary Note: CultureInfo Class Information 1

 

The following are the topics available in this part.

 

Introduction

Culture Names and Identifiers

 

 

Introduction

 

This class provides information about a specific culture, such as the names of the culture, the writing system, the calendar used, and how to format dates and sort strings. The information for this class is provided in the following table.

 

Item

Information

Namespace

System.Globalization

Assembly

mscorlib (in mscorlib.dll)

Syntax

[SerializableAttribute]

[ComVisibleAttribute(true)]

public ref class CultureInfo : ICloneable, IFormatProvider

 

Table 1

 

The CultureInfo class holds culture-specific information, such as the associated language, sublanguage, country/region, calendar, and cultural conventions. This class also provides access to culture-specific instances of DateTimeFormatInfo, NumberFormatInfo, CompareInfo, and TextInfo. These objects contain the information required for culture-specific operations, such as casing, formatting dates and numbers, and comparing strings. The String class indirectly uses this class to obtain information about the default culture.

 

 

Culture Names and Identifiers

 

The culture names follow the RFC 1766 standard in the format "<languagecode2>-<country/regioncode2>", where <languagecode2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, U.S. English is "en-US". In cases where a two-letter language code is not available, the three-letter code derived from ISO 639-2 is used; for example, the three-letter code "div" is used for cultures that use the Dhivehi language. Some culture names have suffixes that specify the script; for example, "-Cyrl" specifies the Cyrillic script, "-Latn" specifies the Latin script. The following predefined culture names and identifiers are accepted and used by this and other classes in the System.Globalization namespace.

 

Culture Name

Culture Identifier

Language-Country/Region

"" (empty string)

0x007F

invariant culture

af

0x0036

Afrikaans

af-ZA

0x0436

Afrikaans - South Africa

sq

0x001C

Albanian

sq-AL

0x041C

Albanian - Albania

ar

0x0001

Arabic

ar-DZ

0x1401

Arabic - Algeria

ar-BH

0x3C01

Arabic - Bahrain

ar-EG

0x0C01

Arabic - Egypt

ar-IQ

0x0801

Arabic - Iraq

ar-JO

0x2C01

Arabic - Jordan

ar-KW

0x3401

Arabic - Kuwait

ar-LB

0x3001

Arabic - Lebanon

ar-LY

0x1001

Arabic - Libya

ar-MA

0x1801

Arabic - Morocco

ar-OM

0x2001

Arabic - Oman

ar-QA

0x4001

Arabic - Qatar

ar-SA

0x0401

Arabic - Saudi Arabia

ar-SY

0x2801

Arabic - Syria

ar-TN

0x1C01

Arabic - Tunisia

ar-AE

0x3801

Arabic - United Arab Emirates

ar-YE

0x2401

Arabic - Yemen

hy

0x002B

Armenian

hy-AM

0x042B

Armenian - Armenia

az

0x002C

Azeri

az-AZ-Cyrl

0x082C

Azeri (Cyrillic) - Azerbaijan

az-AZ-Latn

0x042C

Azeri (Latin) - Azerbaijan

eu

0x002D

Basque

eu-ES

0x042D

Basque - Basque

be

0x0023

Belarusian

be-BY

0x0423

Belarusian - Belarus

bg

0x0002

Bulgarian

bg-BG

0x0402

Bulgarian - Bulgaria

ca

0x0003

Catalan

ca-ES

0x0403

Catalan - Catalan

zh-HK

0x0C04

Chinese - Hong Kong SAR

zh-MO

0x1404

Chinese - Macao SAR

zh-CN

0x0804

Chinese - China

zh-CHS

0x0004

Chinese (Simplified)

zh-SG

0x1004

Chinese - Singapore

zh-TW

0x0404

Chinese - Taiwan

zh-CHT

0x7C04

Chinese (Traditional)

hr

0x001A

Croatian

hr-HR

0x041A

Croatian - Croatia

cs

0x0005

Czech

cs-CZ

0x0405

Czech - Czech Republic

da

0x0006

Danish

da-DK

0x0406

Danish - Denmark

div

0x0065

Dhivehi

div-MV

0x0465

Dhivehi - Maldives

nl

0x0013

Dutch

nl-BE

0x0813

Dutch - Belgium

nl-NL

0x0413

Dutch - The Netherlands

en

0x0009

English

en-AU

0x0C09

English - Australia

en-BZ

0x2809

English - Belize

en-CA

0x1009

English - Canada

en-CB

0x2409

English - Caribbean

en-IE

0x1809

English - Ireland

en-JM

0x2009

English - Jamaica

en-NZ

0x1409

English - New Zealand

en-PH

0x3409

English - Philippines

en-ZA

0x1C09

English - South Africa

en-TT

0x2C09

English - Trinidad and Tobago

en-GB

0x0809

English - United Kingdom

en-US

0x0409

English - United States

en-ZW

0x3009

English - Zimbabwe

et

0x0025

Estonian

et-EE

0x0425

Estonian - Estonia

fo

0x0038

Faroese

fo-FO

0x0438

Faroese - Faroe Islands

fa

0x0029

Farsi

fa-IR

0x0429

Farsi - Iran

fi

0x000B

Finnish

fi-FI

0x040B

Finnish - Finland

fr

0x000C

French

fr-BE

0x080C

French - Belgium

fr-CA

0x0C0C

French - Canada

fr-FR

0x040C

French - France

fr-LU

0x140C

French - Luxembourg

fr-MC

0x180C

French - Monaco

fr-CH

0x100C

French - Switzerland

gl

0x0056

Galician

gl-ES

0x0456

Galician - Galician

ka

0x0037

Georgian

ka-GE

0x0437

Georgian - Georgia

de

0x0007

German

de-AT

0x0C07

German - Austria

de-DE

0x0407

German - Germany

de-LI

0x1407

German - Liechtenstein

de-LU

0x1007

German - Luxembourg

de-CH

0x0807

German - Switzerland

el

0x0008

Greek

el-GR

0x0408

Greek - Greece

gu

0x0047

Gujarati

gu-IN

0x0447

Gujarati - India

he

0x000D

Hebrew

he-IL

0x040D

Hebrew - Israel

hi

0x0039

Hindi

hi-IN

0x0439

Hindi - India

hu

0x000E

Hungarian

hu-HU

0x040E

Hungarian - Hungary

is

0x000F

Icelandic

is-IS

0x040F

Icelandic - Iceland

id

0x0021

Indonesian

id-ID

0x0421

Indonesian - Indonesia

it

0x0010

Italian

it-IT

0x0410

Italian - Italy

it-CH