diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-08-01 10:18:30 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-08-01 10:18:30 +0000 |
commit | d95b435cf3b21204ef1a74fdeee7aa3cdac1dcab (patch) | |
tree | 3dfe2704cd169b1276c422ced6e1abe13a668d1e /solenv/bin/modules/installer/windows/property.pm | |
parent | c7a684a95206a92e87ed9f321f9f3ed028fb9f4a (diff) |
INTEGRATION: CWS native177 (1.28.10); FILE MERGED
2008/07/25 13:41:22 is 1.28.10.1: #i92002# using english strings
Diffstat (limited to 'solenv/bin/modules/installer/windows/property.pm')
-rw-r--r-- | solenv/bin/modules/installer/windows/property.pm | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/windows/property.pm b/solenv/bin/modules/installer/windows/property.pm index 172d61330566..8d9fc8f060a2 100644 --- a/solenv/bin/modules/installer/windows/property.pm +++ b/solenv/bin/modules/installer/windows/property.pm @@ -8,7 +8,7 @@ # # $RCSfile: property.pm,v $ # -# $Revision: 1.30 $ +# $Revision: 1.31 $ # # This file is part of OpenOffice.org. # @@ -124,6 +124,28 @@ sub get_language_string return $langstring; } +sub get_english_language_string +{ + my $langstring = ""; + + # Sorting value not keys, therefore collecting all values + my %helper = (); + foreach my $lang ( keys %installer::globals::all_required_english_languagestrings ) + { + $helper{$installer::globals::all_required_english_languagestrings{$lang}} = 1; + } + + foreach my $lang ( sort keys %helper ) + { + $langstring = $langstring . $lang . ", "; + } + + $langstring =~ s/\,\s*$//; + $langstring = "(" . $langstring . ")"; + + return $langstring; +} + sub get_productname_for_property_table { my ( $allvariables ) = @_; @@ -148,7 +170,8 @@ sub get_productname_for_property_table if ( $installer::globals::languagepack ) { - my $langstring = get_language_string(); # Example (English, Deutsch) + # my $langstring = get_language_string(); # Example (English, Deutsch) + my $langstring = get_english_language_string(); # New: (English, German) $productname = $name . " " . $version . " Language Pack" . " " . $langstring; } |