Add multi-lingual support to Helioviewer.org

Bug #697184 reported by Keith Hughitt
6
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.

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

Detecting the user's language:

// Client-side (may not work in all browsers?)
var lang = (navigator.language) ? navigator.language : navigator.userLanguage;

// Server-side
$lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.