فهرست منبع

Don't reference LC_MESSAGES/en Bungle doesn't seem to find it.

JC Brand 12 سال پیش
والد
کامیت
b61c936790
1فایلهای تغییر یافته به همراه14 افزوده شده و 5 حذف شده
  1. 14 5
      locale/nolocales.js

+ 14 - 5
locale/nolocales.js

@@ -2,10 +2,19 @@
  * This file can be used if no locale support is required.
  */
 (function (root, factory) {
-    define("locales", [
-            'jed',
-            "locale/en/LC_MESSAGES/en"
-        ], function (jed, en) {
-            root.locales = { 'en': en };
+    define("locales", ['jed'], function (jed) {
+        var translations = {
+            "domain": "converse",
+            "locale_data": {
+                "converse": {
+                    "": {
+                        "domain": "converse",
+                        "lang": "en",
+                        "plural_forms": "nplurals=2; plural=(n != 1);"
+                    }
+                }
+            }
+        };
+        root.locales = { 'en': factory(new Jed(translations)) };
     });
 })(this);