languages.nsh 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. !ifndef NULLOSFT_WINAMP_INSTALLER_SUPPORTED_LANGUAGES_HEADER
  2. !define NULLOSFT_WINAMP_INSTALLER_SUPPORTED_LANGUAGES_HEADER
  3. !macro WALANG_INCLUDE LANGID NSIS_LANGID
  4. !ifdef "LANG_USE_${LANGID}" | LANG_USE_ALL
  5. !define WALANG_INCLUDE_OKTOINCLUDE
  6. !endif
  7. !ifdef WALANG_INCLUDE_OKTOINCLUDE
  8. !echo "Including language support for: ${LANGID}"
  9. !verbose push
  10. !verbose 2
  11. !ifndef MUI_LANGDLL_ALLLANGUAGES
  12. !define MUI_LANGDLL_ALLLANGUAGES
  13. !endif ; MUI_LANGDLL_ALLLANGUAGES
  14. !ifndef MUI_LANGDLL_ALWAYSSHOW
  15. !ifdef WALANG_ATLEASTONE
  16. !define MUI_LANGDLL_ALWAYSSHOW
  17. !endif ; WALANG_ATLEASTONE
  18. !endif ; MUI_LANGDLL_ALWAYSSHOW
  19. !ifndef WALANG_ATLEASTONE
  20. !define WALANG_ATLEASTONE
  21. !endif ; WALANG_ATLEASTONE
  22. !insertmacro MUI_INSERT
  23. !ifndef "NSIS_NLF_${NSIS_LANGID}_LOADED"
  24. LoadLanguageFile "${NSISDIR}\Contrib\Language files\${NSIS_LANGID}.nlf"
  25. !define "NSIS_NLF_${NSIS_LANGID}_LOADED"
  26. !endif
  27. !ifndef LANGFILE_DEFAULT
  28. !define LANGFILE_DEFAULT "${NSISDIR}\Contrib\Language files\English.nsh"
  29. !endif
  30. !insertmacro LANGFILE_INCLUDE "${NSISDIR}\Contrib\Language files\${NSIS_LANGID}.nsh"
  31. !ifdef LANGFILE_DEFAULT
  32. !undef LANGFILE_DEFAULT
  33. !endif
  34. ; !define LANGFILE_DEFAULT ".\languages\installer_en-us.nsh"
  35. !insertmacro LANGFILE_INCLUDE_WITHDEFAULT ".\languages\installer_${LANGID}.nsh" ".\languages\installer_en-us.nsh"
  36. ; !undef LANGFILE_DEFAULT
  37. !define LANGFILE_DEFAULT "${NSISDIR}\Contrib\Language files\English.nsh"
  38. !ifndef MUI_LANGDLL_LANGUAGES
  39. !ifdef MUI_LANGDLL_ALLLANGUAGES
  40. !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${NSIS_LANGID}_NAME}' '${LANG_${NSIS_LANGID}}' "
  41. !else
  42. !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${NSIS_LANGID}_NAME}' '${LANG_${NSIS_LANGID}}' '${LANG_${NSIS_LANGID}_CP}' "
  43. !endif
  44. !else
  45. !ifdef MUI_LANGDLL_LANGUAGES_TEMP
  46. !undef MUI_LANGDLL_LANGUAGES_TEMP
  47. !endif
  48. !define MUI_LANGDLL_LANGUAGES_TEMP "${MUI_LANGDLL_LANGUAGES}"
  49. !undef MUI_LANGDLL_LANGUAGES
  50. !ifdef MUI_LANGDLL_ALLLANGUAGES
  51. !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${NSIS_LANGID}_NAME}' '${LANG_${NSIS_LANGID}}' ${MUI_LANGDLL_LANGUAGES_TEMP}"
  52. !else
  53. !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${NSIS_LANGID}_NAME}' '${LANG_${NSIS_LANGID}}' '${LANG_${NSIS_LANGID}_CP}' ${MUI_LANGDLL_LANGUAGES_TEMP}"
  54. !endif
  55. !endif
  56. !undef WALANG_INCLUDE_OKTOINCLUDE
  57. !verbose pop
  58. !endif
  59. !macroend
  60. !insertmacro WALANG_INCLUDE "EN-US" "English"
  61. ;!insertmacro WALANG_INCLUDE "DE-DE" "German"
  62. !insertmacro WALANG_INCLUDE "ES-US" "SpanishInternational"
  63. !insertmacro WALANG_INCLUDE "FR-FR" "French"
  64. ;!insertmacro WALANG_INCLUDE "IT-IT" "Italian"
  65. ;!insertmacro WALANG_INCLUDE "NL-NL" "Dutch"
  66. !insertmacro WALANG_INCLUDE "PL-PL" "Polish"
  67. ;!insertmacro WALANG_INCLUDE "SV-SE" "Swedish"
  68. !insertmacro WALANG_INCLUDE "RU-RU" "Russian"
  69. ;!insertmacro WALANG_INCLUDE "ZH-CN" "SimpChinese"
  70. ;!insertmacro WALANG_INCLUDE "ZH-TW" "TradChinese"
  71. !insertmacro WALANG_INCLUDE "JA-JP" "Japanese"
  72. ;!insertmacro WALANG_INCLUDE "KO-KR" "Korean"
  73. !insertmacro WALANG_INCLUDE "TR-TR" "Turkish"
  74. !insertmacro WALANG_INCLUDE "PT-BR" "PortugueseBR"
  75. !insertmacro WALANG_INCLUDE "RO-RO" "Romanian"
  76. !insertmacro WALANG_INCLUDE "HU-HU" "Hungarian"
  77. ;!insertmacro WALANG_INCLUDE "ID-ID" "Indonesian"
  78. !include ".\sections\languages.nsh"
  79. !endif ;NULLOSFT_WINAMP_INSTALLER_SUPPORTED_LANGUAGES_HEADER