Commit 563987cf authored by JC Brand's avatar JC Brand

Include Jed for the nolocales option.

We need variable sprintf type var interpolation
parent 661199dd
...@@ -81,9 +81,6 @@ ...@@ -81,9 +81,6 @@
var __ = $.proxy(function (str) { var __ = $.proxy(function (str) {
/* Translation factory /* Translation factory
*/ */
if (this.i18n === undefined) {
return str;
}
var t = this.i18n.translate(str); var t = this.i18n.translate(str);
if (arguments.length>1) { if (arguments.length>1) {
return t.fetch.apply(t, [].slice.call(arguments,1)); return t.fetch.apply(t, [].slice.call(arguments,1));
......
/* /*
* This file can be used if no locale support is required. * This file can be used if no locale support is required.
*/ */
(function (root, factory) { (function (root, factory) {
define("locales", [], function () { define("locales", [
root.locales = {}; 'jed',
"locale/en/LC_MESSAGES/en"
], function (jed, en) {
root.locales = { 'en': en };
}); });
})(this); })(this);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment