diff babel/messages/extract.py @ 81:85af04c72ccd trunk

Fixed and added some documentation about the translator comments implemented in [81].
author palgarvio
date Sun, 10 Jun 2007 16:32:23 +0000
parents 116e34b8cefa
children 540bb484f6e0
line wrap: on
line diff
--- a/babel/messages/extract.py
+++ b/babel/messages/extract.py
@@ -239,8 +239,10 @@
     :param fileobj: the file-like object the messages should be extracted from
     :param keywords: a list of keywords (i.e. function names) that should be
                      recognized as translation functions
+    :param comments_tags: a list of translator tags to search for and include in
+                          output
     :param options: a dictionary of additional options (optional)
-    :return: an iterator over ``(lineno, funcname, message)`` tuples
+    :return: an iterator over ``(lineno, funcname, message, comments)`` tuples
     :rtype: ``iterator``
     """
     from genshi.filters.i18n import Translator
@@ -272,8 +274,10 @@
     :param fileobj: the file-like object the messages should be extracted from
     :param keywords: a list of keywords (i.e. function names) that should be
                      recognized as translation functions
+    :param comments_tags: a list of translator tags to search for and include in
+                          output
     :param options: a dictionary of additional options (optional)
-    :return: an iterator over ``(lineno, funcname, message)`` tuples
+    :return: an iterator over ``(lineno, funcname, message, comments)`` tuples
     :rtype: ``iterator``
     """
     funcname = None
Copyright (C) 2012-2017 Edgewall Software