]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add JavaScript example.
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Thu, 21 Apr 2011 09:30:40 +0000 (09:30 +0000)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Thu, 21 Apr 2011 09:30:40 +0000 (09:30 +0000)
doc/messages.txt

index cf1df56d6e14e8a0a2935f315dd302dc23045589..f1ef27276641fd5eb3583dffa4e926ffd8462f87 100644 (file)
@@ -138,6 +138,11 @@ Genshi markup templates and text templates:
     template_class = genshi.template:TextTemplate
     encoding = ISO-8819-15
 
+    # Extraction from JavaScript files
+
+    [javascript: **.js]
+    extract_messages = $._, jQuery._
+
 The configuration file syntax is based on the format commonly found in ``.INI``
 files on Windows systems, and as supported by the ``ConfigParser`` module in
 the Python standard library. Section names (the strings enclosed in square