windows-pr 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES +444 -438
- data/MANIFEST +68 -65
- data/README +154 -153
- data/Rakefile +42 -37
- data/doc/conversion_guide.txt +37 -37
- data/lib/windows/clipboard.rb +61 -61
- data/lib/windows/com.rb +192 -192
- data/lib/windows/com/accessibility.rb +16 -16
- data/lib/windows/com/automation.rb +149 -149
- data/lib/windows/com/variant.rb +24 -24
- data/lib/windows/console.rb +114 -114
- data/lib/windows/debug.rb +35 -35
- data/lib/windows/device_io.rb +248 -248
- data/lib/windows/directory.rb +27 -27
- data/lib/windows/error.rb +504 -498
- data/lib/windows/eventlog.rb +80 -80
- data/lib/windows/file.rb +264 -264
- data/lib/windows/file_mapping.rb +25 -25
- data/lib/windows/filesystem.rb +15 -15
- data/lib/windows/gdi/bitmap.rb +65 -65
- data/lib/windows/gdi/device_context.rb +46 -46
- data/lib/windows/gdi/metafile.rb +40 -40
- data/lib/windows/gdi/painting_drawing.rb +115 -115
- data/lib/windows/handle.rb +23 -23
- data/lib/windows/library.rb +44 -44
- data/lib/windows/limits.rb +34 -34
- data/lib/windows/mailslot.rb +24 -24
- data/lib/windows/memory.rb +128 -128
- data/lib/windows/msvcrt/buffer.rb +75 -75
- data/lib/windows/msvcrt/directory.rb +31 -31
- data/lib/windows/msvcrt/file.rb +47 -47
- data/lib/windows/msvcrt/io.rb +73 -73
- data/lib/windows/msvcrt/string.rb +182 -182
- data/lib/windows/msvcrt/time.rb +169 -169
- data/lib/windows/national.rb +580 -580
- data/lib/windows/network/management.rb +525 -525
- data/lib/windows/network/snmp.rb +92 -92
- data/lib/windows/network/winsock.rb +128 -128
- data/lib/windows/nio.rb +50 -50
- data/lib/windows/ntfs/winternl.rb +117 -117
- data/lib/windows/path.rb +143 -143
- data/lib/windows/pipe.rb +42 -42
- data/lib/windows/process.rb +176 -176
- data/lib/windows/registry.rb +171 -171
- data/lib/windows/security.rb +479 -479
- data/lib/windows/security/authentication.rb +32 -32
- data/lib/windows/security/sspi.rb +153 -0
- data/lib/windows/service.rb +142 -142
- data/lib/windows/shell.rb +171 -171
- data/lib/windows/socket.rb +86 -86
- data/lib/windows/sound.rb +39 -39
- data/lib/windows/synchronize.rb +133 -133
- data/lib/windows/system_info.rb +229 -229
- data/lib/windows/thread.rb +64 -64
- data/lib/windows/time.rb +48 -48
- data/lib/windows/tool_helper.rb +36 -36
- data/lib/windows/unicode.rb +155 -155
- data/lib/windows/volume.rb +61 -61
- data/lib/windows/window.rb +81 -81
- data/lib/windows/window/classes.rb +59 -59
- data/lib/windows/window/dialog.rb +91 -91
- data/lib/windows/window/menu.rb +102 -102
- data/lib/windows/window/message.rb +297 -297
- data/lib/windows/window/properties.rb +20 -20
- data/lib/windows/window/timer.rb +19 -19
- data/lib/windows/wsa.rb +102 -102
- data/test/tc_clipboard.rb +41 -41
- data/test/tc_com.rb +32 -32
- data/test/tc_com_automation.rb +15 -15
- data/test/tc_console.rb +108 -108
- data/test/tc_debug.rb +48 -48
- data/test/tc_device_io.rb +29 -29
- data/test/tc_directory.rb +25 -25
- data/test/tc_error.rb +38 -38
- data/test/tc_eventlog.rb +58 -58
- data/test/tc_file.rb +67 -67
- data/test/tc_file_mapping.rb +38 -38
- data/test/tc_filesystem.rb +27 -27
- data/test/tc_gdi_bitmap.rb +25 -25
- data/test/tc_gdi_metafile.rb +23 -23
- data/test/tc_handle.rb +36 -36
- data/test/tc_library.rb +37 -37
- data/test/tc_limits.rb +34 -34
- data/test/tc_mailslot.rb +22 -22
- data/test/tc_memory.rb +44 -44
- data/test/tc_msvcrt_buffer.rb +63 -63
- data/test/tc_msvcrt_directory.rb +96 -96
- data/test/tc_msvcrt_file.rb +80 -80
- data/test/tc_msvcrt_io.rb +48 -48
- data/test/tc_msvcrt_string.rb +94 -94
- data/test/tc_msvcrt_time.rb +19 -19
- data/test/tc_national.rb +38 -38
- data/test/tc_network_management.rb +32 -32
- data/test/tc_network_snmp.rb +31 -31
- data/test/tc_network_winsock.rb +34 -34
- data/test/tc_nio.rb +32 -32
- data/test/tc_ntfs_winternl.rb +48 -48
- data/test/tc_path.rb +90 -90
- data/test/tc_pipe.rb +53 -53
- data/test/tc_process.rb +24 -24
- data/test/tc_registry.rb +29 -29
- data/test/tc_security.rb +104 -104
- data/test/tc_security_authentication.rb +34 -34
- data/test/tc_security_sspi.rb +23 -0
- data/test/tc_service.rb +57 -57
- data/test/tc_shell.rb +34 -34
- data/test/tc_socket.rb +20 -20
- data/test/tc_sound.rb +37 -37
- data/test/tc_synchronize.rb +75 -75
- data/test/tc_system_info.rb +33 -33
- data/test/tc_thread.rb +29 -29
- data/test/tc_time.rb +32 -32
- data/test/tc_tool_helper.rb +29 -29
- data/test/tc_unicode.rb +83 -83
- data/test/tc_volume.rb +47 -47
- data/test/tc_window.rb +45 -45
- data/test/tc_window_classes.rb +33 -33
- data/test/tc_window_dialog.rb +33 -33
- data/test/tc_window_menu.rb +29 -29
- data/test/tc_window_message.rb +33 -33
- data/test/tc_window_properties.rb +29 -29
- data/test/tc_window_timer.rb +29 -29
- data/test/tc_wsa.rb +19 -19
- data/windows-pr.gemspec +33 -34
- metadata +31 -32
data/lib/windows/national.rb
CHANGED
@@ -1,580 +1,580 @@
|
|
1
|
-
require 'windows/api'
|
2
|
-
|
3
|
-
module Windows
|
4
|
-
module National
|
5
|
-
API.auto_namespace = 'Windows::National'
|
6
|
-
API.auto_constant = true
|
7
|
-
API.auto_method = true
|
8
|
-
API.auto_unicode = true
|
9
|
-
|
10
|
-
private
|
11
|
-
|
12
|
-
# Code page identifiers. Used for get_acp_string method.
|
13
|
-
CODE_PAGE = {
|
14
|
-
037 => 'IBM EBCDIC = U.S./Canada',
|
15
|
-
437 => 'OEM = United States',
|
16
|
-
500 => 'IBM EBCDIC - International',
|
17
|
-
708 => 'Arabic - ASMO 708',
|
18
|
-
709 => 'Arabic - ASMO 449+, BCON V4',
|
19
|
-
710 => 'Arabic - Transparent Arabic',
|
20
|
-
720 => 'Arabic - Transparent ASMO',
|
21
|
-
737 => 'OEM - Greek (formerly 437G)',
|
22
|
-
775 => 'OEM - Baltic',
|
23
|
-
850 => 'OEM - Multilingual Latin I',
|
24
|
-
852 => 'OEM - Latin II',
|
25
|
-
855 => 'OEM - Cyrillic (primarily Russian)',
|
26
|
-
857 => 'OEM - Turkish',
|
27
|
-
858 => 'OEM - Multilingual Latin I + Euro symbol',
|
28
|
-
860 => 'OEM - Portuguese',
|
29
|
-
861 => 'OEM - Icelandic',
|
30
|
-
862 => 'OEM - Hebrew',
|
31
|
-
863 => 'OEM - Canadian-French',
|
32
|
-
864 => 'OEM - Arabic',
|
33
|
-
865 => 'OEM - Nordic',
|
34
|
-
866 => 'OEM - Russian',
|
35
|
-
869 => 'OEM - Modern Greek',
|
36
|
-
870 => 'IBM EBCDIC - Multilingual/ROECE (Latin-2)',
|
37
|
-
874 => 'ANSI/OEM - Thai (same as 28605, ISO 8859-15)',
|
38
|
-
875 => 'IBM EBCDIC - Modern Greek',
|
39
|
-
932 => 'ANSI/OEM - Japanese, Shift-JIS',
|
40
|
-
936 => 'ANSI/OEM - Simplified Chinese (PRC, Singapore)',
|
41
|
-
949 => 'ANSI/OEM - Korean (Unified Hangul Code)',
|
42
|
-
950 => 'ANSI/OEM - Traditional Chinese (Taiwan; Hong Kong SAR, PRC)',
|
43
|
-
1026 => 'IBM EBCDIC - Turkish (Latin-5)',
|
44
|
-
1047 => 'IBM EBCDIC - Latin 1/Open System',
|
45
|
-
1140 => 'IBM EBCDIC - U.S./Canada (037 + Euro symbol)',
|
46
|
-
1141 => 'IBM EBCDIC - Germany (20273 + Euro symbol)',
|
47
|
-
1142 => 'IBM EBCDIC - Denmark/Norway (20277 + Euro symbol)',
|
48
|
-
1143 => 'IBM EBCDIC - Finland/Sweden (20278 + Euro symbol)',
|
49
|
-
1144 => 'IBM EBCDIC - Italy (20280 + Euro symbol)',
|
50
|
-
1145 => 'IBM EBCDIC - Latin America/Spain (20284 + Euro symbol)',
|
51
|
-
1146 => 'IBM EBCDIC - United Kingdom (20285 + Euro symbol)',
|
52
|
-
1147 => 'IBM EBCDIC - France (20297 + Euro symbol)',
|
53
|
-
1148 => 'IBM EBCDIC - International (500 + Euro symbol)',
|
54
|
-
1149 => 'IBM EBCDIC - Icelandic (20871 + Euro symbol)',
|
55
|
-
1200 => 'Unicode UCS-2 Little-Endian (BMP of ISO 10646)',
|
56
|
-
1201 => 'Unicode UCS-2 Big-Endian',
|
57
|
-
1250 => 'ANSI - Central European',
|
58
|
-
1251 => 'ANSI - Cyrillic',
|
59
|
-
1252 => 'ANSI - Latin I',
|
60
|
-
1253 => 'ANSI - Greek',
|
61
|
-
1254 => 'ANSI - Turkish',
|
62
|
-
1255 => 'ANSI - Hebrew',
|
63
|
-
1256 => 'ANSI - Arabic',
|
64
|
-
1257 => 'ANSI - Baltic',
|
65
|
-
1258 => 'ANSI/OEM - Vietnamese',
|
66
|
-
1361 => 'Korean (Johab)',
|
67
|
-
10000 => 'MAC - Roman',
|
68
|
-
10001 => 'MAC - Japanese',
|
69
|
-
10002 => 'MAC - Traditional Chinese (Big5)',
|
70
|
-
10003 => 'MAC - Korean',
|
71
|
-
10004 => 'MAC - Arabic',
|
72
|
-
10005 => 'MAC - Hebrew',
|
73
|
-
10006 => 'MAC - Greek I',
|
74
|
-
10007 => 'MAC - Cyrillic',
|
75
|
-
10008 => 'MAC - Simplified Chinese (GB 2312)',
|
76
|
-
10010 => 'MAC - Romania',
|
77
|
-
10017 => 'MAC - Ukraine',
|
78
|
-
10021 => 'MAC - Thai',
|
79
|
-
10029 => 'MAC - Latin II',
|
80
|
-
10079 => 'MAC - Icelandic',
|
81
|
-
10081 => 'MAC - Turkish',
|
82
|
-
10082 => 'MAC - Croatia',
|
83
|
-
12000 => 'Unicode UCS-4 Little-Endian',
|
84
|
-
12001 => 'Unicode UCS-4 Big-Endian',
|
85
|
-
20000 => 'CNS - Taiwan',
|
86
|
-
20001 => 'TCA - Taiwan',
|
87
|
-
20002 => 'Eten - Taiwan',
|
88
|
-
20003 => 'IBM5550 - Taiwan',
|
89
|
-
20004 => 'TeleText - Taiwan',
|
90
|
-
20005 => 'Wang - Taiwan',
|
91
|
-
20105 => 'IA5 IRV International Alphabet No. 5 (7-bit)',
|
92
|
-
20106 => 'IA5 German (7-bit)',
|
93
|
-
20107 => 'IA5 Swedish (7-bit)',
|
94
|
-
20108 => 'IA5 Norwegian (7-bit)',
|
95
|
-
20127 => 'US-ASCII (7-bit)',
|
96
|
-
20261 => 'T.61',
|
97
|
-
20269 => 'ISO 6937 Non-Spacing Accent',
|
98
|
-
20273 => 'IBM EBCDIC - Germany',
|
99
|
-
20277 => 'IBM EBCDIC - Denmark/Norway',
|
100
|
-
20278 => 'IBM EBCDIC - Finland/Sweden',
|
101
|
-
20280 => 'IBM EBCDIC - Italy',
|
102
|
-
20284 => 'IBM EBCDIC - Latin America/Spain',
|
103
|
-
20285 => 'IBM EBCDIC - United Kingdom',
|
104
|
-
20290 => 'IBM EBCDIC - Japanese Katakana Extended',
|
105
|
-
20297 => 'IBM EBCDIC - France',
|
106
|
-
20420 => 'IBM EBCDIC - Arabic',
|
107
|
-
20423 => 'IBM EBCDIC - Greek',
|
108
|
-
20424 => 'IBM EBCDIC - Hebrew',
|
109
|
-
20833 => 'IBM EBCDIC - Korean Extended',
|
110
|
-
20838 => 'IBM EBCDIC - Thai',
|
111
|
-
20866 => 'Russian - KOI8-R',
|
112
|
-
20871 => 'IBM EBCDIC - Icelandic',
|
113
|
-
20880 => 'IBM EBCDIC - Cyrillic (Russian)',
|
114
|
-
20905 => 'IBM EBCDIC - Turkish',
|
115
|
-
20924 => 'IBM EBCDIC - Latin-1/Open System (1047 + Euro symbol)',
|
116
|
-
20932 => 'JIS X 0208-1990 & 0121-1990',
|
117
|
-
20936 => 'Simplified Chinese (GB2312)',
|
118
|
-
21025 => 'IBM EBCDIC - Cyrillic (Serbian, Bulgarian)',
|
119
|
-
21027 => '(deprecated)',
|
120
|
-
21866 => 'Ukrainian (KOI8-U)',
|
121
|
-
28591 => 'ISO 8859-1 Latin I',
|
122
|
-
28592 => 'ISO 8859-2 Central Europe',
|
123
|
-
28593 => 'ISO 8859-3 Latin 3',
|
124
|
-
28594 => 'ISO 8859-4 Baltic',
|
125
|
-
28595 => 'ISO 8859-5 Cyrillic',
|
126
|
-
28596 => 'ISO 8859-6 Arabic',
|
127
|
-
28597 => 'ISO 8859-7 Greek',
|
128
|
-
28598 => 'ISO 8859-8 Hebrew',
|
129
|
-
28599 => 'ISO 8859-9 Latin 5',
|
130
|
-
28605 => 'ISO 8859-15 Latin 9',
|
131
|
-
29001 => 'Europa 3',
|
132
|
-
38598 => 'ISO 8859-8 Hebrew',
|
133
|
-
50220 => 'ISO 2022 Japanese with no halfwidth Katakana',
|
134
|
-
50221 => 'ISO 2022 Japanese with halfwidth Katakana',
|
135
|
-
50222 => 'ISO 2022 Japanese JIS X 0201-1989',
|
136
|
-
50225 => 'ISO 2022 Korean',
|
137
|
-
50227 => 'ISO 2022 Simplified Chinese',
|
138
|
-
50229 => 'ISO 2022 Traditional Chinese',
|
139
|
-
50930 => 'Japanese (Katakana) Extended',
|
140
|
-
50931 => 'US/Canada and Japanese',
|
141
|
-
50933 => 'Korean Extended and Korean',
|
142
|
-
50935 => 'Simplified Chinese Extended and Simplified Chinese',
|
143
|
-
50936 => 'Simplified Chinese',
|
144
|
-
50937 => 'US/Canada and Traditional Chinese',
|
145
|
-
50939 => 'Japanese (Latin) Extended and Japanese',
|
146
|
-
51932 => 'EUC - Japanese',
|
147
|
-
51936 => 'EUC - Simplified Chinese',
|
148
|
-
51949 => 'EUC - Korean',
|
149
|
-
51950 => 'EUC - Traditional Chinese',
|
150
|
-
52936 => 'HZ-GB2312 Simplified Chinese',
|
151
|
-
54936 => 'Windows XP: GB18030 Simplified Chinese (4 Byte)',
|
152
|
-
57002 => 'ISCII Devanagari',
|
153
|
-
57003 => 'ISCII Bengali',
|
154
|
-
57004 => 'ISCII Tamil',
|
155
|
-
57005 => 'ISCII Telugu',
|
156
|
-
57006 => 'ISCII Assamese',
|
157
|
-
57007 => 'ISCII Oriya',
|
158
|
-
57008 => 'ISCII Kannada',
|
159
|
-
57009 => 'ISCII Malayalam',
|
160
|
-
57010 => 'ISCII Gujarati',
|
161
|
-
57011 => 'ISCII Punjabi',
|
162
|
-
65000 => 'Unicode UTF-7',
|
163
|
-
65001 => 'Unicode UTF-8'
|
164
|
-
}
|
165
|
-
|
166
|
-
LANG_NEUTRAL = 0x00
|
167
|
-
LANG_INVARIANT = 0x7f
|
168
|
-
|
169
|
-
LANG_AFRIKAANS = 0x36
|
170
|
-
LANG_ALBANIAN = 0x1c
|
171
|
-
LANG_ARABIC = 0x01
|
172
|
-
LANG_ARMENIAN = 0x2b
|
173
|
-
LANG_ASSAMESE = 0x4d
|
174
|
-
LANG_AZERI = 0x2c
|
175
|
-
LANG_BASQUE = 0x2d
|
176
|
-
LANG_BELARUSIAN = 0x23
|
177
|
-
LANG_BENGALI = 0x45
|
178
|
-
LANG_BOSNIAN = 0x1a
|
179
|
-
LANG_BULGARIAN = 0x02
|
180
|
-
LANG_CATALAN = 0x03
|
181
|
-
LANG_CHINESE = 0x04
|
182
|
-
LANG_CROATIAN = 0x1a
|
183
|
-
LANG_CZECH = 0x05
|
184
|
-
LANG_DANISH = 0x06
|
185
|
-
LANG_DIVEHI = 0x65
|
186
|
-
LANG_DUTCH = 0x13
|
187
|
-
LANG_ENGLISH = 0x09
|
188
|
-
LANG_ESTONIAN = 0x25
|
189
|
-
LANG_FAEROESE = 0x38
|
190
|
-
LANG_FARSI = 0x29
|
191
|
-
LANG_FINNISH = 0x0b
|
192
|
-
LANG_FRENCH = 0x0c
|
193
|
-
LANG_GALICIAN = 0x56
|
194
|
-
LANG_GEORGIAN = 0x37
|
195
|
-
LANG_GERMAN = 0x07
|
196
|
-
LANG_GREEK = 0x08
|
197
|
-
LANG_GUJARATI = 0x47
|
198
|
-
LANG_HEBREW = 0x0d
|
199
|
-
LANG_HINDI = 0x39
|
200
|
-
LANG_HUNGARIAN = 0x0e
|
201
|
-
LANG_ICELANDIC = 0x0f
|
202
|
-
LANG_INDONESIAN = 0x21
|
203
|
-
LANG_ITALIAN = 0x10
|
204
|
-
LANG_JAPANESE = 0x11
|
205
|
-
LANG_KANNADA = 0x4b
|
206
|
-
LANG_KASHMIRI = 0x60
|
207
|
-
LANG_KAZAK = 0x3f
|
208
|
-
LANG_KONKANI = 0x57
|
209
|
-
LANG_KOREAN = 0x12
|
210
|
-
LANG_KYRGYZ = 0x40
|
211
|
-
LANG_LATVIAN = 0x26
|
212
|
-
LANG_LITHUANIAN = 0x27
|
213
|
-
LANG_MACEDONIAN = 0x2f
|
214
|
-
LANG_MALAY = 0x3e
|
215
|
-
LANG_MALAYALAM = 0x4c
|
216
|
-
LANG_MALTESE = 0x3a
|
217
|
-
LANG_MANIPURI = 0x58
|
218
|
-
LANG_MAORI = 0x81
|
219
|
-
LANG_MARATHI = 0x4e
|
220
|
-
LANG_MONGOLIAN = 0x50
|
221
|
-
LANG_NEPALI = 0x61
|
222
|
-
LANG_NORWEGIAN = 0x14
|
223
|
-
LANG_ORIYA = 0x48
|
224
|
-
LANG_POLISH = 0x15
|
225
|
-
LANG_PORTUGUESE = 0x16
|
226
|
-
LANG_PUNJABI = 0x46
|
227
|
-
LANG_QUECHUA = 0x6b
|
228
|
-
LANG_ROMANIAN = 0x18
|
229
|
-
LANG_RUSSIAN = 0x19
|
230
|
-
LANG_SAMI = 0x3b
|
231
|
-
LANG_SANSKRIT = 0x4f
|
232
|
-
LANG_SERBIAN = 0x1a
|
233
|
-
LANG_SINDHI = 0x59
|
234
|
-
LANG_SLOVAK = 0x1b
|
235
|
-
LANG_SLOVENIAN = 0x24
|
236
|
-
LANG_SOTHO = 0x6c
|
237
|
-
LANG_SPANISH = 0x0a
|
238
|
-
LANG_SWAHILI = 0x41
|
239
|
-
LANG_SWEDISH = 0x1d
|
240
|
-
LANG_SYRIAC = 0x5a
|
241
|
-
LANG_TAMIL = 0x49
|
242
|
-
LANG_TATAR = 0x44
|
243
|
-
LANG_TELUGU = 0x4a
|
244
|
-
LANG_THAI = 0x1e
|
245
|
-
LANG_TSWANA = 0x32
|
246
|
-
LANG_TURKISH = 0x1f
|
247
|
-
LANG_UKRAINIAN = 0x22
|
248
|
-
LANG_URDU = 0x20
|
249
|
-
LANG_UZBEK = 0x43
|
250
|
-
LANG_VIETNAMESE = 0x2a
|
251
|
-
LANG_WELSH = 0x52
|
252
|
-
LANG_XHOSA = 0x34
|
253
|
-
LANG_ZULU = 0x35
|
254
|
-
|
255
|
-
SUBLANG_NEUTRAL = 0x00 # language neutral
|
256
|
-
SUBLANG_DEFAULT = 0x01 # user default
|
257
|
-
SUBLANG_SYS_DEFAULT = 0x02 # system default
|
258
|
-
|
259
|
-
SUBLANG_ARABIC_SAUDI_ARABIA = 0x01 # Arabic (Saudi Arabia)
|
260
|
-
SUBLANG_ARABIC_IRAQ = 0x02 # Arabic (Iraq)
|
261
|
-
SUBLANG_ARABIC_EGYPT = 0x03 # Arabic (Egypt)
|
262
|
-
SUBLANG_ARABIC_LIBYA = 0x04 # Arabic (Libya)
|
263
|
-
SUBLANG_ARABIC_ALGERIA = 0x05 # Arabic (Algeria)
|
264
|
-
SUBLANG_ARABIC_MOROCCO = 0x06 # Arabic (Morocco)
|
265
|
-
SUBLANG_ARABIC_TUNISIA = 0x07 # Arabic (Tunisia)
|
266
|
-
SUBLANG_ARABIC_OMAN = 0x08 # Arabic (Oman)
|
267
|
-
SUBLANG_ARABIC_YEMEN = 0x09 # Arabic (Yemen)
|
268
|
-
SUBLANG_ARABIC_SYRIA = 0x0a # Arabic (Syria)
|
269
|
-
SUBLANG_ARABIC_JORDAN = 0x0b # Arabic (Jordan)
|
270
|
-
SUBLANG_ARABIC_LEBANON = 0x0c # Arabic (Lebanon)
|
271
|
-
SUBLANG_ARABIC_KUWAIT = 0x0d # Arabic (Kuwait)
|
272
|
-
SUBLANG_ARABIC_UAE = 0x0e # Arabic (U.A.E)
|
273
|
-
SUBLANG_ARABIC_BAHRAIN = 0x0f # Arabic (Bahrain)
|
274
|
-
SUBLANG_ARABIC_QATAR = 0x10 # Arabic (Qatar)
|
275
|
-
SUBLANG_AZERI_LATIN = 0x01 # Azeri (Latin)
|
276
|
-
SUBLANG_AZERI_CYRILLIC = 0x02 # Azeri (Cyrillic)
|
277
|
-
SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN = 0x05 # Bosnian (Bosnia and Herzegovina - Latin)
|
278
|
-
SUBLANG_CHINESE_TRADITIONAL = 0x01 # Chinese (Taiwan)
|
279
|
-
SUBLANG_CHINESE_SIMPLIFIED = 0x02 # Chinese (PR China)
|
280
|
-
SUBLANG_CHINESE_HONGKONG = 0x03 # Chinese (Hong Kong S.A.R., P.R.C.)
|
281
|
-
SUBLANG_CHINESE_SINGAPORE = 0x04 # Chinese (Singapore)
|
282
|
-
SUBLANG_CHINESE_MACAU = 0x05 # Chinese (Macau S.A.R.)
|
283
|
-
SUBLANG_CROATIAN_CROATIA = 0x01 # Croatian (Croatia)
|
284
|
-
SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN = 0x04 # Croatian (Bosnia and Herzegovina - Latin)
|
285
|
-
SUBLANG_DUTCH = 0x01 # Dutch
|
286
|
-
SUBLANG_DUTCH_BELGIAN = 0x02 # Dutch (Belgian)
|
287
|
-
SUBLANG_ENGLISH_US = 0x01 # English (USA)
|
288
|
-
SUBLANG_ENGLISH_UK = 0x02 # English (UK)
|
289
|
-
SUBLANG_ENGLISH_AUS = 0x03 # English (Australian)
|
290
|
-
SUBLANG_ENGLISH_CAN = 0x04 # English (Canadian)
|
291
|
-
SUBLANG_ENGLISH_NZ = 0x05 # English (New Zealand)
|
292
|
-
SUBLANG_ENGLISH_EIRE = 0x06 # English (Irish)
|
293
|
-
SUBLANG_ENGLISH_SOUTH_AFRICA = 0x07 # English (South Africa)
|
294
|
-
SUBLANG_ENGLISH_JAMAICA = 0x08 # English (Jamaica)
|
295
|
-
SUBLANG_ENGLISH_CARIBBEAN = 0x09 # English (Caribbean)
|
296
|
-
SUBLANG_ENGLISH_BELIZE = 0x0a # English (Belize)
|
297
|
-
SUBLANG_ENGLISH_TRINIDAD = 0x0b # English (Trinidad)
|
298
|
-
SUBLANG_ENGLISH_ZIMBABWE = 0x0c # English (Zimbabwe)
|
299
|
-
SUBLANG_ENGLISH_PHILIPPINES = 0x0d # English (Philippines)
|
300
|
-
SUBLANG_FRENCH = 0x01 # French
|
301
|
-
SUBLANG_FRENCH_BELGIAN = 0x02 # French (Belgian)
|
302
|
-
SUBLANG_FRENCH_CANADIAN = 0x03 # French (Canadian)
|
303
|
-
SUBLANG_FRENCH_SWISS = 0x04 # French (Swiss)
|
304
|
-
SUBLANG_FRENCH_LUXEMBOURG = 0x05 # French (Luxembourg)
|
305
|
-
SUBLANG_FRENCH_MONACO = 0x06 # French (Monaco)
|
306
|
-
SUBLANG_GERMAN = 0x01 # German
|
307
|
-
SUBLANG_GERMAN_SWISS = 0x02 # German (Swiss)
|
308
|
-
SUBLANG_GERMAN_AUSTRIAN = 0x03 # German (Austrian)
|
309
|
-
SUBLANG_GERMAN_LUXEMBOURG = 0x04 # German (Luxembourg)
|
310
|
-
SUBLANG_GERMAN_LIECHTENSTEIN = 0x05 # German (Liechtenstein)
|
311
|
-
SUBLANG_ITALIAN = 0x01 # Italian
|
312
|
-
SUBLANG_ITALIAN_SWISS = 0x02 # Italian (Swiss)
|
313
|
-
SUBLANG_KASHMIRI_SASIA = 0x02 # Kashmiri (South Asia)
|
314
|
-
SUBLANG_KASHMIRI_INDIA = 0x02 # For app compatibility only
|
315
|
-
SUBLANG_KOREAN = 0x01 # Korean (Extended Wansung)
|
316
|
-
SUBLANG_LITHUANIAN = 0x01 # Lithuanian
|
317
|
-
SUBLANG_MALAY_MALAYSIA = 0x01 # Malay (Malaysia)
|
318
|
-
SUBLANG_MALAY_BRUNEI_DARUSSALAM = 0x02 # Malay (Brunei Darussalam)
|
319
|
-
SUBLANG_NEPALI_INDIA = 0x02 # Nepali (India)
|
320
|
-
SUBLANG_NORWEGIAN_BOKMAL = 0x01 # Norwegian (Bokmal)
|
321
|
-
SUBLANG_NORWEGIAN_NYNORSK = 0x02 # Norwegian (Nynorsk)
|
322
|
-
SUBLANG_PORTUGUESE = 0x02 # Portuguese
|
323
|
-
SUBLANG_PORTUGUESE_BRAZILIAN = 0x01 # Portuguese (Brazilian)
|
324
|
-
SUBLANG_QUECHUA_BOLIVIA = 0x01 # Quechua (Bolivia)
|
325
|
-
SUBLANG_QUECHUA_ECUADOR = 0x02 # Quechua (Ecuador)
|
326
|
-
SUBLANG_QUECHUA_PERU = 0x03 # Quechua (Peru)
|
327
|
-
SUBLANG_SAMI_NORTHERN_NORWAY = 0x01 # Northern Sami (Norway)
|
328
|
-
SUBLANG_SAMI_NORTHERN_SWEDEN = 0x02 # Northern Sami (Sweden)
|
329
|
-
SUBLANG_SAMI_NORTHERN_FINLAND = 0x03 # Northern Sami (Finland)
|
330
|
-
SUBLANG_SAMI_LULE_NORWAY = 0x04 # Lule Sami (Norway)
|
331
|
-
SUBLANG_SAMI_LULE_SWEDEN = 0x05 # Lule Sami (Sweden)
|
332
|
-
SUBLANG_SAMI_SOUTHERN_NORWAY = 0x06 # Southern Sami (Norway)
|
333
|
-
SUBLANG_SAMI_SOUTHERN_SWEDEN = 0x07 # Southern Sami (Sweden)
|
334
|
-
SUBLANG_SAMI_SKOLT_FINLAND = 0x08 # Skolt Sami (Finland)
|
335
|
-
SUBLANG_SAMI_INARI_FINLAND = 0x09 # Inari Sami (Finland)
|
336
|
-
SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN = 0x06 # Serbian (Bosnia and Herzegovina - Latin)
|
337
|
-
SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC = 0x07 # Serbian (Bosnia and Herzegovina - Cyrillic)
|
338
|
-
SUBLANG_SERBIAN_LATIN = 0x02 # Serbian (Latin)
|
339
|
-
SUBLANG_SERBIAN_CYRILLIC = 0x03 # Serbian (Cyrillic)
|
340
|
-
SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA = 0x01 # Northern Sotho (South Africa)
|
341
|
-
SUBLANG_SPANISH = 0x01 # Spanish (Castilian)
|
342
|
-
SUBLANG_SPANISH_MEXICAN = 0x02 # Spanish (Mexican)
|
343
|
-
SUBLANG_SPANISH_MODERN = 0x03 # Spanish (Modern)
|
344
|
-
SUBLANG_SPANISH_GUATEMALA = 0x04 # Spanish (Guatemala)
|
345
|
-
SUBLANG_SPANISH_COSTA_RICA = 0x05 # Spanish (Costa Rica)
|
346
|
-
SUBLANG_SPANISH_PANAMA = 0x06 # Spanish (Panama)
|
347
|
-
SUBLANG_SPANISH_DOMINICAN_REPUBLIC = 0x07 # Spanish (Dominican Republic)
|
348
|
-
SUBLANG_SPANISH_VENEZUELA = 0x08 # Spanish (Venezuela)
|
349
|
-
SUBLANG_SPANISH_COLOMBIA = 0x09 # Spanish (Colombia)
|
350
|
-
SUBLANG_SPANISH_PERU = 0x0a # Spanish (Peru)
|
351
|
-
SUBLANG_SPANISH_ARGENTINA = 0x0b # Spanish (Argentina)
|
352
|
-
SUBLANG_SPANISH_ECUADOR = 0x0c # Spanish (Ecuador)
|
353
|
-
SUBLANG_SPANISH_CHILE = 0x0d # Spanish (Chile)
|
354
|
-
SUBLANG_SPANISH_URUGUAY = 0x0e # Spanish (Uruguay)
|
355
|
-
SUBLANG_SPANISH_PARAGUAY = 0x0f # Spanish (Paraguay)
|
356
|
-
SUBLANG_SPANISH_BOLIVIA = 0x10 # Spanish (Bolivia)
|
357
|
-
SUBLANG_SPANISH_EL_SALVADOR = 0x11 # Spanish (El Salvador)
|
358
|
-
SUBLANG_SPANISH_HONDURAS = 0x12 # Spanish (Honduras)
|
359
|
-
SUBLANG_SPANISH_NICARAGUA = 0x13 # Spanish (Nicaragua)
|
360
|
-
SUBLANG_SPANISH_PUERTO_RICO = 0x14 # Spanish (Puerto Rico)
|
361
|
-
SUBLANG_SWEDISH = 0x01 # Swedish
|
362
|
-
SUBLANG_SWEDISH_FINLAND = 0x02 # Swedish (Finland)
|
363
|
-
SUBLANG_URDU_PAKISTAN = 0x01 # Urdu (Pakistan)
|
364
|
-
SUBLANG_URDU_INDIA = 0x02 # Urdu (India)
|
365
|
-
SUBLANG_UZBEK_LATIN = 0x01 # Uzbek (Latin)
|
366
|
-
SUBLANG_UZBEK_CYRILLIC = 0x02 # Uzbek (Cyrillic)
|
367
|
-
|
368
|
-
LOCALE_NOUSEROVERRIDE = 0x80000000
|
369
|
-
LOCALE_USE_CP_ACP = 0x40000000
|
370
|
-
LOCALE_RETURN_NUMBER = 0x20000000
|
371
|
-
|
372
|
-
LOCALE_ILANGUAGE = 0x00000001 # Language ID
|
373
|
-
LOCALE_SLANGUAGE = 0x00000002 # Localized name of language
|
374
|
-
LOCALE_SENGLANGUAGE = 0x00001001 # English name of language
|
375
|
-
LOCALE_SABBREVLANGNAME = 0x00000003 # Abbreviated language name
|
376
|
-
LOCALE_SNATIVELANGNAME = 0x00000004 # Native name of language
|
377
|
-
|
378
|
-
LOCALE_ICOUNTRY = 0x00000005 # Country code
|
379
|
-
LOCALE_SCOUNTRY = 0x00000006 # Localized name of country
|
380
|
-
LOCALE_SENGCOUNTRY = 0x00001002 # English name of country
|
381
|
-
LOCALE_SABBREVCTRYNAME = 0x00000007 # Abbreviated country name
|
382
|
-
LOCALE_SNATIVECTRYNAME = 0x00000008 # Native name of country
|
383
|
-
|
384
|
-
LOCALE_IDEFAULTLANGUAGE = 0x00000009 # default language id
|
385
|
-
LOCALE_IDEFAULTCOUNTRY = 0x0000000A # default country code
|
386
|
-
LOCALE_IDEFAULTCODEPAGE = 0x0000000B # default oem code page
|
387
|
-
LOCALE_IDEFAULTANSICODEPAGE = 0x00001004 # default ansi code page
|
388
|
-
LOCALE_IDEFAULTMACCODEPAGE = 0x00001011 # default mac code page
|
389
|
-
|
390
|
-
LOCALE_SLIST = 0x0000000C # list item separator
|
391
|
-
LOCALE_IMEASURE = 0x0000000D # 0 = metric, 1 = US
|
392
|
-
|
393
|
-
LOCALE_SDECIMAL = 0x0000000E # decimal separator
|
394
|
-
LOCALE_STHOUSAND = 0x0000000F # thousand separator
|
395
|
-
LOCALE_SGROUPING = 0x00000010 # digit grouping
|
396
|
-
LOCALE_IDIGITS = 0x00000011 # number of fractional digits
|
397
|
-
LOCALE_ILZERO = 0x00000012 # leading zeros for decimal
|
398
|
-
LOCALE_INEGNUMBER = 0x00001010 # negative number mode
|
399
|
-
LOCALE_SNATIVEDIGITS = 0x00000013 # native ascii 0-9
|
400
|
-
|
401
|
-
LOCALE_SCURRENCY = 0x00000014 # local monetary symbol
|
402
|
-
LOCALE_SINTLSYMBOL = 0x00000015 # intl monetary symbol
|
403
|
-
LOCALE_SMONDECIMALSEP = 0x00000016 # monetary decimal separator
|
404
|
-
LOCALE_SMONTHOUSANDSEP = 0x00000017 # monetary thousand separator
|
405
|
-
LOCALE_SMONGROUPING = 0x00000018 # monetary grouping
|
406
|
-
LOCALE_ICURRDIGITS = 0x00000019 # # local monetary digits
|
407
|
-
LOCALE_IINTLCURRDIGITS = 0x0000001A # # intl monetary digits
|
408
|
-
LOCALE_ICURRENCY = 0x0000001B # positive currency mode
|
409
|
-
LOCALE_INEGCURR = 0x0000001C # negative currency mode
|
410
|
-
|
411
|
-
LOCALE_SDATE = 0x0000001D # date separator
|
412
|
-
LOCALE_STIME = 0x0000001E # time separator
|
413
|
-
LOCALE_SSHORTDATE = 0x0000001F # short date format string
|
414
|
-
LOCALE_SLONGDATE = 0x00000020 # long date format string
|
415
|
-
LOCALE_STIMEFORMAT = 0x00001003 # time format string
|
416
|
-
LOCALE_IDATE = 0x00000021 # short date format ordering
|
417
|
-
LOCALE_ILDATE = 0x00000022 # long date format ordering
|
418
|
-
LOCALE_ITIME = 0x00000023 # time format specifier
|
419
|
-
LOCALE_ITIMEMARKPOSN = 0x00001005 # time marker position
|
420
|
-
LOCALE_ICENTURY = 0x00000024 # century format specifier (short date)
|
421
|
-
LOCALE_ITLZERO = 0x00000025 # leading zeros in time field
|
422
|
-
LOCALE_IDAYLZERO = 0x00000026 # leading zeros in day field (short date)
|
423
|
-
LOCALE_IMONLZERO = 0x00000027 # leading zeros in month field (short date)
|
424
|
-
LOCALE_S1159 = 0x00000028 # AM designator
|
425
|
-
LOCALE_S2359 = 0x00000029 # PM designator
|
426
|
-
|
427
|
-
LOCALE_ICALENDARTYPE = 0x00001009 # type of calendar specifier
|
428
|
-
LOCALE_IOPTIONALCALENDAR = 0x0000100B # additional calendar types specifier
|
429
|
-
LOCALE_IFIRSTDAYOFWEEK = 0x0000100C # first day of week specifier
|
430
|
-
LOCALE_IFIRSTWEEKOFYEAR = 0x0000100D # first week of year specifier
|
431
|
-
|
432
|
-
LOCALE_SDAYNAME1 = 0x0000002A # long name for Monday
|
433
|
-
LOCALE_SDAYNAME2 = 0x0000002B # long name for Tuesday
|
434
|
-
LOCALE_SDAYNAME3 = 0x0000002C # long name for Wednesday
|
435
|
-
LOCALE_SDAYNAME4 = 0x0000002D # long name for Thursday
|
436
|
-
LOCALE_SDAYNAME5 = 0x0000002E # long name for Friday
|
437
|
-
LOCALE_SDAYNAME6 = 0x0000002F # long name for Saturday
|
438
|
-
LOCALE_SDAYNAME7 = 0x00000030 # long name for Sunday
|
439
|
-
LOCALE_SABBREVDAYNAME1 = 0x00000031 # abbreviated name for Monday
|
440
|
-
LOCALE_SABBREVDAYNAME2 = 0x00000032 # abbreviated name for Tuesday
|
441
|
-
LOCALE_SABBREVDAYNAME3 = 0x00000033 # abbreviated name for Wednesday
|
442
|
-
LOCALE_SABBREVDAYNAME4 = 0x00000034 # abbreviated name for Thursday
|
443
|
-
LOCALE_SABBREVDAYNAME5 = 0x00000035 # abbreviated name for Friday
|
444
|
-
LOCALE_SABBREVDAYNAME6 = 0x00000036 # abbreviated name for Saturday
|
445
|
-
LOCALE_SABBREVDAYNAME7 = 0x00000037 # abbreviated name for Sunday
|
446
|
-
LOCALE_SMONTHNAME1 = 0x00000038 # long name for January
|
447
|
-
LOCALE_SMONTHNAME2 = 0x00000039 # long name for February
|
448
|
-
LOCALE_SMONTHNAME3 = 0x0000003A # long name for March
|
449
|
-
LOCALE_SMONTHNAME4 = 0x0000003B # long name for April
|
450
|
-
LOCALE_SMONTHNAME5 = 0x0000003C # long name for May
|
451
|
-
LOCALE_SMONTHNAME6 = 0x0000003D # long name for June
|
452
|
-
LOCALE_SMONTHNAME7 = 0x0000003E # long name for July
|
453
|
-
LOCALE_SMONTHNAME8 = 0x0000003F # long name for August
|
454
|
-
LOCALE_SMONTHNAME9 = 0x00000040 # long name for September
|
455
|
-
LOCALE_SMONTHNAME10 = 0x00000041 # long name for October
|
456
|
-
LOCALE_SMONTHNAME11 = 0x00000042 # long name for November
|
457
|
-
LOCALE_SMONTHNAME12 = 0x00000043 # long name for December
|
458
|
-
LOCALE_SMONTHNAME13 = 0x0000100E # long name for 13th month (if exists)
|
459
|
-
LOCALE_SABBREVMONTHNAME1 = 0x00000044 # abbreviated name for January
|
460
|
-
LOCALE_SABBREVMONTHNAME2 = 0x00000045 # abbreviated name for February
|
461
|
-
LOCALE_SABBREVMONTHNAME3 = 0x00000046 # abbreviated name for March
|
462
|
-
LOCALE_SABBREVMONTHNAME4 = 0x00000047 # abbreviated name for April
|
463
|
-
LOCALE_SABBREVMONTHNAME5 = 0x00000048 # abbreviated name for May
|
464
|
-
LOCALE_SABBREVMONTHNAME6 = 0x00000049 # abbreviated name for June
|
465
|
-
LOCALE_SABBREVMONTHNAME7 = 0x0000004A # abbreviated name for July
|
466
|
-
LOCALE_SABBREVMONTHNAME8 = 0x0000004B # abbreviated name for August
|
467
|
-
LOCALE_SABBREVMONTHNAME9 = 0x0000004C # abbreviated name for September
|
468
|
-
LOCALE_SABBREVMONTHNAME10 = 0x0000004D # abbreviated name for October
|
469
|
-
LOCALE_SABBREVMONTHNAME11 = 0x0000004E # abbreviated name for November
|
470
|
-
LOCALE_SABBREVMONTHNAME12 = 0x0000004F # abbreviated name for December
|
471
|
-
LOCALE_SABBREVMONTHNAME13 = 0x0000100F # abbreviated name for 13th month (if exists)
|
472
|
-
|
473
|
-
LOCALE_SPOSITIVESIGN = 0x00000050 # positive sign
|
474
|
-
LOCALE_SNEGATIVESIGN = 0x00000051 # negative sign
|
475
|
-
LOCALE_IPOSSIGNPOSN = 0x00000052 # positive sign position
|
476
|
-
LOCALE_INEGSIGNPOSN = 0x00000053 # negative sign position
|
477
|
-
LOCALE_IPOSSYMPRECEDES = 0x00000054 # mon sym precedes pos amt
|
478
|
-
LOCALE_IPOSSEPBYSPACE = 0x00000055 # mon sym sep by space from pos amt
|
479
|
-
LOCALE_INEGSYMPRECEDES = 0x00000056 # mon sym precedes neg amt
|
480
|
-
LOCALE_INEGSEPBYSPACE = 0x00000057 # mon sym sep by space from neg amt
|
481
|
-
|
482
|
-
LOCALE_FONTSIGNATURE = 0x00000058 # font signature
|
483
|
-
LOCALE_SISO639LANGNAME = 0x00000059 # ISO abbreviated language name
|
484
|
-
LOCALE_SISO3166CTRYNAME = 0x0000005A # ISO abbreviated country name
|
485
|
-
|
486
|
-
LOCALE_IDEFAULTEBCDICCODEPAGE = 0x00001012 # default ebcdic code page
|
487
|
-
LOCALE_IPAPERSIZE = 0x0000100A # 1 = letter, 5 = legal, 8 = a3, 9 = a4
|
488
|
-
LOCALE_SENGCURRNAME = 0x00001007 # english name of currency
|
489
|
-
LOCALE_SNATIVECURRNAME = 0x00001008 # native name of currency
|
490
|
-
LOCALE_SYEARMONTH = 0x00001006 # year month format string
|
491
|
-
LOCALE_SSORTNAME = 0x00001013 # sort name
|
492
|
-
LOCALE_IDIGITSUBSTITUTION = 0x00001014 # 0 = context, 1 = none, 2 = national
|
493
|
-
|
494
|
-
TIME_NOMINUTESORSECONDS = 0x00000001 # do not use minutes or seconds
|
495
|
-
TIME_NOSECONDS = 0x00000002 # do not use seconds
|
496
|
-
TIME_NOTIMEMARKER = 0x00000004 # do not use time marker
|
497
|
-
TIME_FORCE24HOURFORMAT = 0x00000008 # always use 24 hour format
|
498
|
-
|
499
|
-
DATE_SHORTDATE = 0x00000001 # use short date picture
|
500
|
-
DATE_LONGDATE = 0x00000002 # use long date picture
|
501
|
-
DATE_USE_ALT_CALENDAR = 0x00000004 # use alternate calendar (if any)
|
502
|
-
|
503
|
-
DATE_YEARMONTH = 0x00000008 # use year month picture
|
504
|
-
DATE_LTRREADING = 0x00000010 # add marks for left to right reading order layout
|
505
|
-
DATE_RTLREADING = 0x00000020 # add marks for right to left reading order layout
|
506
|
-
|
507
|
-
SORT_DEFAULT = 0x0 # sorting default
|
508
|
-
|
509
|
-
SORT_JAPANESE_XJIS = 0x0 # Japanese XJIS order
|
510
|
-
SORT_JAPANESE_UNICODE = 0x1 # Japanese Unicode order
|
511
|
-
|
512
|
-
SORT_CHINESE_BIG5 = 0x0 # Chinese BIG5 order
|
513
|
-
SORT_CHINESE_PRCP = 0x0 # PRC Chinese Phonetic order
|
514
|
-
SORT_CHINESE_UNICODE = 0x1 # Chinese Unicode order
|
515
|
-
SORT_CHINESE_PRC = 0x2 # PRC Chinese Stroke Count order
|
516
|
-
SORT_CHINESE_BOPOMOFO = 0x3 # Traditional Chinese Bopomofo order
|
517
|
-
|
518
|
-
SORT_KOREAN_KSC = 0x0 # Korean KSC order
|
519
|
-
SORT_KOREAN_UNICODE = 0x1 # Korean Unicode order
|
520
|
-
|
521
|
-
SORT_GERMAN_PHONE_BOOK = 0x1 # German Phone Book order
|
522
|
-
|
523
|
-
SORT_HUNGARIAN_DEFAULT = 0x0 # Hungarian Default order
|
524
|
-
SORT_HUNGARIAN_TECHNICAL = 0x1 # Hungarian Technical order
|
525
|
-
|
526
|
-
SORT_GEORGIAN_TRADITIONAL = 0x0 # Georgian Traditional order
|
527
|
-
SORT_GEORGIAN_MODERN = 0x1 # Georgian Modern order
|
528
|
-
|
529
|
-
LANG_SYSTEM_DEFAULT = 2048
|
530
|
-
LANG_USER_DEFAULT = 1024
|
531
|
-
LOCALE_SYSTEM_DEFAULT = 2048
|
532
|
-
LOCALE_USER_DEFAULT = 1024
|
533
|
-
LOCALE_INVARIANT = 8323072
|
534
|
-
|
535
|
-
API.new('CompareString', 'LLPIPI', 'I')
|
536
|
-
API.new('EnumDateFormats', 'KLL', 'B')
|
537
|
-
API.new('EnumDateFormatsEx', 'KLL', 'B')
|
538
|
-
API.new('EnumSystemCodePages', 'KL', 'L')
|
539
|
-
API.new('EnumSystemLocales', 'KL', 'L')
|
540
|
-
API.new('EnumTimeFormats', 'KLL', 'B')
|
541
|
-
API.new('GetACP', 'V', 'I')
|
542
|
-
API.new('GetCPInfo', 'LP', 'B')
|
543
|
-
API.new('GetCPInfoEx', 'LLP', 'B')
|
544
|
-
API.new('GetCurrencyFormat', 'LLPPPI', 'I')
|
545
|
-
API.new('GetDateFormat', 'LLPPPI', 'I')
|
546
|
-
API.new('GetLocaleInfo', 'LLPL', 'I')
|
547
|
-
API.new('GetSystemDefaultLangID', 'V', 'L')
|
548
|
-
API.new('GetSystemDefaultLCID', 'V', 'L')
|
549
|
-
API.new('GetUserDefaultLangID', 'V', 'L')
|
550
|
-
API.new('GetUserDefaultLCID', 'V', 'L')
|
551
|
-
|
552
|
-
begin
|
553
|
-
API.new('AdjustCalendarDate', 'PLP', 'B')
|
554
|
-
API.new('EnumTimeFormatsEx', 'KSLP', 'B')
|
555
|
-
API.new('GetCurrencyFormatEx', 'PLPPPI', 'I')
|
556
|
-
API.new('GetDateFormatEx', 'SLPSPIS', 'I')
|
557
|
-
rescue Win32::API::LoadLibraryError
|
558
|
-
# Windows Vista or later
|
559
|
-
end
|
560
|
-
|
561
|
-
# Convenience method for converting the results of the GetACP()
|
562
|
-
# function to a human readable string.
|
563
|
-
#
|
564
|
-
def get_acp_string
|
565
|
-
CODE_PAGE[GetACP.call]
|
566
|
-
end
|
567
|
-
|
568
|
-
# Equivalent of the MAKELCID macro in WinNT.h
|
569
|
-
#
|
570
|
-
def MAKELCID(srtid, lgid)
|
571
|
-
srtid << 16 | lgid
|
572
|
-
end
|
573
|
-
|
574
|
-
# Equivalent of the MAKELANGID macro in WinNT.h
|
575
|
-
#
|
576
|
-
def MAKELANGID(x, s)
|
577
|
-
s << 10 | x
|
578
|
-
end
|
579
|
-
end
|
580
|
-
end
|
1
|
+
require 'windows/api'
|
2
|
+
|
3
|
+
module Windows
|
4
|
+
module National
|
5
|
+
API.auto_namespace = 'Windows::National'
|
6
|
+
API.auto_constant = true
|
7
|
+
API.auto_method = true
|
8
|
+
API.auto_unicode = true
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
# Code page identifiers. Used for get_acp_string method.
|
13
|
+
CODE_PAGE = {
|
14
|
+
037 => 'IBM EBCDIC = U.S./Canada',
|
15
|
+
437 => 'OEM = United States',
|
16
|
+
500 => 'IBM EBCDIC - International',
|
17
|
+
708 => 'Arabic - ASMO 708',
|
18
|
+
709 => 'Arabic - ASMO 449+, BCON V4',
|
19
|
+
710 => 'Arabic - Transparent Arabic',
|
20
|
+
720 => 'Arabic - Transparent ASMO',
|
21
|
+
737 => 'OEM - Greek (formerly 437G)',
|
22
|
+
775 => 'OEM - Baltic',
|
23
|
+
850 => 'OEM - Multilingual Latin I',
|
24
|
+
852 => 'OEM - Latin II',
|
25
|
+
855 => 'OEM - Cyrillic (primarily Russian)',
|
26
|
+
857 => 'OEM - Turkish',
|
27
|
+
858 => 'OEM - Multilingual Latin I + Euro symbol',
|
28
|
+
860 => 'OEM - Portuguese',
|
29
|
+
861 => 'OEM - Icelandic',
|
30
|
+
862 => 'OEM - Hebrew',
|
31
|
+
863 => 'OEM - Canadian-French',
|
32
|
+
864 => 'OEM - Arabic',
|
33
|
+
865 => 'OEM - Nordic',
|
34
|
+
866 => 'OEM - Russian',
|
35
|
+
869 => 'OEM - Modern Greek',
|
36
|
+
870 => 'IBM EBCDIC - Multilingual/ROECE (Latin-2)',
|
37
|
+
874 => 'ANSI/OEM - Thai (same as 28605, ISO 8859-15)',
|
38
|
+
875 => 'IBM EBCDIC - Modern Greek',
|
39
|
+
932 => 'ANSI/OEM - Japanese, Shift-JIS',
|
40
|
+
936 => 'ANSI/OEM - Simplified Chinese (PRC, Singapore)',
|
41
|
+
949 => 'ANSI/OEM - Korean (Unified Hangul Code)',
|
42
|
+
950 => 'ANSI/OEM - Traditional Chinese (Taiwan; Hong Kong SAR, PRC)',
|
43
|
+
1026 => 'IBM EBCDIC - Turkish (Latin-5)',
|
44
|
+
1047 => 'IBM EBCDIC - Latin 1/Open System',
|
45
|
+
1140 => 'IBM EBCDIC - U.S./Canada (037 + Euro symbol)',
|
46
|
+
1141 => 'IBM EBCDIC - Germany (20273 + Euro symbol)',
|
47
|
+
1142 => 'IBM EBCDIC - Denmark/Norway (20277 + Euro symbol)',
|
48
|
+
1143 => 'IBM EBCDIC - Finland/Sweden (20278 + Euro symbol)',
|
49
|
+
1144 => 'IBM EBCDIC - Italy (20280 + Euro symbol)',
|
50
|
+
1145 => 'IBM EBCDIC - Latin America/Spain (20284 + Euro symbol)',
|
51
|
+
1146 => 'IBM EBCDIC - United Kingdom (20285 + Euro symbol)',
|
52
|
+
1147 => 'IBM EBCDIC - France (20297 + Euro symbol)',
|
53
|
+
1148 => 'IBM EBCDIC - International (500 + Euro symbol)',
|
54
|
+
1149 => 'IBM EBCDIC - Icelandic (20871 + Euro symbol)',
|
55
|
+
1200 => 'Unicode UCS-2 Little-Endian (BMP of ISO 10646)',
|
56
|
+
1201 => 'Unicode UCS-2 Big-Endian',
|
57
|
+
1250 => 'ANSI - Central European',
|
58
|
+
1251 => 'ANSI - Cyrillic',
|
59
|
+
1252 => 'ANSI - Latin I',
|
60
|
+
1253 => 'ANSI - Greek',
|
61
|
+
1254 => 'ANSI - Turkish',
|
62
|
+
1255 => 'ANSI - Hebrew',
|
63
|
+
1256 => 'ANSI - Arabic',
|
64
|
+
1257 => 'ANSI - Baltic',
|
65
|
+
1258 => 'ANSI/OEM - Vietnamese',
|
66
|
+
1361 => 'Korean (Johab)',
|
67
|
+
10000 => 'MAC - Roman',
|
68
|
+
10001 => 'MAC - Japanese',
|
69
|
+
10002 => 'MAC - Traditional Chinese (Big5)',
|
70
|
+
10003 => 'MAC - Korean',
|
71
|
+
10004 => 'MAC - Arabic',
|
72
|
+
10005 => 'MAC - Hebrew',
|
73
|
+
10006 => 'MAC - Greek I',
|
74
|
+
10007 => 'MAC - Cyrillic',
|
75
|
+
10008 => 'MAC - Simplified Chinese (GB 2312)',
|
76
|
+
10010 => 'MAC - Romania',
|
77
|
+
10017 => 'MAC - Ukraine',
|
78
|
+
10021 => 'MAC - Thai',
|
79
|
+
10029 => 'MAC - Latin II',
|
80
|
+
10079 => 'MAC - Icelandic',
|
81
|
+
10081 => 'MAC - Turkish',
|
82
|
+
10082 => 'MAC - Croatia',
|
83
|
+
12000 => 'Unicode UCS-4 Little-Endian',
|
84
|
+
12001 => 'Unicode UCS-4 Big-Endian',
|
85
|
+
20000 => 'CNS - Taiwan',
|
86
|
+
20001 => 'TCA - Taiwan',
|
87
|
+
20002 => 'Eten - Taiwan',
|
88
|
+
20003 => 'IBM5550 - Taiwan',
|
89
|
+
20004 => 'TeleText - Taiwan',
|
90
|
+
20005 => 'Wang - Taiwan',
|
91
|
+
20105 => 'IA5 IRV International Alphabet No. 5 (7-bit)',
|
92
|
+
20106 => 'IA5 German (7-bit)',
|
93
|
+
20107 => 'IA5 Swedish (7-bit)',
|
94
|
+
20108 => 'IA5 Norwegian (7-bit)',
|
95
|
+
20127 => 'US-ASCII (7-bit)',
|
96
|
+
20261 => 'T.61',
|
97
|
+
20269 => 'ISO 6937 Non-Spacing Accent',
|
98
|
+
20273 => 'IBM EBCDIC - Germany',
|
99
|
+
20277 => 'IBM EBCDIC - Denmark/Norway',
|
100
|
+
20278 => 'IBM EBCDIC - Finland/Sweden',
|
101
|
+
20280 => 'IBM EBCDIC - Italy',
|
102
|
+
20284 => 'IBM EBCDIC - Latin America/Spain',
|
103
|
+
20285 => 'IBM EBCDIC - United Kingdom',
|
104
|
+
20290 => 'IBM EBCDIC - Japanese Katakana Extended',
|
105
|
+
20297 => 'IBM EBCDIC - France',
|
106
|
+
20420 => 'IBM EBCDIC - Arabic',
|
107
|
+
20423 => 'IBM EBCDIC - Greek',
|
108
|
+
20424 => 'IBM EBCDIC - Hebrew',
|
109
|
+
20833 => 'IBM EBCDIC - Korean Extended',
|
110
|
+
20838 => 'IBM EBCDIC - Thai',
|
111
|
+
20866 => 'Russian - KOI8-R',
|
112
|
+
20871 => 'IBM EBCDIC - Icelandic',
|
113
|
+
20880 => 'IBM EBCDIC - Cyrillic (Russian)',
|
114
|
+
20905 => 'IBM EBCDIC - Turkish',
|
115
|
+
20924 => 'IBM EBCDIC - Latin-1/Open System (1047 + Euro symbol)',
|
116
|
+
20932 => 'JIS X 0208-1990 & 0121-1990',
|
117
|
+
20936 => 'Simplified Chinese (GB2312)',
|
118
|
+
21025 => 'IBM EBCDIC - Cyrillic (Serbian, Bulgarian)',
|
119
|
+
21027 => '(deprecated)',
|
120
|
+
21866 => 'Ukrainian (KOI8-U)',
|
121
|
+
28591 => 'ISO 8859-1 Latin I',
|
122
|
+
28592 => 'ISO 8859-2 Central Europe',
|
123
|
+
28593 => 'ISO 8859-3 Latin 3',
|
124
|
+
28594 => 'ISO 8859-4 Baltic',
|
125
|
+
28595 => 'ISO 8859-5 Cyrillic',
|
126
|
+
28596 => 'ISO 8859-6 Arabic',
|
127
|
+
28597 => 'ISO 8859-7 Greek',
|
128
|
+
28598 => 'ISO 8859-8 Hebrew',
|
129
|
+
28599 => 'ISO 8859-9 Latin 5',
|
130
|
+
28605 => 'ISO 8859-15 Latin 9',
|
131
|
+
29001 => 'Europa 3',
|
132
|
+
38598 => 'ISO 8859-8 Hebrew',
|
133
|
+
50220 => 'ISO 2022 Japanese with no halfwidth Katakana',
|
134
|
+
50221 => 'ISO 2022 Japanese with halfwidth Katakana',
|
135
|
+
50222 => 'ISO 2022 Japanese JIS X 0201-1989',
|
136
|
+
50225 => 'ISO 2022 Korean',
|
137
|
+
50227 => 'ISO 2022 Simplified Chinese',
|
138
|
+
50229 => 'ISO 2022 Traditional Chinese',
|
139
|
+
50930 => 'Japanese (Katakana) Extended',
|
140
|
+
50931 => 'US/Canada and Japanese',
|
141
|
+
50933 => 'Korean Extended and Korean',
|
142
|
+
50935 => 'Simplified Chinese Extended and Simplified Chinese',
|
143
|
+
50936 => 'Simplified Chinese',
|
144
|
+
50937 => 'US/Canada and Traditional Chinese',
|
145
|
+
50939 => 'Japanese (Latin) Extended and Japanese',
|
146
|
+
51932 => 'EUC - Japanese',
|
147
|
+
51936 => 'EUC - Simplified Chinese',
|
148
|
+
51949 => 'EUC - Korean',
|
149
|
+
51950 => 'EUC - Traditional Chinese',
|
150
|
+
52936 => 'HZ-GB2312 Simplified Chinese',
|
151
|
+
54936 => 'Windows XP: GB18030 Simplified Chinese (4 Byte)',
|
152
|
+
57002 => 'ISCII Devanagari',
|
153
|
+
57003 => 'ISCII Bengali',
|
154
|
+
57004 => 'ISCII Tamil',
|
155
|
+
57005 => 'ISCII Telugu',
|
156
|
+
57006 => 'ISCII Assamese',
|
157
|
+
57007 => 'ISCII Oriya',
|
158
|
+
57008 => 'ISCII Kannada',
|
159
|
+
57009 => 'ISCII Malayalam',
|
160
|
+
57010 => 'ISCII Gujarati',
|
161
|
+
57011 => 'ISCII Punjabi',
|
162
|
+
65000 => 'Unicode UTF-7',
|
163
|
+
65001 => 'Unicode UTF-8'
|
164
|
+
}
|
165
|
+
|
166
|
+
LANG_NEUTRAL = 0x00
|
167
|
+
LANG_INVARIANT = 0x7f
|
168
|
+
|
169
|
+
LANG_AFRIKAANS = 0x36
|
170
|
+
LANG_ALBANIAN = 0x1c
|
171
|
+
LANG_ARABIC = 0x01
|
172
|
+
LANG_ARMENIAN = 0x2b
|
173
|
+
LANG_ASSAMESE = 0x4d
|
174
|
+
LANG_AZERI = 0x2c
|
175
|
+
LANG_BASQUE = 0x2d
|
176
|
+
LANG_BELARUSIAN = 0x23
|
177
|
+
LANG_BENGALI = 0x45
|
178
|
+
LANG_BOSNIAN = 0x1a
|
179
|
+
LANG_BULGARIAN = 0x02
|
180
|
+
LANG_CATALAN = 0x03
|
181
|
+
LANG_CHINESE = 0x04
|
182
|
+
LANG_CROATIAN = 0x1a
|
183
|
+
LANG_CZECH = 0x05
|
184
|
+
LANG_DANISH = 0x06
|
185
|
+
LANG_DIVEHI = 0x65
|
186
|
+
LANG_DUTCH = 0x13
|
187
|
+
LANG_ENGLISH = 0x09
|
188
|
+
LANG_ESTONIAN = 0x25
|
189
|
+
LANG_FAEROESE = 0x38
|
190
|
+
LANG_FARSI = 0x29
|
191
|
+
LANG_FINNISH = 0x0b
|
192
|
+
LANG_FRENCH = 0x0c
|
193
|
+
LANG_GALICIAN = 0x56
|
194
|
+
LANG_GEORGIAN = 0x37
|
195
|
+
LANG_GERMAN = 0x07
|
196
|
+
LANG_GREEK = 0x08
|
197
|
+
LANG_GUJARATI = 0x47
|
198
|
+
LANG_HEBREW = 0x0d
|
199
|
+
LANG_HINDI = 0x39
|
200
|
+
LANG_HUNGARIAN = 0x0e
|
201
|
+
LANG_ICELANDIC = 0x0f
|
202
|
+
LANG_INDONESIAN = 0x21
|
203
|
+
LANG_ITALIAN = 0x10
|
204
|
+
LANG_JAPANESE = 0x11
|
205
|
+
LANG_KANNADA = 0x4b
|
206
|
+
LANG_KASHMIRI = 0x60
|
207
|
+
LANG_KAZAK = 0x3f
|
208
|
+
LANG_KONKANI = 0x57
|
209
|
+
LANG_KOREAN = 0x12
|
210
|
+
LANG_KYRGYZ = 0x40
|
211
|
+
LANG_LATVIAN = 0x26
|
212
|
+
LANG_LITHUANIAN = 0x27
|
213
|
+
LANG_MACEDONIAN = 0x2f
|
214
|
+
LANG_MALAY = 0x3e
|
215
|
+
LANG_MALAYALAM = 0x4c
|
216
|
+
LANG_MALTESE = 0x3a
|
217
|
+
LANG_MANIPURI = 0x58
|
218
|
+
LANG_MAORI = 0x81
|
219
|
+
LANG_MARATHI = 0x4e
|
220
|
+
LANG_MONGOLIAN = 0x50
|
221
|
+
LANG_NEPALI = 0x61
|
222
|
+
LANG_NORWEGIAN = 0x14
|
223
|
+
LANG_ORIYA = 0x48
|
224
|
+
LANG_POLISH = 0x15
|
225
|
+
LANG_PORTUGUESE = 0x16
|
226
|
+
LANG_PUNJABI = 0x46
|
227
|
+
LANG_QUECHUA = 0x6b
|
228
|
+
LANG_ROMANIAN = 0x18
|
229
|
+
LANG_RUSSIAN = 0x19
|
230
|
+
LANG_SAMI = 0x3b
|
231
|
+
LANG_SANSKRIT = 0x4f
|
232
|
+
LANG_SERBIAN = 0x1a
|
233
|
+
LANG_SINDHI = 0x59
|
234
|
+
LANG_SLOVAK = 0x1b
|
235
|
+
LANG_SLOVENIAN = 0x24
|
236
|
+
LANG_SOTHO = 0x6c
|
237
|
+
LANG_SPANISH = 0x0a
|
238
|
+
LANG_SWAHILI = 0x41
|
239
|
+
LANG_SWEDISH = 0x1d
|
240
|
+
LANG_SYRIAC = 0x5a
|
241
|
+
LANG_TAMIL = 0x49
|
242
|
+
LANG_TATAR = 0x44
|
243
|
+
LANG_TELUGU = 0x4a
|
244
|
+
LANG_THAI = 0x1e
|
245
|
+
LANG_TSWANA = 0x32
|
246
|
+
LANG_TURKISH = 0x1f
|
247
|
+
LANG_UKRAINIAN = 0x22
|
248
|
+
LANG_URDU = 0x20
|
249
|
+
LANG_UZBEK = 0x43
|
250
|
+
LANG_VIETNAMESE = 0x2a
|
251
|
+
LANG_WELSH = 0x52
|
252
|
+
LANG_XHOSA = 0x34
|
253
|
+
LANG_ZULU = 0x35
|
254
|
+
|
255
|
+
SUBLANG_NEUTRAL = 0x00 # language neutral
|
256
|
+
SUBLANG_DEFAULT = 0x01 # user default
|
257
|
+
SUBLANG_SYS_DEFAULT = 0x02 # system default
|
258
|
+
|
259
|
+
SUBLANG_ARABIC_SAUDI_ARABIA = 0x01 # Arabic (Saudi Arabia)
|
260
|
+
SUBLANG_ARABIC_IRAQ = 0x02 # Arabic (Iraq)
|
261
|
+
SUBLANG_ARABIC_EGYPT = 0x03 # Arabic (Egypt)
|
262
|
+
SUBLANG_ARABIC_LIBYA = 0x04 # Arabic (Libya)
|
263
|
+
SUBLANG_ARABIC_ALGERIA = 0x05 # Arabic (Algeria)
|
264
|
+
SUBLANG_ARABIC_MOROCCO = 0x06 # Arabic (Morocco)
|
265
|
+
SUBLANG_ARABIC_TUNISIA = 0x07 # Arabic (Tunisia)
|
266
|
+
SUBLANG_ARABIC_OMAN = 0x08 # Arabic (Oman)
|
267
|
+
SUBLANG_ARABIC_YEMEN = 0x09 # Arabic (Yemen)
|
268
|
+
SUBLANG_ARABIC_SYRIA = 0x0a # Arabic (Syria)
|
269
|
+
SUBLANG_ARABIC_JORDAN = 0x0b # Arabic (Jordan)
|
270
|
+
SUBLANG_ARABIC_LEBANON = 0x0c # Arabic (Lebanon)
|
271
|
+
SUBLANG_ARABIC_KUWAIT = 0x0d # Arabic (Kuwait)
|
272
|
+
SUBLANG_ARABIC_UAE = 0x0e # Arabic (U.A.E)
|
273
|
+
SUBLANG_ARABIC_BAHRAIN = 0x0f # Arabic (Bahrain)
|
274
|
+
SUBLANG_ARABIC_QATAR = 0x10 # Arabic (Qatar)
|
275
|
+
SUBLANG_AZERI_LATIN = 0x01 # Azeri (Latin)
|
276
|
+
SUBLANG_AZERI_CYRILLIC = 0x02 # Azeri (Cyrillic)
|
277
|
+
SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN = 0x05 # Bosnian (Bosnia and Herzegovina - Latin)
|
278
|
+
SUBLANG_CHINESE_TRADITIONAL = 0x01 # Chinese (Taiwan)
|
279
|
+
SUBLANG_CHINESE_SIMPLIFIED = 0x02 # Chinese (PR China)
|
280
|
+
SUBLANG_CHINESE_HONGKONG = 0x03 # Chinese (Hong Kong S.A.R., P.R.C.)
|
281
|
+
SUBLANG_CHINESE_SINGAPORE = 0x04 # Chinese (Singapore)
|
282
|
+
SUBLANG_CHINESE_MACAU = 0x05 # Chinese (Macau S.A.R.)
|
283
|
+
SUBLANG_CROATIAN_CROATIA = 0x01 # Croatian (Croatia)
|
284
|
+
SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN = 0x04 # Croatian (Bosnia and Herzegovina - Latin)
|
285
|
+
SUBLANG_DUTCH = 0x01 # Dutch
|
286
|
+
SUBLANG_DUTCH_BELGIAN = 0x02 # Dutch (Belgian)
|
287
|
+
SUBLANG_ENGLISH_US = 0x01 # English (USA)
|
288
|
+
SUBLANG_ENGLISH_UK = 0x02 # English (UK)
|
289
|
+
SUBLANG_ENGLISH_AUS = 0x03 # English (Australian)
|
290
|
+
SUBLANG_ENGLISH_CAN = 0x04 # English (Canadian)
|
291
|
+
SUBLANG_ENGLISH_NZ = 0x05 # English (New Zealand)
|
292
|
+
SUBLANG_ENGLISH_EIRE = 0x06 # English (Irish)
|
293
|
+
SUBLANG_ENGLISH_SOUTH_AFRICA = 0x07 # English (South Africa)
|
294
|
+
SUBLANG_ENGLISH_JAMAICA = 0x08 # English (Jamaica)
|
295
|
+
SUBLANG_ENGLISH_CARIBBEAN = 0x09 # English (Caribbean)
|
296
|
+
SUBLANG_ENGLISH_BELIZE = 0x0a # English (Belize)
|
297
|
+
SUBLANG_ENGLISH_TRINIDAD = 0x0b # English (Trinidad)
|
298
|
+
SUBLANG_ENGLISH_ZIMBABWE = 0x0c # English (Zimbabwe)
|
299
|
+
SUBLANG_ENGLISH_PHILIPPINES = 0x0d # English (Philippines)
|
300
|
+
SUBLANG_FRENCH = 0x01 # French
|
301
|
+
SUBLANG_FRENCH_BELGIAN = 0x02 # French (Belgian)
|
302
|
+
SUBLANG_FRENCH_CANADIAN = 0x03 # French (Canadian)
|
303
|
+
SUBLANG_FRENCH_SWISS = 0x04 # French (Swiss)
|
304
|
+
SUBLANG_FRENCH_LUXEMBOURG = 0x05 # French (Luxembourg)
|
305
|
+
SUBLANG_FRENCH_MONACO = 0x06 # French (Monaco)
|
306
|
+
SUBLANG_GERMAN = 0x01 # German
|
307
|
+
SUBLANG_GERMAN_SWISS = 0x02 # German (Swiss)
|
308
|
+
SUBLANG_GERMAN_AUSTRIAN = 0x03 # German (Austrian)
|
309
|
+
SUBLANG_GERMAN_LUXEMBOURG = 0x04 # German (Luxembourg)
|
310
|
+
SUBLANG_GERMAN_LIECHTENSTEIN = 0x05 # German (Liechtenstein)
|
311
|
+
SUBLANG_ITALIAN = 0x01 # Italian
|
312
|
+
SUBLANG_ITALIAN_SWISS = 0x02 # Italian (Swiss)
|
313
|
+
SUBLANG_KASHMIRI_SASIA = 0x02 # Kashmiri (South Asia)
|
314
|
+
SUBLANG_KASHMIRI_INDIA = 0x02 # For app compatibility only
|
315
|
+
SUBLANG_KOREAN = 0x01 # Korean (Extended Wansung)
|
316
|
+
SUBLANG_LITHUANIAN = 0x01 # Lithuanian
|
317
|
+
SUBLANG_MALAY_MALAYSIA = 0x01 # Malay (Malaysia)
|
318
|
+
SUBLANG_MALAY_BRUNEI_DARUSSALAM = 0x02 # Malay (Brunei Darussalam)
|
319
|
+
SUBLANG_NEPALI_INDIA = 0x02 # Nepali (India)
|
320
|
+
SUBLANG_NORWEGIAN_BOKMAL = 0x01 # Norwegian (Bokmal)
|
321
|
+
SUBLANG_NORWEGIAN_NYNORSK = 0x02 # Norwegian (Nynorsk)
|
322
|
+
SUBLANG_PORTUGUESE = 0x02 # Portuguese
|
323
|
+
SUBLANG_PORTUGUESE_BRAZILIAN = 0x01 # Portuguese (Brazilian)
|
324
|
+
SUBLANG_QUECHUA_BOLIVIA = 0x01 # Quechua (Bolivia)
|
325
|
+
SUBLANG_QUECHUA_ECUADOR = 0x02 # Quechua (Ecuador)
|
326
|
+
SUBLANG_QUECHUA_PERU = 0x03 # Quechua (Peru)
|
327
|
+
SUBLANG_SAMI_NORTHERN_NORWAY = 0x01 # Northern Sami (Norway)
|
328
|
+
SUBLANG_SAMI_NORTHERN_SWEDEN = 0x02 # Northern Sami (Sweden)
|
329
|
+
SUBLANG_SAMI_NORTHERN_FINLAND = 0x03 # Northern Sami (Finland)
|
330
|
+
SUBLANG_SAMI_LULE_NORWAY = 0x04 # Lule Sami (Norway)
|
331
|
+
SUBLANG_SAMI_LULE_SWEDEN = 0x05 # Lule Sami (Sweden)
|
332
|
+
SUBLANG_SAMI_SOUTHERN_NORWAY = 0x06 # Southern Sami (Norway)
|
333
|
+
SUBLANG_SAMI_SOUTHERN_SWEDEN = 0x07 # Southern Sami (Sweden)
|
334
|
+
SUBLANG_SAMI_SKOLT_FINLAND = 0x08 # Skolt Sami (Finland)
|
335
|
+
SUBLANG_SAMI_INARI_FINLAND = 0x09 # Inari Sami (Finland)
|
336
|
+
SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN = 0x06 # Serbian (Bosnia and Herzegovina - Latin)
|
337
|
+
SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC = 0x07 # Serbian (Bosnia and Herzegovina - Cyrillic)
|
338
|
+
SUBLANG_SERBIAN_LATIN = 0x02 # Serbian (Latin)
|
339
|
+
SUBLANG_SERBIAN_CYRILLIC = 0x03 # Serbian (Cyrillic)
|
340
|
+
SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA = 0x01 # Northern Sotho (South Africa)
|
341
|
+
SUBLANG_SPANISH = 0x01 # Spanish (Castilian)
|
342
|
+
SUBLANG_SPANISH_MEXICAN = 0x02 # Spanish (Mexican)
|
343
|
+
SUBLANG_SPANISH_MODERN = 0x03 # Spanish (Modern)
|
344
|
+
SUBLANG_SPANISH_GUATEMALA = 0x04 # Spanish (Guatemala)
|
345
|
+
SUBLANG_SPANISH_COSTA_RICA = 0x05 # Spanish (Costa Rica)
|
346
|
+
SUBLANG_SPANISH_PANAMA = 0x06 # Spanish (Panama)
|
347
|
+
SUBLANG_SPANISH_DOMINICAN_REPUBLIC = 0x07 # Spanish (Dominican Republic)
|
348
|
+
SUBLANG_SPANISH_VENEZUELA = 0x08 # Spanish (Venezuela)
|
349
|
+
SUBLANG_SPANISH_COLOMBIA = 0x09 # Spanish (Colombia)
|
350
|
+
SUBLANG_SPANISH_PERU = 0x0a # Spanish (Peru)
|
351
|
+
SUBLANG_SPANISH_ARGENTINA = 0x0b # Spanish (Argentina)
|
352
|
+
SUBLANG_SPANISH_ECUADOR = 0x0c # Spanish (Ecuador)
|
353
|
+
SUBLANG_SPANISH_CHILE = 0x0d # Spanish (Chile)
|
354
|
+
SUBLANG_SPANISH_URUGUAY = 0x0e # Spanish (Uruguay)
|
355
|
+
SUBLANG_SPANISH_PARAGUAY = 0x0f # Spanish (Paraguay)
|
356
|
+
SUBLANG_SPANISH_BOLIVIA = 0x10 # Spanish (Bolivia)
|
357
|
+
SUBLANG_SPANISH_EL_SALVADOR = 0x11 # Spanish (El Salvador)
|
358
|
+
SUBLANG_SPANISH_HONDURAS = 0x12 # Spanish (Honduras)
|
359
|
+
SUBLANG_SPANISH_NICARAGUA = 0x13 # Spanish (Nicaragua)
|
360
|
+
SUBLANG_SPANISH_PUERTO_RICO = 0x14 # Spanish (Puerto Rico)
|
361
|
+
SUBLANG_SWEDISH = 0x01 # Swedish
|
362
|
+
SUBLANG_SWEDISH_FINLAND = 0x02 # Swedish (Finland)
|
363
|
+
SUBLANG_URDU_PAKISTAN = 0x01 # Urdu (Pakistan)
|
364
|
+
SUBLANG_URDU_INDIA = 0x02 # Urdu (India)
|
365
|
+
SUBLANG_UZBEK_LATIN = 0x01 # Uzbek (Latin)
|
366
|
+
SUBLANG_UZBEK_CYRILLIC = 0x02 # Uzbek (Cyrillic)
|
367
|
+
|
368
|
+
LOCALE_NOUSEROVERRIDE = 0x80000000
|
369
|
+
LOCALE_USE_CP_ACP = 0x40000000
|
370
|
+
LOCALE_RETURN_NUMBER = 0x20000000
|
371
|
+
|
372
|
+
LOCALE_ILANGUAGE = 0x00000001 # Language ID
|
373
|
+
LOCALE_SLANGUAGE = 0x00000002 # Localized name of language
|
374
|
+
LOCALE_SENGLANGUAGE = 0x00001001 # English name of language
|
375
|
+
LOCALE_SABBREVLANGNAME = 0x00000003 # Abbreviated language name
|
376
|
+
LOCALE_SNATIVELANGNAME = 0x00000004 # Native name of language
|
377
|
+
|
378
|
+
LOCALE_ICOUNTRY = 0x00000005 # Country code
|
379
|
+
LOCALE_SCOUNTRY = 0x00000006 # Localized name of country
|
380
|
+
LOCALE_SENGCOUNTRY = 0x00001002 # English name of country
|
381
|
+
LOCALE_SABBREVCTRYNAME = 0x00000007 # Abbreviated country name
|
382
|
+
LOCALE_SNATIVECTRYNAME = 0x00000008 # Native name of country
|
383
|
+
|
384
|
+
LOCALE_IDEFAULTLANGUAGE = 0x00000009 # default language id
|
385
|
+
LOCALE_IDEFAULTCOUNTRY = 0x0000000A # default country code
|
386
|
+
LOCALE_IDEFAULTCODEPAGE = 0x0000000B # default oem code page
|
387
|
+
LOCALE_IDEFAULTANSICODEPAGE = 0x00001004 # default ansi code page
|
388
|
+
LOCALE_IDEFAULTMACCODEPAGE = 0x00001011 # default mac code page
|
389
|
+
|
390
|
+
LOCALE_SLIST = 0x0000000C # list item separator
|
391
|
+
LOCALE_IMEASURE = 0x0000000D # 0 = metric, 1 = US
|
392
|
+
|
393
|
+
LOCALE_SDECIMAL = 0x0000000E # decimal separator
|
394
|
+
LOCALE_STHOUSAND = 0x0000000F # thousand separator
|
395
|
+
LOCALE_SGROUPING = 0x00000010 # digit grouping
|
396
|
+
LOCALE_IDIGITS = 0x00000011 # number of fractional digits
|
397
|
+
LOCALE_ILZERO = 0x00000012 # leading zeros for decimal
|
398
|
+
LOCALE_INEGNUMBER = 0x00001010 # negative number mode
|
399
|
+
LOCALE_SNATIVEDIGITS = 0x00000013 # native ascii 0-9
|
400
|
+
|
401
|
+
LOCALE_SCURRENCY = 0x00000014 # local monetary symbol
|
402
|
+
LOCALE_SINTLSYMBOL = 0x00000015 # intl monetary symbol
|
403
|
+
LOCALE_SMONDECIMALSEP = 0x00000016 # monetary decimal separator
|
404
|
+
LOCALE_SMONTHOUSANDSEP = 0x00000017 # monetary thousand separator
|
405
|
+
LOCALE_SMONGROUPING = 0x00000018 # monetary grouping
|
406
|
+
LOCALE_ICURRDIGITS = 0x00000019 # # local monetary digits
|
407
|
+
LOCALE_IINTLCURRDIGITS = 0x0000001A # # intl monetary digits
|
408
|
+
LOCALE_ICURRENCY = 0x0000001B # positive currency mode
|
409
|
+
LOCALE_INEGCURR = 0x0000001C # negative currency mode
|
410
|
+
|
411
|
+
LOCALE_SDATE = 0x0000001D # date separator
|
412
|
+
LOCALE_STIME = 0x0000001E # time separator
|
413
|
+
LOCALE_SSHORTDATE = 0x0000001F # short date format string
|
414
|
+
LOCALE_SLONGDATE = 0x00000020 # long date format string
|
415
|
+
LOCALE_STIMEFORMAT = 0x00001003 # time format string
|
416
|
+
LOCALE_IDATE = 0x00000021 # short date format ordering
|
417
|
+
LOCALE_ILDATE = 0x00000022 # long date format ordering
|
418
|
+
LOCALE_ITIME = 0x00000023 # time format specifier
|
419
|
+
LOCALE_ITIMEMARKPOSN = 0x00001005 # time marker position
|
420
|
+
LOCALE_ICENTURY = 0x00000024 # century format specifier (short date)
|
421
|
+
LOCALE_ITLZERO = 0x00000025 # leading zeros in time field
|
422
|
+
LOCALE_IDAYLZERO = 0x00000026 # leading zeros in day field (short date)
|
423
|
+
LOCALE_IMONLZERO = 0x00000027 # leading zeros in month field (short date)
|
424
|
+
LOCALE_S1159 = 0x00000028 # AM designator
|
425
|
+
LOCALE_S2359 = 0x00000029 # PM designator
|
426
|
+
|
427
|
+
LOCALE_ICALENDARTYPE = 0x00001009 # type of calendar specifier
|
428
|
+
LOCALE_IOPTIONALCALENDAR = 0x0000100B # additional calendar types specifier
|
429
|
+
LOCALE_IFIRSTDAYOFWEEK = 0x0000100C # first day of week specifier
|
430
|
+
LOCALE_IFIRSTWEEKOFYEAR = 0x0000100D # first week of year specifier
|
431
|
+
|
432
|
+
LOCALE_SDAYNAME1 = 0x0000002A # long name for Monday
|
433
|
+
LOCALE_SDAYNAME2 = 0x0000002B # long name for Tuesday
|
434
|
+
LOCALE_SDAYNAME3 = 0x0000002C # long name for Wednesday
|
435
|
+
LOCALE_SDAYNAME4 = 0x0000002D # long name for Thursday
|
436
|
+
LOCALE_SDAYNAME5 = 0x0000002E # long name for Friday
|
437
|
+
LOCALE_SDAYNAME6 = 0x0000002F # long name for Saturday
|
438
|
+
LOCALE_SDAYNAME7 = 0x00000030 # long name for Sunday
|
439
|
+
LOCALE_SABBREVDAYNAME1 = 0x00000031 # abbreviated name for Monday
|
440
|
+
LOCALE_SABBREVDAYNAME2 = 0x00000032 # abbreviated name for Tuesday
|
441
|
+
LOCALE_SABBREVDAYNAME3 = 0x00000033 # abbreviated name for Wednesday
|
442
|
+
LOCALE_SABBREVDAYNAME4 = 0x00000034 # abbreviated name for Thursday
|
443
|
+
LOCALE_SABBREVDAYNAME5 = 0x00000035 # abbreviated name for Friday
|
444
|
+
LOCALE_SABBREVDAYNAME6 = 0x00000036 # abbreviated name for Saturday
|
445
|
+
LOCALE_SABBREVDAYNAME7 = 0x00000037 # abbreviated name for Sunday
|
446
|
+
LOCALE_SMONTHNAME1 = 0x00000038 # long name for January
|
447
|
+
LOCALE_SMONTHNAME2 = 0x00000039 # long name for February
|
448
|
+
LOCALE_SMONTHNAME3 = 0x0000003A # long name for March
|
449
|
+
LOCALE_SMONTHNAME4 = 0x0000003B # long name for April
|
450
|
+
LOCALE_SMONTHNAME5 = 0x0000003C # long name for May
|
451
|
+
LOCALE_SMONTHNAME6 = 0x0000003D # long name for June
|
452
|
+
LOCALE_SMONTHNAME7 = 0x0000003E # long name for July
|
453
|
+
LOCALE_SMONTHNAME8 = 0x0000003F # long name for August
|
454
|
+
LOCALE_SMONTHNAME9 = 0x00000040 # long name for September
|
455
|
+
LOCALE_SMONTHNAME10 = 0x00000041 # long name for October
|
456
|
+
LOCALE_SMONTHNAME11 = 0x00000042 # long name for November
|
457
|
+
LOCALE_SMONTHNAME12 = 0x00000043 # long name for December
|
458
|
+
LOCALE_SMONTHNAME13 = 0x0000100E # long name for 13th month (if exists)
|
459
|
+
LOCALE_SABBREVMONTHNAME1 = 0x00000044 # abbreviated name for January
|
460
|
+
LOCALE_SABBREVMONTHNAME2 = 0x00000045 # abbreviated name for February
|
461
|
+
LOCALE_SABBREVMONTHNAME3 = 0x00000046 # abbreviated name for March
|
462
|
+
LOCALE_SABBREVMONTHNAME4 = 0x00000047 # abbreviated name for April
|
463
|
+
LOCALE_SABBREVMONTHNAME5 = 0x00000048 # abbreviated name for May
|
464
|
+
LOCALE_SABBREVMONTHNAME6 = 0x00000049 # abbreviated name for June
|
465
|
+
LOCALE_SABBREVMONTHNAME7 = 0x0000004A # abbreviated name for July
|
466
|
+
LOCALE_SABBREVMONTHNAME8 = 0x0000004B # abbreviated name for August
|
467
|
+
LOCALE_SABBREVMONTHNAME9 = 0x0000004C # abbreviated name for September
|
468
|
+
LOCALE_SABBREVMONTHNAME10 = 0x0000004D # abbreviated name for October
|
469
|
+
LOCALE_SABBREVMONTHNAME11 = 0x0000004E # abbreviated name for November
|
470
|
+
LOCALE_SABBREVMONTHNAME12 = 0x0000004F # abbreviated name for December
|
471
|
+
LOCALE_SABBREVMONTHNAME13 = 0x0000100F # abbreviated name for 13th month (if exists)
|
472
|
+
|
473
|
+
LOCALE_SPOSITIVESIGN = 0x00000050 # positive sign
|
474
|
+
LOCALE_SNEGATIVESIGN = 0x00000051 # negative sign
|
475
|
+
LOCALE_IPOSSIGNPOSN = 0x00000052 # positive sign position
|
476
|
+
LOCALE_INEGSIGNPOSN = 0x00000053 # negative sign position
|
477
|
+
LOCALE_IPOSSYMPRECEDES = 0x00000054 # mon sym precedes pos amt
|
478
|
+
LOCALE_IPOSSEPBYSPACE = 0x00000055 # mon sym sep by space from pos amt
|
479
|
+
LOCALE_INEGSYMPRECEDES = 0x00000056 # mon sym precedes neg amt
|
480
|
+
LOCALE_INEGSEPBYSPACE = 0x00000057 # mon sym sep by space from neg amt
|
481
|
+
|
482
|
+
LOCALE_FONTSIGNATURE = 0x00000058 # font signature
|
483
|
+
LOCALE_SISO639LANGNAME = 0x00000059 # ISO abbreviated language name
|
484
|
+
LOCALE_SISO3166CTRYNAME = 0x0000005A # ISO abbreviated country name
|
485
|
+
|
486
|
+
LOCALE_IDEFAULTEBCDICCODEPAGE = 0x00001012 # default ebcdic code page
|
487
|
+
LOCALE_IPAPERSIZE = 0x0000100A # 1 = letter, 5 = legal, 8 = a3, 9 = a4
|
488
|
+
LOCALE_SENGCURRNAME = 0x00001007 # english name of currency
|
489
|
+
LOCALE_SNATIVECURRNAME = 0x00001008 # native name of currency
|
490
|
+
LOCALE_SYEARMONTH = 0x00001006 # year month format string
|
491
|
+
LOCALE_SSORTNAME = 0x00001013 # sort name
|
492
|
+
LOCALE_IDIGITSUBSTITUTION = 0x00001014 # 0 = context, 1 = none, 2 = national
|
493
|
+
|
494
|
+
TIME_NOMINUTESORSECONDS = 0x00000001 # do not use minutes or seconds
|
495
|
+
TIME_NOSECONDS = 0x00000002 # do not use seconds
|
496
|
+
TIME_NOTIMEMARKER = 0x00000004 # do not use time marker
|
497
|
+
TIME_FORCE24HOURFORMAT = 0x00000008 # always use 24 hour format
|
498
|
+
|
499
|
+
DATE_SHORTDATE = 0x00000001 # use short date picture
|
500
|
+
DATE_LONGDATE = 0x00000002 # use long date picture
|
501
|
+
DATE_USE_ALT_CALENDAR = 0x00000004 # use alternate calendar (if any)
|
502
|
+
|
503
|
+
DATE_YEARMONTH = 0x00000008 # use year month picture
|
504
|
+
DATE_LTRREADING = 0x00000010 # add marks for left to right reading order layout
|
505
|
+
DATE_RTLREADING = 0x00000020 # add marks for right to left reading order layout
|
506
|
+
|
507
|
+
SORT_DEFAULT = 0x0 # sorting default
|
508
|
+
|
509
|
+
SORT_JAPANESE_XJIS = 0x0 # Japanese XJIS order
|
510
|
+
SORT_JAPANESE_UNICODE = 0x1 # Japanese Unicode order
|
511
|
+
|
512
|
+
SORT_CHINESE_BIG5 = 0x0 # Chinese BIG5 order
|
513
|
+
SORT_CHINESE_PRCP = 0x0 # PRC Chinese Phonetic order
|
514
|
+
SORT_CHINESE_UNICODE = 0x1 # Chinese Unicode order
|
515
|
+
SORT_CHINESE_PRC = 0x2 # PRC Chinese Stroke Count order
|
516
|
+
SORT_CHINESE_BOPOMOFO = 0x3 # Traditional Chinese Bopomofo order
|
517
|
+
|
518
|
+
SORT_KOREAN_KSC = 0x0 # Korean KSC order
|
519
|
+
SORT_KOREAN_UNICODE = 0x1 # Korean Unicode order
|
520
|
+
|
521
|
+
SORT_GERMAN_PHONE_BOOK = 0x1 # German Phone Book order
|
522
|
+
|
523
|
+
SORT_HUNGARIAN_DEFAULT = 0x0 # Hungarian Default order
|
524
|
+
SORT_HUNGARIAN_TECHNICAL = 0x1 # Hungarian Technical order
|
525
|
+
|
526
|
+
SORT_GEORGIAN_TRADITIONAL = 0x0 # Georgian Traditional order
|
527
|
+
SORT_GEORGIAN_MODERN = 0x1 # Georgian Modern order
|
528
|
+
|
529
|
+
LANG_SYSTEM_DEFAULT = 2048
|
530
|
+
LANG_USER_DEFAULT = 1024
|
531
|
+
LOCALE_SYSTEM_DEFAULT = 2048
|
532
|
+
LOCALE_USER_DEFAULT = 1024
|
533
|
+
LOCALE_INVARIANT = 8323072
|
534
|
+
|
535
|
+
API.new('CompareString', 'LLPIPI', 'I')
|
536
|
+
API.new('EnumDateFormats', 'KLL', 'B')
|
537
|
+
API.new('EnumDateFormatsEx', 'KLL', 'B')
|
538
|
+
API.new('EnumSystemCodePages', 'KL', 'L')
|
539
|
+
API.new('EnumSystemLocales', 'KL', 'L')
|
540
|
+
API.new('EnumTimeFormats', 'KLL', 'B')
|
541
|
+
API.new('GetACP', 'V', 'I')
|
542
|
+
API.new('GetCPInfo', 'LP', 'B')
|
543
|
+
API.new('GetCPInfoEx', 'LLP', 'B')
|
544
|
+
API.new('GetCurrencyFormat', 'LLPPPI', 'I')
|
545
|
+
API.new('GetDateFormat', 'LLPPPI', 'I')
|
546
|
+
API.new('GetLocaleInfo', 'LLPL', 'I')
|
547
|
+
API.new('GetSystemDefaultLangID', 'V', 'L')
|
548
|
+
API.new('GetSystemDefaultLCID', 'V', 'L')
|
549
|
+
API.new('GetUserDefaultLangID', 'V', 'L')
|
550
|
+
API.new('GetUserDefaultLCID', 'V', 'L')
|
551
|
+
|
552
|
+
begin
|
553
|
+
API.new('AdjustCalendarDate', 'PLP', 'B')
|
554
|
+
API.new('EnumTimeFormatsEx', 'KSLP', 'B')
|
555
|
+
API.new('GetCurrencyFormatEx', 'PLPPPI', 'I')
|
556
|
+
API.new('GetDateFormatEx', 'SLPSPIS', 'I')
|
557
|
+
rescue Win32::API::LoadLibraryError
|
558
|
+
# Windows Vista or later
|
559
|
+
end
|
560
|
+
|
561
|
+
# Convenience method for converting the results of the GetACP()
|
562
|
+
# function to a human readable string.
|
563
|
+
#
|
564
|
+
def get_acp_string
|
565
|
+
CODE_PAGE[GetACP.call]
|
566
|
+
end
|
567
|
+
|
568
|
+
# Equivalent of the MAKELCID macro in WinNT.h
|
569
|
+
#
|
570
|
+
def MAKELCID(srtid, lgid)
|
571
|
+
srtid << 16 | lgid
|
572
|
+
end
|
573
|
+
|
574
|
+
# Equivalent of the MAKELANGID macro in WinNT.h
|
575
|
+
#
|
576
|
+
def MAKELANGID(x, s)
|
577
|
+
s << 10 | x
|
578
|
+
end
|
579
|
+
end
|
580
|
+
end
|