Permalink
Browse files

Fix gettext export for launchpad

  • Loading branch information...
1 parent ad726a3 commit c5329337b7eaf5f1f3e23bc95a3460c9eadbe1a1 @thomascube thomascube committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/exportgettext.sh
View
@@ -175,7 +175,7 @@ function convert_file($fn, $outfn)
}
include($fn);
- $texts = $labels ? $labels : $messages;
+ $texts = array_merge($labels, $messages);
// write header
$header = <<<EOF
@@ -196,7 +196,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\\n"
EOF;
- $out = sprintf($header, $srcname, $product, $is_pot ? "POT-Creation-Date" : "PO-Revision-Date", date('c'), $lang);
+ $out = sprintf($header, $srcname, $product, $is_pot ? "POT-Creation-Date" : "PO-Revision-Date", date('c'), $shortlang ? $shortlang : $lang);
$out .= "\n";
$messages = array();

0 comments on commit c532933

Please sign in to comment.