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
@@ -20,8 +20,8 @@ Discourse.SplitTopicController = Discourse.ObjectController.extend(Discourse.Sel
}.property('saving', 'topicName'),
buttonTitle: function() {
if (this.get('saving')) return Em.String.i18n('saving');
return Em.String.i18n('topic.split_topic.action');
if (this.get('saving')) return I18n.t('saving');
return I18n.t('topic.split_topic.action');
}.property('saving'),
movePostsToNewTopic: function() {
@@ -40,10 +40,10 @@ Discourse.SplitTopicController = Discourse.ObjectController.extend(Discourse.Sel
Em.run.next(function() { Discourse.URL.routeTo(result.url); });
}, function() {
// Error moving posts
splitTopicController.flash(Em.String.i18n('topic.split_topic.error'));
splitTopicController.flash(I18n.t('topic.split_topic.error'));
splitTopicController.set('saving', false);
});
return false;
}
});
});