下表包含了与语言代码(也称为本地标识符 LCID) 相关联的语言名称, A_Language 变量的值为其中的某个语言代码. 语言代码自身是下面等号左边的最后四位数字. 例如, 如果 A_Language 的值为 0436, 则系统的默认语言为 Afrikaans(南非).
注意: 包含字母的代码可能使用大写字母或小写字母.
您可以直接把 A_Language 和下面的一个或多个 4 位代码进行比较; 例如: if (A_Language = "0436")
. 或者您可以把整个表粘贴到脚本中, 然后像列表底部演示的那样访问当前语言名称.
LCID_0036 := "Afrikaans" ; af LCID_0436 := "Afrikaans (South Africa)" ; af-ZA LCID_001C := "Albanian" ; sq LCID_041C := "Albanian (Albania)" ; sq-AL LCID_0484 := "Alsatian (France)" ; gsw-FR LCID_005E := "Amharic" ; am LCID_045E := "Amharic (Ethiopia)" ; am-ET LCID_0001 := "Arabic" ; ar LCID_1401 := "Arabic (Algeria)" ; ar-DZ LCID_3C01 := "Arabic (Bahrain)" ; ar-BH LCID_0C01 := "Arabic (Egypt)" ; ar-EG LCID_0801 := "Arabic (Iraq)" ; ar-IQ LCID_2C01 := "Arabic (Jordan)" ; ar-JO LCID_3401 := "Arabic (Kuwait)" ; ar-KW LCID_3001 := "Arabic (Lebanon)" ; ar-LB LCID_1001 := "Arabic (Libya)" ; ar-LY LCID_1801 := "Arabic (Morocco)" ; ar-MA LCID_2001 := "Arabic (Oman)" ; ar-OM LCID_4001 := "Arabic (Qatar)" ; ar-QA LCID_0401 := "Arabic (Saudi Arabia)" ; ar-SA LCID_2801 := "Arabic (Syria)" ; ar-SY LCID_1C01 := "Arabic (Tunisia)" ; ar-TN LCID_3801 := "Arabic (United Arab Emirates)" ; ar-AE LCID_2401 := "Arabic (Yemen)" ; ar-YE LCID_002B := "Armenian" ; hy LCID_042B := "Armenian (Armenia)" ; hy-AM LCID_004D := "Assamese" ; as LCID_044D := "Assamese (India)" ; as-IN LCID_002C := "Azerbaijani" ; az LCID_742C := "Azerbaijani (Cyrillic)" ; az-Cyrl LCID_082C := "Azerbaijani (Cyrillic, Azerbaijan)" ; az-Cyrl-AZ LCID_782C := "Azerbaijani (Latin)" ; az-Latn LCID_042C := "Azerbaijani (Latin, Azerbaijan)" ; az-Latn-AZ LCID_0045 := "Bangla" ; bn LCID_0845 := "Bangla (Bangladesh)" ; bn-BD LCID_006D := "Bashkir" ; ba LCID_046D := "Bashkir (Russia)" ; ba-RU LCID_002D := "Basque" ; eu LCID_042D := "Basque (Basque)" ; eu-ES LCID_0023 := "Belarusian" ; be LCID_0423 := "Belarusian (Belarus)" ; be-BY LCID_0445 := "Bengali (India)" ; bn-IN LCID_781A := "Bosnian" ; bs LCID_641A := "Bosnian (Cyrillic)" ; bs-Cyrl LCID_201A := "Bosnian (Cyrillic, Bosnia and Herzegovina)" ; bs-Cyrl-BA LCID_681A := "Bosnian (Latin)" ; bs-Latn LCID_141A := "Bosnian (Latin, Bosnia & Herzegovina)" ; bs-Latn-BA LCID_007E := "Breton" ; br LCID_047E := "Breton (France)" ; br-FR LCID_0002 := "Bulgarian" ; bg LCID_0402 := "Bulgarian (Bulgaria)" ; bg-BG LCID_0055 := "Burmese" ; my LCID_0455 := "Burmese (Myanmar)" ; my-MM LCID_0003 := "Catalan" ; ca LCID_0403 := "Catalan (Catalan)" ; ca-ES LCID_005F := "Central Atlas Tamazight" ; tzm LCID_045F := "Central Atlas Tamazight (Arabic, Morocco)" ; tzm-Arab-MA LCID_7C5F := "Central Atlas Tamazight (Latin)" ; tzm-Latn LCID_085F := "Central Atlas Tamazight (Latin, Algeria)" ; tzm-Latn-DZ LCID_785F := "Central Atlas Tamazight (Tifinagh)" ; tzm-Tfng LCID_105F := "Central Atlas Tamazight (Tifinagh, Morocco)" ; tzm-Tfng-MA LCID_0092 := "Central Kurdish" ; ku LCID_7C92 := "Central Kurdish" ; ku-Arab LCID_0492 := "Central Kurdish (Iraq)" ; ku-Arab-IQ LCID_005C := "Cherokee" ; chr LCID_7C5C := "Cherokee" ; chr-Cher LCID_045C := "Cherokee (Cherokee, United States)" ; chr-Cher-US LCID_7804 := "Chinese" ; zh LCID_0004 := "Chinese (Simplified)" ; zh-Hans LCID_0804 := "Chinese (Simplified, China)" ; zh-CN LCID_1004 := "Chinese (Simplified, Singapore)" ; zh-SG LCID_7C04 := "Chinese (Traditional)" ; zh-Hant LCID_0C04 := "Chinese (Traditional, Hong Kong SAR)" ; zh-HK LCID_1404 := "Chinese (Traditional, Macao SAR)" ; zh-MO LCID_0404 := "Chinese (Traditional, Taiwan)" ; zh-TW LCID_0083 := "Corsican" ; co LCID_0483 := "Corsican (France)" ; co-FR LCID_001A := "Croatian" ; hr LCID_101A := "Croatian (Bosnia & Herzegovina)" ; hr-BA LCID_041A := "Croatian (Croatia)" ; hr-HR LCID_0005 := "Czech" ; cs LCID_0405 := "Czech (Czechia)" ; cs-CZ LCID_0006 := "Danish" ; da LCID_0406 := "Danish (Denmark)" ; da-DK LCID_0065 := "Divehi" ; dv LCID_0465 := "Divehi (Maldives)" ; dv-MV LCID_0013 := "Dutch" ; nl LCID_0813 := "Dutch (Belgium)" ; nl-BE LCID_0413 := "Dutch (Netherlands)" ; nl-NL LCID_0C51 := "Dzongkha (Bhutan)" ; dz-BT LCID_0066 := "Edo" ; bin LCID_0466 := "Edo (Nigeria)" ; bin-NG LCID_0009 := "English" ; en LCID_0C09 := "English (Australia)" ; en-AU LCID_2809 := "English (Belize)" ; en-BZ LCID_1009 := "English (Canada)" ; en-CA LCID_2409 := "English (Caribbean)" ; en-029 LCID_3C09 := "English (Hong Kong SAR)" ; en-HK LCID_4009 := "English (India)" ; en-IN LCID_3809 := "English (Indonesia)" ; en-ID LCID_1809 := "English (Ireland)" ; en-IE LCID_2009 := "English (Jamaica)" ; en-JM LCID_4409 := "English (Malaysia)" ; en-MY LCID_1409 := "English (New Zealand)" ; en-NZ LCID_3409 := "English (Philippines)" ; en-PH LCID_4809 := "English (Singapore)" ; en-SG LCID_1C09 := "English (South Africa)" ; en-ZA LCID_2C09 := "English (Trinidad & Tobago)" ; en-TT LCID_4C09 := "English (United Arab Emirates)" ; en-AE LCID_0809 := "English (United Kingdom)" ; en-GB LCID_0409 := "English (United States)" ; en-US LCID_3009 := "English (Zimbabwe)" ; en-ZW LCID_0025 := "Estonian" ; et LCID_0425 := "Estonian (Estonia)" ; et-EE LCID_0038 := "Faroese" ; fo LCID_0438 := "Faroese (Faroe Islands)" ; fo-FO LCID_0064 := "Filipino" ; fil LCID_0464 := "Filipino (Philippines)" ; fil-PH LCID_000B := "Finnish" ; fi LCID_040B := "Finnish (Finland)" ; fi-FI LCID_000C := "French" ; fr LCID_080C := "French (Belgium)" ; fr-BE LCID_2C0C := "French (Cameroon)" ; fr-CM LCID_0C0C := "French (Canada)" ; fr-CA LCID_1C0C := "French (Caribbean)" ; fr-029 LCID_300C := "French (Côte d’Ivoire)" ; fr-CI LCID_040C := "French (France)" ; fr-FR LCID_3C0C := "French (Haiti)" ; fr-HT LCID_140C := "French (Luxembourg)" ; fr-LU LCID_340C := "French (Mali)" ; fr-ML LCID_180C := "French (Monaco)" ; fr-MC LCID_380C := "French (Morocco)" ; fr-MA LCID_200C := "French (Réunion)" ; fr-RE LCID_280C := "French (Senegal)" ; fr-SN LCID_100C := "French (Switzerland)" ; fr-CH LCID_240C := "French Congo (DRC)" ; fr-CD LCID_0067 := "Fulah" ; ff LCID_7C67 := "Fulah (Latin)" ; ff-Latn LCID_0467 := "Fulah (Latin, Nigeria)" ; ff-Latn-NG LCID_0867 := "Fulah (Latin, Senegal)" ; ff-Latn-SN LCID_0056 := "Galician" ; gl LCID_0456 := "Galician (Galician)" ; gl-ES LCID_0037 := "Georgian" ; ka LCID_0437 := "Georgian (Georgia)" ; ka-GE LCID_0007 := "German" ; de LCID_0C07 := "German (Austria)" ; de-AT LCID_0407 := "German (Germany)" ; de-DE LCID_1407 := "German (Liechtenstein)" ; de-LI LCID_1007 := "German (Luxembourg)" ; de-LU LCID_0807 := "German (Switzerland)" ; de-CH LCID_0008 := "Greek" ; el LCID_0408 := "Greek (Greece)" ; el-GR LCID_0074 := "Guarani" ; gn LCID_0474 := "Guarani (Paraguay)" ; gn-PY LCID_0047 := "Gujarati" ; gu LCID_0447 := "Gujarati (India)" ; gu-IN LCID_0068 := "Hausa" ; ha LCID_7C68 := "Hausa (Latin)" ; ha-Latn LCID_0468 := "Hausa (Latin, Nigeria)" ; ha-Latn-NG LCID_0075 := "Hawaiian" ; haw LCID_0475 := "Hawaiian (United States)" ; haw-US LCID_000D := "Hebrew" ; he LCID_040D := "Hebrew (Israel)" ; he-IL LCID_0039 := "Hindi" ; hi LCID_0439 := "Hindi (India)" ; hi-IN LCID_000E := "Hungarian" ; hu LCID_040E := "Hungarian (Hungary)" ; hu-HU LCID_0069 := "Ibibio" ; ibb LCID_0469 := "Ibibio (Nigeria)" ; ibb-NG LCID_000F := "Icelandic" ; is LCID_040F := "Icelandic (Iceland)" ; is-IS LCID_0070 := "Igbo" ; ig LCID_0470 := "Igbo (Nigeria)" ; ig-NG LCID_0021 := "Indonesian" ; id LCID_0421 := "Indonesian (Indonesia)" ; id-ID LCID_005D := "Inuktitut" ; iu LCID_7C5D := "Inuktitut (Latin)" ; iu-Latn LCID_085D := "Inuktitut (Latin, Canada)" ; iu-Latn-CA LCID_785D := "Inuktitut (Syllabics)" ; iu-Cans LCID_045D := "Inuktitut (Syllabics, Canada)" ; iu-Cans-CA LCID_003C := "Irish" ; ga LCID_083C := "Irish (Ireland)" ; ga-IE LCID_0034 := "isiXhosa" ; xh LCID_0434 := "isiXhosa (South Africa)" ; xh-ZA LCID_0035 := "isiZulu" ; zu LCID_0435 := "isiZulu (South Africa)" ; zu-ZA LCID_0010 := "Italian" ; it LCID_0410 := "Italian (Italy)" ; it-IT LCID_0810 := "Italian (Switzerland)" ; it-CH LCID_0011 := "Japanese" ; ja LCID_0411 := "Japanese (Japan)" ; ja-JP LCID_006F := "Kalaallisut" ; kl LCID_046F := "Kalaallisut (Greenland)" ; kl-GL LCID_004B := "Kannada" ; kn LCID_044B := "Kannada (India)" ; kn-IN LCID_0071 := "Kanuri" ; kr LCID_0471 := "Kanuri (Latin, Nigeria)" ; kr-Latn-NG LCID_0060 := "Kashmiri" ; ks LCID_0460 := "Kashmiri (Arabic)" ; ks-Arab LCID_1000 := "Kashmiri (Arabic)" ; ks-Arab-IN LCID_0860 := "Kashmiri (Devanagari)" ; ks-Deva-IN LCID_003F := "Kazakh" ; kk LCID_043F := "Kazakh (Kazakhstan)" ; kk-KZ LCID_0053 := "Khmer" ; km LCID_0453 := "Khmer (Cambodia)" ; km-KH LCID_0087 := "Kinyarwanda" ; rw LCID_0487 := "Kinyarwanda (Rwanda)" ; rw-RW LCID_0041 := "Kiswahili" ; sw LCID_0441 := "Kiswahili (Kenya)" ; sw-KE LCID_0057 := "Konkani" ; kok LCID_0457 := "Konkani (India)" ; kok-IN LCID_0012 := "Korean" ; ko LCID_0412 := "Korean (Korea)" ; ko-KR LCID_0040 := "Kyrgyz" ; ky LCID_0440 := "Kyrgyz (Kyrgyzstan)" ; ky-KG LCID_0086 := "Kʼicheʼ" ; quc LCID_7C86 := "Kʼicheʼ (Latin)" ; quc-Latn LCID_0486 := "Kʼicheʼ (Latin, Guatemala)" ; quc-Latn-GT LCID_0054 := "Lao" ; lo LCID_0454 := "Lao (Laos)" ; lo-LA LCID_0076 := "Latin" ; la LCID_0476 := "Latin (Vatican City)" ; la-VA LCID_0026 := "Latvian" ; lv LCID_0426 := "Latvian (Latvia)" ; lv-LV LCID_0027 := "Lithuanian" ; lt LCID_0427 := "Lithuanian (Lithuania)" ; lt-LT LCID_7C2E := "Lower Sorbian" ; dsb LCID_082E := "Lower Sorbian (Germany)" ; dsb-DE LCID_006E := "Luxembourgish" ; lb LCID_046E := "Luxembourgish (Luxembourg)" ; lb-LU LCID_002F := "Macedonian" ; mk LCID_042F := "Macedonian (North Macedonia)" ; mk-MK LCID_003E := "Malay" ; ms LCID_083E := "Malay (Brunei)" ; ms-BN LCID_043E := "Malay (Malaysia)" ; ms-MY LCID_004C := "Malayalam" ; ml LCID_044C := "Malayalam (India)" ; ml-IN LCID_003A := "Maltese" ; mt LCID_043A := "Maltese (Malta)" ; mt-MT LCID_0058 := "Manipuri" ; mni LCID_0458 := "Manipuri (Bangla, India)" ; mni-IN LCID_0081 := "Maori" ; mi LCID_0481 := "Maori (New Zealand)" ; mi-NZ LCID_007A := "Mapuche" ; arn LCID_047A := "Mapuche (Chile)" ; arn-CL LCID_004E := "Marathi" ; mr LCID_044E := "Marathi (India)" ; mr-IN LCID_007C := "Mohawk" ; moh LCID_047C := "Mohawk (Canada)" ; moh-CA LCID_0050 := "Mongolian" ; mn LCID_7850 := "Mongolian" ; mn-Cyrl LCID_0450 := "Mongolian (Mongolia)" ; mn-MN LCID_7C50 := "Mongolian (Traditional Mongolian)" ; mn-Mong LCID_0850 := "Mongolian (Traditional Mongolian, China)" ; mn-Mong-CN LCID_0C50 := "Mongolian (Traditional Mongolian, Mongolia)" ; mn-Mong-MN LCID_0061 := "Nepali" ; ne LCID_0861 := "Nepali (India)" ; ne-IN LCID_0461 := "Nepali (Nepal)" ; ne-NP LCID_003B := "Northern Sami" ; se LCID_0014 := "Norwegian" ; no LCID_7C14 := "Norwegian Bokmål" ; nb LCID_0414 := "Norwegian Bokmål (Norway)" ; nb-NO LCID_7814 := "Norwegian Nynorsk" ; nn LCID_0814 := "Norwegian Nynorsk (Norway)" ; nn-NO LCID_0082 := "Occitan" ; oc LCID_0482 := "Occitan (France)" ; oc-FR LCID_0048 := "Odia" ; or LCID_0448 := "Odia (India)" ; or-IN LCID_0072 := "Oromo" ; om LCID_0472 := "Oromo (Ethiopia)" ; om-ET LCID_0079 := "Papiamento" ; pap LCID_0479 := "Papiamento (Caribbean)" ; pap-029 LCID_0063 := "Pashto" ; ps LCID_0463 := "Pashto (Afghanistan)" ; ps-AF LCID_0029 := "Persian" ; fa LCID_008C := "Persian" ; fa LCID_048C := "Persian (Afghanistan)" ; fa-AF LCID_0429 := "Persian (Iran)" ; fa-IR LCID_0015 := "Polish" ; pl LCID_0415 := "Polish (Poland)" ; pl-PL LCID_0016 := "Portuguese" ; pt LCID_0416 := "Portuguese (Brazil)" ; pt-BR LCID_0816 := "Portuguese (Portugal)" ; pt-PT LCID_05FE := "Pseudo (Pseudo Asia)" ; qps-ploca LCID_09FF := "Pseudo (Pseudo Mirrored)" ; qps-plocm LCID_0901 := "Pseudo (Pseudo Selfhost)" ; qps-Latn-x-sh LCID_0501 := "Pseudo (Pseudo)" ; qps-ploc LCID_0046 := "Punjabi" ; pa LCID_7C46 := "Punjabi" ; pa-Arab LCID_0446 := "Punjabi (India)" ; pa-IN LCID_0846 := "Punjabi (Pakistan)" ; pa-Arab-PK LCID_006B := "Quechua" ; quz LCID_046B := "Quechua (Bolivia)" ; quz-BO LCID_086B := "Quechua (Ecuador)" ; quz-EC LCID_0C6B := "Quechua (Peru)" ; quz-PE LCID_0018 := "Romanian" ; ro LCID_0818 := "Romanian (Moldova)" ; ro-MD LCID_0418 := "Romanian (Romania)" ; ro-RO LCID_0017 := "Romansh" ; rm LCID_0417 := "Romansh (Switzerland)" ; rm-CH LCID_0019 := "Russian" ; ru LCID_0819 := "Russian (Moldova)" ; ru-MD LCID_0419 := "Russian (Russia)" ; ru-RU LCID_0085 := "Sakha" ; sah LCID_0485 := "Sakha (Russia)" ; sah-RU LCID_703B := "Sami (Inari)" ; smn LCID_7C3B := "Sami (Lule)" ; smj LCID_743B := "Sami (Skolt)" ; sms LCID_783B := "Sami (Southern)" ; sma LCID_243B := "Sami, Inari (Finland)" ; smn-FI LCID_103B := "Sami, Lule (Norway)" ; smj-NO LCID_143B := "Sami, Lule (Sweden)" ; smj-SE LCID_0C3B := "Sami, Northern (Finland)" ; se-FI LCID_043B := "Sami, Northern (Norway)" ; se-NO LCID_083B := "Sami, Northern (Sweden)" ; se-SE LCID_203B := "Sami, Skolt (Finland)" ; sms-FI LCID_183B := "Sami, Southern (Norway)" ; sma-NO LCID_1C3B := "Sami, Southern (Sweden)" ; sma-SE LCID_004F := "Sanskrit" ; sa LCID_044F := "Sanskrit (India)" ; sa-IN LCID_0091 := "Scottish Gaelic" ; gd LCID_0491 := "Scottish Gaelic (United Kingdom)" ; gd-GB LCID_7C1A := "Serbian" ; sr LCID_6C1A := "Serbian (Cyrillic)" ; sr-Cyrl LCID_1C1A := "Serbian (Cyrillic, Bosnia and Herzegovina)" ; sr-Cyrl-BA LCID_301A := "Serbian (Cyrillic, Montenegro)" ; sr-Cyrl-ME LCID_0C1A := "Serbian (Cyrillic, Serbia and Montenegro (Former))" ; sr-Cyrl-CS LCID_281A := "Serbian (Cyrillic, Serbia)" ; sr-Cyrl-RS LCID_701A := "Serbian (Latin)" ; sr-Latn LCID_181A := "Serbian (Latin, Bosnia & Herzegovina)" ; sr-Latn-BA LCID_2C1A := "Serbian (Latin, Montenegro)" ; sr-Latn-ME LCID_081A := "Serbian (Latin, Serbia and Montenegro (Former))" ; sr-Latn-CS LCID_241A := "Serbian (Latin, Serbia)" ; sr-Latn-RS LCID_0030 := "Sesotho" ; st LCID_0430 := "Sesotho (South Africa)" ; st-ZA LCID_006C := "Sesotho sa Leboa" ; nso LCID_046C := "Sesotho sa Leboa (South Africa)" ; nso-ZA LCID_0032 := "Setswana" ; tn LCID_0832 := "Setswana (Botswana)" ; tn-BW LCID_0432 := "Setswana (South Africa)" ; tn-ZA LCID_0059 := "Sindhi" ; sd LCID_7C59 := "Sindhi" ; sd-Arab LCID_0459 := "Sindhi (Devanagari, India)" ; sd-Deva-IN LCID_0859 := "Sindhi (Pakistan)" ; sd-Arab-PK LCID_005B := "Sinhala" ; si LCID_045B := "Sinhala (Sri Lanka)" ; si-LK LCID_001B := "Slovak" ; sk LCID_041B := "Slovak (Slovakia)" ; sk-SK LCID_0024 := "Slovenian" ; sl LCID_0424 := "Slovenian (Slovenia)" ; sl-SI LCID_0077 := "Somali" ; so LCID_0477 := "Somali (Somalia)" ; so-SO LCID_000A := "Spanish" ; es LCID_2C0A := "Spanish (Argentina)" ; es-AR LCID_400A := "Spanish (Bolivia)" ; es-BO LCID_340A := "Spanish (Chile)" ; es-CL LCID_240A := "Spanish (Colombia)" ; es-CO LCID_140A := "Spanish (Costa Rica)" ; es-CR LCID_5C0A := "Spanish (Cuba)" ; es-CU LCID_1C0A := "Spanish (Dominican Republic)" ; es-DO LCID_300A := "Spanish (Ecuador)" ; es-EC LCID_440A := "Spanish (El Salvador)" ; es-SV LCID_100A := "Spanish (Guatemala)" ; es-GT LCID_480A := "Spanish (Honduras)" ; es-HN LCID_580A := "Spanish (Latin America)" ; es-419 LCID_080A := "Spanish (Mexico)" ; es-MX LCID_4C0A := "Spanish (Nicaragua)" ; es-NI LCID_180A := "Spanish (Panama)" ; es-PA LCID_3C0A := "Spanish (Paraguay)" ; es-PY LCID_280A := "Spanish (Peru)" ; es-PE LCID_500A := "Spanish (Puerto Rico)" ; es-PR LCID_0C0A := "Spanish (Spain, International Sort)" ; es-ES LCID_040A := "Spanish (Spain, Traditional Sort)" ; es-ES_tradnl LCID_540A := "Spanish (United States)" ; es-US LCID_380A := "Spanish (Uruguay)" ; es-UY LCID_200A := "Spanish (Venezuela)" ; es-VE LCID_001D := "Swedish" ; sv LCID_081D := "Swedish (Finland)" ; sv-FI LCID_041D := "Swedish (Sweden)" ; sv-SE LCID_0084 := "Swiss German" ; gsw LCID_005A := "Syriac" ; syr LCID_045A := "Syriac (Syria)" ; syr-SY LCID_0028 := "Tajik" ; tg LCID_7C28 := "Tajik (Cyrillic)" ; tg-Cyrl LCID_0428 := "Tajik (Cyrillic, Tajikistan)" ; tg-Cyrl-TJ LCID_0049 := "Tamil" ; ta LCID_0449 := "Tamil (India)" ; ta-IN LCID_0849 := "Tamil (Sri Lanka)" ; ta-LK LCID_0044 := "Tatar" ; tt LCID_0444 := "Tatar (Russia)" ; tt-RU LCID_004A := "Telugu" ; te LCID_044A := "Telugu (India)" ; te-IN LCID_001E := "Thai" ; th LCID_041E := "Thai (Thailand)" ; th-TH LCID_0051 := "Tibetan" ; bo LCID_0451 := "Tibetan (China)" ; bo-CN LCID_0073 := "Tigrinya" ; ti LCID_0873 := "Tigrinya (Eritrea)" ; ti-ER LCID_0473 := "Tigrinya (Ethiopia)" ; ti-ET LCID_001F := "Turkish" ; tr LCID_041F := "Turkish (Turkey)" ; tr-TR LCID_0042 := "Turkmen" ; tk LCID_0442 := "Turkmen (Turkmenistan)" ; tk-TM LCID_0022 := "Ukrainian" ; uk LCID_0422 := "Ukrainian (Ukraine)" ; uk-UA LCID_002E := "Upper Sorbian" ; hsb LCID_042E := "Upper Sorbian (Germany)" ; hsb-DE LCID_0020 := "Urdu" ; ur LCID_0820 := "Urdu (India)" ; ur-IN LCID_0420 := "Urdu (Pakistan)" ; ur-PK LCID_0080 := "Uyghur" ; ug LCID_0480 := "Uyghur (China)" ; ug-CN LCID_0043 := "Uzbek" ; uz LCID_7843 := "Uzbek (Cyrillic)" ; uz-Cyrl LCID_0843 := "Uzbek (Cyrillic, Uzbekistan)" ; uz-Cyrl-UZ LCID_7C43 := "Uzbek (Latin)" ; uz-Latn LCID_0443 := "Uzbek (Latin, Uzbekistan)" ; uz-Latn-UZ LCID_0803 := "Valencian (Spain)" ; ca-ES-valencia LCID_0033 := "Venda" ; ve LCID_0433 := "Venda (South Africa)" ; ve-ZA LCID_002A := "Vietnamese" ; vi LCID_042A := "Vietnamese (Vietnam)" ; vi-VN LCID_0052 := "Welsh" ; cy LCID_0452 := "Welsh (United Kingdom)" ; cy-GB LCID_0062 := "Western Frisian" ; fy LCID_0462 := "Western Frisian (Netherlands)" ; fy-NL LCID_0088 := "Wolof" ; wo LCID_0488 := "Wolof (Senegal)" ; wo-SN LCID_0031 := "Xitsonga" ; ts LCID_0431 := "Xitsonga (South Africa)" ; ts-ZA LCID_0078 := "Yi" ; ii LCID_0478 := "Yi (China)" ; ii-CN LCID_003D := "Yiddish" ; yi LCID_043D := "Yiddish (World)" ; yi-001 LCID_006A := "Yoruba" ; yo LCID_046A := "Yoruba (Nigeria)" ; yo-NG the_language := LCID_%A_Language% ; 获取系统默认语言的名称. MsgBox %the_language% ; 显示语言名称.
下面的脚本用于创建上面的列表(需要 Windows Vista 或更高版本):
Gui, Add, ListView, w500 r20, LCID|Display Name|Locale Name Gui, Show LOCALE_ALLOW_NEUTRAL_NAMES := 0x08000000 LOCALE_SENGLISHDISPLAYNAME := 0x72 LOCALE_SLOCALIZEDDISPLAYNAME := 0x2 loop 0xFFFF { LCID := Format("{:04X}", A_Index) if (LCID ~= "(04|08|0C|14|20|24|28|2C|30|34|38|3C|40|44|48|4C)00") continue ; 跳过默认和临时的 LCID. LocaleName := LCIDToLocaleName(A_Index, LOCALE_ALLOW_NEUTRAL_NAMES) if not LocaleName continue ; 跳过未知的 LCID. DisplayName := GetLocaleInfo(LocaleName, LOCALE_SENGLISHDISPLAYNAME) ; DisplayName := GetLocaleInfo(LocaleName, LOCALE_SLOCALIZEDDISPLAYNAME) LV_Add(, LCID, DisplayName, LocaleName) ; Clipboard .= LCID "`t" DisplayName "`t" LocaleName "`n" } LV_ModifyCol() ; 自动调整每列的大小以适合其内容. LCIDToLocaleName(LCID, Flags := 0) { reqBufSize := DllCall("LCIDToLocaleName", "UInt", LCID, "Ptr", 0, "UInt", 0, "UInt", Flags) size := VarSetCapacity(out, reqBufSize) DllCall("LCIDToLocaleName", "UInt", LCID, "Ptr", &out, "UInt", size, "UInt", Flags) return StrGet(&out, "UTF-16") } GetLocaleInfo(LocaleName, LCType) { reqBufSize := DllCall("GetLocaleInfoEx", "WStr", LocaleName, "UInt", LCType, "Ptr", 0, "UInt", 0) size := VarSetCapacity(out, reqBufSize) DllCall("GetLocaleInfoEx", "WStr", LocaleName, "UInt", LCType, "Ptr", &out, "UInt", size) return StrGet(&out, "UTF-16") }