_locale_t的相关

    可以用_create_locale创建一个_locale_t参数,该参数用来指定诸如不同国家货币格式,日期格式等的信息,示例如下:
  _locale_t locale;
  // Create a locale object representing the German locale
  locale = _create_locale(LC_ALL, "German");

具体国家代码参考:

http://msdn.microsoft.com/en-us/library/cdax410z.aspx

Country/Region Strings

Visual Studio 2010

1 out of 1 rated this helpful - Rate this topic

The following is a list of Country/Region strings recognized by setlocale. Strings for countries/regions that are not supported by the operating system are not accepted by setlocale. Three-letter Country/Region-name codes are from the International Organization for Standardization and International Electrotechnical Commission (ISO/IEC) specification 3166.

Country/Regio

Country/Region string

Australia

"aus" or "australia"

Austria

"aut" or "austria"

Belgium

"bel" or "belgium"

Brazil

"bra" or "brazil"

Canada

"can" or "canada"

China

"china", "chn", "pr china", or "pr-china"

Czech Republic

"cze" or "czech"

Denmark

"dnk" or "denmark"

Finland

"fin" or "finland"

France

"fra" or "france"

Germany

"deu" or "germany"

Greece

"grc" or "greece"

Hong Kong SAR

"hkg", "hong kong", or "hong-kong"

Hungary

"hun" or "hungary"

Iceland

"iceland" or "isl"

Ireland

"irl" or "ireland"

Italy

"ita" or "italy"

Japan

"jpn" or "japan"

Korea

"kor" or "korea"

Mexico

"mex" or "mexico"

The Netherlands

"nld", "holland", or "netherlands"

New Zealand

"nzl", "new zealand", "new-zealand", or "nz"

Norway

"nor" or "norway"

Poland

"pol" or "poland"

Portugal

"prt" or "portugal"

Russia

"rus" or "russia"

Singapore

"sgp" or "singapore"

Slovakia

"svk" or "slovak"

Spain

"esp" or "spain"

Sweden

"swe" or "sweden"

Switzerland

"che" or "switzerland"

Taiwan

"twn" or "taiwan"

Turkey

"tur" or "turkey"

United Kingdom

"gbr", "britain", "england", "great britain", "uk", "united kingdom", or "united-kingdom"

United States

"usa", "america", "united states", "united-states", or "us"

语言代码参考:

http://msdn.microsoft.com/en-us/library/39cwe7zf.aspx

Language Strings

Visual Studio 2010
This topic has not yet been rated - Rate this topic

The following language strings are recognized by setlocale. Any language not supported by the operating system is not accepted by setlocale. The three-letter language-string codes are only valid in Windows 2000 and later operating systems.

Primary

language

Sublanguage

Language string

Chinese

Chinese

"chinese"

Chinese

Chinese (simplified)

"chinese-simplified" or "chs"

Chinese

Chinese (traditional)

"chinese-traditional" or "cht"

Czech

Czech

"csy" or "czech"

Danish

Danish

"dan" or "danish"

Dutch

Dutch (default)

"dutch" or "nld"

Dutch

Dutch (Belgium)

"belgian", "dutch-belgian", or "nlb"

English

English (default)

"english"

English

English (Australia)

"australian", "ena", or "english-aus"

English

English (Canada)

"canadian", "enc", or "english-can"

English

English (New Zealand)

"english-nz" or "enz"

English

English (United Kingdom)

"eng", "english-uk", or "uk"

English

English (United States)

"american", "american english", "american-english", "english-american", "english-us", "english-usa", "enu", "us", or "usa"

Finnish

Finnish

"fin" or "finnish"

French

French (default)

"fra" or "french"

French

French (Belgium)

"frb" or "french-belgian"

French

French (Canada)

"frc" or "french-canadian"

French

French (Switzerland)

"french-swiss" or "frs"

German

German (default)

"deu" or "german"

German

German (Austria)

"dea" or "german-austrian"

German

German (Switzerland)

"des", "german-swiss", or "swiss"

Greek

Greek

"ell" or "greek"

Hungarian

Hungarian

"hun" or "hungarian"

Icelandic

Icelandic

"icelandic" or "isl"

Italian

Italian (default)

"ita" or "italian"

Italian

Italian (Switzerland)

"italian-swiss" or "its"

Japanese

Japanese

"japanese" or "jpn"

Korean

Korean

"kor" or "korean"

Norwegian

Norwegian (default)

"norwegian"

Norwegian

Norwegian (Bokmal)

"nor" or "norwegian-bokmal"

Norwegian

Norwegian (Nynorsk)

"non" or "norwegian-nynorsk"

Polish

Polish

"plk" or "polish"

Portuguese

Portuguese (default)

"portuguese" or "ptg"

Portuguese

Portuguese (Brazil)

"portuguese-brazilian" or "ptb"

Russian

Russian (default)

"rus" or "russian"

Slovak

Slovak

"sky" or "slovak"

Spanish

Spanish (default)

"esp" or "spanish"

Spanish

Spanish (Mexico)

"esm" or "spanish-mexican"

Spanish

Spanish (Modern)

"esn" or "spanish-modern"

Swedish

Swedish

"sve" or "swedish"

Turkish

Turkish

"trk" or "turkish"

你可能感兴趣的:(_locale_t的相关)