From 90a06b053165607e30aa0d87ed8f6779519dca21 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Wed, 3 Jul 2013 18:00:54 +0200 Subject: [PATCH] doc: Clean up trailing whitespace --- doc/cmdline.txt | 8 ++++---- doc/dates.txt | 2 +- doc/display.txt | 2 +- doc/messages.txt | 30 +++++++++++++++--------------- doc/setup.txt | 10 +++++----- doc/support.txt | 2 +- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/doc/cmdline.txt b/doc/cmdline.txt index e5736426..f787eb61 100644 --- a/doc/cmdline.txt +++ b/doc/cmdline.txt @@ -15,7 +15,7 @@ systems. When properly installed, Babel provides a script called ``pybabel``:: - $ pybabel --help + $ pybabel --help usage: pybabel command [options] [args] options: @@ -42,7 +42,7 @@ The ``compile`` sub-command can be used to compile translation catalogs into binary MO files:: $ pybabel compile --help - usage: pybabel compile [options] + usage: pybabel compile [options] compile message catalogs to MO files @@ -121,7 +121,7 @@ The `init` sub-command creates a new translations catalog based on a PO template file:: $ pybabel init --help - usage: pybabel init [options] + usage: pybabel init [options] create new message catalogs from a POT file @@ -147,7 +147,7 @@ The `update` sub-command updates an existing new translations catalog based on a PO template file:: $ pybabel update --help - usage: pybabel update [options] + usage: pybabel update [options] update existing message catalogs from a POT file diff --git a/doc/dates.txt b/doc/dates.txt index 7db2fe2b..d0134867 100644 --- a/doc/dates.txt +++ b/doc/dates.txt @@ -180,7 +180,7 @@ Time Fields | | ``S`` | Fractional second, rounds to the count of letters. | | +--------+--------------------------------------------------------+ | | ``A`` | Milliseconds in day. | - +----------+--------+--------------------------------------------------------+ + +----------+--------+--------------------------------------------------------+ | Timezone | ``z`` | Use one to three letters for the short timezone or | | | | four for the full name. | | +--------+--------------------------------------------------------+ diff --git a/doc/display.txt b/doc/display.txt index cacf2023..fec9222b 100644 --- a/doc/display.txt +++ b/doc/display.txt @@ -19,7 +19,7 @@ Imagine for example you have a list of countries that users can choose from, and you'd like to display the names of those countries in the language the user prefers. Instead of translating all those country names yourself in your application, you can make use of the translations provided by the locale data -included with Babel, which is based on the `Common Locale Data Repository +included with Babel, which is based on the `Common Locale Data Repository (CLDR) `_ developed and maintained by the `Unicode Consortium `_. diff --git a/doc/messages.txt b/doc/messages.txt index 2ecd2f14..a860b7e6 100644 --- a/doc/messages.txt +++ b/doc/messages.txt @@ -124,15 +124,15 @@ Genshi markup templates and text templates: .. code-block:: ini # Extraction from Python source files - + [python: **.py] - + # Extraction from Genshi HTML and text templates - + [genshi: **/templates/**.html] ignore_tags = script,style include_attrs = alt title summary - + [genshi: **/templates/**.txt] template_class = genshi.template:TextTemplate encoding = ISO-8819-15 @@ -162,9 +162,9 @@ Lines that start with a ``#`` or ``;`` character are ignored and can be used for comments. Empty lines are ignored, too. .. note:: if you're performing message extraction using the command Babel - provides for integration into ``setup.py`` scripts, you can also - provide this configuration in a different way, namely as a keyword - argument to the ``setup()`` function. See `Distutils/Setuptools + provides for integration into ``setup.py`` scripts, you can also + provide this configuration in a different way, namely as a keyword + argument to the ``setup()`` function. See `Distutils/Setuptools Integration`_ for more information. .. _`distutils/setuptools integration`: setup.html @@ -173,12 +173,12 @@ for comments. Empty lines are ignored, too. Default Extraction Methods -------------------------- -Babel comes with a few builtin extractors: ``python`` (which extracts +Babel comes with a few builtin extractors: ``python`` (which extracts messages from Python source files), ``javascript``, and ``ignore`` (which extracts nothing). The ``python`` extractor is by default mapped to the glob pattern ``**.py``, -meaning it'll be applied to all files with the ``.py`` extension in any +meaning it'll be applied to all files with the ``.py`` extension in any directory. If you specify your own mapping configuration, this default mapping is discarded, so you need to explicitly add it to your mapping (as shown in the example above.) @@ -189,21 +189,21 @@ example above.) Referencing Extraction Methods ------------------------------ -To be able to use short extraction method names such as “genshi”, you need to +To be able to use short extraction method names such as “genshi”, you need to have `pkg_resources`_ installed, and the package implementing that extraction method needs to have been installed with its meta data (the `egg-info`_). -If this is not possible for some reason, you need to map the short names to -fully qualified function names in an extract section in the mapping +If this is not possible for some reason, you need to map the short names to +fully qualified function names in an extract section in the mapping configuration. For example: .. code-block:: ini # Some custom extraction method - + [extractors] custom = mypackage.module:extract_custom - + [custom: **.ctm] some_option = foo @@ -226,7 +226,7 @@ need to implement a function that complies with the following interface: def extract_xxx(fileobj, keywords, comment_tags, options): """Extract messages from XXX files. - + :param fileobj: the file-like object the messages should be extracted from :param keywords: a list of keywords (i.e. function names) that should diff --git a/doc/setup.txt b/doc/setup.txt index 689b6def..4518445c 100644 --- a/doc/setup.txt +++ b/doc/setup.txt @@ -16,7 +16,7 @@ and ``setup.py`` is using ``setuptools``. For projects that use plain old from distutils.core import setup from babel.messages import frontend as babel - + setup( ... cmdclass = {'compile_catalog': babel.compile_catalog, @@ -45,7 +45,7 @@ If the command has been correctly installed or registered, a project's --quiet (-q) run quietly (turns verbosity off) --dry-run (-n) don't actually do anything --help (-h) show detailed help message - + Options for 'compile_catalog' command: ... @@ -109,7 +109,7 @@ If the command has been correctly installed or registered, a project's --quiet (-q) run quietly (turns verbosity off) --dry-run (-n) don't actually do anything --help (-h) show detailed help message - + Options for 'extract_messages' command: ... @@ -135,7 +135,7 @@ function: .. code-block:: python setup(... - + message_extractors = { 'foobar': [ ('**.py', 'python', None), @@ -145,7 +145,7 @@ function: }) ], }, - + ... ) diff --git a/doc/support.txt b/doc/support.txt index 15b083c6..5d17261b 100644 --- a/doc/support.txt +++ b/doc/support.txt @@ -12,7 +12,7 @@ The ``babel.support`` modules contains a number of classes and functions that can help with integrating Babel, and internationalization in general, into your application or framework. The code in this module is not used by Babel itself, but instead is provided to address common requirements of applications that -should handle internationalization. +should handle internationalization. --------------- -- 2.47.3