Culture Names [C #]

Source: Internet
Author: User

This example shows how to get all culture names in the. NET Framework. use static methodcultureinfo. getcultures. To get associated specific culture use static method cultureinfo. createspecificculture.

Following code is modified msdn example (it's just sorted by culture name ).

[C #]

// get culture names List<string> list = new List<string>(); foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures)) { string specName = "(none)"; try { specName = CultureInfo.CreateSpecificCulture(ci.Name).Name; } catch { } list.Add(String.Format("{0,-12}{1,-12}{2}", ci.Name, specName, ci.EnglishName)); } list.Sort(); // sort by name // write to console Console.WriteLine("CULTURE   SPEC.CULTURE  ENGLISH NAME"); Console.WriteLine("--------------------------------------------------------------"); foreach (string str in list) Console.WriteLine(str);

See the console output. Note that culture name for the invariant culture is an empty string. Simplified and Traditional Chinese has no associated specific culture.

[Output]

CULTURE   SPEC.CULTURE  ENGLISH NAME--------------------------------------------------------------                        Invariant Language (Invariant Country)af          af-ZA       Afrikaansaf-ZA       af-ZA       Afrikaans (South Africa)ar          ar-SA       Arabicar-AE       ar-AE       Arabic (U.A.E.)ar-BH       ar-BH       Arabic (Bahrain)ar-DZ       ar-DZ       Arabic (Algeria)ar-EG       ar-EG       Arabic (Egypt)ar-IQ       ar-IQ       Arabic (Iraq)ar-JO       ar-JO       Arabic (Jordan)ar-KW       ar-KW       Arabic (Kuwait)ar-LB       ar-LB       Arabic (Lebanon)ar-LY       ar-LY       Arabic (Libya)ar-MA       ar-MA       Arabic (Morocco)ar-OM       ar-OM       Arabic (Oman)ar-QA       ar-QA       Arabic (Qatar)ar-SA       ar-SA       Arabic (Saudi Arabia)ar-SY       ar-SY       Arabic (Syria)ar-TN       ar-TN       Arabic (Tunisia)ar-YE       ar-YE       Arabic (Yemen)az          az-Latn-AZ  Azeriaz-Cyrl-AZ  az-Cyrl-AZ  Azeri (Cyrillic, Azerbaijan)az-Latn-AZ  az-Latn-AZ  Azeri (Latin, Azerbaijan)be          be-BY       Belarusianbe-BY       be-BY       Belarusian (Belarus)bg          bg-BG       Bulgarianbg-BG       bg-BG       Bulgarian (Bulgaria)bs-Latn-BA  bs-Latn-BA  Bosnian (Bosnia and Herzegovina)ca          ca-ES       Catalanca-ES       ca-ES       Catalan (Catalan)cs          cs-CZ       Czechcs-CZ       cs-CZ       Czech (Czech Republic)cy-GB       cy-GB       Welsh (United Kingdom)da          da-DK       Danishda-DK       da-DK       Danish (Denmark)de          de-DE       Germande-AT       de-AT       German (Austria)de-DE       de-DE       German (Germany)de-CH       de-CH       German (Switzerland)de-LI       de-LI       German (Liechtenstein)de-LU       de-LU       German (Luxembourg)dv          dv-MV       Divehidv-MV       dv-MV       Divehi (Maldives)el          el-GR       Greekel-GR       el-GR       Greek (Greece)en          en-US       Englishen-029      en-029      English (Caribbean)en-AU       en-AU       English (Australia)en-BZ       en-BZ       English (Belize)en-CA       en-CA       English (Canada)en-GB       en-GB       English (United Kingdom)en-IE       en-IE       English (Ireland)en-JM       en-JM       English (Jamaica)en-NZ       en-NZ       English (New Zealand)en-PH       en-PH       English (Republic of the Philippines)en-TT       en-TT       English (Trinidad and Tobago)en-US       en-US       English (United States)en-ZA       en-ZA       English (South Africa)en-ZW       en-ZW       English (Zimbabwe)es          es-ES       Spanishes-AR       es-AR       Spanish (Argentina)es-BO       es-BO       Spanish (Bolivia)es-CL       es-CL       Spanish (Chile)es-CO       es-CO       Spanish (Colombia)es-CR       es-CR       Spanish (Costa Rica)es-DO       es-DO       Spanish (Dominican Republic)es-EC       es-EC       Spanish (Ecuador)es-ES       es-ES       Spanish (Spain)es-GT       es-GT       Spanish (Guatemala)es-HN       es-HN       Spanish (Honduras)es-MX       es-MX       Spanish (Mexico)es-NI       es-NI       Spanish (Nicaragua)es-PA       es-PA       Spanish (Panama)es-PE       es-PE       Spanish (Peru)es-PR       es-PR       Spanish (Puerto Rico)es-PY       es-PY       Spanish (Paraguay)es-SV       es-SV       Spanish (El Salvador)es-UY       es-UY       Spanish (Uruguay)es-VE       es-VE       Spanish (Venezuela)et          et-EE       Estonianet-EE       et-EE       Estonian (Estonia)eu          eu-ES       Basqueeu-ES       eu-ES       Basque (Basque)fa          fa-IR       Persianfa-IR       fa-IR       Persian (Iran)fi          fi-FI       Finnishfi-FI       fi-FI       Finnish (Finland)fo          fo-FO       Faroesefo-FO       fo-FO       Faroese (Faroe Islands)fr          fr-FR       Frenchfr-BE       fr-BE       French (Belgium)fr-CA       fr-CA       French (Canada)fr-FR       fr-FR       French (France)fr-CH       fr-CH       French (Switzerland)fr-LU       fr-LU       French (Luxembourg)fr-MC       fr-MC       French (Principality of Monaco)gl          gl-ES       Galiciangl-ES       gl-ES       Galician (Galician)gu          gu-IN       Gujaratigu-IN       gu-IN       Gujarati (India)he          he-IL       Hebrewhe-IL       he-IL       Hebrew (Israel)hi          hi-IN       Hindihi-IN       hi-IN       Hindi (India)hr          hr-HR       Croatianhr-BA       hr-BA       Croatian (Bosnia and Herzegovina)hr-HR       hr-HR       Croatian (Croatia)hu          hu-HU       Hungarianhu-HU       hu-HU       Hungarian (Hungary)hy          hy-AM       Armenianhy-AM       hy-AM       Armenian (Armenia)id          id-ID       Indonesianid-ID       id-ID       Indonesian (Indonesia)is          is-IS       Icelandicis-IS       is-IS       Icelandic (Iceland)it          it-IT       Italianit-CH       it-CH       Italian (Switzerland)it-IT       it-IT       Italian (Italy)ja          ja-JP       Japaneseja-JP       ja-JP       Japanese (Japan)ka          ka-GE       Georgianka-GE       ka-GE       Georgian (Georgia)kk          kk-KZ       Kazakhkk-KZ       kk-KZ       Kazakh (Kazakhstan)kn          kn-IN       Kannadakn-IN       kn-IN       Kannada (India)ko          ko-KR       Koreankok         kok-IN      Konkanikok-IN      kok-IN      Konkani (India)ko-KR       ko-KR       Korean (Korea)ky          ky-KG       Kyrgyzky-KG       ky-KG       Kyrgyz (Kyrgyzstan)lt          lt-LT       Lithuanianlt-LT       lt-LT       Lithuanian (Lithuania)lv          lv-LV       Latvianlv-LV       lv-LV       Latvian (Latvia)mi-NZ       mi-NZ       Maori (New Zealand)mk          mk-MK       Macedonianmk-MK       mk-MK       Macedonian (Former Yugoslav Republic of Macedonia)mn          mn-MN       Mongolianmn-MN       mn-MN       Mongolian (Cyrillic, Mongolia)mr          mr-IN       Marathimr-IN       mr-IN       Marathi (India)ms          ms-MY       Malayms-BN       ms-BN       Malay (Brunei Darussalam)ms-MY       ms-MY       Malay (Malaysia)mt-MT       mt-MT       Maltese (Malta)nb-NO       nb-NO       Norwegian, Bokmal (Norway)nl          nl-NL       Dutchnl-BE       nl-BE       Dutch (Belgium)nl-NL       nl-NL       Dutch (Netherlands)nn-NO       nn-NO       Norwegian, Nynorsk (Norway)no          nb-NO       Norwegianns-ZA       ns-ZA       Northern Sotho (South Africa)pa          pa-IN       Punjabipa-IN       pa-IN       Punjabi (India)pl          pl-PL       Polishpl-PL       pl-PL       Polish (Poland)pt          pt-BR       Portuguesept-BR       pt-BR       Portuguese (Brazil)pt-PT       pt-PT       Portuguese (Portugal)quz-BO      quz-BO      Quechua (Bolivia)quz-EC      quz-EC      Quechua (Ecuador)quz-PE      quz-PE      Quechua (Peru)ro          ro-RO       Romanianro-RO       ro-RO       Romanian (Romania)ru          ru-RU       Russianru-RU       ru-RU       Russian (Russia)sa          sa-IN       Sanskritsa-IN       sa-IN       Sanskrit (India)se-FI       se-FI       Sami (Northern) (Finland)se-NO       se-NO       Sami (Northern) (Norway)se-SE       se-SE       Sami (Northern) (Sweden)sk          sk-SK       Slovaksk-SK       sk-SK       Slovak (Slovakia)sl          sl-SI       Sloveniansl-SI       sl-SI       Slovenian (Slovenia)sma-NO      sma-NO      Sami (Southern) (Norway)sma-SE      sma-SE      Sami (Southern) (Sweden)smj-NO      smj-NO      Sami (Lule) (Norway)smj-SE      smj-SE      Sami (Lule) (Sweden)smn-FI      smn-FI      Sami (Inari) (Finland)sms-FI      sms-FI      Sami (Skolt) (Finland)sq          sq-AL       Albaniansq-AL       sq-AL       Albanian (Albania)sr          sr-Latn-CS  Serbiansr-Cyrl-BA  sr-Cyrl-BA  Serbian (Cyrillic) (Bosnia and Herzegovina)sr-Cyrl-CS  sr-Cyrl-CS  Serbian (Cyrillic, Serbia)sr-Latn-BA  sr-Latn-BA  Serbian (Latin) (Bosnia and Herzegovina)sr-Latn-CS  sr-Latn-CS  Serbian (Latin, Serbia)sv          sv-SE       Swedishsv-FI       sv-FI       Swedish (Finland)sv-SE       sv-SE       Swedish (Sweden)sw          sw-KE       Kiswahilisw-KE       sw-KE       Kiswahili (Kenya)syr         syr-SY      Syriacsyr-SY      syr-SY      Syriac (Syria)ta          ta-IN       Tamilta-IN       ta-IN       Tamil (India)te          te-IN       Telugute-IN       te-IN       Telugu (India)th          th-TH       Thaith-TH       th-TH       Thai (Thailand)tn-ZA       tn-ZA       Tswana (South Africa)tr          tr-TR       Turkishtr-TR       tr-TR       Turkish (Turkey)tt          tt-RU       Tatartt-RU       tt-RU       Tatar (Russia)uk          uk-UA       Ukrainianuk-UA       uk-UA       Ukrainian (Ukraine)ur          ur-PK       Urduur-PK       ur-PK       Urdu (Islamic Republic of Pakistan)uz          uz-Latn-UZ  Uzbekuz-Cyrl-UZ  uz-Cyrl-UZ  Uzbek (Cyrillic, Uzbekistan)uz-Latn-UZ  uz-Latn-UZ  Uzbek (Latin, Uzbekistan)vi          vi-VN       Vietnamesevi-VN       vi-VN       Vietnamese (Vietnam)xh-ZA       xh-ZA       Xhosa (South Africa)zh-CN       zh-CN       Chinese (People's Republic of China)zh-HK       zh-HK       Chinese (Hong Kong S.A.R.)zh-CHS      (none)      Chinese (Simplified)zh-CHT      (none)      Chinese (Traditional)zh-MO       zh-MO       Chinese (Macao S.A.R.)zh-SG       zh-SG       Chinese (Singapore)zh-TW       zh-TW       Chinese (Taiwan)zu-ZA       zu-ZA       Zulu (South Africa)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.