Datafable / rolling-blackout-belgium

Rolling blackout plan in Belgium
http://datafable.github.io/rolling-blackout-belgium/viz/
Other
18 stars 12 forks source link

Add multilanguage support #25

Closed peterdesmet closed 9 years ago

peterdesmet commented 9 years ago

The visualization should be available in Dutch and French, as well as English. The easiest way to do this is to create another index.html. A more scalable way to do this however, is to define the language via a query-string lang=en and add all text conditionally with if functions. You could also <span class="lang-en"> all text and only show the correct span with jQuery.

bartaelterman commented 9 years ago

I would stay with a single html file to prevent separate ones from getting out of sync. I would define all labels at one place, and insert them in the DOM using jQuery. (as proposed here).

Selection of the language could be done with a query string, or simply with buttons (where "english" would be active by default)

peterdesmet commented 9 years ago

Still to do:

peterdesmet commented 9 years ago

Is all implemented f0596cfdd115302b47aebc6f5b8ba18a9521b015