Make scripts translatable
This commit is contained in:
3
update-translation.sh
Executable file
3
update-translation.sh
Executable 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
|
Reference in New Issue
Block a user