From c2f5e09900561d417d53a74fd6bc189cb7d898e1 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Tue, 3 Dec 2013 08:19:36 +0100 Subject: Zip .ui translations per UIConfig target. Fix installer / scp2 to not ignore directory prefix in 'Name'. Change-Id: Ib319363c8be73a72029f1ba3833e518e15c55e29 Reviewed-on: https://gerrit.libreoffice.org/6915 Reviewed-by: David Tardon Tested-by: David Tardon --- scp2/macros/macro.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'scp2/macros') diff --git a/scp2/macros/macro.pl b/scp2/macros/macro.pl index 3ebeabeeea76..3e7e415fe2a9 100644 --- a/scp2/macros/macro.pl +++ b/scp2/macros/macro.pl @@ -50,6 +50,7 @@ write_DIR_ISOLANGUAGE_ALL_LANG(); write_DIR_ISOLANGUAGE_ALL_LANG_LPROJ(); write_EXTRA_ALL_LANG(); write_EXTRA_ALL_LANG_BUT_EN_US(); +write_UI_ALL_LANG_BUT_EN_US(); write_EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG(); write_RESFILE_ALL_LANG(); write_README_ALL_LANG(); @@ -166,6 +167,21 @@ sub write_EXTRA_ALL_LANG_BUT_EN_US print OUTFILE "\n\n"; } +sub write_UI_ALL_LANG_BUT_EN_US +{ + print OUTFILE "#define UI_ALL_LANG_BUT_EN_US(name) "; + my $first = 1; + foreach $lang (@completelangiso) { + if ($lang ne "en-US") { + print OUTFILE "; " unless $first; + $first = 0; + print OUTFILE + "\\\n\tName ($lang) = STRING(CONCAT2(name,/ui/res/$lang.zip))"; + } + } + print OUTFILE "\n\n"; +} + sub write_EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG { my $first = 1; -- cgit