Unverified Commit 232ec56b authored by 1dot75cm's avatar 1dot75cm

add i18n and l10n for document

Signed-off-by: 's avatar1dot75cm <sensor.wen@gmail.com>
parent a234083b
#!/bin/sh
pybabel extract -F babel.ini -k _gettext -k _ngettext -k lazy_gettext -o admin.pot --project Flask-Admin ../flask_admin
pybabel compile -f -D admin -d ../flask_admin/translations/
# docs
cd ..
make gettext
cp build/locale/*.pot babel/
sphinx-intl update -p build/locale/ -d flask_admin/translations/
......@@ -57,6 +57,7 @@ release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
locale_dirs = ['../flask_admin/translations/']
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
......
......@@ -13,5 +13,6 @@ geoalchemy2
psycopg2
nose
sphinx
sphinx-intl
coveralls
pylint
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment