Package genshi :: Package filters :: Module i18n |

# Module i18n

Directives and utilities for internationalization and localization of templates.

Since: version 0.4

Note: Directives support added since version 0.6

Classes
| Translator Can extract and translate localizable strings from markup streams and templates.

Functions
`iterator` |
extract(fileobj, keywords, comment_tags, options) Babel extraction method for Genshi templates. |

Function Details

### extract(fileobj, keywords, comment_tags, options) |
Babel extraction method for Genshi templates. Parameters: `fileobj` - the file-like object the messages should be extracted from `keywords` - a list of keywords (i.e. function names) that should be recognized as translation functions `comment_tags` - a list of translator tags to search for and include in the results `options` - a dictionary of additional options (optional) Returns: `iterator` an iterator over `(lineno, funcname, message, comments)` tuples