[Zope-CMF] Internationlisation question

Lennart Regebro regebro at gmail.com
Thu Dec 7 06:54:56 EST 2006


On 12/4/06, Charlie Clark <charlie at begeistert.org> wrote:
> Hi,
>
> I'd to use stftime("%d %B %Y") on my website in different locales
> (de_DE and en_GB) on different parts of the website which is not
> localised but has some content in German and some different content
> in English. Somehow  I haven't quite grokked Andy McKay's explanation
> of i18n as the following code throws an error
>
> <span i18n:"data python: DateTime()"
>           i18n:translate="datefmt"
>            i18n:name="date"></span>
>
> With i18n:name I get an error that i18n:name needs to be within a
> translation unit and without it I get a cannot iterate over a non-
> sequence.
>
> So, what I am getting wrong?

This part makes no sense to me:
   i18n:"data python: DateTime()"

Maybe you meant tal:define="data python: DateTime()" ?

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.nuxeo.org/


More information about the Zope-CMF mailing list