[Grok-dev] Chameleon and i18n

Souheil CHELFOUH trollfot at gmail.com
Tue Feb 9 09:23:12 EST 2010


I think that the request language is not taken by default so it's
always considered as english.
You can have a look here : http://chameleon.repoze.org/docs/latest/i18n.html
Have a look at the i18n:target.



2010/2/9 Sylvain Boureliou <sylvain.boureliou at makina-corpus.com>:
> Hi all,
>
> I'm using megrok.chameleon (0.2) for some templates in Grok (1.1a1) but
> I can't translate i18n messageid in Chameleon templates.
>
> My translations are located in
> myapp/locales/fr/LC_MESSAGES/fruitsvegetables.mo & .po and they are
> registred with zcml <i18n:registerTranslations directory="locales" />.
>
> Translations work fine with classic ".pt" templates but not with ".cpt"
> templates.
>
> I certainly have miss something. Have you any idea?
> Thanks for your help.
>
> Cheers,
> Sylvain
>
> --
> Sylvain Boureliou, Ingénieur Zope/Python/Plone
> MAKINA CORPUS - www.makina-corpus.com
> 44 Boulevard des pas enchantés FR-44230 Saint Sébastien Sur Loire
> T : +33 (0) 2 51 79 80 80
>
> Email : sylvain.boureliou at makina-corpus.com
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list