weblate/examples/hook-merge-pot-in-po
2017-07-13 16:02:46 +02:00

7 lines
232 B
Bash
Executable file
Vendored

#!/bin/sh
# Post-update hook to merge POT translations into PO.
# Requires gettext.
[ -z "${WL_NEW_BASE}" -o -z "${WL_FILEMASK} ] && exit 0
find . -type f -path "./${WL_FILEMASK}" -exec msgmerge -U "{}" "${WL_NEW_BASE}" \;
exit $?