summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-19 14:41:17 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-19 14:41:17 +0000
commit3f8195a1b05dbc0a6ed039ea645d95359a7f87c8 (patch)
treee8633947f1c91f29b46a6c8be3cefc30ce9ac3ec /docs/api
parentafc5507a220250dad848bcc9faf7cc4aec12f108 (diff)
downloadpyramid-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.rst14
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