diff --git a/app/assets/javascripts/discourse/controllers/edit_category_controller.js b/app/assets/javascripts/discourse/controllers/edit_category_controller.js index e19cb9757..258d43f95 100644 --- a/app/assets/javascripts/discourse/controllers/edit_category_controller.js +++ b/app/assets/javascripts/discourse/controllers/edit_category_controller.js @@ -23,12 +23,12 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M title: function() { if (this.get('id')) { - return I18n.t("category.edit_long") + ": " + this.get('model.name'); + return I18n.t("category.edit_long") + " : " + this.get('model.name'); } if (this.get('isUncategorized')){ return I18n.t("category.edit_uncategorized"); } - return I18n.t("category.create") + " : " + this.get('model.name'); + return I18n.t("category.create") + (this.get('model.name') ? (" : " + this.get('model.name')) : ''); }.property('id', 'model.name'), titleChanged: function() {