Add multi-lingual support to Helioviewer.org
Bug #697184 reported by
Keith Hughitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Helioviewer.org |
New
|
Wishlist
|
Unassigned |
Bug Description
For example,
A very simple implementation would be to create a "language" folder with different flat files: "en", "de", "zh-CN", "zh-TW", etc. Each of the files includes translations for each of the major UI components, the welcome message, etc. When a user visits the site we could then detect their location/language, we could then look for the associated language file. If none exists, the English version could be used as a fall-back.
To post a comment you must log in.
Detecting the user's language:
// Client-side (may not work in all browsers?) language) ? navigator.language : navigator. userLanguage;
var lang = (navigator.
// Server-side 'HTTP_ACCEPT_ LANGUAGE' ];
$lang = $_SERVER[