From ddf07e7f1486b195bc337a3035f6852980a4d3d7 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 02:43:02 -0500 Subject: - Add (minimal) documentation about using I18N within Mako templates to "Internationalization and Localization" narrative chapter. --- CHANGES.txt | 3 +++ TODO.txt | 13 ++++++++----- docs/narr/i18n.rst | 7 +++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 5c5588a45..4cea09e98 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -29,6 +29,9 @@ Documentation ``route_path``, ``route_url``, and ``static_url`` methods to ``pyramid.request.Request`` API docs. +- Add (minimal) documentation about using I18N within Mako templates to + "Internationalization and Localization" narrative chapter. + Deprecations ------------- diff --git a/TODO.txt b/TODO.txt index aedd774d7..2babd5bc8 100644 --- a/TODO.txt +++ b/TODO.txt @@ -8,17 +8,20 @@ Must-Have (before 1.0) - MANIFEST.in? https://github.com/Pylons/pyramid/issues#issue/95 -- Explain how to use i18n localization in Mako and Jinja2. See also - - http://groups.google.com/group/pylons-devel/msg/ab58353594b135c9 and - https://github.com/Pylons/pyramid_jinja2/pull/14 (pyramid_jinja2 i18n), as - well as - - http://blog.abourget.net/2011/1/13/pyramid-and-mako:-how-to-do-i18n-the-pylons-way/ +- Explain how to use i18n localization in Mako better. Currently we just + link to + http://blog.abourget.net/2011/1/13/pyramid-and-mako:-how-to-do-i18n-the-pylons-way/, + but I've asked Alexandre if we can include his text in the documentation. - Figure out what to do with "Forms" chapter in narr docs. Should-Have ----------- +- I18N support for pyramid_jinja2. See also - + http://groups.google.com/group/pylons-devel/msg/ab58353594b135c9 and + https://github.com/Pylons/pyramid_jinja2/pull/14 + - Speed up startup time (defer _bootstrap and registerCommonDirectives() until needed by ZCML, as well as unfound speedups). diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index 83973a17e..02e7dba64 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -735,6 +735,13 @@ this support out of the box and may need special code to do an equivalent. For those, you can always use the more manual translation facility described in :ref:`performing_a_translation`. +Mako Pyramid I18N Support +------------------------- + +See `Alexandre Bourget's blog entry +`_ +to add idiomatic I18N support to :term:`Mako` templates. + .. index:: single: localization deployment settings single: default_locale_name -- cgit v1.2.3