ooo-build r12295 - in trunk: . patches/dev300
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r12295 - in trunk: . patches/dev300
- Date: Tue, 22 Apr 2008 22:21:27 +0100 (BST)
Author: tml
Date: Tue Apr 22 21:21:27 2008
New Revision: 12295
URL: http://svn.gnome.org/viewvc/ooo-build?rev=12295&view=rev
Log:
2008-04-23 Tor Lillqvist <tml novell com>
* patches/dev300/win32-multi-lang-installer.diff
(solenv/bin/modules/installer/download.pm): Fix problem where the
NSIS wrapper was created with its English messages replaced by
those for the last language for which there is no NSIS
localisation, for us usually Zulu. Still need to file upstream
issue about this.
Modified:
trunk/ChangeLog
trunk/patches/dev300/win32-multi-lang-installer.diff
Modified: trunk/patches/dev300/win32-multi-lang-installer.diff
==============================================================================
--- trunk/patches/dev300/win32-multi-lang-installer.diff (original)
+++ trunk/patches/dev300/win32-multi-lang-installer.diff Tue Apr 22 21:21:27 2008
@@ -490,6 +490,29 @@
replace_one_variable($templatefile, "PRODUCTPATHPLACEHOLDER", $productpath);
}
+@@ -1140,11 +1140,12 @@
+
+ sub translate_nsh_nlf_file
+ {
+- my ($nshfile, $nlffile, $mlffile, $onelanguage, $nshfilename, $nlffilename) = @_;
++ my ($nshfile, $nlffile, $mlffile, $onelanguage, $nshfilename, $nlffilename, $nsislanguage) = @_;
+
+ # Analyzing the mlf file, collecting all Identifier
+ my $allidentifier = get_identifier($mlffile);
+
++ $onelanguage = 'en-US' if ($nsislanguage eq 'English' && $onelanguage ne 'en-US');
+ for ( my $i = 0; $i <= $#{$allidentifier}; $i++ )
+ {
+ my $identifier = ${$allidentifier}[$i];
+@@ -1195,7 +1196,7 @@
+
+ # Translate the files
+ my $nlffile = installer::files::read_file($nlffilename);
+- translate_nsh_nlf_file($nshfile, $nlffile, $mlffile, $onelanguage, $nshfilename, $nlffilename);
++ translate_nsh_nlf_file($nshfile, $nlffile, $mlffile, $onelanguage, $nshfilename, $nlffilename, $nsislanguage);
+
+ installer::files::save_file($nshfilename, $nshfile);
+ installer::files::save_file($nlffilename, $nlffile);
--- instsetoo_native/util/makefile.mk
+++ instsetoo_native/util/makefile.mk
@@ -222,7 +222,7 @@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]