Ignore:
Timestamp:
Jan 29, 2004, 3:12:09 PM (22 years ago)
Author:
bird
Message:

#776: Synced language ids and releated #defines with current wine headers. (i.e. headers are only partially synced.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winnls.h

    r9973 r10421  
    172172#define WC_DEFAULTCHECK                           0x00000100
    173173
    174 #define MAKELCID(l, s)                      (MAKELONG(l, s))
    175 
    176 #define LANGIDFROMLCID(lcid)    ((WORD)(lcid))
    177 #define SORTIDFROMLCID(lcid)    ((WORD)((((DWORD)(lcid)) >> 16) & 0x0f))
    178 
    179 #define MAKELANGID(p, s)                 ((((WORD)(s))<<10) | (WORD)(p))
    180 #define PRIMARYLANGID(l)                 ((WORD)(l) & 0x3ff)
    181 #define SUBLANGID(l)                        ((WORD)(l) >> 10)
    182 
    183 #define LANG_SYSTEM_DEFAULT              (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
    184 #define LANG_USER_DEFAULT                (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
    185 #define LOCALE_SYSTEM_DEFAULT            (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
    186 #define LOCALE_USER_DEFAULT              (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))
    187 #define LOCALE_NEUTRAL                      (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT))
    188 
    189 
    190 /* Language IDs (were in winnt.h,  for some reason) */
    191 
    192 
    193 /* Language IDs */
    194 
    195 /* FIXME: are the symbolic names correct for LIDs:  0x17, 0x20, 0x28,
    196  *   0x2a, 0x2b, 0x2c, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35,
    197  *   0x37, 0x39, 0x3a, 0x3b, 0x3c, 0x3e, 0x3f, 0x41, 0x43, 0x44,
    198  *   0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e,
    199  *   0x4f, 0x57
    200  */
    201 #define LANG_NEUTRAL                     0x00
    202 #define LANG_AFRIKAANS                          0x36
    203 #define LANG_ALBANIAN                           0x1c
    204 #define LANG_ARABIC                      0x01
    205 #define LANG_ARMENIAN                           0x2b
    206 #define LANG_ASSAMESE                           0x4d
    207 #define LANG_AZERI                              0x2c
    208 #define LANG_BASQUE                      0x2d
    209 #define LANG_BENGALI                            0x45
    210 #define LANG_BULGARIAN                   0x02
    211 #define LANG_BYELORUSSIAN                0x23
    212 #define LANG_CATALAN                     0x03
    213 #define LANG_CHINESE                     0x04
    214 #define LANG_SERBO_CROATIAN              0x1a
    215 #define LANG_CROATIAN                      LANG_SERBO_CROATIAN
    216 #define LANG_SERBIAN                       LANG_SERBO_CROATIAN
    217 #define LANG_CZECH                       0x05
    218 #define LANG_DANISH                      0x06
    219 #define LANG_DUTCH                       0x13
    220 #define LANG_ENGLISH                     0x09
    221 #define LANG_ESTONIAN                    0x25
    222 #define LANG_FAEROESE                    0x38
    223 #define LANG_FARSI                       0x29
    224 #define LANG_FINNISH                     0x0b
    225 #define LANG_FRENCH                      0x0c
    226 #define LANG_GAELIC                             0x3c
    227 #define LANG_GEORGIAN                           0x37
    228 #define LANG_GERMAN                      0x07
    229 #define LANG_GREEK                       0x08
    230 #define LANG_GUJARATI                           0x47
    231 #define LANG_HEBREW                      0x0D
    232 #define LANG_HINDI                              0x39
    233 #define LANG_HUNGARIAN                   0x0e
    234 #define LANG_ICELANDIC                   0x0f
    235 #define LANG_INDONESIAN                  0x21
    236 #define LANG_ITALIAN                     0x10
    237 #define LANG_JAPANESE                    0x11
    238 #define LANG_KANNADA                            0x4b
    239 #define LANG_KAZAKH                             0x3f
    240 #define LANG_KONKANI                            0x57
    241 #define LANG_KOREAN                      0x12
    242 #define LANG_LATVIAN                     0x26
    243 #define LANG_LITHUANIAN                  0x27
    244 #define LANG_MACEDONIAN                         0x2f
    245 #define LANG_MALAY                              0x3e
    246 #define LANG_MALAYALAM                          0x4c
    247 #define LANG_MALTESE                            0x3a
    248 #define LANG_MAORI                              0x28
    249 #define LANG_MARATHI                            0x4e
    250 #define LANG_NORWEGIAN                   0x14
    251 #define LANG_ORIYA                              0x48
    252 #define LANG_POLISH                      0x15
    253 #define LANG_PORTUGUESE                  0x16
    254 #define LANG_PUNJABI                            0x46
    255 #define LANG_RHAETO_ROMANCE                  0x17
    256 #define LANG_ROMANIAN                    0x18
    257 #define LANG_RUSSIAN                     0x19
    258 #define LANG_SAAMI                              0x3b
    259 #define LANG_SANSKRIT                           0x4f
    260 #define LANG_SLOVAK                      0x1b
    261 #define LANG_SLOVENIAN                   0x24
    262 #define LANG_SORBIAN                     0x2e
    263 #define LANG_SPANISH                     0x0a
    264 #define LANG_SUTU                            0x30
    265 #define LANG_SWAHILI                            0x41
    266 #define LANG_SWEDISH                     0x1d
    267 #define LANG_TAMIL                              0x49
    268 #define LANG_TATAR                              0x44
    269 #define LANG_TELUGU                             0x4a
    270 #define LANG_THAI                        0x1e
    271 #define LANG_TSONGA                             0x31
    272 #define LANG_TSWANA                             0x32
    273 #define LANG_TURKISH                     0x1f
    274 #define LANG_UKRAINIAN                   0x22
    275 #define LANG_URDU                            0x20
    276 #define LANG_UZBEK                              0x43
    277 #define LANG_VENDA                              0x33
    278 #define LANG_VIETNAMESE                         0x2a
    279 #define LANG_XHOSA                              0x34
    280 #define LANG_ZULU                            0x35
    281 /* non standard; keep the number high enough (but < 0xff) */
    282 #define LANG_ESPERANTO                          0x8f
    283 #define LANG_WALON                              0x90
    284 #define LANG_CORNISH                            0x91
    285 #define LANG_WELSH                              0x92
    286 #define LANG_BRETON                             0x93
    287 
    288 /* Sublanguage definitions */
    289 #define SUBLANG_NEUTRAL                  0x00    /* language neutral */
    290 #define SUBLANG_DEFAULT                  0x01    /* user default */
    291 #define SUBLANG_SYS_DEFAULT              0x02    /* system default */
    292 
    293 #define SUBLANG_ARABIC                   0x01
    294 #define SUBLANG_ARABIC_SAUDI_ARABIA      0x01
    295 #define SUBLANG_ARABIC_IRAQ              0x02
    296 #define SUBLANG_ARABIC_EGYPT             0x03
    297 #define SUBLANG_ARABIC_LIBYA             0x04
    298 #define SUBLANG_ARABIC_ALGERIA           0x05
    299 #define SUBLANG_ARABIC_MOROCCO           0x06
    300 #define SUBLANG_ARABIC_TUNISIA           0x07
    301 #define SUBLANG_ARABIC_OMAN              0x08
    302 #define SUBLANG_ARABIC_YEMEN             0x09
    303 #define SUBLANG_ARABIC_SYRIA             0x0a
    304 #define SUBLANG_ARABIC_JORDAN            0x0b
    305 #define SUBLANG_ARABIC_LEBANON           0x0c
    306 #define SUBLANG_ARABIC_KUWAIT            0x0d
    307 #define SUBLANG_ARABIC_UAE               0x0e
    308 #define SUBLANG_ARABIC_BAHRAIN           0x0f
    309 #define SUBLANG_ARABIC_QATAR             0x10
    310 #define SUBLANG_CHINESE_TRADITIONAL      0x01
    311 #define SUBLANG_CHINESE_SIMPLIFIED       0x02
    312 #define SUBLANG_CHINESE_HONGKONG         0x03
    313 #define SUBLANG_CHINESE_SINGAPORE        0x04
    314 #define SUBLANG_CHINESE_MACAU            0x05
    315 #define SUBLANG_DUTCH                    0x01
    316 #define SUBLANG_DUTCH_BELGIAN            0x02
    317 #define SUBLANG_DUTCH_SURINAM                0x03
    318 #define SUBLANG_ENGLISH_US               0x01
    319 #define SUBLANG_ENGLISH_UK               0x02
    320 #define SUBLANG_ENGLISH_AUS              0x03
    321 #define SUBLANG_ENGLISH_CAN              0x04
    322 #define SUBLANG_ENGLISH_NZ               0x05
    323 #define SUBLANG_ENGLISH_EIRE             0x06
    324 #define SUBLANG_ENGLISH_SAFRICA          0x07
    325 #define SUBLANG_ENGLISH_JAMAICA          0x08
    326 #define SUBLANG_ENGLISH_CARRIBEAN        0x09
    327 #define SUBLANG_ENGLISH_BELIZE           0x0a
    328 #define SUBLANG_ENGLISH_TRINIDAD         0x0b
    329 #define SUBLANG_ENGLISH_ZIMBABWE         0x0c
    330 #define SUBLANG_ENGLISH_PHILIPPINES      0x0d
    331 #define SUBLANG_FRENCH                   0x01
    332 #define SUBLANG_FRENCH_BELGIAN           0x02
    333 #define SUBLANG_FRENCH_CANADIAN          0x03
    334 #define SUBLANG_FRENCH_SWISS             0x04
    335 #define SUBLANG_FRENCH_LUXEMBOURG        0x05
    336 #define SUBLANG_FRENCH_MONACO            0x06
    337 #define SUBLANG_GERMAN                   0x01
    338 #define SUBLANG_GERMAN_SWISS             0x02
    339 #define SUBLANG_GERMAN_AUSTRIAN          0x03
    340 #define SUBLANG_GERMAN_LUXEMBOURG        0x04
    341 #define SUBLANG_GERMAN_LIECHTENSTEIN     0x05
    342 #define SUBLANG_ITALIAN                  0x01
    343 #define SUBLANG_ITALIAN_SWISS            0x02
    344 #define SUBLANG_KOREAN                   0x01
    345 #define SUBLANG_KOREAN_JOHAB             0x02
    346 #define SUBLANG_NORWEGIAN_BOKMAL         0x01
    347 #define SUBLANG_NORWEGIAN_NYNORSK        0x02
    348 #define SUBLANG_PORTUGUESE               0x02
    349 #define SUBLANG_PORTUGUESE_BRAZILIAN     0x01
    350 #define SUBLANG_SPANISH                  0x01
    351 #define SUBLANG_SPANISH_MEXICAN          0x02
    352 #define SUBLANG_SPANISH_MODERN           0x03
    353 #define SUBLANG_SPANISH_GUATEMALA        0x04
    354 #define SUBLANG_SPANISH_COSTARICA        0x05
    355 #define SUBLANG_SPANISH_PANAMA           0x06
    356 #define SUBLANG_SPANISH_DOMINICAN        0x07
    357 #define SUBLANG_SPANISH_VENEZUELA        0x08
    358 #define SUBLANG_SPANISH_COLOMBIA         0x09
    359 #define SUBLANG_SPANISH_PERU             0x0a
    360 #define SUBLANG_SPANISH_ARGENTINA        0x0b
    361 #define SUBLANG_SPANISH_ECUADOR          0x0c
    362 #define SUBLANG_SPANISH_CHILE            0x0d
    363 #define SUBLANG_SPANISH_URUGUAY          0x0e
    364 #define SUBLANG_SPANISH_PARAGUAY         0x0f
    365 #define SUBLANG_SPANISH_BOLIVIA          0x10
    366 #define SUBLANG_SPANISH_EL_SALVADOR      0x11
    367 #define SUBLANG_SPANISH_HONDURAS         0x12
    368 #define SUBLANG_SPANISH_NICARAGUA        0x13
    369 #define SUBLANG_SPANISH_PUERTO_RICO      0x14
    370 /* FIXME: I don't know the symbolic names for those */
    371 #define SUBLANG_ROMANIAN                 0x01
    372 #define SUBLANG_ROMANIAN_MOLDAVIA        0x02
    373 #define SUBLANG_RUSSIAN                  0x01
    374 #define SUBLANG_RUSSIAN_MOLDAVIA         0x02
    375 #define SUBLANG_CROATIAN                 0x01
    376 #define SUBLANG_SERBIAN                  0x02
    377 #define SUBLANG_SERBIAN_LATIN            0x03
    378 #define SUBLANG_SWEDISH                  0x01
    379 #define SUBLANG_SWEDISH_FINLAND          0x02
    380 #define SUBLANG_LITHUANIAN               0x01
    381 #define SUBLANG_LITHUANIAN_CLASSIC       0x02
    382 #define SUBLANG_AZERI                    0x01
    383 #define SUBLANG_AZERI_CYRILLIC           0x02
    384 #define SUBLANG_GAELIC                   0x01
    385 #define SUBLANG_GAELIC_SCOTTISH          0x02
    386 #define SUBLANG_GAELIC_MANX              0x03
    387 #define SUBLANG_MALAY                    0x01
    388 #define SUBLANG_MALAY_BRUNEI_DARUSSALAM  0x02
    389 #define SUBLANG_UZBEK                    0x01
    390 #define SUBLANG_UZBEK_CYRILLIC           0x02
    391 #define SUBLANG_URDU_PAKISTAN            0x01
    392 
    393 /* Sort definitions */
    394 #define SORT_DEFAULT                     0x0
    395 #define SORT_JAPANESE_XJIS               0x0
    396 #define SORT_JAPANESE_UNICODE            0x1
    397 #define SORT_CHINESE_BIG5                0x0
    398 #define SORT_CHINESE_UNICODE             0x1
    399 #define SORT_KOREAN_KSC                  0x0
    400 #define SORT_KOREAN_UNICODE              0x1
    401 
    402 
    403174/* Locale Dependent Mapping Flags */
    404175#define LCMAP_LOWERCASE                  0x00000100  /* lower case letters */
Note: See TracChangeset for help on using the changeset viewer.