summaryrefslogtreecommitdiff
path: root/sysui/desktop/share/translate.pl
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-01-08 20:12:41 +0100
committerPetr Mladek <pmladek@suse.cz>2011-01-10 16:49:46 +0100
commit6a72e7759946bcf227c6886e4e24732372ecb353 (patch)
treea9c83f00bd3452e27c6c202a4d82de01e1f70f2c /sysui/desktop/share/translate.pl
parent18e2b6173baecd1c24afdd8ccb3eb9e3ce8235b3 (diff)
Really set BrOffice in the linux desktop files
* dekstop files need "pt_BR" instead of "pt-BR" (undescore vs. dash) * "%PRODUCTNAME_BR" was wrongly substitured to "${PRODUCTNAME} ${PRODUCTVERSION}_BR"; it should be "${PRODUCTNAME_BR} ${PRODUCTVERSION}" Signed off by Michael Meeks
Diffstat (limited to 'sysui/desktop/share/translate.pl')
-rw-r--r--sysui/desktop/share/translate.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysui/desktop/share/translate.pl b/sysui/desktop/share/translate.pl
index 197c333e6f37..cdc636b7a266 100644
--- a/sysui/desktop/share/translate.pl
+++ b/sysui/desktop/share/translate.pl
@@ -37,6 +37,7 @@ eval 'exec perl -wS $0 ${1+"$@"}'
my ($prefix, $ext, $key);
$productname = "LibreOffice";
+$productname_br = "BrOffice";
$workdir = ".";
while ($_ = $ARGV[0], /^-/) {
@@ -46,6 +47,10 @@ while ($_ = $ARGV[0], /^-/) {
$productname = $ARGV[0];
shift;
}
+ if (/^-b/) {
+ $productname_br = $ARGV[0];
+ shift;
+ }
if (/^-d/) {
$workdir = $ARGV[0];
shift;
@@ -122,6 +127,7 @@ KEY: while (<TEMPLATE>) {
$value = substr($value, index($value, "\"") + 1, rindex($value, "\"") - 1);
# replace resource placeholder
+ $value=~s/%PRODUCTNAME_BR/$productname_br/g;
$value=~s/%PRODUCTNAME/$productname/g;
$locale=~s/-/_/;