From 2fa054b48b1b21f89986db622dce1c2d2437f328 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 12 Mar 2012 23:35:47 +0000 Subject: [PATCH] Extract strings from the lua scripts for translation Originally committed to SVN as r6585. --- aegisub/po/make_pot.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aegisub/po/make_pot.sh b/aegisub/po/make_pot.sh index 444b44c52..e35b9da0b 100755 --- a/aegisub/po/make_pot.sh +++ b/aegisub/po/make_pot.sh @@ -9,3 +9,9 @@ find ../src ../src/command -name \*.cpp -o -name \*.h | \ aegisub.pot sed '/"text"/!d;s/^.*"text" : \("[^"]\+"\).*$/\n#: default_menu.json\nmsgid \1\nmsgstr ""\n/' ../src/libresrc/default_menu.json >> aegisub.pot + +find ../automation -name *.lua | \ + xargs grep tr\"[^\"]\*\" -o -n | \ + sed 's/\(.*\):\([0-9]\+\):tr\(".*"\)/#: \1:\2\nmsgid \3\nmsgstr ""\n/' \ + >> aegisub.pot +