diff options
author | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-07-22 21:21:19 (GMT) |
---|---|---|
committer | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-07-22 21:21:19 (GMT) |
commit | afe3311aa9bf23b8a4232ce83281f07568478808 (patch) | |
tree | 48e13bf29fa9747bb4ab29d9494901d0eba0dcd0 /tools | |
parent | e19b035ed943ae1ce278cb7a306d269b75ae906b (diff) |
Fixed related to the management of the default english.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/create_nsis_translations.pl | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tools/create_nsis_translations.pl b/tools/create_nsis_translations.pl index f2e8b0a..29a3da6 100755 --- a/tools/create_nsis_translations.pl +++ b/tools/create_nsis_translations.pl @@ -23,6 +23,7 @@ my %localeNames = ( "de", "German", # "dz", "Dzongkha", "el", "Greek", + "en", "English", "es", "Spanish", "eu", "Basque", # "fa", "Persian", @@ -82,7 +83,15 @@ my @localeKeys = keys(%localeNames); # !insertmacro MUI_LANGUAGE "French" my $muiLanguages; +$muiLanguages = ' + ;; English goes first because its the default. The rest are + ;; in alphabetical order (at least the strings actually displayed + ;; will be). + !insertmacro MUI_LANGUAGE "English" +'; + foreach my $lang (@localeKeys) { + if ( $lang eq "en" ) { next; } $muiLanguages .= " !insertmacro MUI_LANGUAGE \"$localeNames{$lang}\"\n"; } @@ -92,8 +101,14 @@ foreach my $lang (@localeKeys) { # By the list of locales: # !insertmacro GCOMPRIS_MACRO_INCLUDE_LANGFILE "ALBANIAN" "${GCOMPRIS_NSIS_INCLUDE_PATH}\translations\albanian.nsh" -my $gcomprisLanguages = " !define GCOMPRIS_DEFAULT_LANGFILE" . - " \"\${GCOMPRIS_NSIS_INCLUDE_PATH}\\translations\\en.nsh\"\n\n"; +my $gcomprisLanguages; + +$gcomprisLanguages .= " +;-------------------------------- +;Translations + !define GCOMPRIS_DEFAULT_LANGFILE \"\${GCOMPRIS_NSIS_INCLUDE_PATH}\\translations\\en.nsh\" + !include \"\${GCOMPRIS_NSIS_INCLUDE_PATH}\\langmacros.nsh\" +"; foreach my $lang (@localeKeys) { $gcomprisLanguages .= " !insertmacro GCOMPRIS_MACRO_INCLUDE_LANGFILE". @@ -170,6 +185,7 @@ close DESC; print "Creating the nsh locale files\n"; foreach my $lang (@localeKeys) { + if ( $lang eq "en" ) { next; } open (DESC, ">nsis/translations/$lang.nsh"); print DESC ";; Auto generated file by create_nsis_translations.pl\n"; |