diff options
author | obo <obo@openoffice.org> | 2010-04-26 13:21:10 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-04-26 13:21:10 +0200 |
commit | 44cadf6aa6febee614cfecbb7d894bf6b0cc3344 (patch) | |
tree | 2dfb0a954365fadc2e95645dc062f4677cf1af77 | |
parent | 30f08073f728381e2dfc889df10d380ee3b89143 (diff) |
#162080# multi lang installation setsooo/OOO320_m16
-rw-r--r-- | solenv/bin/modules/installer/control.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/solenv/bin/modules/installer/control.pm b/solenv/bin/modules/installer/control.pm index 587338ee6..ab7a0db3b 100644 --- a/solenv/bin/modules/installer/control.pm +++ b/solenv/bin/modules/installer/control.pm @@ -405,6 +405,16 @@ sub determine_ship_directory my $shipdrive = $ENV{'SHIPDRIVE'}; my $languagestring = $$languagesref; + + if (length($languagestring) > $installer::globals::max_lang_length ) + { + my $number_of_languages = installer::systemactions::get_number_of_langs($languagestring); + chomp(my $shorter = `echo $languagestring | md5sum | sed -e "s/ .*//g"`); + # $languagestring = $shorter; + my $id = substr($shorter, 0, 8); # taking only the first 8 digits + $languagestring = "lang_" . $number_of_languages . "_id_" . $id; + } + my $productstring = $installer::globals::product; my $productsubdir = ""; |