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

Sebastian Ware sebastian at urbantalk.se
Thu Mar 26 09:54:25 EDT 2009


26 mar 2009 kl. 14.32 skrev Vincent Fretin:

> On Thu, Mar 26, 2009 at 2:11 PM, Sebastian Ware <sebastian at urbantalk.se 
> > wrote:
>> Everything is very straight forward so far :) I think it works with
>> all-in-one, I just skipped the Plone part.
>>
>> I have been following the instructions and have some questions:
>>
>> -how do I set the "current" language in my application?
> implement your own IUserPreferredLanguages adapter maybe? It's an
> adapter on the request, you can search preferred language in the
> request, in a cookie, or where you want to store the user preferred
> language.
>

Found the info in PvW's book :)

>> -can I set the locales directory in buildout rather than having to  
>> edit
>> configure.zcml?
> You have to add the line in configure.zcml. There is no way to skip
> it. It's needed for zope.i18n.

Bummer.

>
>
>> -should I skip the "Extracting strings with i18ndude" and use  
>> "Extracting
>> strings with lovely.recipe:i18n" or doesn't this matter?
> I think you can skip i18ndude when you use grok. You should only use
> z3c.recipe.i18n recipe (was lovely.recipe before) in your buildout.cfg
> -- 

Thank's for your howto! I am making some progress.

Mvh Sebastian




More information about the Grok-dev mailing list