From c5329337b7eaf5f1f3e23bc95a3460c9eadbe1a1 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 03 Jan 2012 12:48:29 -0500
Subject: [PATCH] Fix gettext export for launchpad
---
bin/exportgettext.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/exportgettext.sh b/bin/exportgettext.sh
index 67fa7ad..6a07ed2 100755
--- a/bin/exportgettext.sh
+++ b/bin/exportgettext.sh
@@ -175,7 +175,7 @@
}
include($fn);
- $texts = $labels ? $labels : $messages;
+ $texts = array_merge($labels, $messages);
// write header
$header = <<<EOF
@@ -196,7 +196,7 @@
"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();
--
Gitblit v1.9.1