Fix make_pot.sh
This commit is contained in:
parent
7c76136726
commit
0fbcaea871
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ maybe_append() {
|
||||||
msgid=$(echo $msg | cut -d'|' -f3-)
|
msgid=$(echo $msg | cut -d'|' -f3-)
|
||||||
|
|
||||||
if ! grep -Fq "msgid $msgid" aegisub.pot; then
|
if ! grep -Fq "msgid $msgid" aegisub.pot; then
|
||||||
echo "\n#: $msgfile:$msgline\nmsgid $msgid\nmsgstr \"\"\n" >> aegisub.pot
|
echo -e "\n#: $msgfile:$msgline\nmsgid $msgid\nmsgstr \"\"\n" >> aegisub.pot
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,8 @@ grep '"[A-Za-z ]\+" : {' -n ../src/libresrc/default_hotkey.json \
|
||||||
| sed 's/^\([0-9]\+:\).*\("[^"]\+"\).*$/default_hotkey.json|\1|\2/' \
|
| sed 's/^\([0-9]\+:\).*\("[^"]\+"\).*$/default_hotkey.json|\1|\2/' \
|
||||||
| maybe_append
|
| maybe_append
|
||||||
|
|
||||||
find ../automation -name *.lua \
|
find ../automation -name '*.lua' \
|
||||||
| xargs grep tr\"[^\"]\*\" -o -n \
|
| xargs grep 'tr"[^"]*"' -o -n \
|
||||||
| sed 's/\(.*\):\([0-9]\+\):tr\(".*"\)/\1|\2|\3/' \
|
| sed 's/\(.*\):\([0-9]\+\):tr\(".*"\)/\1|\2|\3/' \
|
||||||
| sed 's/\\/\\\\\\\\/g' \
|
| sed 's/\\/\\\\\\\\/g' \
|
||||||
| maybe_append
|
| maybe_append
|
||||||
|
|
Loading…
Reference in a new issue