Migrate translations from PHP array to gettext

This commit is contained in:
2023-01-18 21:50:26 +01:00
parent b1f6de6a35
commit 1c55a79122
51 changed files with 26756 additions and 6453 deletions

3
update-translation.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
xgettext -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