Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBruno Coudoin <bruno.coudoin@free.fr>2009-07-22 23:06:17 (GMT)
committer Bruno Coudoin <bruno.coudoin@free.fr>2009-07-22 23:06:17 (GMT)
commitff503787406f1601a29b67bc8add06935f119e7c (patch)
treed307c32b399ee9974ebb844cd484de59ec4f72e8 /tools
parentfb6720ae94260910ff52c7dc0beb00e893d3e883 (diff)
Minor simplification. There is only a single @INSERT_TRANSLATIONS@
to add in the installer file.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/create_nsis_translations.pl9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/create_nsis_translations.pl b/tools/create_nsis_translations.pl
index 24c6a15..119bfe8 100755
--- a/tools/create_nsis_translations.pl
+++ b/tools/create_nsis_translations.pl
@@ -170,6 +170,7 @@ $gcomprisLanguages .= '
my $text_en = $result{"en"};
foreach my $keyEn (keys(%$text_en)) {
$gcomprisLanguages .= " !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT $keyEn \${CUR_LANG}";
+ $gcomprisLanguages .= "\n";
}
$gcomprisLanguages .= '
@@ -195,14 +196,10 @@ foreach my $lang (@localeKeys) {
my $gcomprisInstaller;
open (MYFILE, 'gcompris-installer.nsi');
while (<MYFILE>) {
- if ($_ =~ /\@INSERTMACRO_MUI_LANGUAGE\@/)
+ if ($_ =~ /\@INSERT_TRANSLATIONS\@/)
{
- print "Processing \@INSERTMACRO_MUI_LANGUAGE\@\n";
+ print "Processing \@INSERT_TRANSLATIONS\@\n";
$gcomprisInstaller .= $muiLanguages;
- }
- elsif ($_ =~ /\@GCOMPRIS_MACRO_INCLUDE_LANGFILE\@/)
- {
- print "Processing \@GCOMPRIS_MACRO_INCLUDE_LANGFILE\@\n";
$gcomprisInstaller .= $gcomprisLanguages;
}
else