From 7cbd03d3708093fa0ca28020cf2a80c7f75e47d1 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Tue, 28 May 2013 11:59:11 +0200 Subject: [PATCH] Translatable text strings generation set out of the main tomb script, into extras --- extras/po/Makefile | 4 ++ extras/po/generate_translatable_strings.sh | 56 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 extras/po/Makefile create mode 100755 extras/po/generate_translatable_strings.sh diff --git a/extras/po/Makefile b/extras/po/Makefile new file mode 100644 index 0000000..743e22d --- /dev/null +++ b/extras/po/Makefile @@ -0,0 +1,4 @@ +all: + @rm -f tomb.pot + @./generate_translatable_strings.sh > tomb.pot + @echo "Strings generated in tomb.pot" diff --git a/extras/po/generate_translatable_strings.sh b/extras/po/generate_translatable_strings.sh new file mode 100755 index 0000000..e844c88 --- /dev/null +++ b/extras/po/generate_translatable_strings.sh @@ -0,0 +1,56 @@ +#!/bin/zsh + +cat <, 2013. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Tomb $VERSION\n" +"PO-Revision-Date: `date`\n" +"Last-Translator: Denis Roio \n" +"Language-Team: Tomb developers \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +# +#: commandline help +# + +msgid "" +EOF + + ../../tomb help | awk ' +{ print "\"" $0 "\"" }' + cat <