-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.cfg
More file actions
30 lines (26 loc) · 1.01 KB
/
babel.cfg
File metadata and controls
30 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# =============================================================================
# Babel Configuration
# =============================================================================
#
# This configuration file tells Babel how to extract translatable strings
# from different file types in the project.
#
# Usage:
# pybabel extract -F babel.cfg -o locale/messages.pot .
# pybabel update -i locale/messages.pot -d src/kodw/buurtbasis/locale
# pybabel compile -d src/kodw/buurtbasis/locale
#
# =============================================================================
# Python source files
[python: src/**.py]
encoding = utf-8
# Jinja2 templates - this properly extracts _() from complex expressions
[jinja2: src/**.html.jinja]
encoding = utf-8
extensions = jinja2.ext.i18n,jinja2.ext.do,jinja2.ext.loopcontrols
[jinja2: src/**.jinja]
encoding = utf-8
extensions = jinja2.ext.i18n,jinja2.ext.do,jinja2.ext.loopcontrols
[jinja2: src/**.jinja2]
encoding = utf-8
extensions = jinja2.ext.i18n,jinja2.ext.do,jinja2.ext.loopcontrols