diff --git a/gui/app/components/document/sidebar-attachment.js b/gui/app/components/document/sidebar-attachment.js index 2d9de920..fd792f08 100644 --- a/gui/app/components/document/sidebar-attachment.js +++ b/gui/app/components/document/sidebar-attachment.js @@ -22,6 +22,7 @@ export default Component.extend(Modals, Notifier, { browserSvc: service('browser'), appMeta: service(), session: service(), + i18n: service(), hasAttachments: notEmpty('files'), canEdit: computed('permissions.{documentApprove,documentEdit}', 'document.protection', function() { // Check to see if specific scenarios prevent us from changing doc level attachments. @@ -86,7 +87,7 @@ export default Component.extend(Modals, Notifier, { }); this.on("queuecomplete", function () { - self.notifySuccess('Uploaded file'); + self.notifySuccess(this.i18n.localize('uploaded')); self.getAttachments(); }); @@ -115,7 +116,7 @@ export default Component.extend(Modals, Notifier, { actions: { onDelete(attachment) { this.get('documentService').deleteAttachment(this.get('document.id'), attachment.id).then(() => { - this.notifySuccess('File deleted'); + this.notifySuccess(this.i18n.localize('deleted')); this.getAttachments(); }); } diff --git a/gui/app/templates/components/document/settings-category.hbs b/gui/app/templates/components/document/settings-category.hbs index 187f185e..1084ce6e 100644 --- a/gui/app/templates/components/document/settings-category.hbs +++ b/gui/app/templates/components/document/settings-category.hbs @@ -1,6 +1,6 @@ {{layout/logo-heading - title="Categories" - desc="Assign one or more categories to help organize content within this space" + title=(localize 'categories') + desc=(localize 'doc_category_explain') icon=constants.Icon.Category}} {{#if categories}} @@ -15,5 +15,5 @@ light=true onClick=(action "onSave")}} {{else}} -
This space has no categories yet
+{{localize 'category_none'}}
{{/if}} diff --git a/gui/app/templates/components/document/settings-general.hbs b/gui/app/templates/components/document/settings-general.hbs index 8741b1c4..68b4fdb1 100644 --- a/gui/app/templates/components/document/settings-general.hbs +++ b/gui/app/templates/components/document/settings-general.hbs @@ -1,19 +1,19 @@ {{layout/logo-heading - title="Content Settings" - desc="Set name, description and lifecycle stage" + title=(localize 'content') + desc=(localize 'setings') icon=constants.Icon.Settings}}