Tools to extract translation from python files and templates
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 7 Aug 2011 03:00:49 +0000 (22:00 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 7 Aug 2011 03:00:49 +0000 (22:00 -0500)
 - Added pybabel script to entry points
 - Added babel.ini, which we'll use to extract stuff

babel.ini
setup.py

index 666270dfd5efba1486e89466adf870192a6af806..a4e3267a6d9165ce87ec415c42b745b193a0961c 100644 (file)
--- a/babel.ini
+++ b/babel.ini
@@ -10,4 +10,4 @@ encoding = utf-8
 
 # # Extraction from JavaScript files
 # [javascript: mediagoblin/static/js/**.js]
-# extract_messages = $._, jQuery._
\ No newline at end of file
+# extract_messages = $._, jQuery._
index 6043ad41271685a55e28d2f5f493cf455ada54d4..40715dd0a0d98d9a7f4746b7517e653254b08874 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -53,6 +53,7 @@ setup(
     entry_points = """\
         [console_scripts]
         gmg = mediagoblin.gmg_commands:main_cli
+        pybabel = mediagoblin.babel.messages.frontend:main
 
         [paste.app_factory]
         app = mediagoblin.app:paste_app_factory