summaryrefslogtreecommitdiffstats
path: root/po/bin/add_text
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-27 17:30:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-27 17:30:08 +0000
commit5ce8d30439463838f845c78bc926cc9b310a8743 (patch)
treebb1852dc58711c7baee31216a765067dfa49b65b /po/bin/add_text
parent10658e71475bd964263d09f1a661f24fadfaf496 (diff)
downloadbootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar
bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.gz
bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.bz2
bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.xz
bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.zip
imported openSUSE.tar.bz2 (from gfxboot-4.1.19-2.1.src.rpm)4.1.19.1
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 /%/;