forked from danielemingolla/ARTICLEES_WEBAPP_FLASK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.cfg
16 lines (14 loc) · 882 Bytes
/
babel.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#Flask-Babel Official Documentation: https://pythonhosted.org/Flask-Babel/#translating-applications
#
# Configurazione per specificare quali file dover tradurre attraverso Flask-Babel
#
# Tag all the strings in the project --> {{_('String')}}
# Find tagged strings and put them in a .pot file --> pybabel extract -F babel.cfg -o messages.pot .
# Create a folder relative to a specific language --> pybabel init -i messages.pot -d translations -l it
# "messages.pot" is used as a base schema to compare with the schema that is actually used, change it for the power
# Update if there're new strings without lose translation --> pybabel update -i messages.pot -d translations
# Last command to run when the translation work is finished --> pybabel compile -d translations
[python: **.py]
[jinja2: **/templates/**.html]
extensions=jinja2.ext.autoescape,jinja2.ext.with_
silent=false