On Thu, 20 Jan 2011 13:25:15 +0100, stof <[email protected]> wrote:
> Hi,
> 
> the fallback behavior of the Translator is not the one defined in the
doc.
> 
> Documented behavior when trying to find a fr_FR translation:
> - try fr_FR
> - then fr
> - then the fallback locale (if defined)
> 
> Implemented behavior
> - try fr_FR
> - then try fr if the fallback locale is not defined or try the fallback
> locale if defined.
> 
> The documented behavior seems to be the correct one as using a fr
> translation makes more sense than using en if the fr_FR translation is
not
> there.
> 
> If you agree with the change I can provide a patch to fix it.

Reading the code of the translator carefully it should be able to behave
as described in the doc. So seems like it is not a missing feature but a
bug.

-- 
Christophe | Stof

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" 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/symfony-devs?hl=en

Reply via email to