diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-19 14:41:17 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-19 14:41:17 +0000 |
| commit | 3f8195a1b05dbc0a6ed039ea645d95359a7f87c8 (patch) | |
| tree | e8633947f1c91f29b46a6c8be3cefc30ce9ac3ec /docs/api | |
| parent | afc5507a220250dad848bcc9faf7cc4aec12f108 (diff) | |
| download | pyramid-3f8195a1b05dbc0a6ed039ea645d95359a7f87c8.tar.gz pyramid-3f8195a1b05dbc0a6ed039ea645d95359a7f87c8.tar.bz2 pyramid-3f8195a1b05dbc0a6ed039ea645d95359a7f87c8.zip | |
Go with a subclass of z.i18nmid.Message with the args reordered as a compromise.
Make get_translation always return something.
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/i18n.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/api/i18n.rst b/docs/api/i18n.rst index 604bf7cd1..a67350b64 100644 --- a/docs/api/i18n.rst +++ b/docs/api/i18n.rst @@ -5,15 +5,15 @@ .. automodule:: repoze.bfg.i18n - .. autofunction:: get_translator(request) + .. autoclass:: TranslationString + + .. autoclass:: TranslationStringFactory + + .. autoinstance:: bfg_tstr - .. function:: msg(text, domain=None, default=None, mapping=None) + .. autofunction:: get_translator(request) - Create a :class:`repoze.bfg.i18n.TranslationString` instance in - the ``bfg`` domain. If this is a "technical" translation, use a - opaque string for ``text``, and make the ``default`` the format - string. if this is a nontechnical translation, pass ``text`` - without a ``default``. + .. autofunction:: interpolate .. autoclass:: InterpolationOnlyTranslator |
