VBScript GetLocale 函数

VBScript 参考手册 完整的 VBScript 参考手册

GetLocale 函数返回当前的 locale ID。

locale 是用户参考信息集合,比如语言、国家、地区和文化习俗。locale 决定键盘布局、字母排序顺序、日期、时间、数字与货币格式等等。

返回值可以是任意一个 32 位的值,如Locale ID 表所示。

提示:请使用 SetLocale 函数来设置本地 ID。

语法

GetLocale()

实例

实例(仅适用于 IE)

<script type="text/vbscript">

 document.write(GetLocale)

 </script>

以上实例输出结果:

document.write(GetLocale)
尝试一下 »

Locale ID 表

Locale 描述简写十六进制值十进制值
Afrikaansaf0x04361078
Albaniansq0x041C1052
Arabic – United Arab Emiratesar-ae0x380114337
Arabic - Bahrainar-bh0x3C0115361
Arabic - Algeriaar-dz0x14015121
Arabic - Egyptar-eg0x0C013073
Arabic - Iraqar-iq0x08012049
Arabic - Jordanar-jo0x2C0111265
Arabic - Kuwaitar-kw0x340113313
Arabic - Lebanonar-lb0x300112289
Arabic - Libyaar-ly0x10014097
Arabic - Moroccoar-ma0x18016145
Arabic - Omanar-om0x20018193
Arabic - Qatarar-qa0x400116385
Arabic - Saudi Arabiaar-sa0x04011025
Arabic - Syriaar-sy0x280110241
Arabic - Tunisiaar-tn0x1C017169
Arabic - Yemenar-ye0x24019217
Armenianhy0x042B1067
Azeri – Latinaz-az0x042C1068
Azeri – Cyrillicaz-az0x082C2092
Basqueeu0x042D1069
Belarusianbe0x04231059
Bulgarianbg0x04021026
Catalanca0x04031027
Chinese - Chinazh-cn0x08042052
Chinese - Hong Kong S.A.R.zh-hk0x0C043076
Chinese – Macau S.A.Rzh-mo0x14045124
Chinese - Singaporezh-sg0x10044100
Chinese - Taiwanzh-tw0x04041028
Croatianhr0x041A1050
Czechcs0x04051029
Danishda0x04061030
Dutch – The Netherlandsnl-nl0x04131043
Dutch - Belgiumnl-be0x08132067
English - Australiaen-au0x0C093081
English - Belizeen-bz0x280910249
English - Canadaen-ca0x10094105
English – Carribbeanen-cb0x24099225
English - Irelanden-ie0x18096153
English - Jamaicaen-jm0x20098201
English - New Zealanden-nz0x14095129
English – Phillippinesen-ph0x340913321
English - South Africaen-za0x1C097177
English - Trinidaden-tt0x2C0911273
English - United Kingdomen-gb0x08092057
English - United Statesen-us0x04091033
Estonianet0x04251061
Farsifa0x04291065
Finnishfi0x040B1035
Faroesefo0x04381080
French - Francefr-fr0x040C1036
French - Belgiumfr-be0x080C2060
French - Canadafr-ca0x0C0C3084
French - Luxembourgfr-lu0x140C5132
French - Switzerlandfr-ch0x100C4108
Gaelic – Irelandgd-ie0x083C2108
Gaelic - Scotlandgd0x043C1084
German - Germanyde-de0x04071031
German - Austriade-at0x0C073079
German - Liechtensteinde-li0x14075127
German - Luxembourgde-lu0x10074103
German - Switzerlandde-ch0x08072055
Greekel0x04081032
Hebrewhe0x040D1037
Hindihi0x04391081
Hungarianhu0x040E1038
Icelandicis0x040F1039
Indonesianid0x04211057
Italian - Italyit-it0x04101040
Italian - Switzerlandit-ch0x08102064
Japaneseja0x04111041
Koreanko0x04121042
Latvianlv0x04261062
Lithuanianlt0x04271063
FYRO Macedonianmk0x042F1071
Malay - Malaysiams-my0x043E1086
Malay – Bruneims-bn0x083E2110
Maltesemt0x043A1082
Marathimr0x044E1102
Norwegian - Bokmålno-no0x04141044
Norwegian – Nynorskno-no0x08142068
Polishpl0x04151045
Portuguese - Portugalpt-pt0x08162070
Portuguese - Brazilpt-br0x04161046
Raeto-Romancerm0x04171047
Romanian - Romaniaro0x04181048
Romanian - Moldovaro-mo0x08182072
Russianru0x04191049
Russian - Moldovaru-mo0x08192073
Sanskritsa0x044F1103
Serbian - Cyrillicsr-sp0x0C1A3098
Serbian – Latinsr-sp0x081A2074
Setsuanatn0x04321074
Sloveniansl0x04241060
Slovaksk0x041B1051
Sorbiansb0x042E1070
Spanish - Spaines-es0x0C0A1034
Spanish - Argentinaes-ar0x2C0A11274
Spanish - Boliviaes-bo0x400A16394
Spanish - Chilees-cl0x340A13322
Spanish - Colombiaes-co0x240A9226
Spanish - Costa Ricaes-cr0x140A5130
Spanish - Dominican Republices-do0x1C0A7178
Spanish - Ecuadores-ec0x300A12298
Spanish - Guatemalaes-gt0x100A4106
Spanish - Hondurases-hn0x480A18442
Spanish - Mexicoes-mx0x080A2058
Spanish - Nicaraguaes-ni0x4C0A19466
Spanish - Panamaes-pa0x180A6154
Spanish - Perues-pe0x280A10250
Spanish - Puerto Ricoes-pr0x500A20490
Spanish - Paraguayes-py0x3C0A15370
Spanish - El Salvadores-sv0x440A17418
Spanish - Uruguayes-uy0x380A14346
Spanish - Venezuelaes-ve0x200A8202
Sutusx0x04301072
Swahilisw0x04411089
Swedish - Swedensv-se0x041D1053
Swedish - Finlandsv-fi0x081D2077
Tamilta0x04491097
Tatartt0X04441092
Thaith0x041E1054
Turkishtr0x041F1055
Tsongats0x04311073
Ukrainianuk0x04221058
Urduur0x04201056
Uzbek – Cyrillicuz-uz0x08432115
Uzbek – Latinuz-uz0x04431091
Vietnamesevi0x042A1066
Xhosaxh0x04341076
Yiddishyi0x043D1085
Zuluzu0x04351077

VBScript 参考手册 完整的 VBScript 参考手册

新闻动态 联系方式 广告合作 招聘英才 安科实验室 帮助与反馈 About Us

Copyright © 2013 - 2019 Ancii.com All Rights Reserved京ICP备18063983号-5 京公网安备11010802014868号