GatineauOuverte/parcs — pull request #15 by scarsick (2012-04-02 23:45:35+00:00)
Title: Support i18n de base

Bonjour,

J'ai ajouté un support de base pour l'internationalisation, basé sur l'idée d'implémentation de @philippec.
Laissez-moi savoir ce que vous en pensez...

Détails:

- The app will first load the locale support file located in data/ and will then initialize the rest of the app.

- The initial default locale is 'fr' and we can switch between different
locales by passing a locale url param. E.g **index.html?locale=en**
Once the locale have been switched, it is saved in the ```localStorage``` and
will become the new default.

- To render localized labels into static html elements, you can use the
data-label attribute on the element. E.g. ```

```
Here the application will look into ```localeData.labels``` for the ```myLabel``` key
and if it finds it, will set the ```innerHTML``` property of the div to the
value.