mirror of
https://github.com/marcus-alicia/iRedAdmin-Pro-SQL.git
synced 2026-05-30 17:09:41 +00:00
Add files via upload
This commit is contained in:
3
i18n/babel.cfg
Normal file
3
i18n/babel.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
[jinja2: templates/**.html]
|
||||
encoding = utf-8
|
||||
line_statement_prefix = %
|
||||
BIN
i18n/bg_BG/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/bg_BG/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2906
i18n/bg_BG/LC_MESSAGES/iredadmin.po
Normal file
2906
i18n/bg_BG/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/cs_CZ/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/cs_CZ/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2813
i18n/cs_CZ/LC_MESSAGES/iredadmin.po
Normal file
2813
i18n/cs_CZ/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/da_DK/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/da_DK/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2954
i18n/da_DK/LC_MESSAGES/iredadmin.po
Normal file
2954
i18n/da_DK/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/de_DE/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/de_DE/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
3004
i18n/de_DE/LC_MESSAGES/iredadmin.po
Normal file
3004
i18n/de_DE/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/en_US/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/en_US/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2787
i18n/en_US/LC_MESSAGES/iredadmin.po
Normal file
2787
i18n/en_US/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/es_ES/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/es_ES/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
3028
i18n/es_ES/LC_MESSAGES/iredadmin.po
Normal file
3028
i18n/es_ES/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/fi_FI/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/fi_FI/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2810
i18n/fi_FI/LC_MESSAGES/iredadmin.po
Normal file
2810
i18n/fi_FI/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/fr_FR/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/fr_FR/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2828
i18n/fr_FR/LC_MESSAGES/iredadmin.po
Normal file
2828
i18n/fr_FR/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/hu_HU/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/hu_HU/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2841
i18n/hu_HU/LC_MESSAGES/iredadmin.po
Normal file
2841
i18n/hu_HU/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
2769
i18n/iredadmin.po
Normal file
2769
i18n/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/it_IT/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/it_IT/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2946
i18n/it_IT/LC_MESSAGES/iredadmin.po
Normal file
2946
i18n/it_IT/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/ja_JP/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/ja_JP/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2798
i18n/ja_JP/LC_MESSAGES/iredadmin.po
Normal file
2798
i18n/ja_JP/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/ko_KR/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/ko_KR/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2793
i18n/ko_KR/LC_MESSAGES/iredadmin.po
Normal file
2793
i18n/ko_KR/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/lv_LV/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/lv_LV/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2953
i18n/lv_LV/LC_MESSAGES/iredadmin.po
Normal file
2953
i18n/lv_LV/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/nl_NL/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/nl_NL/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2814
i18n/nl_NL/LC_MESSAGES/iredadmin.po
Normal file
2814
i18n/nl_NL/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/pl_PL/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/pl_PL/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2817
i18n/pl_PL/LC_MESSAGES/iredadmin.po
Normal file
2817
i18n/pl_PL/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/pt_BR/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/pt_BR/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2862
i18n/pt_BR/LC_MESSAGES/iredadmin.po
Normal file
2862
i18n/pt_BR/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/ru_RU/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/ru_RU/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2811
i18n/ru_RU/LC_MESSAGES/iredadmin.po
Normal file
2811
i18n/ru_RU/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
2814
i18n/sl_SI/LC_MESSAGES/iredadmin.po
Normal file
2814
i18n/sl_SI/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/sr/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/sr/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2812
i18n/sr/LC_MESSAGES/iredadmin.po
Normal file
2812
i18n/sr/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
i18n/sv_SE/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/sv_SE/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2983
i18n/sv_SE/LC_MESSAGES/iredadmin.po
Normal file
2983
i18n/sv_SE/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
105
i18n/translation.sh
Normal file
105
i18n/translation.sh
Normal file
@@ -0,0 +1,105 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Author: Zhang Huangbin (zhb _at_ iredmail.org)
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# This file is part of iRedAdmin-Pro, which is official web-based admin
|
||||
# panel (Full-Featured Edition) for iRedMail.
|
||||
#
|
||||
# ---- Restrictions ----
|
||||
# * Source code is only available after you purchase it, so that you can
|
||||
# modify it to fit your need, but it is NOT allowed to redistribute
|
||||
# and sell iRedAdmin and the one you modified based on iRedAdmin.
|
||||
#
|
||||
# * We will do our best to solve all bugs found in official iRedAdmin,
|
||||
# but we are not guarantee to solve bugs occured in your modified copy.
|
||||
#
|
||||
# * It is NOT allowed to deployed on more than 1 server.
|
||||
#
|
||||
#---------------------------------------------------------------------
|
||||
|
||||
# Available actions: [all, LANG].
|
||||
ACTIONORLANG="$1"
|
||||
|
||||
if [ -z "${ACTIONORLANG}" ]; then
|
||||
cat <<EOF
|
||||
|
||||
Usage: $0 [all, LANGUAGE]
|
||||
|
||||
Example:
|
||||
|
||||
$ $0 all
|
||||
$ $0 zh_CN
|
||||
$ $0 fr_Fr
|
||||
|
||||
EOF
|
||||
exit 255
|
||||
fi
|
||||
|
||||
DOMAIN="iredadmin"
|
||||
POFILE="${DOMAIN}.po"
|
||||
#AVAILABLE_LANGS="$(ls -d *_*)"
|
||||
AVAILABLE_LANGS="$(ls -ld * | awk '/^d/ {print $NF}')"
|
||||
|
||||
extract_latest()
|
||||
{
|
||||
# Extract strings from template files.
|
||||
echo "* Extract localizable messages from template files to ${POFILE}..."
|
||||
|
||||
pybabel extract \
|
||||
-F babel.cfg \
|
||||
--no-location \
|
||||
--omit-header \
|
||||
--sort-output \
|
||||
--charset=utf-8 \
|
||||
--msgid-bugs-address=support@iredmail.org \
|
||||
-o ${POFILE} \
|
||||
.. >/dev/null
|
||||
}
|
||||
|
||||
update_po()
|
||||
{
|
||||
# Update PO files.
|
||||
echo "* Updating existing translations ..."
|
||||
|
||||
for lang in ${LANGUAGES}
|
||||
do
|
||||
pofile="${lang}/LC_MESSAGES/${DOMAIN}.po"
|
||||
|
||||
[ -d ${lang}/LC_MESSAGES/ ] || mkdir -p ${lang}/LC_MESSAGES/
|
||||
pybabel update --ignore-obsolete\
|
||||
-i ${POFILE} \
|
||||
-D ${DOMAIN} \
|
||||
-d . \
|
||||
-l ${lang}
|
||||
|
||||
# Remove 'fuzzy' tag.
|
||||
perl -pi -e 's/#, fuzzy//' ${pofile}
|
||||
|
||||
# Comment ', python-format'.
|
||||
perl -pi -e 's/^(, python-format.*)/#${1}/' ${pofile}
|
||||
|
||||
# Update 'Project-Id-Version'
|
||||
perl -pi -e 's#^("Project-Id-Version:).*#${1} iRedAdmin-Pro\\n"#g' ${pofile}
|
||||
perl -pi -e 's#^("POT-Creation-Date:.*\n)##g' ${pofile}
|
||||
perl -pi -e 's#^("Report-Msgid-Bugs-To:.*\n)##g' ${pofile}
|
||||
done
|
||||
}
|
||||
|
||||
convert_po_to_mo()
|
||||
{
|
||||
for lang in ${LANGUAGES}; do
|
||||
echo " + Converting ${lang} ..."
|
||||
msgfmt --statistics --check-format ${lang}/LC_MESSAGES/${DOMAIN}.po -o ${lang}/LC_MESSAGES/${DOMAIN}.mo
|
||||
done
|
||||
}
|
||||
|
||||
if [ X"${ACTIONORLANG}" == X"all" -o X"${ACTIONORLANG}" == X"" ]; then
|
||||
export LANGUAGES="${AVAILABLE_LANGS}"
|
||||
else
|
||||
export LANGUAGES="$(basename ${ACTIONORLANG})"
|
||||
fi
|
||||
|
||||
extract_latest && \
|
||||
update_po && \
|
||||
convert_po_to_mo
|
||||
BIN
i18n/zh_TW/LC_MESSAGES/iredadmin.mo
Normal file
BIN
i18n/zh_TW/LC_MESSAGES/iredadmin.mo
Normal file
Binary file not shown.
2797
i18n/zh_TW/LC_MESSAGES/iredadmin.po
Normal file
2797
i18n/zh_TW/LC_MESSAGES/iredadmin.po
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user