Parse sources as UTF-8

This commit is contained in:
2023-01-22 20:37:48 +01:00
parent 1df8c00a9c
commit b2c8aea0fd
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*~

View File

@ -1,3 +1,3 @@
#!/bin/bash
xgettext -o locale/le-chat-php.pot `find . -iname '*.php'`
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