On Tue, 2011-06-21 at 23:41 -0700, Robert Forkel wrote:
> Hi all,
> in my pyramid application i make use of additional translation
> directories provided by plugins to override messages defined in the
> default translation. So i have to rely on the order of translation
> directories. To make sure this can be relied upon, i looked through
> the pyramid code and found that in i18n.make_localizer the order of
> translation directories is reversed compared to the order i specified
> in my Configurator.add_translation_dirs call. It seems to get reversed
> in the queryUtility. I don't have a problem with this but wanted to
> know, whether this behaviour can be relied upon.
> best regards,
> robert

I've changed the behavior on the master branch (what will become 1.1) to
add the directories in the order provided when multiple directories are
fed to add_translation_dirs:

https://github.com/Pylons/pyramid/commit/6ed33ec54b0dae6ae2a38a0c7a6d383e2ac1967e

Definitely call add_translation_dirs multiple times to preserve forward
compatibility as a result.

Thanks!

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to