Namespace

translationEngine

translationEngine()

gettext.jsxinc.
by Duduf and Guillaume Potier.
Version:
  • 1.0.0
Author:
  • Nicolas Dufresne and contributors
License:
  • MIT

View Source DuAEF.jsxinc, line 3202

Example
// Encapsulate everything to avoid global variables!
(function()
{
		#include "../lib/gettext.js"

		i18n = i18n();

		i18n.setMessages('messages', 'en', {
			'Test failed!': 'Test successfull!',
		}, 'nplurals=2; plural=n>1;');

		i18n.setLocale('en');

		alert(i18n._('Test failed!'));
})();