From: Christopher Allan Webber Date: Thu, 12 May 2011 14:44:04 +0000 (-0500) Subject: Added extraction stuff that's not used but appears to work :) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=84d4f04edc468ba24685158fe379d37acb0db538;p=mediagoblin.git Added extraction stuff that's not used but appears to work :) --- diff --git a/babel.ini b/babel.ini new file mode 100644 index 00000000..666270df --- /dev/null +++ b/babel.ini @@ -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._ \ No newline at end of file diff --git a/setup.py b/setup.py index 7b483a57..7d38e526 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ setup( 'jinja2', 'sphinx', 'PIL', + 'Babel', ], test_suite='nose.collector', @@ -50,5 +51,8 @@ setup( [zc.buildout] make_user_dev_dirs = mediagoblin.buildout_recipes:MakeUserDevDirs + + [babel.extractors] + jinja2 = jinja2.ext:babel_extract """, )