svovik1/eco-game-prototype — pull request #4 by dimasmith (2013-12-06 22:32:15+00:00)
Title: Translation engine and texts

Translation engine in i18n.js
Sample translations in i18n/ua.js and i18n/ru.js

Translation engine supports translation of both JavaScript and HTML elements.
For JavaScript enclose string you want to translate into t() function.
E.g. "Hello, translation" -> t("Hello, translation")

For HTML just add i18n class to element content of which should be translated.
To translate not content but title of element add i18n-title class
Implementation of HTML translation is inside app.js. Probably we should move it to Translator object.
#2