summaryrefslogtreecommitdiff
path: root/babel.cfg
diff options
context:
space:
mode:
authorLeonardo Caballero <leonardocaballero@gmail.com>2013-03-04 10:35:30 -0530
committerLeonardo Caballero <leonardocaballero@gmail.com>2013-03-04 10:35:30 -0530
commitf0705fbc4ad0268853fbc4a2a890a4b589dbdb5a (patch)
treea8830c8b249a71171289a1d725e6188f089c8285 /babel.cfg
parentd61c077fbcacedf0e2ec0940f28a4808cd8d6d02 (diff)
downloadsphinx-f0705fbc4ad0268853fbc4a2a890a4b589dbdb5a.tar.gz
Added improvements about i18n for themes "basic", "haiku" and "scrolls" that Sphinx built-in. Closes #1120
Diffstat (limited to 'babel.cfg')
-rw-r--r--babel.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/babel.cfg b/babel.cfg
index 9688b8d0..4c1e7180 100644
--- a/babel.cfg
+++ b/babel.cfg
@@ -1,4 +1,21 @@
+# How setup this file
+# http://babel.edgewall.org/wiki/Documentation/setup.html
+# this file description:
+# http://babel.edgewall.org/wiki/Documentation/messages.html#extraction-method-mapping-and-configuration
+
+# Extraction from Python source files
[python: **.py]
+encoding = utf-8
+
+# Extraction from Jinja2 HTML templates
[jinja2: **/themes/**.html]
+encoding = utf-8
+ignore_tags = script,style
+include_attrs = alt title summary
+
+# Extraction from Jinja2 XML templates
[jinja2: **/themes/**.xml]
+
+# Extraction from JavaScript files
[javascript: **.js]
+[javascript: **.js_t]