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

From Dave Page
Subject Re: [PATCH] Language selection based on browser preference, use UTF-8, care about direction, etc
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4307158@ratbert.vale-housing.co.uk
Whole thread Raw
List pgsql-www
Thanks Omar, patch applied!

Regards, Dave

> -----Original Message-----
> From: pgsql-www-owner@postgresql.org
> [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
> 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
>

pgsql-www by date:

Previous
From: "Dave Page"
Date:
Subject: Chora on GBorg
Next
From: www@www.postgresql.com (World Wide Web Owner)
Date:
Subject: New News Entry