Make scripts translatable

This commit is contained in:
danwin1210 committed 2023-01-22 20:02:41 +01:00
1 parent 21eb38c393
commit 78ba449fa3
22 files changed
+1652 -418

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
xgettext --from-code UTF-8 -o var/www/locale/hosting.pot `find var/www/ -iname '*.php'`
for translation in `find var/www/locale -iname '*.po'`; do msgmerge -U "$translation" var/www/locale/hosting.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done