Browse Source

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

JC Brand 12 years ago
parent
commit
1430689c43
2 changed files with 3 additions and 0 deletions
  1. 3 0
      converse.js
  2. 0 0
      converse.min.js

+ 3 - 0
converse.js

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

File diff suppressed because it is too large
+ 0 - 0
converse.min.js


Some files were not shown because too many files changed in this diff