mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Change edit category modal submit button text to Save Category
This commit is contained in:
parent
e1b958d483
commit
7b76447e5e
2 changed files with 3 additions and 2 deletions
|
@ -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');
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue