This commit is contained in:
Alexey Berezhok
2024-03-19 22:05:27 +03:00
commit 346a50856b
1572 changed files with 182163 additions and 0 deletions

20
web/locale/hst_convert_po2mo.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
if [ ! -e /usr/bin/xgettext ]; then
echo " **********************************************************"
echo " * Unable to find xgettext please install gettext package *"
echo " **********************************************************"
exit 3
fi
lang=${1-all}
if [ "$lang" == "all" ]; then
languages=$(ls -d "$HESTIA/web/locale/*/" | awk -F'/' '{print $(NF-1)}')
for lang in $languages; do
echo "[ * ] Update $lang "
msgfmt "$HESTIA/web/locale/$lang/LC_MESSAGES/hestiacp.po" -o "$HESTIA/web/locale/$lang/LC_MESSAGES/hestiacp.mo"
done
else
echo "[ * ] Update $lang "
msgfmt "$HESTIA/web/locale/$lang/LC_MESSAGES/hestiacp.po" -o "$HESTIA/web/locale/$lang/LC_MESSAGES/hestiacp.mo"
fi