mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 09:32:48 +08:00
UX: Don't concatenate title on "Edit Category" dialog
This commit is contained in:
parent
35275c137b
commit
68e4aba369
|
@ -30,12 +30,11 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
|
||||
title: function() {
|
||||
if (this.get("model.id")) {
|
||||
return I18n.t("category.edit_long") + " : " + this.get("model.name");
|
||||
return I18n.t("category.edit_dialog_title", {
|
||||
categoryName: this.get("model.name")
|
||||
});
|
||||
}
|
||||
return (
|
||||
I18n.t("category.create") +
|
||||
(this.get("model.name") ? " : " + this.get("model.name") : "")
|
||||
);
|
||||
return I18n.t("category.create");
|
||||
}.property("model.id", "model.name"),
|
||||
|
||||
titleChanged: function() {
|
||||
|
|
|
@ -24,5 +24,5 @@
|
|||
class="btn-default edit-category"
|
||||
action=editCategory
|
||||
icon="wrench"
|
||||
label="category.edit_long"}}
|
||||
label="category.edit"}}
|
||||
{{/if}}
|
||||
|
|
|
@ -2352,8 +2352,8 @@ en:
|
|||
none: "(no category)"
|
||||
all: "All categories"
|
||||
choose: "category…"
|
||||
edit: "edit"
|
||||
edit_long: "Edit"
|
||||
edit: "Edit"
|
||||
edit_dialog_title: "Edit: %{categoryName}"
|
||||
view: "View Topics in Category"
|
||||
general: "General"
|
||||
settings: "Settings"
|
||||
|
|
Loading…
Reference in New Issue
Block a user