Added extraction stuff that's not used but appears to work :)
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 12 May 2011 14:44:04 +0000 (09:44 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 12 May 2011 14:44:04 +0000 (09:44 -0500)
babel.ini [new file with mode: 0644]
setup.py

diff --git a/babel.ini b/babel.ini
new file mode 100644 (file)
index 0000000..666270d
--- /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
index 7b483a57453ecc6801a6c563b8152497468f0275..7d38e52687e96cdf39225190a76cb3e63cc697eb 100644 (file)
--- 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
       """,
     )