Added extraction stuff that's not used but appears to work :)

This commit is contained in:
Christopher Allan Webber 2011-05-12 09:44:04 -05:00
parent 20c834ffe4
commit 84d4f04edc
2 changed files with 17 additions and 0 deletions

13
babel.ini Normal file
View 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._

View File

@ -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
""", """,
) )