mail-hosting-mirror/update-translation.sh

4 lines
246 B
Bash
Raw Normal View History

2022-12-31 20:27:40 +00:00
#!/bin/bash
2023-01-22 19:37:07 +00:00
xgettext --from-code UTF-8 -o locale/mail-hosting.pot `find . -iname '*.php'`
2022-12-31 20:27:40 +00:00
for translation in `find locale -iname '*.po'`; do msgmerge -U "$translation" locale/mail-hosting.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done