mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
i18n doc strings
This commit is contained in:
parent
93b6f26365
commit
a236cbb01c
6 changed files with 45 additions and 27 deletions
|
@ -25,6 +25,7 @@ export default Component.extend(ModalMixin, AuthMixin, Notifier, {
|
|||
pinned: service(),
|
||||
browserSvc: service('browser'),
|
||||
documentSvc: service('document'),
|
||||
i18n: service(),
|
||||
showRevisions: computed('permissions', 'document.protection', function() {
|
||||
if (!this.get('session.authenticated')) return false;
|
||||
if (!this.get('session.viewUsers')) return false;
|
||||
|
@ -218,7 +219,7 @@ export default Component.extend(ModalMixin, AuthMixin, Notifier, {
|
|||
|
||||
this.get('documentSvc').export(spec).then((htmlExport) => {
|
||||
this.get('browserSvc').downloadFile(htmlExport, this.get('document.slug') + '.html');
|
||||
this.notifySuccess('Exported');
|
||||
this.notifySuccess(this.i18n.localize('exported'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<div id="add-section-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-60" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Insert Section</div>
|
||||
<div class="modal-header">{{localize 'section_insert'}}</div>
|
||||
<div class="modal-body">
|
||||
<div id="new-section-wizard" class="new-section-wizard">
|
||||
<div class="form-group">
|
||||
{{focus-input type="text" id="new-section-name" value=newSectionName
|
||||
class=(if newSectionNameMissing "mousetrap form-control form-control-lg is-invalid" "mousetrap form-control form-control-lg")
|
||||
placeholder="Enter section name" autocomplete="off"}}
|
||||
placeholder=(localize 'name') autocomplete="off"}}
|
||||
</div>
|
||||
|
||||
<ul class="options">
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
<div id={{concat "content-linker-modal-" page.id}} class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Insert Link</div>
|
||||
<div class="modal-header">{{localize 'link-insert'}}</div>
|
||||
<div class="modal-body">
|
||||
<ul class="tabnav-control text-center">
|
||||
{{#if hasSections}}
|
||||
<li class="tab {{if tab1Selected "selected"}}" {{action "onTabSelect" 1}} role="button" tabindex="0">Section</li>
|
||||
<li class="tab {{if tab1Selected "selected"}}" {{action "onTabSelect" 1}} role="button" tabindex="0">{{localize 'link_type_section'}}</li>
|
||||
{{/if}}
|
||||
{{#if hasAttachments}}
|
||||
<li class="tab {{if tab2Selected "selected"}}" {{action "onTabSelect" 2}} role="button" tabindex="0">Attachment</li>
|
||||
<li class="tab {{if tab2Selected "selected"}}" {{action "onTabSelect" 2}} role="button" tabindex="0">{{localize 'link_type_attachment'}}</li>
|
||||
{{/if}}
|
||||
<li class="tab {{if tab3Selected "selected"}}" {{action "onTabSelect" 3}} role="button" tabindex="0">Search</li>
|
||||
<li class="tab {{if tab4Selected "selected"}}" {{action "onTabSelect" 4}} role="button" tabindex="0">Network</li>
|
||||
<li class="tab {{if tab3Selected "selected"}}" {{action "onTabSelect" 3}} role="button" tabindex="0">{{localize 'link_type_search'}}</li>
|
||||
<li class="tab {{if tab4Selected "selected"}}" {{action "onTabSelect" 4}} role="button" tabindex="0">{{localize 'link_type_network'}}</li>
|
||||
</ul>
|
||||
|
||||
{{#if showSections}}
|
||||
<div class="content-linker-modal-container">
|
||||
<p>Link to content within this document</p>
|
||||
<p>{{localize 'link_type_section_explain'}}</p>
|
||||
{{ui/ui-list-picker items=candidates.pages nameField="title" singleSelect=true onSelect=(action "setSelection")}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if showAttachments}}
|
||||
<div class="content-linker-modal-container">
|
||||
<p>Link to an attachment within this document</p>
|
||||
<p>{{localize 'link_type_attachment_explain'}}</p>
|
||||
<div class="widget-list-picker">
|
||||
<ul class="options">
|
||||
{{#each candidates.attachments as |item|}}
|
||||
|
@ -45,12 +45,12 @@
|
|||
{{#if showSearch}}
|
||||
<div class="content-linker-modal-container">
|
||||
<div class="form-group">
|
||||
<label>Search</label>
|
||||
{{focus-input id="content-linker-search" type="input" class="form-control" value=keywords placeholder="keyword search" autocomplete="off" key-up=(action "onSearch")}}
|
||||
<small class="form-text text-muted">Document name, content, attachment name</small>
|
||||
<label>{{localize 'search'}}</label>
|
||||
{{focus-input id="content-linker-search" type="input" class="form-control" value=keywords placeholder="" autocomplete="off" key-up=(action "onSearch")}}
|
||||
<small class="form-text text-muted">{{localize 'link_type_search_explain'}}</small>
|
||||
</div>
|
||||
{{#unless hasMatches}}
|
||||
<p class="nothing">Nothing found.</p>
|
||||
<p class="nothing">{{localize 'nothing_found'}}</p>
|
||||
{{/unless}}
|
||||
<div class="widget-list-picker">
|
||||
<ul class="options">
|
||||
|
@ -92,9 +92,9 @@
|
|||
|
||||
{{#if showNetwork}}
|
||||
<div class="content-linker-modal-container">
|
||||
<p>Specify network drive/share/folder location</p>
|
||||
<p>{{localize 'link_type_network_explain'}}</p>
|
||||
<div class="form-group">
|
||||
{{focus-input id="content-linker-networklocation" type="input" class="form-control" value=networkLocation placeholder="e.g. //share/folder" autocomplete="off"}}
|
||||
{{focus-input id="content-linker-networklocation" type="input" class="form-control" value=networkLocation placeholder=(localize 'link_type_network_example') autocomplete="off"}}
|
||||
<small class="form-text text-muted"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -8,17 +8,17 @@
|
|||
|
||||
{{#if (eq document.protection constants.ProtectionType.None)}}
|
||||
<div class="label-open">
|
||||
OPEN
|
||||
{{localize 'protection_type_open'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq document.protection constants.ProtectionType.Review)}}
|
||||
<div class="label-protected">
|
||||
PROTECTED
|
||||
{{localize 'protection_type_protected'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq document.protection constants.ProtectionType.Lock)}}
|
||||
<div class="label-locked">
|
||||
LOCKED
|
||||
{{localize 'protection_type_locked'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
@ -35,31 +35,31 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if document.template}}
|
||||
<div class="label-template non-printable" title="This is a template">
|
||||
Template
|
||||
<div class="label-template non-printable">
|
||||
{{localize 'template'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<Ui::UiSpacer @size="200" />
|
||||
|
||||
<div class="title">CATEGORY / TAG</div>
|
||||
<div class="title">{{localize 'category'}} / {{localize 'tag'}}</div>
|
||||
{{#each selectedCategories as |cat|}}
|
||||
<div class="meta-label">
|
||||
<i class="dicon {{constants.Icon.Category}}" title="Category" />
|
||||
<i class="dicon {{constants.Icon.Category}}" title={{localize 'category'}} />
|
||||
{{cat.category}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#each tagz as |t|}}
|
||||
<div class="meta-label">
|
||||
<i class="dicon {{constants.Icon.Tag}}" title="Tag" />
|
||||
<i class="dicon {{constants.Icon.Tag}}" title={{localize 'tag'}} />
|
||||
{{t}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#if unassigned}}
|
||||
{{#if permissions.spaceManage}}
|
||||
<div class="empty cursor-pointer" {{action "onEditCategory"}}>Unassigned</div>
|
||||
<div class="empty cursor-pointer" {{action "onEditCategory"}}>{{localize 'unassigned'}}</div>
|
||||
{{else}}
|
||||
<div class="empty">Unassigned</div>
|
||||
<div class="empty">{{localize 'unassigned'}}</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{document/section-attachment uploadLabel="Upload Attachments"
|
||||
{{document/section-attachment uploadLabel=(localize 'upload_attachment')
|
||||
editMode=editMode page=page document=document files=attachments
|
||||
onAttachmentUpload=(action onAttachmentUpload)
|
||||
onAttachmentDelete=(action onAttachmentDelete)}}
|
||||
|
|
|
@ -200,6 +200,23 @@
|
|||
"category_permissions": "Category Permissions",
|
||||
"category_permissions_explain": "Select who can view documents within category",
|
||||
|
||||
"protection_type_open": "Open",
|
||||
"protection_type_protected": "Protected",
|
||||
"protection_type_locked": "Locked",
|
||||
|
||||
"section_insert": "Insert Section",
|
||||
|
||||
"link_insert": "Insert Link",
|
||||
"link_type_section": "Section",
|
||||
"link_type_section_explain": "Link to content within this document",
|
||||
"link_type_attachment": "Attachment",
|
||||
"link_type_attachment_explain": "Link to an attachment within this document",
|
||||
"link_type_search": "Search",
|
||||
"link_type_search_explain": "Document name, content, attachment name",
|
||||
"link_type_network": "Network",
|
||||
"link_type_network_explain": "Specify network drive/share/folder location",
|
||||
"link_type_network_example": "e.g. //share/folder",
|
||||
|
||||
"space_permissions": "Space Permissions",
|
||||
"space_permissions_explain": "Assign permissions to users or groups and invite new users to this space",
|
||||
"space_permission_view": "View",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue