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.

70 lines
1.9 KiB

  1. # LCID: Locale ID in hex.
  2. !IFNDEF LANGUAGE
  3. LANGUAGE=usa
  4. !ENDIF
  5. # If language text identifiers ever change, this needs updating.
  6. # Alternatively, move sapi5.inx / sapi5.txt to \nt\mergedcomponents\SetupInfs
  7. # where the makefile.inc there contains the below code for all infs. Hence
  8. # any change there will automatically word with our sapi5.txt file, unless
  9. # it adds new supported languages.
  10. !if "$(LANGUAGE)"=="ARA" || "$(LANGUAGE)"=="ara"
  11. # Arabic
  12. LCID=401
  13. !elseif "$(LANGUAGE)"=="CHT" || "$(LANGUAGE)"=="cht"
  14. # Chinese, Traditional
  15. LCID=404
  16. !elseif "$(LANGUAGE)"=="CS" || "$(LANGUAGE)"=="cs"
  17. # Czech
  18. LCID=405
  19. !elseif "$(LANGUAGE)"=="EL" || "$(LANGUAGE)"=="el"
  20. # Greek
  21. LCID=408
  22. !elseif "$(LANGUAGE)"=="PSU" || "$(LANGUAGE)"=="psu"
  23. # ???
  24. LCID=408
  25. !elseif "$(LANGUAGE)"=="USA" || "$(LANGUAGE)"=="usa"
  26. # USA
  27. LCID=409
  28. !elseif "$(LANGUAGE)"=="HEB" || "$(LANGUAGE)"=="heb"
  29. # Hebrew
  30. LCID=40D
  31. !elseif "$(LANGUAGE)"=="HU" || "$(LANGUAGE)"=="hu"
  32. # Hungarian
  33. LCID=40E
  34. !elseif "$(LANGUAGE)"=="JPN" || "$(LANGUAGE)"=="jpn"
  35. # Japanese
  36. LCID=411
  37. !elseif "$(LANGUAGE)"=="KOR" || "$(LANGUAGE)"=="kor"
  38. # Korean
  39. LCID=412
  40. !elseif "$(LANGUAGE)"=="PL" || "$(LANGUAGE)"=="pl"
  41. # Polish
  42. LCID=415
  43. !elseif "$(LANGUAGE)"=="RU" || "$(LANGUAGE)"=="ru"
  44. # Russian
  45. LCID=419
  46. !elseif "$(LANGUAGE)"=="TR" || "$(LANGUAGE)"=="tr"
  47. # Turkish
  48. LCID=41F
  49. !elseif "$(LANGUAGE)"=="CHS" || "$(LANGUAGE)"=="chs"
  50. # Chinese, Simplified
  51. LCID=804
  52. !endif
  53. PREFLAGS=/DLANGUAGE_ID="0x$(LCID)" -nologo /EP
  54. $(O)\sapi5.inf: sapi5.inx sapi5.txt
  55. $(CC) $(PREFLAGS) /nologo /c /EP $(@B).txt > $(O)\$(@B).txt1
  56. unitext -m -o $(O)\$(@B).txt1 $(O)\$(@B).txt2
  57. copy /b $(@B).inx+$(O)\$(@B).txt2 $(O)\$(@B).tmp1
  58. prodfilt -u $(O)\$(@B).tmp1 $(O)\$(@B).tmp2 +$(PRODSWITCH)
  59. prodfilt -u $(O)\$(@B).tmp2 $@ +$(PLATFORM_SWITCH)
  60. @del $(O)\$(@B).tmp1
  61. @del $(O)\$(@B).tmp2
  62. @del $(O)\$(@B).txt1
  63. @del $(O)\$(@B).txt2
  64. $(STAMP)
  65. $(TSBINPLACE_CMD)