]> git.sesse.net Git - ccbs/blobdiff - intl/make-pot.pl
Start i18n stuff.
[ccbs] / intl / make-pot.pl
diff --git a/intl/make-pot.pl b/intl/make-pot.pl
new file mode 100644 (file)
index 0000000..a86d4cf
--- /dev/null
@@ -0,0 +1,24 @@
+#! /usr/bin/perl
+use Template;
+require 'Sesse::ExtractGettext.pm';
+
+my $template = Template->new({ FACTORY => 'Sesse::ExtractGettext' });
+my $date = `date +"%Y-%M-%d %H:%M%z"`;   # pah :-)
+chomp $date;
+
+print <<"EOF";
+# ccbs template file for $ARGV[0]
+msgid ""
+msgstr ""
+"Project-Id-Version: ccbs\\n"
+"Report-Msgid-Bugs-To: \\n"
+"POT-Creation-Date: $date\\n"
+"MIME-Version: 1.0\\n"
+"Content-Type: text/plain; charset=utf-8\\n"
+"Content-Transfer-Encoding: 8bit\\n"
+
+EOF
+
+my $eaten = '';
+$template->process($ARGV[0], $vars, \$eaten)
+or die $template->error();