From 7534bae0c5eeb34a0146e76a81a9312797f6ba5c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Apr 2010 00:02:12 +0000 Subject: Merge i18n branch via svn merge --ignore-ancestry -r9030:9150 $REPOZE_SVN/repoze.bfg/branches/i18n No foreigners were harmed in the coding of this feature. --- docs/api/i18n.rst | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/api/i18n.rst (limited to 'docs/api/i18n.rst') diff --git a/docs/api/i18n.rst b/docs/api/i18n.rst new file mode 100644 index 000000000..6562bb13b --- /dev/null +++ b/docs/api/i18n.rst @@ -0,0 +1,31 @@ +.. _i18n_module: + +:mod:`repoze.bfg.i18n` +---------------------- + +.. automodule:: repoze.bfg.i18n + + .. autoclass:: TranslationString + + .. autoclass:: TranslationStringFactory + + .. autoclass:: Localizer + :members: + + .. attribute:: locale_name + + The locale name for this localizer (e.g. ``en`` or ``en_US``). + + .. autofunction:: get_localizer + + .. autofunction:: negotiate_locale_name + + .. autofunction:: get_locale_name + + .. autofunction:: default_locale_negotiator + +See :ref:`i18n_chapter` for more information about using +:mod:`repoze.bfg` internationalization and localization services +within an application. + + -- cgit v1.2.3