Re: [Zope] five i18n

2006-01-18 Thread Jürgen Herrmann
me again :) some more things i found out: 1. MyLanguages is instantiated on every http request but regardless of what i return (['DE'] or ['de']) i always get the english translation. weird?! 2. seems that only page templates served through an http request trigger the i18n stuff at all. if so, ho

Re: [Zope] five i18n

2006-01-18 Thread Martijn Faassen
Jürgen Herrmann wrote: just tried this: hacked in a MyLanguages in five's i18n.py: class MyLanguages(object): """ fake """ implements(IUserPreferredLanguages) def __init__(self, context): self.context = context def getPreferredLanguages(self): return ('DE') an

Re: [Zope] five i18n

2006-01-18 Thread Martijn Faassen
Lennart Regebro wrote: On 1/18/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: - how can i set the target language for the translation in the zpt? That's tricky! :) You need either Localizer or the plone tool for that now, I think. But it's mentioned in the documentation. By default it just

Re: [Zope] five i18n

2006-01-18 Thread Lennart Regebro
On 1/18/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: > 2. does the translation also work with page template files? Yes. The work either when you use i18n.translate() from python, or when you do i18n:something in ZPT. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management

Re: [Zope] five i18n (addendum)

2006-01-18 Thread Jürgen Herrmann
') or ('de') - tried both to no avail :( > 2. does the translation also work with page template files? > > regards, juergen > > On Wed, January 18, 2006 14:28, Lennart Regebro wrote: >> On 1/18/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: >>> do

Re: [Zope] five i18n

2006-01-18 Thread Jürgen Herrmann
:28, Lennart Regebro wrote: > On 1/18/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: >> does the zope/five/i18n machinery tell anything about it's startup >> phase (finding message catalogs etc.) in the logs or while watching >> runzope output? > > Nope. It would p

Re: [Zope] five i18n

2006-01-18 Thread Jürgen Herrmann
On Wed, January 18, 2006 14:28, Lennart Regebro wrote: > On 1/18/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: >> does the zope/five/i18n machinery tell anything about it's startup >> phase (finding message catalogs etc.) in the logs or while watching >> ru

Re: [Zope] five i18n

2006-01-18 Thread Lennart Regebro
On 1/18/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: > does the zope/five/i18n machinery tell anything about it's startup > phase (finding message catalogs etc.) in the logs or while watching > runzope output? Nope. It would probably be good if the registerTranslations state

Re: [Zope] five i18n

2006-01-18 Thread Jürgen Herrmann
does the zope/five/i18n machinery tell anything about it's startup phase (finding message catalogs etc.) in the logs or while watching runzope output? i don't see anything here, and still didn't get it to work. - what are the preconditions to get it working? i use plain zope pag

Re: [Zope] five i18n

2006-01-17 Thread Martijn Pieters
On 1/17/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: > does anybody have a five product that uses i18n that i can have a look at? > i don't seem to get it right... See Philipps tutorial on the subject: http://worldcookery.com/files/fivei18n/ -- Martijn Pieters ___

Re: [Zope] five i18n

2006-01-17 Thread Lennart Regebro
On 1/17/06, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: > hi all! > > does anybody have a five product that uses i18n that i can have a look at? > i don't seem to get it right... Yeah, the CalZope trunk does it: http://svn.nuxeo.org/trac/pub/browser/CalZope/trunk/ -- Lennart Regebro, Nuxeo htt

[Zope] five i18n

2006-01-17 Thread Jürgen Herrmann
hi all! does anybody have a five product that uses i18n that i can have a look at? i don't seem to get it right... thanks & regards, juergen ___ >> XLhost.de - eXperts in Linux hosting << Jürgen Herrmann Bruderwöhrdstraße 15b,