[Grok-dev] Internationalisation, is the howto current?

Vincent Fretin vincent.fretin at gmail.com
Thu Mar 26 10:22:37 EDT 2009


On Thu, Mar 26, 2009 at 3:16 PM, Sebastian Ware <sebastian at urbantalk.se> wrote:
> If the prefered language is 'en-us' should it find translations in the
> directory
>
>  locales/en
>
> or do I have to call it
>
>  locales/en-us
>
> Mvh Sebastian
>
I think the default zope3 implementation of IUserPreferredLanguage
don't use combined language language-country. I think it only take the
first part. So locales/en is the way to go. Or if the default zope3
implementation supports combined languages, I think it search for
locales/en_us (the underscore is important here, and maybe the case is
important too, so en_US) first and if not found, fallback to
locales/en.

-- 
Vincent Fretin


More information about the Grok-dev mailing list