summaryrefslogtreecommitdiffstats
path: root/po/bin/add_text
diff options
context:
space:
mode:
Diffstat (limited to 'po/bin/add_text')
-rwxr-xr-xpo/bin/add_text6
1 files changed, 3 insertions, 3 deletions
diff --git a/po/bin/add_text b/po/bin/add_text
index a725b46..83bef29 100755
--- a/po/bin/add_text
+++ b/po/bin/add_text
@@ -4,9 +4,10 @@
die "usage: add_text [-c comment] id text_line1 text_line2 ... \nexample:\n add_text MENU_LANG Language\n" if @ARGV < 2;
-if($ARGV[0] eq '-c') {
+while($ARGV[0] eq '-c') {
+ shift;
+ push @l, "#. $ARGV[0]\n";
shift;
- $comment = shift;
}
$id = shift;
@@ -16,7 +17,6 @@ $id =~ s/^txt_//;
$_ = join '', @texts;
-push @l, "# $comment\n" if $comment;
push @l, "#. txt_$id\n";
push @l, "#, c-format\n" if /%/;