From 15a6d9c2bb145a2f67cb6213f89e6e9c899a719b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 29 Apr 2010 23:56:34 +0000 Subject: Wording. --- docs/narr/i18n.rst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/narr') diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index 0e1d99b9e..26d162862 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -294,15 +294,17 @@ install Babel like so: Changing the ``setup.py`` +++++++++++++++++++++++++ -You need some "hair" to your application's ``setup.py`` file (see -:ref:`project_narr` for information about the composition of an -application's ``setup.py`` file) in order to properly generate -:term:`gettext` files from your application. +You need a to add a few boilerplate lines to your application's +``setup.py`` file in order to properly generate :term:`gettext` files +from your application. -In particular, add the ``Babel`` distribution to your application's +.. note:: See :ref:`project_narr` to learn about about the + composition of an application's ``setup.py`` file. + +In particular, add the ``Babel`` distribution to the ``install_requires`` list and insert a set of references to :term:`Babel` *message extractors* within the call to -:func:`setuptools.setup`: +:func:`setuptools.setup` inside your application's ``setup.py`` file: .. code-block:: python :linenos: -- cgit v1.2.3