Преглед изворни кода

Include Jed for the nolocales option.

We need variable sprintf type var interpolation
JC Brand пре 12 година
родитељ
комит
563987cf29
2 измењених фајлова са 5 додато и 6 уклоњено
  1. 0 3
      converse.js
  2. 5 3
      locale/nolocales.js

+ 0 - 3
converse.js

@@ -81,9 +81,6 @@
         var __ = $.proxy(function (str) {
             /* Translation factory
              */
-            if (this.i18n === undefined) {
-                return str;
-            }
             var t = this.i18n.translate(str);
             if (arguments.length>1) {
                 return t.fetch.apply(t, [].slice.call(arguments,1));

+ 5 - 3
locale/nolocales.js

@@ -1,9 +1,11 @@
 /*
  * This file can be used if no locale support is required.
  */
-
 (function (root, factory) {
-    define("locales", [], function () {
-        root.locales = {};
+    define("locales", [
+            'jed',
+            "locale/en/LC_MESSAGES/en"
+        ], function (jed, en) {
+            root.locales = { 'en': en };
     });
 })(this);