diff --git a/.po2tl.sh b/.po2tl.sh index 66a01b7..48864af 100755 --- a/.po2tl.sh +++ b/.po2tl.sh @@ -20,6 +20,10 @@ for file in ./translations-*.po; do continue fi + if (( $(date -d $(awk '/PO-Revision-Date/{print $2}' ${file} +%s)) < $CI_PREV_BUILD_CREATED )); then + continue + fi + msgfmt "$file" -o game.mo PATH=$(pwd)/renpy:${PATH} RENPY_DIR=$(pwd)/renpy python3 rttk-queerscriptors/mo2tl.py $(pwd)/game-source game.mo ${lang} zip "${lang}.zip" game-source/game/tl/${lang}/*