I'm interested a lot in this topic too - I think that if we could agree on a feasible and sensible approach, then a lot of the infrastructure could be shared and reused for any language that anyone cared to provide support for... maybe a way of tie-ing mapping dictionaries to arbitrary objects, and then some conventions for naming the various messages... if we decided on the right implementation then automatic content negotiation could be easy to implement, too! (I am personally interested in Japanese...) A combination of server settings (environment variables, maybe a Control Panel widget or Locale object) and the desired HTTP_ACCEPT_CHARSET could be used to decide what language to use. I'm not sure what the cleanest way to do this would be... there are a *lot* of english string literals everywhere in the code right now, so internationalisation would involve at the very least adding one extra level of indirection everywhere those string literals are being used... but I think this could be really good in the long run. Anyways, I'm pretty interested in the ZIP too, if it starts up! --Brian Martijn Faassen <faassen@vet.uu.nl> wrote:
Thilo Mezger wrote: [snip internationalisation problems with money and time]
I'd like to add translation to this; it'd be nice if there was a facility in Zope to get the same text in multiple languages in a consistent way. I imagine using acquisition could be of service here. For instance:
Displays 'foo' in the default language.
Tries to display 'foo' in English, if possible, otherwise displays 'sorry, can't translate'.
http://localhost/Nederlands/foo
Tries to display 'foo' in Dutch, if possible, otherwise displays 'sorry, kan niet vertalen'.
Is this feasible? You'd need some consistent way to store HTML in more than a single language; perhaps a MultiLingualDTMLDocument, or something like that?
therefore, i'd like to suggest the creating of ZIP - the
ZOPE INTERNATIONALIZATION PROJECT
Cool! :) I'm interested, though I don't know how much input I can give given lack of time. I'll join any mailing list on this that's opened, though.
Regards,
Martijn
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev
(For non-developer, user-level issues, use the companion list, zope@zope.org, http://www.zope.org/mailman/listinfo/zope )