Initial
This commit is contained in:
BIN
web/locale/ar/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ar/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/az/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/az/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/bg/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/bg/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/bn/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/bn/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/bs/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/bs/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ca/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ca/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/cs/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/cs/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/da/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/da/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/de/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/de/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/el/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/el/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/es/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/es/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/fa/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/fa/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/fi/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/fi/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/fr/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/fr/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
4787
web/locale/hestiacp.pot
Normal file
4787
web/locale/hestiacp.pot
Normal file
File diff suppressed because it is too large
Load Diff
BIN
web/locale/hr/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/hr/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
20
web/locale/hst_convert_po2mo.sh
Executable file
20
web/locale/hst_convert_po2mo.sh
Executable 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
|
||||
36
web/locale/hst_scan_i18n.sh
Executable file
36
web/locale/hst_scan_i18n.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -x /usr/bin/xgettext ]; then
|
||||
echo " **********************************************************"
|
||||
echo " * Unable to find xgettext please install gettext package *"
|
||||
echo " **********************************************************"
|
||||
exit 3
|
||||
fi
|
||||
|
||||
echo "[ * ] Move hestiacp.pot to hestiacp.pot.old"
|
||||
mv hestiacp.pot hestiacp.pot.old
|
||||
true > hestiacp.pot
|
||||
|
||||
echo "[ * ] Search *.php *.html and *.sh for php based gettext functions"
|
||||
find ../.. \( -name '*.php' -o -name '*.html' -o -name '*.sh' \) | xgettext --output=hestiacp.pot --language=PHP --join-existing -f -
|
||||
|
||||
# Scan the description string for list updates page
|
||||
while IFS= read -r string; do
|
||||
if ! grep -q "\"$string\"" hestiacp.pot; then
|
||||
echo -e "\n#: ../../bin/v-list-sys-hestia-updates:$(grep -n "$string" ../../bin/v-list-sys-hestia-updates | cut -d: -f1)\nmsgid \"$string\"\nmsgstr \"\"" >> hestiacp.pot
|
||||
fi
|
||||
done < <(awk -F'DESCR=' '/data=".+ DESCR=[^"]/ {print $2}' ../../bin/v-list-sys-hestia-updates | cut -d\' -f2)
|
||||
|
||||
# Scan the description string for list server page
|
||||
while IFS= read -r string; do
|
||||
if ! grep -q "\"$string\"" hestiacp.pot; then
|
||||
echo -e "\n#: ../../bin/v-list-sys-services:$(grep -n "$string" ../../bin/v-list-sys-services | cut -d: -f1)\nmsgid \"$string\"\nmsgstr \"\"" >> hestiacp.pot
|
||||
fi
|
||||
done < <(awk -F'SYSTEM=' '/data=".+ SYSTEM=[^"]/ {print $2}' ../../bin/v-list-sys-services | cut -d\' -f2)
|
||||
|
||||
# Prevent only date change become a commit
|
||||
if [ "$(diff hestiacp.pot hestiacp.pot.old | wc -l)" -gt 4 ]; then
|
||||
rm hestiacp.pot.old
|
||||
else
|
||||
mv -f hestiacp.pot.old hestiacp.pot
|
||||
fi
|
||||
BIN
web/locale/hu/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/hu/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/id/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/id/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/it/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/it/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ja/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ja/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ka/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ka/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ko/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ko/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ku/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ku/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
84
web/locale/languages.json
Normal file
84
web/locale/languages.json
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"ca": ["Catalan"],
|
||||
"ca_locale": ["Catal\u00e0"],
|
||||
"ku": ["Kurdish Sorani"],
|
||||
"ku_locale": ["\u06a9\u0648\u0631\u062f\u06cc \u0633\u06c6\u0631\u0627\u0646\u06cc"],
|
||||
"bn_locale": ["\u09ac\u09be\u0982\u09b2\u09be"],
|
||||
"bn": ["Bengali"],
|
||||
"sk": ["Slovak"],
|
||||
"sk_locale": ["Slovensk\u00fd"],
|
||||
"az_locale": ["Az\u0259rbaycan dili"],
|
||||
"zh-tw_locale": ["\u81fa\u7063\u6b63\u9ad4\u4e2d\u6587"],
|
||||
"zh-tw": ["Traditional Chinese (Taiwan)"],
|
||||
"zh-cn_locale": ["\u5927\u9646\u7b80\u4f53\u4e2d\u6587"],
|
||||
"zh-cn": ["Simplified Chinese (China)"],
|
||||
"vi_locale": ["Ti\u1ebfng Vi\u1ec7t"],
|
||||
"vi": ["Vietnamese"],
|
||||
"ur_locale": ["\u0627\u064f\u0631\u062f\u064f\u0648"],
|
||||
"ur": ["Urdu"],
|
||||
"uk_locale": [
|
||||
"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u043c\u043e\u0432\u0430"
|
||||
],
|
||||
"uk": ["Ukrainian"],
|
||||
"tr_locale": ["T\u00fcrk\u00e7e"],
|
||||
"tr": ["Turkish"],
|
||||
"th_locale": ["\u0e44\u0e17\u0e22"],
|
||||
"th": ["Thai"],
|
||||
"sv_locale": ["Svenska"],
|
||||
"sv": ["Swedish"],
|
||||
"sr_locale": ["\u0441\u0440\u043f\u0441\u043a\u0438"],
|
||||
"sr": ["Serbian"],
|
||||
"ru_locale": ["\u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"],
|
||||
"ru": ["Russian"],
|
||||
"ro_locale": ["Rom\u00e2n\u0103"],
|
||||
"ro": ["Romanian"],
|
||||
"pt-br_locale": ["Portugu\u00eas brasileiro"],
|
||||
"pt-br": ["Portuguese (Brasil)"],
|
||||
"pt_locale": ["Portugu\u00eas"],
|
||||
"pt": ["Portuguese"],
|
||||
"pl_locale": ["Polski"],
|
||||
"pl": ["Polish"],
|
||||
"no_locale": ["Norsk"],
|
||||
"no": ["Norwegain"],
|
||||
"nl_locale": ["Nederlands"],
|
||||
"nl": ["Dutch"],
|
||||
"ko_locale": ["\ud55c\uad6d\uc5b4"],
|
||||
"ko": ["Korean"],
|
||||
"ka_locale": ["\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8 \u10d4\u10dc\u10d0"],
|
||||
"ka": ["Georgian"],
|
||||
"ja_locale": ["\u65e5\u672c\u8a9e"],
|
||||
"ja": ["Japanese"],
|
||||
"it_locale": ["Italiano"],
|
||||
"it": ["Italian"],
|
||||
"id_locale": ["Bahasa Indonesia"],
|
||||
"id": ["Indonesian"],
|
||||
"hu_locale": ["Magyar"],
|
||||
"hu": ["Hungarian"],
|
||||
"hr_locale": ["Hravtski"],
|
||||
"hr": ["Croatian"],
|
||||
"fr_locale": ["Fran\u00e7ais"],
|
||||
"fr": ["French"],
|
||||
"fi_locale": ["Suomi"],
|
||||
"fi": ["Finnish"],
|
||||
"fa_locale": ["\u0641\u0627\u0631\u0633\u06cc"],
|
||||
"fa": ["Persian"],
|
||||
"es_locale": ["Espa\u00f1ol"],
|
||||
"es": ["Spanish"],
|
||||
"en_locale": ["English"],
|
||||
"en": ["English"],
|
||||
"el_locale": ["\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"],
|
||||
"el": ["Greek"],
|
||||
"de_locale": ["Deutsch"],
|
||||
"de": ["German"],
|
||||
"da_locale": ["Dansk"],
|
||||
"da": ["Danish"],
|
||||
"cs_locale": ["\u010de\u0161tina"],
|
||||
"cs": ["Czech"],
|
||||
"bs_locale": ["Bosanski"],
|
||||
"bs": ["Bosnian"],
|
||||
"bg_locale": ["\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"],
|
||||
"bg": ["Bulgarian"],
|
||||
"az": ["Azerbaijani"],
|
||||
"ar_locale": ["\u0639\u0631\u0628\u0649"],
|
||||
"ar": ["Arabic"]
|
||||
}
|
||||
BIN
web/locale/nl/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/nl/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/no/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/no/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/pl/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/pl/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/pt-br/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/pt-br/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/pt/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/pt/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ro/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ro/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ru/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ru/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/sk/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/sk/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/sr/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/sr/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/sv/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/sv/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/th/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/th/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/tr/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/tr/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/uk/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/uk/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/ur/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/ur/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/vi/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/vi/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/zh-cn/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/zh-cn/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
BIN
web/locale/zh-tw/LC_MESSAGES/hestiacp.mo
Normal file
BIN
web/locale/zh-tw/LC_MESSAGES/hestiacp.mo
Normal file
Binary file not shown.
Reference in New Issue
Block a user