Parcourir la source

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

JC Brand il y a 12 ans
Parent
commit
1430689c43
2 fichiers modifiés avec 3 ajouts et 0 suppressions
  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));

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
converse.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff