Part of nevow.i18n View Source View In Hierarchy
A gettext-like Translator for Nevow.
The major difference between this and naive gettext is that with Translator, the actual translation is done as part of Nevow's flattening process, allowing per-user settings to be retrieved via the context.| Instance Variables | translator | the actual translation function to use. |
| args | positional arguments to pass to translator. | |
| kwargs | keyword arguments to pass to translator. | |
| gettextFunction | If using the default translator function, name of GNU gettext function to wrap. Useful for 'ungettext'. |
| Parameters | kwargs | keyword arguments for the translator function. |
| Unknown Field: keyword | translator | the translator function to use. |
| gettextFunction | The GNU gettext function to wrap. See class docstring. |
| Parameters | args | arguments to pass to translator, usually the string to translate, or for things like ungettext two strings and a number. |
| kwargs | keyword arguments for the translator. Arguments given here will override the ones given at initialization. | |
| Returns | a placeholder that will be translated when flattened. (type: PlaceHolder ) | |