Change edit category modal submit button text to Save Category

This commit is contained in:
Neil Lalonde 2013-04-10 18:27:34 -04:00
parent e1b958d483
commit 7b76447e5e
2 changed files with 3 additions and 2 deletions

View File

@ -57,8 +57,8 @@ Discourse.EditCategoryView = Discourse.ModalBodyView.extend({
buttonTitle: function() {
if (this.get('saving')) return Em.String.i18n("saving");
return this.get('title');
}.property('title', 'saving'),
return (this.get('category.id') ? Em.String.i18n("category.save") : Em.String.i18n("category.create"));
}.property('saving', 'category.id'),
deleteButtonTitle: function() {
return Em.String.i18n('category.delete');

View File

@ -690,6 +690,7 @@ en:
view: 'View Topics in Category'
delete: 'Delete Category'
create: 'Create Category'
save: 'Save Category'
creation_error: There has been an error during the creation of the category.
more_posts: "view all {{posts}}..."
name: "Category Name"