[Zope-dev] i18n:translate - problem
Chris Withers
chris at simplistix.co.uk
Wed Dec 22 04:51:30 EST 2004
Bernd Dorn wrote:
>> When I do .po files with the same domain, e.g: "Domain: CMS\n" and
>> they have different "Language-Code:" header e.g: "Language-Code: pl\n"
>> and "Language-Code: en\n" Zope chooses language based on web browser
>> settings :(. When I'm setting "xml:lang" and "lang" attributtes it
>> doesen't make effect.
>
> i suppose you need a manual lang switch on your site ...
>
> take a look at PlacelessTranslationService/Negotiator.py
> you can set a cookie called 'pts_language'
...or you can just write a negotiator that behaves the way you want.
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-Dev
mailing list