Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 50973 invoked from network); 19 May 2006 09:03:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2006 09:03:47 -0000 Received: (qmail 82175 invoked by uid 500); 19 May 2006 09:03:47 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 82001 invoked by uid 500); 19 May 2006 09:03:46 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 81990 invoked by uid 99); 19 May 2006 09:03:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 02:03:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.140] (HELO pythagoras.zen.co.uk) (212.23.3.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 02:03:44 -0700 Received: from [82.69.78.226] (helo=[192.168.0.2]) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1Fh0tF-0007ru-Ab for dev@forrest.apache.org; Fri, 19 May 2006 09:03:21 +0000 Message-ID: <446D89C7.1060603@apache.org> Date: Fri, 19 May 2006 10:03:03 +0100 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: Recommendations for URL-based i18n like at www.verit.de? References: <446B2322.5040008@verit.de> <446B2FAF.4020509@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Pythagoras-IP: [82.69.78.226] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Bertrand Delacretaz wrote: > (moving this from the user@ list here) > > On 5/17/06, Ross Gardler wrote: > >> ...I've been wanting to improve the i18n support for some time. By using >> the locationmap it should be possible to simulate the "Apache httpd >> magic" in a static environment. But it would requrie a little work. >> >> Join us on the dev list if you want to explore this... > > > Ok, here I am - if you can give me some pointers as to what's needed > to make the following use-case work, I'll have a look. > > My use-case: > 1. Client request with an URL like /de/path/file.html > > 2. "de" becomes the current locale for this request, overrides other > Local settings > > 3. Content is selected using the LocaleMatcher, i.e. file.de.xml if > possible, else file.en.xml if en is the default locale, else file.xml > (ideally with warnings if the document is not available in the desired > language) > > 4. Links, tabs and menus are generated (from a single set of > definitions, common to all languages) with "de" as the first path > component, to stay in the same locale. > > I've been able to get 1, 2 and 3 to work for simple cases (via a > project-specific sitemap), but I'm wondering about the best way to > implement 4. I guess, since David has you up and running with this use case we will put the improvement if i18n handling on hold. Current solution works for you and I am limited on time right now. Of course, if you hit limitations and want to look at alternatives we can do so. Until then, happy i18n. Ross