Mercurial > babel > old > babel-test
diff doc/setup.txt @ 62:84d400066b71
The order of extraction methods is now preserved (see #10).
author | cmlenz |
---|---|
date | Fri, 08 Jun 2007 12:41:00 +0000 |
parents | b3395b285104 |
children | 5c819411e4af |
line wrap: on
line diff
--- a/doc/setup.txt +++ b/doc/setup.txt @@ -58,6 +58,7 @@ --width (-w) set output line width (default 76) --no-wrap do not break long message lines, longer than the output line width, into several lines + --input-dirs directories that should be scanned for messages Running the command will produce a PO template file:: @@ -83,11 +84,13 @@ setup(... message_extractors = { - 'foobar/**.py': ('python', None), - 'foobar/**/templates/**.html': ('genshi', None), - 'foobar/**/templates/**.txt': ('genshi', { - 'template_class': 'genshi.template.text.TextTemplate' - }) + 'foobar': [ + ('**.py', ('python', None), + ('**/templates/**.html', ('genshi', None), + ('**/templates/**.txt', ('genshi', { + 'template_class': 'genshi.template.text.TextTemplate' + }) + ], }, ... @@ -124,3 +127,6 @@ | ``--no-wrap`` | do not break long message lines, longer than | | | the output line width, into several lines | +-----------------------------+----------------------------------------------+ + | ``--input-dirs`` | directories that should be scanned for | + | | messages | + +-----------------------------+----------------------------------------------+