2007-05-01 17:55:54 +00:00
# Language settings for the installer
# create language code for the Windows system language
2007-02-08 21:09:30 +00:00
2007-05-01 17:55:54 +00:00
# LangNme is the language name when there exists a LyX translation for this language; used for the menu language dialog and for the Aspell installation
# LangNmeSys is the Windows system language; used for the Aspell installation
# LangCdeSys is the ISO 630 language code of the language; used for the Aspell installation
2007-07-16 22:02:03 +00:00
# LangSysEnc is the Windows codepage for the character encoding of the language; can be used in lyx.bat to assure that scripts are correctly executed
2007-02-08 21:09:30 +00:00
!macro TranslateLangCode LangNme LangNmeSys LangCdeSys LangISOCode LangSysEnc
StrCpy ${LangCdeSys} ""
${if} ${LangISOCode} = 1025
2008-08-05 23:51:43 +00:00
StrCpy ${LangNme} "Arabic"
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "ar"
StrCpy ${LangNmeSys} "Arabic"
StrCpy ${LangSysEnc} "1256"
${endif}
${if} ${LangISOCode} = 1026
StrCpy ${LangCdeSys} "bg"
StrCpy ${LangNmeSys} "Bulgarian"
StrCpy ${LangSysEnc} "1251"
${endif}
${if} ${LangISOCode} = 1027
2008-08-06 23:26:39 +00:00
StrCpy ${LangNme} "Catal<61> "
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "ca"
StrCpy ${LangNmeSys} "Catal<61> "
StrCpy ${LangSysEnc} "1252"
${endif}
2007-05-01 17:55:54 +00:00
# currently no dictionary available
2007-06-29 19:49:42 +00:00
${if} ${LangISOCode} = 1028
2007-07-16 22:02:03 +00:00
StrCpy ${LangNme} "Chinese (Taiwan)"
2007-06-29 19:49:42 +00:00
StrCpy ${LangCdeSys} "zh_TW"
StrCpy ${LangNmeSys} "Chinese"
StrCpy ${LangSysEnc} "936"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1029
StrCpy ${LangNme} "Ce<43> tina"
StrCpy ${LangCdeSys} "cs"
StrCpy ${LangNmeSys} "Ce<43> tina"
StrCpy ${LangSysEnc} "1250"
${endif}
${if} ${LangISOCode} = 1030
StrCpy ${LangNme} "Dansk"
StrCpy ${LangCdeSys} "da"
StrCpy ${LangNmeSys} "Dansk"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1031
StrCpy ${LangNme} "Deutsch"
StrCpy ${LangCdeSys} "de"
StrCpy ${LangNmeSys} "Deutsch"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1032
2010-02-26 01:10:41 +00:00
StrCpy ${LangNme} "Greek"
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "el"
StrCpy ${LangNmeSys} "Greek"
StrCpy ${LangSysEnc} "1253"
${endif}
${if} ${LangISOCode} = 1033
StrCpy ${LangNme} "English"
StrCpy ${LangCdeSys} "en"
StrCpy ${LangNmeSys} "English"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1034
StrCpy ${LangNme} "Espa<70> ol"
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1035
StrCpy ${LangNme} "Suomi"
StrCpy ${LangCdeSys} "fi"
StrCpy ${LangNmeSys} "Suomi"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1036
StrCpy ${LangNme} "Fran<61> ais"
StrCpy ${LangCdeSys} "fr"
StrCpy ${LangNmeSys} "Fran<61> ais"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1037
2007-05-28 11:27:16 +00:00
StrCpy ${LangNme} "Hebrew"
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "he"
StrCpy ${LangNmeSys} "Hebrew"
StrCpy ${LangSysEnc} "1255"
${endif}
${if} ${LangISOCode} = 1038
StrCpy ${LangNme} "Magyar"
StrCpy ${LangCdeSys} "hu"
StrCpy ${LangNmeSys} "Magyar"
StrCpy ${LangSysEnc} "1250"
${endif}
${if} ${LangISOCode} = 1039
StrCpy ${LangCdeSys} "is"
StrCpy ${LangNmeSys} "<22> slenska"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1040
StrCpy ${LangNme} "Italiano"
StrCpy ${LangCdeSys} "it"
StrCpy ${LangNmeSys} "Italiano"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-05-28 11:27:16 +00:00
# currently no dictionary available
${if} ${LangISOCode} = 1041
StrCpy ${LangNme} "Japanese"
StrCpy ${LangCdeSys} "ja"
StrCpy ${LangNmeSys} "Japanese"
StrCpy ${LangSysEnc} "932"
${endif}
2007-02-08 21:09:30 +00:00
2007-05-31 21:21:37 +00:00
# currently no dictionary available
${if} ${LangISOCode} = 1042
StrCpy ${LangNme} "Korean"
StrCpy ${LangCdeSys} "ko"
StrCpy ${LangNmeSys} "Korean"
StrCpy ${LangSysEnc} "949"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1043
StrCpy ${LangNme} "Nederlands"
StrCpy ${LangCdeSys} "nl"
StrCpy ${LangNmeSys} "Nederlands"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1044
StrCpy ${LangNme} "Norsk"
StrCpy ${LangCdeSys} "no"
StrCpy ${LangNmeSys} "Norsk"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1045
StrCpy ${LangNme} "Polski"
StrCpy ${LangCdeSys} "pl"
StrCpy ${LangNmeSys} "Polski"
StrCpy ${LangSysEnc} "1250"
${endif}
2008-07-24 16:56:59 +00:00
${if} ${LangISOCode} = 1046 # for Portuguese (brasilian)
2007-08-14 22:32:02 +00:00
StrCpy ${LangNme} "Portugu<67> s"
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "pt"
StrCpy ${LangNmeSys} "Portugu<67> s"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 1048
StrCpy ${LangNme} "Rom<6F> na"
StrCpy ${LangCdeSys} "ro"
StrCpy ${LangNmeSys} "Rom<6F> na"
StrCpy ${LangSysEnc} "1250"
${endif}
${if} ${LangISOCode} = 1049
StrCpy ${LangNme} "Russian"
StrCpy ${LangCdeSys} "ru"
StrCpy ${LangNmeSys} "Russian"
StrCpy ${LangSysEnc} "1251"
${endif}
${if} ${LangISOCode} = 1050
StrCpy ${LangCdeSys} "hr"
StrCpy ${LangNmeSys} "Hrvatski"
StrCpy ${LangSysEnc} "1250"
${endif}
${if} ${LangISOCode} = 1051
StrCpy ${LangNme} "Slovensk<73> "
StrCpy ${LangCdeSys} "sk"
StrCpy ${LangNmeSys} "Slovensk<73> "
StrCpy ${LangSysEnc} "1250"
${endif}
2007-05-01 17:55:54 +00:00
# currently no dictionary available
# ${if} ${LangISOCode} = 1052
# StrCpy ${LangCdeSys} "sq"
# StrCpy ${LangNmeSys} "Shqip"
# StrCpy ${LangSysEnc} "1252"
# ${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1053
StrCpy ${LangNme} "Svenska"
StrCpy ${LangCdeSys} "sv"
StrCpy ${LangNmeSys} "Svenska"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-05-01 17:55:54 +00:00
# currently no dictionary available
# ${if} ${LangISOCode} = 1054
# StrCpy ${LangCdeSys} "th"
# StrCpy ${LangNmeSys} "Thai"
# StrCpy ${LangSysEnc} "874"
# ${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1055
StrCpy ${LangNme} "T<> rk<72> e"
StrCpy ${LangCdeSys} "tr"
StrCpy ${LangNmeSys} "T<> rk<72> e"
StrCpy ${LangSysEnc} "1254"
${endif}
2007-07-14 12:15:37 +00:00
${if} ${LangISOCode} = 1057
2009-04-11 19:20:47 +00:00
StrCpy ${LangNme} "Bahasa Indonesia"
2007-07-14 12:15:37 +00:00
StrCpy ${LangCdeSys} "id"
2009-04-11 19:20:47 +00:00
StrCpy ${LangNmeSys} "Indonesia"
StrCpy ${LangSysEnc} "1252"
2007-07-14 12:15:37 +00:00
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1058
2008-08-05 23:51:43 +00:00
StrCpy ${LangNme} "Ukrainian"
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "uk"
StrCpy ${LangNmeSys} "Ukrainian"
StrCpy ${LangSysEnc} "1251"
${endif}
${if} ${LangISOCode} = 1060
StrCpy ${LangNme} "Sloven<65> cina"
StrCpy ${LangCdeSys} "sl"
StrCpy ${LangNmeSys} "Sloven<65> cina"
StrCpy ${LangSysEnc} "1250"
${endif}
${if} ${LangISOCode} = 1061
StrCpy ${LangCdeSys} "et"
StrCpy ${LangNmeSys} "Eesti"
StrCpy ${LangSysEnc} "1257"
${endif}
${if} ${LangISOCode} = 1062
StrCpy ${LangCdeSys} "lv"
StrCpy ${LangNmeSys} "Latvie<69> u"
StrCpy ${LangSysEnc} "1257"
${endif}
${if} ${LangISOCode} = 1063
StrCpy ${LangCdeSys} "lt"
StrCpy ${LangNmeSys} "Lietuva"
StrCpy ${LangSysEnc} "1257"
${endif}
2007-06-21 00:57:55 +00:00
${if} ${LangISOCode} = 1065
StrCpy ${LangCdeSys} "fa"
StrCpy ${LangNmeSys} "Farsi"
${endif}
${if} ${LangISOCode} = 1067
StrCpy ${LangCdeSys} "hy"
StrCpy ${LangNmeSys} "Armenian"
${endif}
2007-02-08 21:09:30 +00:00
2007-05-01 17:55:54 +00:00
# currently no dictionary available
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1069
StrCpy ${LangNme} "Euskara"
StrCpy ${LangCdeSys} "eu"
StrCpy ${LangNmeSys} "Euskara"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-07-14 12:15:37 +00:00
${if} ${LangISOCode} = 1071
StrCpy ${LangCdeSys} "mk"
StrCpy ${LangNmeSys} "Macedonian"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1078
StrCpy ${LangCdeSys} "af"
StrCpy ${LangNmeSys} "Afrikaans"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-06-21 00:57:55 +00:00
${if} ${LangISOCode} = 1081
StrCpy ${LangCdeSys} "hi"
StrCpy ${LangNmeSys} "Hindi"
${endif}
2007-02-08 21:09:30 +00:00
2007-07-14 12:15:37 +00:00
${if} ${LangISOCode} = 1086
StrCpy ${LangCdeSys} "ms"
StrCpy ${LangNmeSys} "Malay"
${endif}
${if} ${LangISOCode} = 1089
StrCpy ${LangCdeSys} "sw"
StrCpy ${LangNmeSys} "Swahili"
${endif}
${if} ${LangISOCode} = 1094
StrCpy ${LangCdeSys} "pa"
StrCpy ${LangNmeSys} "Punjabi"
${endif}
${if} ${LangISOCode} = 1095
StrCpy ${LangCdeSys} "gu"
StrCpy ${LangNmeSys} "Gujarati"
${endif}
${if} ${LangISOCode} = 1097
StrCpy ${LangCdeSys} "ta"
StrCpy ${LangNmeSys} "Tamil"
${endif}
${if} ${LangISOCode} = 1098
StrCpy ${LangCdeSys} "te"
StrCpy ${LangNmeSys} "Telugu"
${endif}
${if} ${LangISOCode} = 1102
StrCpy ${LangCdeSys} "mr"
StrCpy ${LangNmeSys} "Marathi"
${endif}
# currently no dictionary available
# ${if} ${LangISOCode} = 1103
# StrCpy ${LangCdeSys} "sa"
# StrCpy ${LangNmeSys} "Sanskrit"
# ${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 1110
StrCpy ${LangNme} "Galego"
StrCpy ${LangCdeSys} "gl"
StrCpy ${LangNmeSys} "Galego"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-05-01 17:55:54 +00:00
# currently no dictionary available
2007-06-29 00:14:50 +00:00
${if} ${LangISOCode} = 2052
2007-07-16 22:02:03 +00:00
StrCpy ${LangNme} "Chinese (China)"
StrCpy ${LangCdeSys} "zh_CN"
2007-06-29 00:14:50 +00:00
StrCpy ${LangNmeSys} "Chinese"
StrCpy ${LangSysEnc} "936"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 2055
StrCpy ${LangCdeSys} "de"
StrCpy ${LangNmeSys} "Deutsch"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2057
StrCpy ${LangCdeSys} "en"
StrCpy ${LangNmeSys} "English"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2058
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2060
StrCpy ${LangCdeSys} "fr"
StrCpy ${LangNmeSys} "Fran<61> ais"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2064
StrCpy ${LangCdeSys} "it"
StrCpy ${LangNmeSys} "Italiano"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2067
StrCpy ${LangCdeSys} "nl"
StrCpy ${LangNmeSys} "Nederlands"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2068
StrCpy ${LangNme} "Nynorsk"
StrCpy ${LangCdeSys} "nn"
StrCpy ${LangNmeSys} "Nynorsk"
StrCpy ${LangSysEnc} "1252"
${endif}
2008-07-24 16:56:59 +00:00
${if} ${LangISOCode} = 2070 # for Portuguese
2007-08-14 22:32:02 +00:00
StrCpy ${LangNme} "Portugu<67> s"
2007-02-08 21:09:30 +00:00
StrCpy ${LangCdeSys} "pt"
StrCpy ${LangNmeSys} "Portugu<67> s"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 2074
StrCpy ${LangCdeSys} "sr"
StrCpy ${LangNmeSys} "Srpski"
StrCpy ${LangSysEnc} "1250"
${endif}
${if} ${LangISOCode} = 2077
StrCpy ${LangCdeSys} "sv"
StrCpy ${LangNmeSys} "Svenska"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-07-14 12:15:37 +00:00
${if} ${LangISOCode} = 2110
StrCpy ${LangCdeSys} "ms"
StrCpy ${LangNmeSys} "Malay"
${endif}
2007-06-29 00:14:50 +00:00
# currently no dictionary available
${if} ${LangISOCode} = 3076
2007-07-16 22:02:03 +00:00
StrCpy ${LangNme} "Chinese (China)"
StrCpy ${LangCdeSys} "zh_CN"
2007-06-29 19:49:42 +00:00
StrCpy ${LangNmeSys} "Chinese"
2007-06-29 00:14:50 +00:00
StrCpy ${LangSysEnc} "936"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 3079
StrCpy ${LangCdeSys} "de"
StrCpy ${LangNmeSys} "Deutsch"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 3081
StrCpy ${LangCdeSys} "en"
StrCpy ${LangNmeSys} "English"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 3082
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 3084
StrCpy ${LangCdeSys} "fr"
StrCpy ${LangNmeSys} "Fran<61> ais"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 4103
StrCpy ${LangCdeSys} "de"
StrCpy ${LangNmeSys} "Deutsch"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 4105
StrCpy ${LangCdeSys} "en"
StrCpy ${LangNmeSys} "English"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 4108
StrCpy ${LangCdeSys} "fr"
StrCpy ${LangNmeSys} "Fran<61> ais"
StrCpy ${LangSysEnc} "1252"
${endif}
2007-07-16 22:02:03 +00:00
# currently no dictionary available
${if} ${LangISOCode} = 5124
StrCpy ${LangNme} "Chinese (China)"
StrCpy ${LangCdeSys} "zh_CN"
StrCpy ${LangNmeSys} "Chinese"
StrCpy ${LangSysEnc} "936"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${LangISOCode} = 5129
StrCpy ${LangCdeSys} "en"
StrCpy ${LangNmeSys} "English"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 5132
StrCpy ${LangCdeSys} "fr"
StrCpy ${LangNmeSys} "Fran<61> ais"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 7177
StrCpy ${LangCdeSys} "en"
StrCpy ${LangNmeSys} "English"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 11274
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 13322
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 14346
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
${if} ${LangISOCode} = 20490
StrCpy ${LangCdeSys} "es"
StrCpy ${LangNmeSys} "Espa<70> ol"
StrCpy ${LangSysEnc} "1252"
${endif}
!macroend
2007-05-01 17:55:54 +00:00
#------------------------------------------
2007-02-08 21:09:30 +00:00
2007-05-28 11:27:16 +00:00
# To set later LyX's menu language
# therefore here are only declared the languages LyX is translated to
2007-02-08 21:09:30 +00:00
!macro GetLangCode LangCde Name LangEnc
2008-08-03 23:41:33 +00:00
${if} ${Name} = "Arabic"
StrCpy ${LangCde} "ar_SA"
StrCpy ${LangEnc} "cp-1256"
${endif}
2007-08-21 00:01:08 +00:00
${if} ${Name} == "Catal<61> "
StrCpy ${LangCde} "ca_ES"
StrCpy ${LangEnc} "cp-1252"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${Name} == "Ce<43> tina"
StrCpy ${LangCde} "cs_CZ"
StrCpy ${LangEnc} "cp-1250"
${endif}
2007-05-31 21:21:37 +00:00
2007-07-16 22:02:03 +00:00
${if} ${Name} == "Chinese (China)"
StrCpy ${LangCde} "zh_CN"
StrCpy ${LangEnc} "cp-936"
${endif}
${if} ${Name} == "Chinese (Taiwan)"
2007-06-29 00:14:50 +00:00
StrCpy ${LangCde} "zh_TW"
StrCpy ${LangEnc} "cp-936"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${Name} == "Dansk"
StrCpy ${LangCde} "da_DK"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Deutsch"
StrCpy ${LangCde} "de_DE"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "English"
StrCpy ${LangCde} "en_EN"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Espa<70> ol"
StrCpy ${LangCde} "es_ES"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Euskara"
StrCpy ${LangCde} "eu_EU"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Fran<61> ais"
StrCpy ${LangCde} "fr_FR"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Galego"
StrCpy ${LangCde} "gl_ES"
StrCpy ${LangEnc} "cp-1252"
${endif}
2010-02-26 01:10:41 +00:00
${if} ${Name} == "Greek"
StrCpy ${LangCde} "el_GR"
StrCpy ${LangEnc} "cp-1253"
${endif}
2007-05-28 11:27:16 +00:00
${if} ${Name} == "Hebrew"
StrCpy ${LangCde} "he_IL"
StrCpy ${LangEnc} "cp-1255"
${endif}
2009-04-11 19:20:47 +00:00
${if} ${Name} == "Bahasa Indonesia"
StrCpy ${LangCde} "id_ID"
StrCpy ${LangEnc} "cp-1252"
${endif}
2007-05-31 21:21:37 +00:00
2007-02-08 21:09:30 +00:00
${if} ${Name} == "Italiano"
StrCpy ${LangCde} "it_IT"
StrCpy ${LangEnc} "cp-1252"
${endif}
2007-05-31 21:21:37 +00:00
2007-05-28 11:27:16 +00:00
${if} ${Name} == "Japanese"
StrCpy ${LangCde} "ja_JP"
StrCpy ${LangEnc} "cp-932"
${endif}
2007-02-08 21:09:30 +00:00
2007-05-31 21:21:37 +00:00
${if} ${Name} == "Korean"
StrCpy ${LangCde} "ko" # no country code, see the definition in the file "SVN ~/lib/languages"
StrCpy ${LangEnc} "cp-949"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${Name} == "Magyar"
StrCpy ${LangCde} "hu_HU"
StrCpy ${LangEnc} "cp-1250"
${endif}
${if} ${Name} == "Nederlands"
StrCpy ${LangCde} "nl_NL"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Norsk"
StrCpy ${LangCde} "nb_NO"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Nynorsk"
StrCpy ${LangCde} "nn_NO"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "Polski"
StrCpy ${LangCde} "pl_PL"
StrCpy ${LangEnc} "cp-1250"
${endif}
2007-08-14 22:32:02 +00:00
${if} ${Name} == "Portugu<67> s"
StrCpy ${LangCde} "pt_PT"
StrCpy ${LangEnc} "cp-1252"
${endif}
2007-02-08 21:09:30 +00:00
${if} ${Name} == "Rom<6F> na"
StrCpy ${LangCde} "ro_RO"
StrCpy ${LangEnc} "cp-1250"
${endif}
${if} ${Name} == "Russian"
StrCpy ${LangCde} "ru_RU"
StrCpy ${LangEnc} "cp-1251"
${endif}
${if} ${Name} == "Slovensk<73> "
StrCpy ${LangCde} "sk_SK"
StrCpy ${LangEnc} "cp-1250"
${endif}
${if} ${Name} == "Sloven<65> cina"
StrCpy ${LangCde} "sl_SI"
StrCpy ${LangEnc} "cp-1250"
${endif}
${if} ${Name} == "Suomi"
StrCpy ${LangCde} "fi_FI"
StrCpy ${LangEnc} "cp-1252"
${endif}
${if} ${Name} == "T<> rk<72> e"
StrCpy ${LangCde} "tr_TR"
StrCpy ${LangEnc} "cp-1254"
${endif}
2008-07-24 16:56:59 +00:00
${if} ${Name} == "Ukrainian"
StrCpy ${LangCde} "uk_UA"
StrCpy ${LangEnc} "cp-1251"
${endif}
2007-02-08 21:09:30 +00:00
!macroend
2007-05-01 17:55:54 +00:00
#--------------------
# function that creates the installer page for the language setting
2007-02-08 21:09:30 +00:00
Function SelectMenuLanguage
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "io_ui_language.ini"
${if} $LangName == ""
2007-05-28 11:27:16 +00:00
# translate NSIS's language code to the language name
2007-02-08 21:09:30 +00:00
!insertmacro TranslateLangCode $LangName $LangNameSys $LangCodeSys $Language $LangSysEncoding
${endif}
${if} $LangName == ""
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 2" "State" "English"
${else}
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 2" "State" "$LangName"
${endif}
!insertmacro MUI_HEADER_TEXT "$(LangSelectHeader)" ""
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 1" "Text" "$(AvailableLang)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "io_ui_language.ini"
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State"
FunctionEnd
Function SelectMenuLanguage_LeaveFunction
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State"
2007-05-01 17:55:54 +00:00
# Get the language code
2007-02-08 21:09:30 +00:00
StrCpy $LangCode ""
2008-08-05 23:51:43 +00:00
!insertmacro GetLangCode $LangCode $LangName $LangEncoding
2007-02-08 21:09:30 +00:00
FunctionEnd