wrapped I18n.lookup to inject the "js" namespace

This commit is contained in:
Régis Hanol
2013-07-09 01:32:16 +02:00
parent e993d6b29b
commit 924c5d65cb
85 changed files with 346 additions and 352 deletions

View File

@ -18,9 +18,9 @@ Discourse.AdminUserController = Discourse.ObjectController.extend({
data: {title: this.get('title')},
type: 'PUT'
}).then(null, function(e){
bootbox.alert(Em.String.i18n("generic_error_with_reason", {error: "http: " + e.status + " - " + e.body}));
bootbox.alert(I18n.t("generic_error_with_reason", {error: "http: " + e.status + " - " + e.body}));
});
this.toggleTitleEdit();
}
});
});