Hello Hanno,

Le 29/01/10 09:46, Hanno Schlichting a écrit :
> On Fri, Jan 29, 2010 at 2:12 AM, Damien Baty <damien.b...@gmail.com> wrote:
>>  Does anyone have feedback about i18n with BFG?
> Personally I'd suggest to use Babel instead of zope.i18n. [...]

I will certainly take a look at it. Thanks. What is the status of your
zope.babel [1] package: any plan to release it?

>> 10. In your views, instead of calling
>> "repoze.bfg.chameleon_zpt.render_template_to_response()", call this method:
>>    from repoze.bfg.chameleon_zpt import render_template_to_response as
>> base_render
>>    from myapp.i18n import getPreferredLanguage
>>    def render_template_to_response(template, request, **kwargs):
>>        kwargs.update(target_language=getPreferredLanguage(request))
>>        return base_render(template, **kwargs)
> Did I miss the code for getPreferredLanguage?

It was in the file attached to my previous e-mail:

Damien Baty
Repoze-dev mailing list

Reply via email to