diff options
author | Thomas--S <info@thomas-stangl.de> | 2018-02-01 16:54:55 +0100 |
---|---|---|
committer | Thomas--S <info@thomas-stangl.de> | 2018-02-07 06:04:12 +0100 |
commit | f9a26194f07c0287703eaa1df9ae4c5ccdb1c809 (patch) | |
tree | f3bbdacb705e8aed141f95d46380c7f001093611 /tools/updatepo.sh | |
download | display_modpack_no_craft-f9a26194f07c0287703eaa1df9ae4c5ccdb1c809.tar.gz display_modpack_no_craft-f9a26194f07c0287703eaa1df9ae4c5ccdb1c809.zip |
Seperate signs API from signs definitions
Change modnames from *_lib to *_api
Diffstat (limited to 'tools/updatepo.sh')
-rwxr-xr-x | tools/updatepo.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/updatepo.sh b/tools/updatepo.sh new file mode 100755 index 0000000..feb2504 --- /dev/null +++ b/tools/updatepo.sh @@ -0,0 +1,25 @@ +#! /bin/bash + +# To create a new translation: +# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot + +cd "$(dirname "${BASH_SOURCE[0]}")/.."; + +# Extract translatable strings. +xgettext --from-code=UTF-8 \ + --language=Lua \ + --sort-by-file \ + --keyword=S \ + --keyword=NS:1,2 \ + --keyword=N_ \ + --keyword=F \ + --add-comments='Translators:' \ + --add-location=file \ + -o locale/template.pot \ + $(find . -name '*.lua') + +# Update translations. +find locale -name '*.po' | while read -r file; do + echo $file + msgmerge --update $file locale/template.pot; +done |