installer: sync with branch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33709 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-03-11 02:27:05 +00:00
parent 2a3f27a80c
commit fc8fd3a760
3 changed files with 38 additions and 6 deletions

View File

@ -36,7 +36,6 @@ Function ConfigureLyX
Delete "${PRODUCT_BAT}" Delete "${PRODUCT_BAT}"
FileOpen $R1 "${PRODUCT_BAT}" w FileOpen $R1 "${PRODUCT_BAT}" w
FileWrite $R1 '@echo off$\r$\n\ FileWrite $R1 '@echo off$\r$\n\
SET LANG=$LangCode$\r$\n\
SET AIK_DATA_DIR=${AiksaurusDir}$\r$\n\ SET AIK_DATA_DIR=${AiksaurusDir}$\r$\n\
start "${PRODUCT_NAME}" "${LAUNCHER_EXE}" %*$\r$\n' start "${PRODUCT_NAME}" "${LAUNCHER_EXE}" %*$\r$\n'
FileClose $R1 FileClose $R1
@ -49,7 +48,8 @@ Function ConfigureLyX
FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" w FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" w
# set some general things # set some general things
FileWrite $R1 '\screen_zoom "120"$\r$\n\ FileWrite $R1 '\screen_zoom "120"$\r$\n\
\accept_compound true$\r$\n' \accept_compound true$\r$\n\
\gui_language $LangNameLyX$\r$\n'
${if} "$PathPrefix" != "" ${if} "$PathPrefix" != ""
FileWrite $R1 '\path_prefix "$PathPrefix"$\r$\n' FileWrite $R1 '\path_prefix "$PathPrefix"$\r$\n'
${endif} ${endif}

View File

@ -522,160 +522,191 @@
# To set later LyX's menu language # To set later LyX's menu language
# therefore here are only declared the languages LyX is translated to # therefore here are only declared the languages LyX is translated to
!macro GetLangCode LangCde Name LangEnc !macro GetLangCode LangCde Name LangNmeLyX LangEnc
${if} ${Name} = "Arabic" ${if} ${Name} = "Arabic"
StrCpy ${LangCde} "ar_SA" StrCpy ${LangCde} "ar_SA"
StrCpy ${LangNmeLyX} "arabic_arabi"
StrCpy ${LangEnc} "cp-1256" StrCpy ${LangEnc} "cp-1256"
${endif} ${endif}
${if} ${Name} == "Català" ${if} ${Name} == "Català"
StrCpy ${LangCde} "ca_ES" StrCpy ${LangCde} "ca_ES"
StrCpy ${LangNmeLyX} "catalan"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Ceština" ${if} ${Name} == "Ceština"
StrCpy ${LangCde} "cs_CZ" StrCpy ${LangCde} "cs_CZ"
StrCpy ${LangNmeLyX} "czech"
StrCpy ${LangEnc} "cp-1250" StrCpy ${LangEnc} "cp-1250"
${endif} ${endif}
${if} ${Name} == "Chinese (China)" ${if} ${Name} == "Chinese (China)"
StrCpy ${LangCde} "zh_CN" StrCpy ${LangCde} "zh_CN"
StrCpy ${LangNmeLyX} "chinese-simplified"
StrCpy ${LangEnc} "cp-936" StrCpy ${LangEnc} "cp-936"
${endif} ${endif}
${if} ${Name} == "Chinese (Taiwan)" ${if} ${Name} == "Chinese (Taiwan)"
StrCpy ${LangCde} "zh_TW" StrCpy ${LangCde} "zh_TW"
StrCpy ${LangNmeLyX} "chinese-traditional"
StrCpy ${LangEnc} "cp-936" StrCpy ${LangEnc} "cp-936"
${endif} ${endif}
${if} ${Name} == "Dansk" ${if} ${Name} == "Dansk"
StrCpy ${LangCde} "da_DK" StrCpy ${LangCde} "da_DK"
StrCpy ${LangNmeLyX} "danish"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Deutsch" ${if} ${Name} == "Deutsch"
StrCpy ${LangCde} "de_DE" StrCpy ${LangCde} "de_DE"
StrCpy ${LangNmeLyX} "ngerman"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "English" ${if} ${Name} == "English"
StrCpy ${LangCde} "en_EN" StrCpy ${LangCde} "en_EN"
StrCpy ${LangNmeLyX} "english"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Español" ${if} ${Name} == "Español"
StrCpy ${LangCde} "es_ES" StrCpy ${LangCde} "es_ES"
StrCpy ${LangNmeLyX} "spanish"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Euskara" ${if} ${Name} == "Euskara"
StrCpy ${LangCde} "eu_EU" StrCpy ${LangCde} "eu_EU"
StrCpy ${LangNmeLyX} "basque"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Français" ${if} ${Name} == "Français"
StrCpy ${LangCde} "fr_FR" StrCpy ${LangCde} "fr_FR"
StrCpy ${LangNmeLyX} "french"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Galego" ${if} ${Name} == "Galego"
StrCpy ${LangCde} "gl_ES" StrCpy ${LangCde} "gl_ES"
StrCpy ${LangNmeLyX} "galician"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Greek" ${if} ${Name} == "Greek"
StrCpy ${LangCde} "el_GR" StrCpy ${LangCde} "el_GR"
StrCpy ${LangNmeLyX} "greek"
StrCpy ${LangEnc} "cp-1253" StrCpy ${LangEnc} "cp-1253"
${endif} ${endif}
${if} ${Name} == "Hebrew" ${if} ${Name} == "Hebrew"
StrCpy ${LangCde} "he_IL" StrCpy ${LangCde} "he_IL"
StrCpy ${LangNmeLyX} "hebrew"
StrCpy ${LangEnc} "cp-1255" StrCpy ${LangEnc} "cp-1255"
${endif} ${endif}
${if} ${Name} == "Bahasa Indonesia" ${if} ${Name} == "Bahasa Indonesia"
StrCpy ${LangCde} "id_ID" StrCpy ${LangCde} "id_ID"
StrCpy ${LangNmeLyX} "bahasa"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Italiano" ${if} ${Name} == "Italiano"
StrCpy ${LangCde} "it_IT" StrCpy ${LangCde} "it_IT"
StrCpy ${LangNmeLyX} "italian"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Japanese" ${if} ${Name} == "Japanese"
StrCpy ${LangCde} "ja_JP" StrCpy ${LangCde} "ja_JP"
StrCpy ${LangNmeLyX} "japanese"
StrCpy ${LangEnc} "cp-932" StrCpy ${LangEnc} "cp-932"
${endif} ${endif}
${if} ${Name} == "Korean" ${if} ${Name} == "Korean"
StrCpy ${LangCde} "ko" # no country code, see the definition in the file "SVN ~/lib/languages" StrCpy ${LangCde} "ko" # no country code, see the definition in the file "SVN ~/lib/languages"
StrCpy ${LangNmeLyX} "korean"
StrCpy ${LangEnc} "cp-949" StrCpy ${LangEnc} "cp-949"
${endif} ${endif}
${if} ${Name} == "Magyar" ${if} ${Name} == "Magyar"
StrCpy ${LangCde} "hu_HU" StrCpy ${LangCde} "hu_HU"
StrCpy ${LangNmeLyX} "magyar"
StrCpy ${LangEnc} "cp-1250" StrCpy ${LangEnc} "cp-1250"
${endif} ${endif}
${if} ${Name} == "Nederlands" ${if} ${Name} == "Nederlands"
StrCpy ${LangCde} "nl_NL" StrCpy ${LangCde} "nl_NL"
StrCpy ${LangNmeLyX} "dutch"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Norsk" ${if} ${Name} == "Norsk"
StrCpy ${LangCde} "nb_NO" StrCpy ${LangCde} "nb_NO"
StrCpy ${LangNmeLyX} "norsk"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Nynorsk" ${if} ${Name} == "Nynorsk"
StrCpy ${LangCde} "nn_NO" StrCpy ${LangCde} "nn_NO"
StrCpy ${LangNmeLyX} "nynorsk"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Polski" ${if} ${Name} == "Polski"
StrCpy ${LangCde} "pl_PL" StrCpy ${LangCde} "pl_PL"
StrCpy ${LangNmeLyX} "polish"
StrCpy ${LangEnc} "cp-1250" StrCpy ${LangEnc} "cp-1250"
${endif} ${endif}
${if} ${Name} == "Português" ${if} ${Name} == "Português"
StrCpy ${LangCde} "pt_PT" StrCpy ${LangCde} "pt_PT"
StrCpy ${LangNmeLyX} "portuguese"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Româna" ${if} ${Name} == "Româna"
StrCpy ${LangCde} "ro_RO" StrCpy ${LangCde} "ro_RO"
StrCpy ${LangNmeLyX} "romanian"
StrCpy ${LangEnc} "cp-1250" StrCpy ${LangEnc} "cp-1250"
${endif} ${endif}
${if} ${Name} == "Russian" ${if} ${Name} == "Russian"
StrCpy ${LangCde} "ru_RU" StrCpy ${LangCde} "ru_RU"
StrCpy ${LangNmeLyX} "russian"
StrCpy ${LangEnc} "cp-1251" StrCpy ${LangEnc} "cp-1251"
${endif} ${endif}
${if} ${Name} == "Slovenský" ${if} ${Name} == "Slovenský"
StrCpy ${LangCde} "sk_SK" StrCpy ${LangCde} "sk_SK"
StrCpy ${LangNmeLyX} "slovak"
StrCpy ${LangEnc} "cp-1250" StrCpy ${LangEnc} "cp-1250"
${endif} ${endif}
${if} ${Name} == "Slovenšcina" ${if} ${Name} == "Slovenšcina"
StrCpy ${LangCde} "sl_SI" StrCpy ${LangCde} "sl_SI"
StrCpy ${LangNmeLyX} "slovene"
StrCpy ${LangEnc} "cp-1250" StrCpy ${LangEnc} "cp-1250"
${endif} ${endif}
${if} ${Name} == "Suomi" ${if} ${Name} == "Suomi"
StrCpy ${LangCde} "fi_FI" StrCpy ${LangCde} "fi_FI"
StrCpy ${LangNmeLyX} "finnish"
StrCpy ${LangEnc} "cp-1252" StrCpy ${LangEnc} "cp-1252"
${endif} ${endif}
${if} ${Name} == "Türkçe" ${if} ${Name} == "Türkçe"
StrCpy ${LangCde} "tr_TR" StrCpy ${LangCde} "tr_TR"
StrCpy ${LangNmeLyX} "turkish"
StrCpy ${LangEnc} "cp-1254" StrCpy ${LangEnc} "cp-1254"
${endif} ${endif}
${if} ${Name} == "Ukrainian" ${if} ${Name} == "Ukrainian"
StrCpy ${LangCde} "uk_UA" StrCpy ${LangCde} "uk_UA"
StrCpy ${LangNmeLyX} "ukrainian"
StrCpy ${LangEnc} "cp-1251" StrCpy ${LangEnc} "cp-1251"
${endif} ${endif}
@ -708,9 +739,9 @@ FunctionEnd
Function SelectMenuLanguage_LeaveFunction Function SelectMenuLanguage_LeaveFunction
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State" !insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State"
# Get the language code # Get the LyX GUI language name
StrCpy $LangCode "" StrCpy $LangNameLyX ""
!insertmacro GetLangCode $LangCode $LangName $LangEncoding !insertmacro GetLangCode $LangCode $LangName $LangNameLyX $LangEncoding
FunctionEnd FunctionEnd

View File

@ -15,6 +15,7 @@ Var JabRefInstalled
Var LangCode Var LangCode
Var LangCodeSys Var LangCodeSys
Var LangName Var LangName
Var LangNameLyX
Var LangNameSys Var LangNameSys
Var LatexPath Var LatexPath
Var MiKTeXInstalled Var MiKTeXInstalled