mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 01:22:33 +00:00
a7594d6ca8
* 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
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
/*
|
|
|
|
Selection of language for LyX interface
|
|
|
|
*/
|
|
|
|
;--------------------------------
|
|
;Macros
|
|
|
|
!macro SetSystemLangItem VAR LANGNAME LANGISOCODE LANGID
|
|
|
|
${if} $R0 == ${LANGID}
|
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "langselect.ini" "Field 2" "State" "${LANGNAME}"
|
|
${endif}
|
|
|
|
!macroend
|
|
|
|
!macro SetSystemLang VAR
|
|
|
|
!insertmacro LanguageList '!insertmacro SetSystemLangItem ${VAR}'
|
|
|
|
!macroend
|
|
|
|
!macro GetISOLangCodeItem VAR_LANGNAME VAR_LANGISOCODE LANGNAME LANGISOCODE LANGID
|
|
|
|
${if} ${VAR_LANGNAME} == "${LANGNAME}"
|
|
StrCpy ${VAR_LANGISOCODE} "${LANGISOCODE}"
|
|
${endif}
|
|
|
|
!macroend
|
|
|
|
!macro GetISOLangCode VAR_LANGNAME VAR_LANGISOCODE
|
|
|
|
;Get the language code for the selected language name
|
|
|
|
!insertmacro LanguageList '!insertmacro GetISOLangCodeItem ${VAR_LANGNAME} ${VAR_LANGISOCODE}'
|
|
|
|
!macroend
|
|
|
|
;--------------------------------
|
|
;Functions
|
|
|
|
Function InitLanguage
|
|
|
|
;Set the default for the language selection dialog to the Windows language
|
|
|
|
System::Call "kernel32::GetUserDefaultUILanguage()i.R0"
|
|
!insertmacro SetSystemLang $R0
|
|
|
|
FunctionEnd
|
|
|
|
;--------------------------------
|
|
;Page functions
|
|
|
|
Function PageLanguage
|
|
|
|
!insertmacro MUI_HEADER_TEXT "$(TEXT_LANGUAGE_TITLE)" "$(TEXT_LANGUAGE_SUBTITLE)"
|
|
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "langselect.ini"
|
|
|
|
FunctionEnd
|
|
|
|
Function PageLanguageValidate
|
|
|
|
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "langselect.ini" "Field 2" "State"
|
|
!insertmacro GetISOLangCode $LangName $LangISOCode
|
|
|
|
FunctionEnd |