diff options
author | Alastair McKinstry <mckinstry@debian.org> | 2014-06-18 19:42:15 +0200 |
---|---|---|
committer | Alastair McKinstry <mckinstry@debian.org> | 2014-06-18 19:42:15 +0200 |
commit | ecd477afba43521a73a0181b5479d72f6ed97665 (patch) | |
tree | a00168d06e350c9306ee91256c7ae72163422a19 /klist-to-po.pl |
Import console-data_1.12-5.debian.tar.xz
[dgit import tarball console-data 2:1.12-5 console-data_1.12-5.debian.tar.xz]
Diffstat (limited to 'klist-to-po.pl')
-rwxr-xr-x | klist-to-po.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/klist-to-po.pl b/klist-to-po.pl new file mode 100755 index 0000000..9bf2953 --- /dev/null +++ b/klist-to-po.pl @@ -0,0 +1,14 @@ +#!/usr/bin/perl + + +$filename = $ARGV[0]; +open (MAPLIST, $filename) || die "Failed to open $filename"; + +while (<MAPLIST>) { + ($langlist, $name, $english) = split; + print "# $filename, $name\n"; + print "msgid \"$english\"\n"; + print "msgstr \"\"\n\n"; +} + +close MAPLIST; |