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
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
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
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
') 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
: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
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
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
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
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
___
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
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,
12 matches
Mail list logo