Migrate translations from PHP array to gettext

This commit is contained in:
danwin1210 committed 2023-01-18 21:53:08 +01:00
1 parent b1f6de6a35
commit 1c55a79122
51 files changed
+26756 -6453

No files matched your search

+3
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