We need variable sprintf type var interpolation
@@ -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));
@@ -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);