diff options
author | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-02-25 20:38:17 -0300 |
---|---|---|
committer | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-02-25 20:38:17 -0300 |
commit | 5f00db5d953be798f0d49f258c30d657d0d142aa (patch) | |
tree | 9dd44f348f0688113014ac92867379dcd4b5eabb | |
parent | 122d1a83cc380eb3919e28d20531b001c5cf8bac (diff) |
Fixes to translation update script.
-rwxr-xr-x | tools/xgettext.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tools/xgettext.sh b/tools/xgettext.sh index 6de353c..1504f42 100755 --- a/tools/xgettext.sh +++ b/tools/xgettext.sh @@ -9,15 +9,19 @@ fi mkdir -p locale; echo "Generating template..." >&2; -xgettext --from-code=UTF-8 -kS -kNS:1,2 -k_ \ - -o locale/template.pot "$@" \ +xgettext --from-code=UTF-8 \ + --keyword=S \ + --keyword=NS:1,2 \ + --keyword=N_ \ + --add-comments='Translators:' \ + --add-location=file \ + -o locale/template.pot \ + "$@" \ || exit; -cd locale; - -for file in *.po; do +find locale -name '*.po' -type f | while read -r file; do echo "Updating $file..." >&2; - msgmerge --update "$file" template.pot; + msgmerge --update "$file" locale/template.pot; done echo "DONE!" >&2; |