From: | Omar Kilani <omar(at)tinysofa(dot)org> |
---|---|
To: | pgsql-www(at)postgresql(dot)org |
Subject: | [PATCH] Language selection based on browser preference, use UTF-8, care about direction, etc |
Date: | 2004-11-15 07:59:39 |
Message-ID: | 419861EB.1000801@tinysofa.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-www |
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
Attachment | Content-Type | Size |
---|---|---|
pgweb-language.patch | text/plain | 5.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Ryan | 2004-11-15 13:18:19 | Re: busted commit :Add the developer link to main menu and pointer page with developer links |
Previous Message | Dave Page | 2004-11-13 22:10:20 | Re: Initial work on interfaces.html |