X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=util%2Fupdatepo.sh;h=23e2c61e976599e3607c1d074f2782ccd5802173;hb=693f98373bc4681d8eac1ab898f9ca9b9c9860d2;hp=1fc72337337f865ce5aa41f05a947320bd2438c2;hpb=006ef5b4a5e362eed848ca26b411a8059d74b965;p=dragonfireclient.git diff --git a/util/updatepo.sh b/util/updatepo.sh index 1fc723373..23e2c61e9 100755 --- a/util/updatepo.sh +++ b/util/updatepo.sh @@ -13,7 +13,7 @@ abort() { # this script is. Relative paths are fine for us so we can just # use the following trick (works both for manual invocations and for # script found from PATH) -scriptisin="$(dirname "$(which "$0")")" +scriptisin="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # The script is executed from the parent of po/, which is also the # parent of the script directory and of the src/ directory. @@ -49,15 +49,21 @@ cd .. # --package-name potfile=po/minetest.pot xgettext --package-name=minetest \ + --add-comments='~' \ --sort-by-file \ - --add-location \ + --add-location=file \ --keyword=N_ \ --keyword=wgettext \ + --keyword=fwgettext \ --keyword=fgettext \ --keyword=fgettext_ne \ --keyword=strgettext \ --keyword=wstrgettext \ + --keyword=core.gettext \ + --keyword=showTranslatedStatusText \ + --keyword=fmtgettext \ --output $potfile \ + --from-code=utf-8 \ `find src/ -name '*.cpp' -o -name '*.h'` \ `find builtin/ -name '*.lua'`