diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-12-15 17:08:26 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-12-15 17:59:29 +0000 |
commit | 3dba62a7fae0f1824490cf4af4aebddc39a50aa4 (patch) | |
tree | c5d4be9531e9f0b854e0a184bdd614e594d4814c /solenv | |
parent | 5ebc649e32810538ce16d9aa0985082f9f7d6052 (diff) |
Use BrOffice branding if present in pt-BR
Signed off by Petr Mladek
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/windows/property.pm | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/solenv/bin/modules/installer/windows/property.pm b/solenv/bin/modules/installer/windows/property.pm index 10e632ecd229..b4614c6e8630 100644 --- a/solenv/bin/modules/installer/windows/property.pm +++ b/solenv/bin/modules/installer/windows/property.pm @@ -142,11 +142,25 @@ sub get_english_language_string return $langstring; } -sub get_productname_for_property_table +sub get_productname($$) { - my ( $allvariables ) = @_; + my ( $language, $allvariables ) = @_; my $name = $allvariables->{'PRODUCTNAME'}; + + # BrOffice has its own locale-specific name + if ($language eq 'pt-BR' && defined $allvariables->{'PRODUCTNAME_BR'}) { + $name = $allvariables->{'PRODUCTNAME_BR'}; + } + + return $name; +} + +sub get_productname_for_property_table($$) +{ + my ( $language, $allvariables ) = @_; + + my $name = get_productname ($language, $allvariables); my $version = $allvariables->{'PRODUCTVERSION'}; my $productname = $name . " " . $version; @@ -185,13 +199,12 @@ sub get_productname_for_property_table return $productname; } -sub get_quickstarterlinkname_for_property_table +sub get_quickstarterlinkname_for_property_table($$) { - my ( $allvariables ) = @_; + my ( $language, $allvariables ) = @_; # no usage of POSTVERSIONEXTENSION for Quickstarter link name! - - my $name = $allvariables->{'PRODUCTNAME'}; + my $name = get_productname ($language, $allvariables); my $version = $allvariables->{'PRODUCTVERSION'}; my $quickstartername = $name . " " . $version; @@ -478,9 +491,9 @@ sub update_property_table my $ischeckforproductupdates = get_ischeckforproductupdates_for_property_table(); my $manufacturer = get_manufacturer_for_property_table(); my $productlanguage = get_productlanguage_for_property_table($language); - my $productname = get_productname_for_property_table($allvariables); + my $productname = get_productname_for_property_table($language, $allvariables); my $productversion = get_productversion_for_property_table(); - my $quickstarterlinkname = get_quickstarterlinkname_for_property_table($allvariables); + my $quickstarterlinkname = get_quickstarterlinkname_for_property_table($language, $allvariables); # Updating the values |