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

This commit is contained in:
JC Brand 2013-08-28 00:47:14 +02:00
parent adfe473b40
commit 1430689c43
2 changed files with 4 additions and 1 deletions

View File

@ -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));

2
converse.min.js vendored

File diff suppressed because one or more lines are too long