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

@@ -19,7 +19,7 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({
item.disagreeFlags().then((function() {
adminFlagsController.removeObject(item);
}), function() {
bootbox.alert(Em.String.i18n("admin.flags.error"));
bootbox.alert(I18n.t("admin.flags.error"));
});
},
@@ -28,7 +28,7 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({
item.agreeFlags().then((function() {
adminFlagsController.removeObject(item);
}), function() {
bootbox.alert(Em.String.i18n("admin.flags.error"));
bootbox.alert(I18n.t("admin.flags.error"));
});
},
@@ -37,7 +37,7 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({
item.deferFlags().then((function() {
adminFlagsController.removeObject(item);
}), function() {
bootbox.alert(Em.String.i18n("admin.flags.error"));
bootbox.alert(I18n.t("admin.flags.error"));
});
},
@@ -52,7 +52,7 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({
item.deletePost().then((function() {
adminFlagsController.removeObject(item);
}), function() {
bootbox.alert(Em.String.i18n("admin.flags.error"));
bootbox.alert(I18n.t("admin.flags.error"));
});
},