From f8ed006738963a555f691b2dfdeae19aa5ef6b0f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 4 Nov 2010 04:09:57 -0400 Subject: move i18n ZCML topics to declarative chapter --- docs/narr/declarative.rst | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'docs/narr/declarative.rst') diff --git a/docs/narr/declarative.rst b/docs/narr/declarative.rst index 85b527f3d..23ad63d2f 100644 --- a/docs/narr/declarative.rst +++ b/docs/narr/declarative.rst @@ -1089,11 +1089,48 @@ tag): See also :ref:`renderer_directive` and :meth:`pyramid.configuration.Configurator.add_renderer`. +.. _zcml_adding_a_translation_directory: + +Adding a Translation Directory via ZCML +--------------------------------------- + +You can add a translation directory via ZCML by using the +:ref:`translationdir_directive` ZCML directive: + +.. code-block:: xml + :linenos: + + + +A message catalog in a translation directory added via +:ref:`translationdir_directive` will be merged into translations from +a message catalog added earlier if both translation directories +contain translations for the same locale and :term:`translation +domain`. + +See also :ref:`translationdir_directive` and +:ref:`adding_a_translation_directory`. + +.. _zcml_adding_a_locale_negotiator: + +Adding a Custom Locale Negotiator via ZCML +------------------------------------------ + +You can add a custom locale negotiator via ZCML by using the +:ref:`localenegotiator_directive` ZCML directive: + +.. code-block:: xml + :linenos: + + + +See also :ref:`custom_locale_negotiator` and +:ref:`localenegotiator_directive`. + .. Todo .. ---- -.. - i18n chapter still has topics for ZCML - .. - events chapter still has topics for ZCML .. - hooks chapter still has topics for ZCML -- cgit v1.2.3