Re: [PATCH] Language selection based on browser preference, use UTF-8, care about direction, etc

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Omar Kilani" <omar(at)tinysofa(dot)org>, <pgsql-www(at)postgresql(dot)org>
Subject: Re: [PATCH] Language selection based on browser preference, use UTF-8, care about direction, etc
Date: 2004-11-15 22:24:17
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4307158@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Thanks Omar, patch applied!

Regards, Dave

> -----Original Message-----
> From: pgsql-www-owner(at)postgresql(dot)org
> [mailto:pgsql-www-owner(at)postgresql(dot)org] On Behalf Of Omar Kilani
> Sent: 15 November 2004 08:00
> To: pgsql-www(at)postgresql(dot)org
> Subject: [pgsql-www] [PATCH] Language selection based on
> browser preference, use UTF-8, care about direction, etc
>
> Hello,
>
> Attached patch:
>
> * 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.
>
> It's in place at our pgweb, but diffed against gborg. Set
> your browser to 'de' (Tools -> Options -> General ->
> Languages, add 'German [de]' and move it up to the top) and
> you'll see a german news item at the top (I google translated
> it) of the homepage. Go to About/Advantages and you should
> see the german version of the page from advocacy.
> Right-clicking on the page and clicking 'Properties' should
> say "Text Language: German."
>
> Clicking the Arabic or Hebrew on the bottom should switch the
> page direction.
>
> Omar
>

Browse pgsql-www by date

  From Date Subject
Next Message Omar Kilani 2004-11-16 05:45:24 [PATCH] Events Reorganization
Previous Message Dave Page 2004-11-15 21:40:43 Chora on GBorg