SetLocale 设置当地ID
🎯功能
设置当前的 locale ID
📜语法
结果 = SetLocale(地区ID)
📥参数
参数 | 数据类型 | 解释 |
---|---|---|
地区ID | 整数型 | 任意一个在 Locale ID 表中的十进制值,该值必须唯一标识一个地理区域。如果设置为 0,则 地区ID 将由系统设置。 |
📤返回
整数型
, 获取之前的 locale ID 数值, 详见下备注里的表格
💡示例
TracePrint SetLocale(0)
📘备注
- locale 是用户参考信息集合,比如语言、国家、地区和文化习俗。locale 决定键盘布局、字母排序顺序、日期、时间、数字与货币格式等等。
Locale 描述 | 简写 | 十六进制值 | 十进制值 |
---|---|---|---|
Afrikaans | af | &H0436 | 1078 |
Albanian | sq | &H041C | 1052 |
Arabic – United Arab Emirates | ar-ae | &H3801 | 14337 |
Arabic - Bahrain | ar-bh | &H3C01 | 15361 |
Arabic - Algeria | ar-dz | &H1401 | 5121 |
Arabic - Egypt | ar-eg | &H0C01 | 3073 |
Arabic - Iraq | ar-iq | &H0801 | 2049 |
Arabic - Jordan | ar-jo | &H2C01 | 11265 |
Arabic - Kuwait | ar-kw | &H3401 | 13313 |
Arabic - Lebanon | ar-lb | &H3001 | 12289 |
Arabic - Libya | ar-ly | &H1001 | 4097 |
Arabic - Morocco | ar-ma | &H1801 | 6145 |
Arabic - Oman | ar-om | &H2001 | 8193 |
Arabic - Qatar | ar-qa | &H4001 | 16385 |
Arabic - Saudi Arabia | ar-sa | &H0401 | 1025 |
Arabic - Syria | ar-sy | &H2801 | 10241 |
Arabic - Tunisia | ar-tn | &H1C01 | 7169 |
Arabic - Yemen | ar-ye | &H2401 | 9217 |
Armenian | hy | &H042B | 1067 |
Azeri – Latin | az-az | &H042C | 1068 |
Azeri – Cyrillic | az-az | &H082C | 2092 |
Basque | eu | &H042D | 1069 |
Belarusian | be | &H0423 | 1059 |
Bulgarian | bg | &H0402 | 1026 |
Catalan | ca | &H0403 | 1027 |
Chinese - China | zh-cn | &H0804 | 2052 |
Chinese - Hong Kong S.A.R. | zh-hk | &H0C04 | 3076 |
Chinese – Macau S.A.R | zh-mo | &H1404 | 5124 |
Chinese - Singapore | zh-sg | &H1004 | 4100 |
Chinese - Taiwan | zh-tw | &H0404 | 1028 |
Croatian | hr | &H041A | 1050 |
Czech | cs | &H0405 | 1029 |
Danish | da | &H0406 | 1030 |
Dutch – The Netherlands | nl-nl | &H0413 | 1043 |
Dutch - Belgium | nl-be | &H0813 | 2067 |
English - Australia | en-au | &H0C09 | 3081 |
English - Belize | en-bz | &H2809 | 10249 |
English - Canada | en-ca | &H1009 | 4105 |
English – Carribbean | en-cb | &H2409 | 9225 |
English - Ireland | en-ie | &H1809 | 6153 |
English - Jamaica | en-jm | &H2009 | 8201 |
English - New Zealand | en-nz | &H1409 | 5129 |
English – Phillippines | en-ph | &H3409 | 13321 |
English - South Africa | en-za | &H1C09 | 7177 |
English - Trinidad | en-tt | &H2C09 | 11273 |
English - United Kingdom | en-gb | &H0809 | 2057 |
English - United States | en-us | &H0409 | 1033 |
Estonian | et | &H0425 | 1061 |
Farsi | fa | &H0429 | 1065 |
Finnish | fi | &H040B | 1035 |
Faroese | fo | &H0438 | 1080 |
French - France | fr-fr | &H040C | 1036 |
French - Belgium | fr-be | &H080C | 2060 |
French - Canada | fr-ca | &H0C0C | 3084 |
French - Luxembourg | fr-lu | &H140C | 5132 |
French - Switzerland | fr-ch | &H100C | 4108 |
Gaelic – Ireland | gd-ie | &H083C | 2108 |
Gaelic - Scotland | gd | &H043C | 1084 |
German - Germany | de-de | &H0407 | 1031 |
German - Austria | de-at | &H0C07 | 3079 |
German - Liechtenstein | de-li | &H1407 | 5127 |
German - Luxembourg | de-lu | &H1007 | 4103 |
German - Switzerland | de-ch | &H0807 | 2055 |
Greek | el | &H0408 | 1032 |
Hebrew | he | &H040D | 1037 |
Hindi | hi | &H0439 | 1081 |
Hungarian | hu | &H040E | 1038 |
Icelandic | is | &H040F | 1039 |
Indonesian | id | &H0421 | 1057 |
Italian - Italy | it-it | &H0410 | 1040 |
Italian - Switzerland | it-ch | &H0810 | 2064 |
Japanese | ja | &H0411 | 1041 |
Korean | ko | &H0412 | 1042 |
Latvian | lv | &H0426 | 1062 |
Lithuanian | lt | &H0427 | 1063 |
FYRO Macedonian | mk | &H042F | 1071 |
Malay - Malaysia | ms-my | &H043E | 1086 |
Malay – Brunei | ms-bn | &H083E | 2110 |
Maltese | mt | &H043A | 1082 |
Marathi | mr | &H044E | 1102 |
Norwegian - Bokmål | no-no | &H0414 | 1044 |
Norwegian – Nynorsk | no-no | &H0814 | 2068 |
Polish | pl | &H0415 | 1045 |
Portuguese - Portugal | pt-pt | &H0816 | 2070 |
Portuguese - Brazil | pt-br | &H0416 | 1046 |
Raeto-Romance | rm | &H0417 | 1047 |
Romanian - Romania | ro | &H0418 | 1048 |
Romanian - Moldova | ro-mo | &H0818 | 2072 |
Russian | ru | &H0419 | 1049 |
Russian - Moldova | ru-mo | &H0819 | 2073 |
Sanskrit | sa | &H044F | 1103 |
Serbian - Cyrillic | sr-sp | &H0C1A | 3098 |
Serbian – Latin | sr-sp | &H081A | 2074 |
Setsuana | tn | &H0432 | 1074 |
Slovenian | sl | &H0424 | 1060 |
Slovak | sk | &H041B | 1051 |
Sorbian | sb | &H042E | 1070 |
Spanish - Spain | es-es | &H0C0A | 1034 |
Spanish - Argentina | es-ar | &H2C0A | 11274 |
Spanish - Bolivia | es-bo | &H400A | 16394 |
Spanish - Chile | es-cl | &H340A | 13322 |
Spanish - Colombia | es-co | &H240A | 9226 |
Spanish - Costa Rica | es-cr | &H140A | 5130 |
Spanish - Dominican Republic | es-do | &H1C0A | 7178 |
Spanish - Ecuador | es-ec | &H300A | 12298 |
Spanish - Guatemala | es-gt | &H100A | 4106 |
Spanish - Honduras | es-hn | &H480A | 18442 |
Spanish - Mexico | es-mx | &H080A | 2058 |
Spanish - Nicaragua | es-ni | &H4C0A | 19466 |
Spanish - Panama | es-pa | &H180A | 6154 |
Spanish - Peru | es-pe | &H280A | 10250 |
Spanish - Puerto Rico | es-pr | &H500A | 20490 |
Spanish - Paraguay | es-py | &H3C0A | 15370 |
Spanish - El Salvador | es-sv | &H440A | 17418 |
Spanish - Uruguay | es-uy | &H380A | 14346 |
Spanish - Venezuela | es-ve | &H200A | 8202 |
Sutu | sx | &H0430 | 1072 |
Swahili | sw | &H0441 | 1089 |
Swedish - Sweden | sv-se | &H041D | 1053 |
Swedish - Finland | sv-fi | &H081D | 2077 |
Tamil | ta | &H0449 | 1097 |
Tatar | tt | &H0444 | 1092 |
Thai | th | &H041E | 1054 |
Turkish | tr | &H041F | 1055 |
Tsonga | ts | &H0431 | 1073 |
Ukrainian | uk | &H0422 | 1058 |
Urdu | ur | &H0420 | 1056 |
Uzbek – Cyrillic | uz-uz | &H0843 | 2115 |
Uzbek – Latin | uz-uz | &H0443 | 1091 |
Vietnamese | vi | &H042A | 1066 |
Xhosa | xh | &H0434 | 1076 |
Yiddish | yi | &H043D | 1085 |
Zulu | zu | &H0435 | 1077 |