l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Mar 12 12:38

The following is an archive of a post made to our 'vox mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox] New, improved Tux Paint site!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox] New, improved Tux Paint site!


Okay, I'm pretty much doing this now.  I keep track of which pages are
translated into what lanuages (I did this before to show the flag icons
at the top).

If the page hasn't been translated into the language they apparently chose
using the form (say, "Catalan"), the PHP variable "HTTP_ACCEPT_LANGUAGE"
is examined to see their preference.  If the page is translated into one
of the languages they accept (say, "Spanish"), that version of the
page is shown.  Otherwise, it kicks down to English.

So for example, right now, I tell Mozilla I want Japanese as #1 top choice,
Spanish as #2, and English as #3.  ("Prefs -> Navigator -> Language")

If I hit the URL:


it displays the Japanes version of the "About" page.  If I click "Reviews",
I get the Spanish version.  (Because that page hasn't been translated into
Japanese yet.)

If I hit the "Contact" page, I get the Enlgish version (because, that's
the only one available :^) )

Of course, I can override my presumed preference for Japanese by clicking
the language in the little dropdown menu at the bottom right of a page.
(And now, only the languages that particular page is available in are

If I hit a page not translated, it once again checks ACCEPT_LANGUAGE to
decide what to try next. :^)


Thx everyone!

vox mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.