Hi Andreas, im ersten Moment hätte ich vorgeschlagen Use cookie for manual override. zu verwenden,
allerdings haben URL language codes Vorrang gegenüber cookies. Wenn du auf die URL language codes nicht verzichten kannst oder willst, könntest du einen eigenes negotiator utility implementieren, das Interface ist zope.i18n.interfaces.INegotiator (zumindes bei Plone 3.x) Beste Grüsse Hans-Peter Use language codes in URL path for manual override. Am 10.04.2012 um 12:27 schrieb Andreas Jung: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi there, > > portal_languages supports to switch the language if there is a language > code present in the URL path (like /en or /de) - fine. > > This is fine for _anonymous_ site visitors where e.g. the language of > the forms > (in particular the extended search form) should correspond with the > language of the current site tree (english subsite, german subsite etc.) > > For authenticated users (editors) we don't want that behavior. We have > editors in 20 countries and each editor should use Plone in its own > native language. We have cases where editors have rights in different > language sections of the site. So the Plone UI should not switch from > German to English if a German editors will edit English content - it > must remain in German. Is there a reasonable approach to implement > this behavior without hacking portal_languages? > > Andreas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJPhAr3AAoJEADcfz7u4AZjVtwLvROblSAt6D5iM8ZNB1QmQY7a > edhQSl6dBw5oivRgmKlcp72kT8KjJuYv80yFYjGFol4stttgESa4ENMJxzMjTXOr > ruysfyQv/g3olUpEsvDQknz11yEeQrjYLep5SwbsEmQHtCJySvq48+THQCacwWwV > 2lssswap67nzAWb7vGVb73NXiGABWN8PUTs9g3QbBohrjPYjkkZrC9n5FKMqcM5A > h5KZ19cQ61ppelWCJ710SewPez5B0rtNZMgCRgbc1PRsd2lhBLdd/1m4ngc/qpuw > f5idwgKnFSGkcWEpJOjTbCYG+mQOWdW0zfRe1n9LRSVzoXTpRdsg7/65MmA4h0qq > 8dmFXlGBBEPQUDVVBFxJW+ARIRIrqMZeON8Qf15OOfevC4ozBr6J7u1AAW5vbkkA > McgmoMj8ndjkY0uAczITUHN/D8yzM099jeG1hOYyx08NUYacn11A5d6Qw9w1GBAv > dURXOG7+yqVERquMjk8YOOrEb8iemu0= > =ghTP > -----END PGP SIGNATURE----- > <lists.vcf>_______________________________________________ > Product-Developers mailing list > [email protected] > https://lists.plone.org/mailman/listinfo/plone-product-developers
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
