Added extraction stuff that's not used but appears to work :)
This commit is contained in:
parent
20c834ffe4
commit
84d4f04edc
13
babel.ini
Normal file
13
babel.ini
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Extraction from Python source files
|
||||||
|
[python: mediagoblin/**.py]
|
||||||
|
# Extraction from Genshi HTML and text templates
|
||||||
|
[jinja2: mediagoblin/templates/**.html]
|
||||||
|
# Extract jinja templates (html)
|
||||||
|
encoding = utf-8
|
||||||
|
[jinja2: mediagoblin/templates/**.txt]
|
||||||
|
# Extract jinja templates (text)
|
||||||
|
encoding = utf-8
|
||||||
|
|
||||||
|
# # Extraction from JavaScript files
|
||||||
|
# [javascript: mediagoblin/static/js/**.js]
|
||||||
|
# extract_messages = $._, jQuery._
|
4
setup.py
4
setup.py
@ -38,6 +38,7 @@ setup(
|
|||||||
'jinja2',
|
'jinja2',
|
||||||
'sphinx',
|
'sphinx',
|
||||||
'PIL',
|
'PIL',
|
||||||
|
'Babel',
|
||||||
],
|
],
|
||||||
test_suite='nose.collector',
|
test_suite='nose.collector',
|
||||||
|
|
||||||
@ -50,5 +51,8 @@ setup(
|
|||||||
|
|
||||||
[zc.buildout]
|
[zc.buildout]
|
||||||
make_user_dev_dirs = mediagoblin.buildout_recipes:MakeUserDevDirs
|
make_user_dev_dirs = mediagoblin.buildout_recipes:MakeUserDevDirs
|
||||||
|
|
||||||
|
[babel.extractors]
|
||||||
|
jinja2 = jinja2.ext:babel_extract
|
||||||
""",
|
""",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user