lyx_mirror/development/Win32/packaging/installer/include/lang.nsh
Joost Verburg a7594d6ca8 * Improved multi-user installation. It is now easier to have both a system as well as a local version of LyX installed.
* Installation for all users is the default for Power Users and Administrators
* For silent installation, it is possible to use the /AllUsers or /CurrentUser command line parameter to choose for which users you want to install
* Updated list of supported languages. The "red" languages from http://www.lyx.org/devel/i18n.php have been removed.
* Language and dictionary names are no longer in English but are translated in the language itself
* One single list with language names, ISO codes and identifiers
* Both the installer and uninstaller automatically detect the user interface language
* Added more space in the user interface for translated texts
* Added all Python encoding files so there will be no problems with future Python scripts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15200 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-02 17:21:20 +00:00

139 lines
4.1 KiB
Plaintext

/*
Translations for installer and LyX itself
*/
!macro LanguageList COMMAND
;List of supported LyX languages with ISO code and language identifier
;To be used as input for other macros
${COMMAND} "Basque" eu_EU 1069
${COMMAND} "Bokmål" nb_NO 1044
${COMMAND} "Cesky" cs_CZ 1029
${COMMAND} "Dansk" da_DK 1030
${COMMAND} "Deutsch" de_DE 1031
${COMMAND} "English" en_EN 1033
${COMMAND} "Español" es_ES 1034
${COMMAND} "Français" fr_FR 1036
${COMMAND} "Italiano" it_IT 1057
${COMMAND} "Magyar" hu_HU 1038
${COMMAND} "Nynorsk" nn_NO 2068
${COMMAND} "Polski" pl_PL 1045
${COMMAND} "Russian" ru_RU 1049
${COMMAND} "Slovenský jazyk" sk_SK 1060
${COMMAND} "Suomi" fi_FI 1035
${COMMAND} "Türkçe" tr_TR 1055
!macroend
!macro LanguageString name text
!ifndef "${name}"
!define "${name}" "${text}"
!endif
!macroend
!macro LanguageStringAdd lang_name name
;Takes a define and puts that into a language string
LangString "${name}" "${LANG_${lang_name}}" "${${name}}"
!undef "${name}"
!macroend
!macro LanguageStringCreateExternal component
${LanguageStringAdd} TEXT_EXTERNAL_${component}_TITLE
${LanguageStringAdd} TEXT_EXTERNAL_${component}_SUBTITLE
${LanguageStringAdd} TEXT_EXTERNAL_${component}_INFO_${SETUPTYPE_NAME}
${LanguageStringAdd} TEXT_EXTERNAL_${component}_${SETUPTYPE_NAME}
${LanguageStringAdd} TEXT_EXTERNAL_${component}_FOLDER
${LanguageStringAdd} TEXT_EXTERNAL_${component}_FOLDER_INFO
${LanguageStringAdd} TEXT_EXTERNAL_${component}_NONE
${LanguageStringAdd} TEXT_EXTERNAL_${component}_NOTFOUND
!macroend
!macro LanguageStringCreate lang_name
;Creates all language strings
!insertmacro ReDef LanguageStringAdd '!insertmacro LanguageStringAdd "${lang_name}"'
${LanguageStringAdd} TEXT_NO_PRIVILEDGES
${LanguageStringAdd} TEXT_INSTALL_CURRENTUSER
${LanguageStringAdd} TEXT_WELCOME_${SETUPTYPE_NAME}
${LanguageStringAdd} TEXT_USER_TITLE
${LanguageStringAdd} TEXT_USER_SUBTITLE
${LanguageStringAdd} TEXT_USER_INFO
${LanguageStringAdd} TEXT_USER_CURRENT
${LanguageStringAdd} TEXT_USER_ALL
${LanguageStringAdd} TEXT_REINSTALL_TITLE
${LanguageStringAdd} TEXT_REINSTALL_SUBTITLE
${LanguageStringAdd} TEXT_REINSTALL_INFO
${LanguageStringAdd} TEXT_REINSTALL_ENABLE
${LanguageStringAdd} TEXT_EXTERNAL_NOPRIVILEDGES
!insertmacro LanguageStringCreateExternal LaTeX
!insertmacro LanguageStringCreateExternal ImageMagick
!insertmacro LanguageStringCreateExternal Ghostscript
${LanguageStringAdd} TEXT_VIEWER_TITLE
${LanguageStringAdd} TEXT_VIEWER_SUBTITLE
${LanguageStringAdd} TEXT_VIEWER_INFO_${SETUPTYPE_NAME}
${LanguageStringAdd} TEXT_VIEWER_${SETUPTYPE_NAME}
${LanguageStringAdd} TEXT_DICT_TITLE
${LanguageStringAdd} TEXT_DICT_SUBTITLE
${LanguageStringAdd} TEXT_DICT_TOP
${LanguageStringAdd} TEXT_DICT_LIST
${LanguageStringAdd} TEXT_LANGUAGE_TITLE
${LanguageStringAdd} TEXT_LANGUAGE_SUBTITLE
${LanguageStringAdd} TEXT_LANGUAGE_INFO
!ifndef SETUPTYPE_BUNDLE
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_LATEX
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_IMAGEMAGICK
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_GHOSTSCRIPT
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_VIEWER
!endif
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_DICT
${LanguageStringAdd} TEXT_NOTINSTALLED_LATEX
${LanguageStringAdd} TEXT_NOTINSTALLED_IMAGEMAGICK
${LanguageStringAdd} TEXT_NOTINSTALLED_GHOSTSCRIPT
${LanguageStringAdd} TEXT_NOTINSTALLED_VIEWER
${LanguageStringAdd} TEXT_NOTINSTALLED_DICT
${LanguageStringAdd} TEXT_FINISH_DESKTOP
${LanguageStringAdd} TEXT_FINISH_WEBSITE
${LanguageStringAdd} UNTEXT_WELCOME
!macroend
!macro IncludeLang langname
!ifndef DICT_NAME
!define DICT_NAME $R1
!endif
;Include both NSIS/LyX language file
!insertmacro MUI_LANGUAGE "${langname}"
!include "lang\${langname}.nsh"
!include "lang\English.nsh" ;Use English for missing strings in translation
!insertmacro LanguageStringCreate "${langname}"
!macroend