mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
i18n page strings
This commit is contained in:
parent
4ab48cc67d
commit
59dc6ea991
29 changed files with 125 additions and 107 deletions
|
@ -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=false
|
||||
icon=constants.Icon.ArrowLeft label=model.space.name onClick=(action "onBack")}}
|
||||
{{ui/ui-toolbar-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=model.space.name onClick=(action "onBack")}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
</Layout::MasterToolbar>
|
||||
|
@ -12,16 +11,16 @@
|
|||
<Layout::Grid::Sidebar>
|
||||
<div class="sidebar-content">
|
||||
<div class="section">
|
||||
<div class="title">about</div>
|
||||
<div class="text">Manage reusable snippets of content for this space</div>
|
||||
<div class="title">{{localize 'about'}}</div>
|
||||
<div class="text">{{localize 'block_explain'}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</Layout::Grid::Sidebar>
|
||||
|
||||
<Layout::Grid::Content>
|
||||
{{layout/logo-heading
|
||||
title="Content Blocks"
|
||||
desc="Content blocks provide re-usable content that can be inserted into any document"
|
||||
title=(localize 'blocks')
|
||||
desc=(localize 'block_explain')
|
||||
icon=constants.Icon.Integrations}}
|
||||
|
||||
{{document/block-editor document=model.document folder=model.space block=model.block
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
},
|
||||
|
|
|
@ -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)}}
|
||||
|
|
|
@ -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=false
|
||||
icon=constants.Icon.ArrowLeft label=model.folder.name onClick=(action "onBack")}}
|
||||
{{ui/ui-toolbar-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=model.folder.name onClick=(action "onBack")}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
</Layout::MasterToolbar>
|
||||
|
@ -12,34 +11,34 @@
|
|||
<Layout::Grid::Sidebar>
|
||||
<div class="sidebar-content">
|
||||
<div class="section">
|
||||
<div class="title">space management</div>
|
||||
<div class="title">{{localize 'space'}}</div>
|
||||
<div class="list">
|
||||
<div class="item {{if (eq tab "general") "selected"}}" {{action "onTab" "general"}}>
|
||||
<i class={{concat "dicon " constants.Icon.Settings}} />
|
||||
<div class="name">Meta</div>
|
||||
<div class="name">{{localize 'meta'}}</div>
|
||||
</div>
|
||||
<div class="item {{if (eq tab "categories") "selected"}}" {{action "onTab" "categories"}}>
|
||||
<i class={{concat "dicon " constants.Icon.Category}} />
|
||||
<div class="name">Categories</div>
|
||||
<div class="name">{{localize 'categories'}}</div>
|
||||
</div>
|
||||
<div class="item {{if (eq tab "permissions") "selected"}}" {{action "onTab" "permissions"}}>
|
||||
<i class={{concat "dicon " constants.Icon.Locked}} />
|
||||
<div class="name">Permissions</div>
|
||||
<div class="name">{{localize 'permissions'}}</div>
|
||||
</div>
|
||||
<div class="item {{if (eq tab "blocks") "selected"}}" {{action "onTab" "blocks"}}>
|
||||
<i class={{concat "dicon " constants.Icon.Blocks}} />
|
||||
<div class="name">Content Blocks</div>
|
||||
<div class="name">{{localize 'blocks'}}</div>
|
||||
</div>
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
<div class="item {{if (eq tab "archived") "selected"}}" {{action "onTab" "archived"}}>
|
||||
<i class={{concat "dicon " constants.Icon.Archive}} />
|
||||
<div class="name">Archived Content</div>
|
||||
<div class="name">{{localize 'archived'}}</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if model.permissions.spaceOwner}}
|
||||
<div class="item {{if (eq tab "deletion") "selected"}}" {{action "onTab" "deletion"}}>
|
||||
<i class={{concat "dicon " constants.Icon.Delete}} />
|
||||
<div class="name">Deletion</div>
|
||||
<div class="name">{{localize 'delete'}}</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue