OCamlPro/tryocaml — pull request #25 by lefessan (2011-12-30 22:37:09+00:00)
Title: simple machinery for internationalization

I made some simple modifications to allow internationalization:

To translate in a language:
- add the extension for your language as a file in lessons/lang/ (for example, "lessons/lang/fr")
- for each .html file that you translate, add the translation as .html.$LANG (for example, "lessons/lesson1/lesson.html.fr")

In the Tutorial module, there is a "set_lang" function (set_lang "fr", for example), and a "lang()" function to get the current language ("" by default).