Files
le-chat-php/update-translation.sh
T
2023-01-22 20:37:48 +01:00

4 lines
244 B
Bash
Executable File

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