Extract strings from the lua scripts for translation

Originally committed to SVN as r6585.
This commit is contained in:
Thomas Goyne 2012-03-12 23:35:47 +00:00
parent f4c1fb441e
commit 2fa054b48b

View file

@ -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