Andreas Jung, on 2008-08-20: > > Sorry for a possibly stupid question:
Sorry for a possibly stupid answer. :) > I have a site with two subdirs /en and /de. Within a custom theme I want to > switch the Plone language to 'de' or 'en' based on the URL (this is > basically necessary for making some PFG generated forms aware of the current > language - otherwise the validation texts might appear in the wrong > language). What's the recommended what to switch the language within one > request? In the ZMI in portal_languages switch on option 1: "Use language codes in URL path for manual override." This used to be available in the plone control panel, but not anymore since Plone 3. When I then enable English, German and Dutch and add content in the Plone Site root with ids en, de and nl, and then visit those items, the languages are English, German and Dutch, respectively. I don't think LinguaPlone is needed for this, but that is what I tested with. -- Maurits van Rees | http://maurits.vanrees.org/ Work | http://zestsoftware.nl/ "This is your day, don't let them take it away." [Barlow Girl] _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
