X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6021A3A4B78 for ; Mon, 15 Nov 2004 22:24:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72782-04 for ; Mon, 15 Nov 2004 22:24:18 +0000 (GMT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id 01B993A4221 for ; Mon, 15 Nov 2004 22:24:19 +0000 (GMT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=ratbert.vale-housing.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 4.42) id 1CTpGk-000Bzr-Am for pgsql-www@postgresql.org; Mon, 15 Nov 2004 22:24:18 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] Language selection based on browser preference, use UTF-8, care about direction, etc X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Mon, 15 Nov 2004 22:24:17 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [pgsql-www] [PATCH] Language selection based on browser preference, use UTF-8, care about direction, etc Thread-Index: AcTLH6RIEjt/R3xXSDe0rS5+/GyYpwAQirsA From: "Dave Page" To: "Omar Kilani" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/213 X-Sequence-Number: 5944 Thanks Omar, patch applied! Regards, Dave=20 > -----Original Message----- > From: pgsql-www-owner@postgresql.org=20 > [mailto:pgsql-www-owner@postgresql.org] On Behalf Of Omar Kilani > Sent: 15 November 2004 08:00 > To: pgsql-www@postgresql.org > Subject: [pgsql-www] [PATCH] Language selection based on=20 > browser preference, use UTF-8, care about direction, etc >=20 > Hello, >=20 > Attached patch: >=20 > * Picks a language based on the actual browser preference. > * Makes all pages default to UTF-8. > * Adds language direction support. > * Makes pages tell the browser what language they're in. > * Fixes language_map. > * Adds a couple of extra handy language functions. >=20 > It's in place at our pgweb, but diffed against gborg. Set=20 > your browser to 'de' (Tools -> Options -> General ->=20 > Languages, add 'German [de]' and move it up to the top) and=20 > you'll see a german news item at the top (I google translated=20 > it) of the homepage. Go to About/Advantages and you should=20 > see the german version of the page from advocacy.=20 > Right-clicking on the page and clicking 'Properties' should=20 > say "Text Language: German." >=20 > Clicking the Arabic or Hebrew on the bottom should switch the=20 > page direction. >=20 > Omar >=20