Michael Merickel
2017-01-17 4c575ff7bbd8af4786561221cae5631c0f708b67
backport doc fixes to 1.7-branch for #1473
1 files modified
23 ■■■■■ changed files
pyramid/config/i18n.py 23 ●●●●● patch | view | raw | blame | history
pyramid/config/i18n.py
@@ -60,15 +60,20 @@
           config.add_translation_dirs('/usr/share/locale',
                                       'some.package:locale')
        Later calls to ``add_translation_dir`` insert directories into the
        beginning of the list of translation directories created by earlier
        calls.  This means that the same translation found in a directory
        added later in the configuration process will be found before one
        added earlier in the configuration process.  However, if multiple
        specs are provided in a single call to ``add_translation_dirs``, the
        directories will be inserted into the beginning of the directory list
        in the order they're provided in the ``*specs`` list argument (items
        earlier in the list trump ones later in the list).
        The translation directories are defined as a list in which
        translations defined later have precedence over translations defined
        earlier.
        If multiple specs are provided in a single call to
        ``add_translation_dirs``, the directories will be inserted in the
        order they're provided (earlier items are trumped by later items).
        .. warning::
           Consecutive calls to ``add_translation_dirs`` will sort the
           directories such that the later calls will add folders with
           lower precedence than earlier calls.
        """
        directories = []
        introspectables = []