From c0d8270815c379cc7c34404df0a774d2982b5cc6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 8 Jan 2012 01:05:45 +0000 Subject: [PATCH] Add shell script to regenerate the .pot file Originally committed to SVN as r6216. --- aegisub/po/make_pot.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 aegisub/po/make_pot.sh diff --git a/aegisub/po/make_pot.sh b/aegisub/po/make_pot.sh new file mode 100755 index 000000000..444b44c52 --- /dev/null +++ b/aegisub/po/make_pot.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +find ../src ../src/command -name \*.cpp -o -name \*.h | \ + xgettext --files-from=- -o - --c++ -k_ -kSTR_MENU -kSTR_DISP -kSTR_HELP -kwxT | \ + sed 's/SOME DESCRIPTIVE TITLE/Aegisub 3.0.0/' | \ + sed 's/YEAR/2005-2012/' | \ + sed "s/THE PACKAGE'S COPYRIGHT HOLDER/Rodrigo Braz Monteiro, Niels Martin Hansen, Thomas Goyne et. al./" | \ + sed 's/PACKAGE/Aegisub 3.0.0/' > \ + aegisub.pot + +sed '/"text"/!d;s/^.*"text" : \("[^"]\+"\).*$/\n#: default_menu.json\nmsgid \1\nmsgstr ""\n/' ../src/libresrc/default_menu.json >> aegisub.pot