From 3f8195a1b05dbc0a6ed039ea645d95359a7f87c8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 19 Apr 2010 14:41:17 +0000 Subject: Go with a subclass of z.i18nmid.Message with the args reordered as a compromise. Make get_translation always return something. --- docs/api/i18n.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/api') 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 -- cgit v1.2.3