Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.7 KiB

  1. #define ORIGLC "OriginalLCID"
  2. #define LANGKEY "System\\CurrentControlSet\\Control\\Nls\\Language"
  3. #define IMMKEY "Software\\Microsoft\\Windows NT\\CurrentVersion\\IMM"
  4. #define IMMLOAD "LoadIMM"
  5. #define IMMCHANGE "IMMChanged"
  6. typedef struct _LC_INFO {
  7. TCHAR szID[5];
  8. TCHAR szAbbr[4];
  9. TCHAR szName[50];
  10. } LC_INFO;
  11. //
  12. // It would be better not to include variables here.
  13. // Anywa add "static" to avoid conflict in multiple instance includes.
  14. // Yuhong Li, Feb 26, 1998.
  15. //
  16. //
  17. static LC_INFO Locale[] = {
  18. TEXT("0411"), TEXT("jpn"), TEXT("Japanese"),
  19. TEXT("0412"), TEXT("kor"), TEXT("Korean"),
  20. TEXT("0404"), TEXT("cht"), TEXT("Chinese (Traditional)"),
  21. TEXT("0804"), TEXT("chs"), TEXT("Chinese (Simplified)"),
  22. TEXT("0C04"), TEXT("chp"), TEXT("Chinese (HongKong)"),
  23. TEXT("1004"), TEXT("chg"), TEXT("Chinese (Singapore)"), // not offical
  24. TEXT("0409"), TEXT("enu"), TEXT("English (US)"),
  25. TEXT("0407"), TEXT("deu"), TEXT("German (Standard)"),
  26. TEXT("040C"), TEXT("fra"), TEXT("French (Standard)"),
  27. TEXT("040A"), TEXT("esp"), TEXT("Spanish (Traditional Sort)"),
  28. TEXT("0410"), TEXT("ita"), TEXT("Italian"),
  29. TEXT("0401"), TEXT("are"), TEXT("Arabic (Egypt)"),
  30. TEXT("3401"), TEXT("ark"), TEXT("Arabic (Kuwait)"),
  31. TEXT("0801"), TEXT("ari"), TEXT("Arabic (Iraq)"),
  32. TEXT("3001"), TEXT("arb"), TEXT("Arabic (Lebanon)"),
  33. TEXT("0C01"), TEXT("ara"), TEXT("Arabic (Saudi Arabia)"),
  34. TEXT("041E"), TEXT("tha"), TEXT("Thai"),
  35. TEXT("040D"), TEXT("heb"), TEXT("Hebrew"),
  36. TEXT("0439"), TEXT("hin"), TEXT("Indic (Hindi)"),
  37. TEXT("0449"), TEXT("tam"), TEXT("Indic (Tamil)"),
  38. };
  39. #define NUM_LOCALE (sizeof(Locale)/sizeof(Locale[0]))
  40. #define DEFAULT_ENGLISH_INDEX 6