summaryrefslogtreecommitdiff
path: root/klist-to-po.pl
diff options
context:
space:
mode:
authorAlastair McKinstry <mckinstry@debian.org>2014-06-18 19:42:15 +0200
committerAlastair McKinstry <mckinstry@debian.org>2014-06-18 19:42:15 +0200
commitecd477afba43521a73a0181b5479d72f6ed97665 (patch)
treea00168d06e350c9306ee91256c7ae72163422a19 /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-xklist-to-po.pl14
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;