diff --git a/gui/app/components/folder/settings-general.js b/gui/app/components/folder/settings-general.js
index 0eeef891..e347da53 100644
--- a/gui/app/components/folder/settings-general.js
+++ b/gui/app/components/folder/settings-general.js
@@ -24,6 +24,7 @@ export default Component.extend(AuthMixin, Notifier, {
spaceSvc: service('folder'),
iconSvc: service('icon'),
localStorage: service('localStorage'),
+ i18n: service(),
isSpaceAdmin: computed('permissions', function() {
return this.get('permissions.spaceOwner') || this.get('permissions.spaceManage');
}),
@@ -120,9 +121,9 @@ export default Component.extend(AuthMixin, Notifier, {
let folder = this.get('space');
let spaceTypeOptions = A([]);
- spaceTypeOptions.pushObject({id: constants.SpaceType.Private, label: 'Private - viewable only by me'});
- spaceTypeOptions.pushObject({id: constants.SpaceType.Protected, label: 'Protected - access is restricted to selected users'});
- spaceTypeOptions.pushObject({id: constants.SpaceType.Public, label: 'Public - can be seen by everyone'});
+ spaceTypeOptions.pushObject({id: constants.SpaceType.Private, label: this.i18n.localize('personal_explain')});
+ spaceTypeOptions.pushObject({id: constants.SpaceType.Protected, label: this.i18n.localize('protected_explain')});
+ spaceTypeOptions.pushObject({id: constants.SpaceType.Public, label: this.i18n.localize('public_explain')});
this.set('spaceTypeOptions', spaceTypeOptions);
this.set('spaceType', spaceTypeOptions.findBy('id', folder.get('spaceType')));
@@ -131,7 +132,7 @@ export default Component.extend(AuthMixin, Notifier, {
if (this.get('allowLikes')) {
this.set('likes', folder.get('likes'));
} else {
- this.set('likes', 'Did this help you?');
+ this.set('likes', this.i18n.localize('likes_prompt'));
}
this.set('spaceName', this.get('space.name'));
@@ -184,7 +185,7 @@ export default Component.extend(AuthMixin, Notifier, {
space.set('labelId', this.get('spaceLabel'));
this.get('spaceSvc').save(space).then(() => {
- this.notifySuccess('Saved');
+ this.notifySuccess(this.i18n.localize('saved'));
});
}
}
diff --git a/gui/app/templates/components/customize/space-admin.hbs b/gui/app/templates/components/customize/space-admin.hbs
index db30faec..fb5b459e 100644
--- a/gui/app/templates/components/customize/space-admin.hbs
+++ b/gui/app/templates/components/customize/space-admin.hbs
@@ -25,7 +25,7 @@
Are you sure you want to delete {{selectedDocuments.length}} {{selectedCaption}}?
+{{localize 'delete_confirm'}} ({{selectedDocuments.length}} {{selectedCaption}})
{{/ui/ui-dialog}} {{#ui/ui-dialog title=(localize 'move_documents') confirmCaption=(localize 'move') buttonColor=constants.Color.Green show=showMoveDialog onAction=(action "onMoveDocuments")}} -Select space for {{selectedDocuments.length}} {{selectedCaption}}
+{{localize 'space_change_prompt'}} ({{selectedDocuments.length}} {{selectedCaption}})
{{ui/ui-list-picker items=moveOptions nameField="name" singleSelect=true}} {{/ui/ui-dialog}} diff --git a/gui/app/templates/components/folder/settings-delete.hbs b/gui/app/templates/components/folder/settings-delete.hbs index 83675430..c4f87149 100644 --- a/gui/app/templates/components/folder/settings-delete.hbs +++ b/gui/app/templates/components/folder/settings-delete.hbs @@ -1,13 +1,13 @@ {{layout/logo-heading - title="Delete Space" - desc="Proceed with caution as there is no undo" + title=(localize 'delete_space') + desc=(localize 'no_undo') icon=constants.Icon.Delete}} diff --git a/gui/app/templates/components/folder/settings-general.hbs b/gui/app/templates/components/folder/settings-general.hbs index 56b61bfa..6598ea80 100644 --- a/gui/app/templates/components/folder/settings-general.hbs +++ b/gui/app/templates/components/folder/settings-general.hbs @@ -5,19 +5,19 @@