Commit 1430689c authored by JC Brand's avatar JC Brand

Bugfix. Fall back to 'en' if non-existing locale was specified.

parent adfe473b
......@@ -83,6 +83,9 @@
var __ = $.proxy(function (str) {
/* Translation factory
*/
if (this.i18n === undefined) {
this.i18n = locales['en'];
}
var t = this.i18n.translate(str);
if (arguments.length>1) {
return t.fetch.apply(t, [].slice.call(arguments,1));
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment