Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 45619 invoked from network); 12 Jul 2004 11:24:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Jul 2004 11:24:45 -0000 Received: (qmail 61656 invoked by uid 500); 12 Jul 2004 11:24:42 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 61625 invoked by uid 500); 12 Jul 2004 11:24:41 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 61610 invoked by uid 99); 12 Jul 2004 11:24:41 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 12 Jul 2004 04:24:38 -0700 Received: (qmail 3665 invoked by uid 50); 12 Jul 2004 11:25:59 -0000 Date: 12 Jul 2004 11:25:59 -0000 Message-ID: <20040712112559.3664.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@cocoon.apache.org Cc: Subject: DO NOT REPLY [Bug 30046] New: - Bring the new I18NMatcher in line with LocaleAction X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30046 Bring the new I18NMatcher in line with LocaleAction Summary: Bring the new I18NMatcher in line with LocaleAction Product: Cocoon 2 Version: Current CVS 2.1 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: core AssignedTo: dev@cocoon.apache.org ReportedBy: sjur.moshagen@kolumbus.fi The new document-oriented i18n support added by Upayavira works mostly like the existing i18n in terms of gracefull degradation (ru_EE_KOI8 -> ru_EE -> ru), but does not check for two cases: locale in session locale in cookie The first implementation has the following search order (original text slightly edited): "The site will cater for locale provided: - as a request parameter, - as one of the acceptable locales configured within the browser, or - as a site default." The LocaleAction documentation says: "The following search criteria are used in order when ascertaining locale values: 1. Request CGI parameter locale 2. Session attribute locale 3. First matching Cookie parameter locale within each cookie sent with the current request 4. Locale setting of the requesting object" and there is also a notion of a default locale if no match was found (corresponding to the last case in I18NMatcher). ***The idea is to add criteria 2. and 3. from LocaleAction to the new I18NMatcher.*** The relevant e-mail discussion is here (see esp. the 3.-4. last messages): http://marc.theaimsgroup.com/?t=108932085200002&r=1&w=2&n=18 LocaleAction documentation is found here: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/LocaleAction.html The two new search criteria should be combined with corresponding (configurable) actions of setting the locale in the session/a cookie, cf. the present i18n support. With these additions, user locale overrides could be maintained throughout a session without further work by the webapp developer, and potentially longer (for the life of the cookie). This again will give a nicer user experience. Making the two i18n parts behave similar/identical will also ease i18n of webapps.