Files
main-website/update-translation.sh
2022-12-18 16:03:43 +01:00

4 lines
228 B
Bash
Executable File

#!/bin/bash
xgettext -o locale/main-website.pot `find . -iname '*.php'`
for translation in `find locale -iname '*.po'`; do msgmerge -U "$translation" locale/main-website.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done