Ver Fonte

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

JC Brand há 12 anos atrás
pai
commit
1430689c43
2 ficheiros alterados com 3 adições e 0 exclusões
  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));

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
converse.min.js


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff