1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

i18n page strings

This commit is contained in:
McMatts 2022-03-04 13:07:11 -05:00
parent 4ab48cc67d
commit 59dc6ea991
29 changed files with 125 additions and 107 deletions

View file

@ -21,6 +21,8 @@ export default Controller.extend(NotifierMixin, {
localStorage: service('localStorage'),
browserSvc: service('browser'),
documentSvc: service('document'),
i18n: service(),
queryParams: ['category'],
category: '',
filteredDocs: null,
@ -88,7 +90,7 @@ export default Controller.extend(NotifierMixin, {
this.get('documentSvc').export(spec).then((htmlExport) => {
this.get('browserSvc').downloadFile(htmlExport, this.get('model.folder.slug') + '.html');
this.notifySuccess('Exported');
this.notifySuccess(this.i18n.localize('exported'));
});
},
@ -126,21 +128,21 @@ export default Controller.extend(NotifierMixin, {
onPin(documentId) {
this.get('documentSvc').pin(documentId).then(() => {
this.notifySuccess('Pinned');
this.notifySuccess(this.i18n.localize('pinned'));
this.send('onRefresh');
});
},
onUnpin(documentId) {
this.get('documentSvc').unpin(documentId).then(() => {
this.notifySuccess('Unpinned');
this.notifySuccess(this.i18n.localize('unpinned'));
this.send('onRefresh');
});
},
onPinSequence(documentId, direction) {
this.get('documentSvc').onPinSequence(documentId, direction).then(() => {
this.notifySuccess('Moved');
this.notifySuccess(this.i18n.localize('moved'));
this.send('onRefresh');
});
},

View file

@ -2,8 +2,7 @@
<Layout::MasterToolbar>
<div class="zone-1">
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
{{ui/ui-toolbar-button themed=true uppercase=true
icon=constants.Icon.ArrowLeft label=(localize 'spaces') onClick=(action "onBack")}}
{{ui/ui-toolbar-button themed=true uppercase=true icon=constants.Icon.ArrowLeft label=(localize 'spaces') onClick=(action "onBack")}}
{{/ui/ui-toolbar}}
</div>
<div class="zone-2" />
@ -42,7 +41,7 @@
<Layout::Grid::Content>
{{#if (eq model.folder.labelId "")}}
<div class="space-label">Unclassified</div>
<div class="space-label">{{localize 'label_unclassified'}}</div>
{{else}}
<div class="space-label" style={{{model.label.bgColor}}}>{{model.label.name}}</div>
{{#if (gt model.labelSpaces.length 1)}}