GetLocale( Info )
Info – Type of information to retrieve.
Value | Meaning |
0 | Three letter country code |
1 | Two letter country code used in standard locale dexriptions (i.e in en-GB, this would return "GB") |
2 | Two letter language code used in standard locale dexriptions (i.e in en-GB, this would return "en") |
This parameter is optional and the default is 0.
The locale string for the current user. See below for a full description of the return string.
This function gets Windows locale information for the current user as a string.
Please note the following lists are based on the ISO standards and Windows may not support all languages or countries. Check your publication on your supported languages.
The following is a list of the possible country values:
Country | 3 Letter Code | 2 Letter Code |
Afghanistan | AFG | AF |
Albania | ALB | AL |
Algeria | DZA | DZ |
American Samoa | ASM | AS |
Andorra | AND | AD |
Angola | AGO | AO |
Anguilla | AIA | AI |
Antarctica | ATA | AQ |
Antigua and Barbuda | ATG | AG |
Argentina | ARG | AR |
Armenia | ARM | AM |
Aruba | ABW | AW |
Australia | AUS | AU |
Austria | AUT | AT |
Azerbaijan | AZE | AZ |
Bahamas | BHS | BS |
Bahrain | BHR | BH |
Bangladesh | BGD | BD |
Barbados | BRB | BB |
Belarus | BLR | BY |
Belgium | BEL | BE |
Belize | BLZ | BZ |
Benin | BEN | BJ |
Bermuda | BMU | BM |
Bhutan | BTN | BT |
Bolivia | BOL | BO |
Bosnia and Herzegovina | BIH | BA |
Botswana | BWA | BW |
Bouvet Island | BVT | BV |
Brazil | BRA | BR |
British Indian Ocean Territory | IOT | IO |
Brunei Darussalam | BRN | BN |
Bulgaria | BGR | BG |
Burkina Faso | BFA | BF |
Burundi | BDI | BI |
Cambodia | KHM | KH |
Cameroon | CMR | CM |
Canada | CAN | CA |
Cape Verde | CPV | CV |
Cayman Islands | CYM | KY |
Central African Republic | CAF | CF |
Chad | TCD | TD |
Chile | CHL | CL |
China | CHN | CN |
Christmas Island | CXR | CX |
Cocos (Keeling) Islands | CCK | CC |
Colombia | COL | CO |
Comoros | COM | KM |
Congo | COG | CG |
Congo, the Democratic Republic of the | COD |
|
Cook Islands | COK | CK |
Costa Rica | CRI | CR |
Côte d'Ivoire | CIV | CI |
Croatia | HRV | HR |
Cuba | CUB | CU |
Cyprus | CYP | CY |
Czech Republic | CZE | CZ |
Denmark | DNK | DK |
Djibouti | DJI | DJ |
Dominica | DMA | DM |
Dominican Republic | DOM | DO |
Ecuador | ECU | EC |
Egypt | EGY | EG |
El Salvador | SLV | SV |
Equatorial Guinea | GNQ | GQ |
Eritrea | ERI | ER |
Estonia | EST | EE |
Ethiopia | ETH | ET |
Falkland Islands (Malvinas) | FLK | FK |
Faroe Islands | FRO | FO |
Fiji | FJI | FJ |
Finland | FIN | FI |
France | FRA | FR |
French Guiana | GUF | GF |
French Polynesia | PYF | PF |
French Southern Territories | ATF | TF |
Gabon | GAB | GA |
Gambia | GMB | GM |
Georgia | GEO | GE |
Germany | DEU | DE |
Ghana | GHA | GH |
Gibraltar | GIB | GI |
Greece | GRC | GR |
Greenland | GRL | GL |
Grenada | GRD | GD |
Guadeloupe | GLP | GP |
Guam | GUM | GU |
Guatemala | GTM | GT |
Guernsey | GGY |
|
Guinea | GIN | GN |
Guinea-Bissau | GNB | GW |
Guyana | GUY | GY |
Haiti | HTI | HT |
Heard Island and McDonald Islands | HMD | HM |
Holy See (Vatican City State) | VAT | VA |
Honduras | HND | HN |
Hong Kong | HKG | HK |
Hungary | HUN | HU |
Iceland | ISL | IS |
India | IND | IN |
Indonesia | IDN | ID |
Iran, Islamic Republic of | IRN | IR |
Iraq | IRQ | IQ |
Ireland | IRL | IE |
Isle of Man | IMN |
|
Israel | ISR | IL |
Italy | ITA | IT |
Jamaica | JAM | JM |
Japan | JPN | JP |
Jersey | JEY |
|
Jordan | JOR | JO |
Kazakhstan | KAZ | KZ |
Kenya | KEN | KE |
Kiribati | KIR | KI |
Korea, Democratic People's Republic of | PRK | KP |
Korea, Republic of | KOR | KR |
Kuwait | KWT | KW |
Kyrgyzstan | KGZ | KG |
Lao People's Democratic Republic | LAO | LA |
Latvia | LVA | LV |
Lebanon | LBN | LB |
Lesotho | LSO | LS |
Liberia | LBR | LR |
Libyan Arab Jamahiriya | LBY | LY |
Liechtenstein | LIE | LI |
Lithuania | LTU | LT |
Luxembourg | LUX | LU |
Macao | MAC | MO |
Macedonia, the former Yugoslav Republic of | MKD | MK |
Madagascar | MDG | MG |
Malawi | MWI | MW |
Malaysia | MYS | MY |
Maldives | MDV | MV |
Mali | MLI | ML |
Malta | MLT | MT |
Marshall Islands | MHL | MH |
Martinique | MTQ | MQ |
Mauritania | MRT | MR |
Mauritius | MUS | MU |
Mayotte | MYT | YT |
Mexico | MEX | MX |
Micronesia, Federated States of | FSM | FM |
Moldova, Republic of | MDA | MD |
Monaco | MCO | MC |
Mongolia | MNG | MN |
Montenegro | MNE |
|
Montserrat | MSR | MS |
Morocco | MAR | MA |
Mozambique | MOZ | MZ |
Myanmar | MMR | MM |
Namibia | NAM | NA |
Nauru | NRU | NR |
Nepal | NPL | NP |
Netherlands | NLD | NL |
Netherlands Antilles | ANT | AN |
New Caledonia | NCL | NC |
New Zealand | NZL | NZ |
Nicaragua | NIC | NI |
Niger | NER | NE |
Nigeria | NGA | NG |
Niue | NIU | NU |
Norfolk Island | NFK | NF |
Northern Mariana Islands | MNP | MP |
Norway | NOR | NO |
Oman | OMN | OM |
Pakistan | PAK | PK |
Palau | PLW | PW |
Palestinian Territory, Occupied | PSE |
|
Panama | PAN | PA |
Papua New Guinea | PNG | PG |
Paraguay | PRY | PY |
Peru | PER | PE |
Philippines | PHL | PH |
Pitcairn | PCN | PN |
Poland | POL | PL |
Portugal | PRT | PT |
Puerto Rico | PRI | PR |
Qatar | QAT | QA |
Réunion | REU | RE |
Romania | ROU | RO |
Russian Federation | RUS | RU |
Rwanda | RWA | RW |
Saint Helena | SHN | SH |
Saint Kitts and Nevis | KNA | KN |
Saint Lucia | LCA | LC |
Saint Pierre and Miquelon | SPM | PM |
Saint Vincent and the Grenadines | VCT | VC |
Samoa | WSM | WS |
San Marino | SMR | SM |
Sao Tome and Principe | STP | ST |
Saudi Arabia | SAU | SA |
Senegal | SEN | SN |
Serbia | SRB |
|
Seychelles | SYC | SC |
Sierra Leone | SLE | SL |
Singapore | SGP | SG |
Slovakia | SVK | SK |
Slovenia | SVN | SI |
Solomon Islands | SLB | SB |
Somalia | SOM | SO |
South Africa | ZAF | ZA |
South Georgia and the South Sandwich Islands | SGS |
|
Spain | ESP | ES |
Sri Lanka | LKA | LK |
Sudan | SDN | SD |
Suriname | SUR | SR |
Svalbard and Jan Mayen | SJM | SJ |
Swaziland | SWZ | SZ |
Sweden | SWE | SE |
Switzerland | CHE | CH |
Syrian Arab Republic | SYR | SY |
Taiwan, Province of China | TWN | TW |
Tajikistan | TJK | TJ |
Tanzania, United Republic of | TZA | TZ |
Thailand | THA | TH |
Timor-Leste | TLS |
|
Togo | TGO | TG |
Tokelau | TKL | TK |
Tonga | TON | TO |
Trinidad and Tobago | TTO | TT |
Tunisia | TUN | TN |
Turkey | TUR | TR |
Turkmenistan | TKM | TM |
Turks and Caicos Islands | TCA | TC |
Tuvalu | TUV | TV |
Uganda | UGA | UG |
Ukraine | UKR | UA |
United Arab Emirates | ARE | AE |
United Kingdom | GBR | GB |
United States | USA | US |
United States Minor Outlying Islands | UMI | UM |
Uruguay | URY | UY |
Uzbekistan | UZB | UZ |
Vanuatu | VUT | VU |
Venezuela | VEN | VE |
Viet Nam | VNM | VN |
Virgin Islands, British | VGB | VG |
Virgin Islands, U.S. | VIR | VI |
Wallis and Futuna | WLF | WF |
Western Sahara | ESH | EH |
Yemen | YEM | YE |
Yugoslavia |
| YU |
Zaire |
| ZR |
Zambia | ZMB | ZM |
Zimbabwe | ZWE | ZW |
The following is a list of the possible language values:
Language | ISO Code |
Afrikaans | af |
Amharic | am |
Arabic | ar |
Assamese | as |
Azerbaijani | az |
Byelorussian (Belarusian) | be |
Bulgarian | bg |
Bengali (Bangla) | bn |
Tibetan | bo |
Catalan | ca |
Czech | cs |
Welsh | cy |
Danish | da |
German | de |
Greek | el |
English | en |
Spanish | es |
Estonian | et |
Basque | eu |
Farsi | fa |
Finnish | fi |
Faeroese | fo |
French | fr |
Frisian | fy |
Irish | ga |
Gaelic (Scottish) | gd |
Galician | gl |
Guarani | gn |
Gujarati | gu |
Hausa | ha |
Hebrew | he |
Hindi | hi |
Croatian | hr |
Hungarian | hu |
Armenian | hy |
Indonesian | id |
Icelandic | is |
Italian | it |
Inuktitut | iu |
Japanese | ja |
Georgian | ka |
Kazakh | kk |
Cambodian | km |
Kannada | kn |
Korean | ko |
Kashmiri | ks |
Kirghiz | ky |
Latin | la |
Laothian | lo |
Lithuanian | lt |
Latvian (Lettish) | lv |
Macedonian | mk |
Malayalam | ml |
Mongolian | mn |
Marathi | mr |
Malay | ms |
Maltese | mt |
Burmese | my |
Nepali | ne |
Dutch | nl |
Norwegian | no |
Oromo (Afan, Galla) | om |
Oriya | or |
Punjabi | pa |
Polish | pl |
Pashto (Pushto) | ps |
Portuguese | pt |
Rhaeto-Romance | rm |
Romanian | ro |
Russian | ru |
Sanskrit | sa |
Sindhi | sd |
Sinhalese | si |
Slovak | sk |
Slovenian | sl |
Somali | so |
Albanian | sq |
Serbian | sr |
Swedish | sv |
Swahili (Kiswahili) | sw |
Tamil | ta |
Telugu | te |
Tajik | tg |
Thai | th |
Tigrinya | ti |
Turkmen | tk |
Tagalog | tl |
Turkish | tr |
Tsonga | ts |
Tatar | tt |
Ukrainian | uk |
Urdu | ur |
Uzbek | uz |
Vietnamese | vi |
Xhosa | xh |
Yiddish | yi |
Yoruba | yo |
Chinese (Traditional) | zh |
Chinese (Simplified) | zh |
Zulu | zu |