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() { buttonTitle: function() {
if (this.get('saving')) return Em.String.i18n("saving"); if (this.get('saving')) return Em.String.i18n("saving");
return this.get('title'); return (this.get('category.id') ? Em.String.i18n("category.save") : Em.String.i18n("category.create"));
}.property('title', 'saving'), }.property('saving', 'category.id'),
deleteButtonTitle: function() { deleteButtonTitle: function() {
return Em.String.i18n('category.delete'); return Em.String.i18n('category.delete');

View file

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