mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
[WIP] i18n strings
This commit is contained in:
parent
8a25509019
commit
ce4f62d346
23 changed files with 98 additions and 79 deletions
|
@ -68,10 +68,6 @@ let constants = EmberObject.extend({
|
|||
None: 0,
|
||||
Lock: 1,
|
||||
Review: 2,
|
||||
|
||||
NoneLabel: 'Changes permitted without approval',
|
||||
LockLabel: 'Locked, changes not permitted',
|
||||
ReviewLabel: 'Changes require approval before publication'
|
||||
},
|
||||
|
||||
// Document
|
||||
|
@ -80,10 +76,6 @@ let constants = EmberObject.extend({
|
|||
Anybody: 1,
|
||||
Majority: 2,
|
||||
Unanimous: 3,
|
||||
|
||||
AnybodyLabel: 'Approval required from any approver',
|
||||
MajorityLabel: 'Majority approval required from approvers',
|
||||
UnanimousLabel: 'Unanimous approval required from all approvers'
|
||||
},
|
||||
|
||||
// Section
|
||||
|
@ -115,10 +107,6 @@ let constants = EmberObject.extend({
|
|||
Draft: 0,
|
||||
Live: 1,
|
||||
Archived: 2,
|
||||
|
||||
DraftLabel: 'Draft',
|
||||
LiveLabel: 'Live',
|
||||
ArchivedLabel: 'Archived',
|
||||
},
|
||||
|
||||
// Document Version -- document.groupId links different versions of documents together
|
||||
|
@ -320,11 +308,6 @@ let constants = EmberObject.extend({
|
|||
},
|
||||
|
||||
Label: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
||||
Add: 'Add',
|
||||
Activate: "Activate",
|
||||
Approve: 'Approve',
|
||||
Authenticate: 'Authenticate',
|
||||
Cancel: 'Cancel',
|
||||
Close: 'Close',
|
||||
Copy: 'Copy',
|
||||
Delete: 'Delete',
|
||||
|
|
|
@ -57,13 +57,15 @@ export default Model.extend({
|
|||
|
||||
lifecycleLabel: computed('lifecycle', function () {
|
||||
let constants = this.get('constants');
|
||||
let i18n = this.get('i18n');
|
||||
|
||||
switch (this.get('lifecycle')) {
|
||||
case constants.Lifecycle.Draft:
|
||||
return constants.Lifecycle.DraftLabel;
|
||||
return i18n.localize('draft');
|
||||
case constants.Lifecycle.Live:
|
||||
return constants.Lifecycle.LiveLabel;
|
||||
return i18n.localize('live');
|
||||
case constants.Lifecycle.Archived:
|
||||
return constants.Lifecycle.ArchivedLabel;
|
||||
return i18n.localize('archived');
|
||||
}
|
||||
|
||||
return '';
|
||||
|
|
|
@ -53,13 +53,15 @@ export default Model.extend({
|
|||
|
||||
lifecycleLabel: computed('lifecycle', function () {
|
||||
let constants = this.get('constants');
|
||||
let i18n = this.get('i18n');
|
||||
|
||||
switch (this.get('lifecycle')) {
|
||||
case constants.Lifecycle.Draft:
|
||||
return constants.Lifecycle.DraftLabel;
|
||||
return i18n.localize('draft');
|
||||
case constants.Lifecycle.Live:
|
||||
return constants.Lifecycle.LiveLabel;
|
||||
return i18n.localize('live');
|
||||
case constants.Lifecycle.Archived:
|
||||
return constants.Lifecycle.ArchivedLabel;
|
||||
return i18n.localize('archived');
|
||||
}
|
||||
|
||||
return '';
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
{{/each}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="empty">{{localize 'no_labels'}}</div>
|
||||
<div class="empty">{{localize 'labels_none'}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -76,22 +76,22 @@
|
|||
<div class="modal" tabindex="-1" role="dialog" id="add-space-modal">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">New Space</div>
|
||||
<div class="modal-header">{{localize 'space_new'}}</div>
|
||||
<div class="modal-body">
|
||||
<form onsubmit={{action "onAddSpace"}}>
|
||||
<div class="form-group">
|
||||
<label for="new-space-name">Name</label>
|
||||
{{input type="text" id="new-space-name" class="form-control mousetrap" placeholder="Space name" value=spaceName}}
|
||||
<label for="new-space-name">{{localize 'name'}}</label>
|
||||
{{input type="text" id="new-space-name" class="form-control mousetrap" placeholder=(localize 'space_name') value=spaceName}}
|
||||
<small class="form-text text-muted">Characters and numbers only</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Description</label>
|
||||
{{focus-input id="space-desc" type="text" value=spaceDesc class="form-control" placeholder="Space description" autocomplete="off"}}
|
||||
<label>{{localize 'description'}}</label>
|
||||
{{focus-input id="space-desc" type="text" value=spaceDesc class="form-control" placeholder=(localize 'space_description') autocomplete="off"}}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Icon</label>
|
||||
<label>{{localize 'icon'}}</label>
|
||||
<div class="ui-icon-picker">
|
||||
<ul class="list">
|
||||
{{#each iconList as |icon|}}
|
||||
|
@ -104,9 +104,9 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Label</label>
|
||||
<label>{{localize 'label'}}</label>
|
||||
<ul class="space-label-picker">
|
||||
<li class="label none {{if (eq spaceLabel "") "selected"}}" {{action "onSetLabel" ""}}>None</li>
|
||||
<li class="label none {{if (eq spaceLabel "") "selected"}}" {{action "onSetLabel" ""}}>{{localize 'none'}}</li>
|
||||
{{#each labels as |label|}}
|
||||
<li class="label {{if (eq spaceLabel label.id) "selected"}}"
|
||||
style={{label.bgColor}}
|
||||
|
@ -118,22 +118,22 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="clone-space-dropdown">Clone Space</label>
|
||||
{{ui/ui-select id="clone-space-dropdown" content=spaces prompt="select space" action=(action "onCloneSpaceSelect") optionValuePath="id" optionLabelPath="name" selection=clonedSpace}}
|
||||
<small id="emailHelp" class="form-text text-muted">Copy templates, permissions, documents from existing space</small>
|
||||
<label for="clone-space-dropdown">{{localize 'space_clone'}}</label>
|
||||
{{ui/ui-select id="clone-space-dropdown" content=spaces prompt=(localize 'space_select') action=(action "onCloneSpaceSelect") optionValuePath="id" optionLabelPath="name" selection=clonedSpace}}
|
||||
<small id="emailHelp" class="form-text text-muted">{{localize 'space_copy'}}</small>
|
||||
<div class="margin-top-10" />
|
||||
{{#if hasClone}}
|
||||
{{#ui/ui-checkbox selected=copyTemplate}}Copy templates{{/ui/ui-checkbox}}
|
||||
{{#ui/ui-checkbox selected=copyPermission}}Copy permissions{{/ui/ui-checkbox}}
|
||||
{{#ui/ui-checkbox selected=copyDocument}}Copy documents{{/ui/ui-checkbox}}
|
||||
{{#ui/ui-checkbox selected=copyTemplate}}{{localize 'space_copy_template'}}{{/ui/ui-checkbox}}
|
||||
{{#ui/ui-checkbox selected=copyPermission}}{{localize 'space_copy_permission'}}{{/ui/ui-checkbox}}
|
||||
{{#ui/ui-checkbox selected=copyDocument}}{{localize 'space_copy_document'}}{{/ui/ui-checkbox}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Add onClick=(action "onAddSpace")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'add') onClick=(action "onAddSpace")}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Yellow label=constants.Label.Update onClick=(action "onInfo")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Gray label=constants.Label.Cancel onClick=(action "onWarn")}}
|
||||
{{ui/ui-button color=constants.Color.Gray label=(localize 'cancel') onClick=(action "onWarn")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red label=constants.Label.Delete onClick=(action "onError")}}
|
||||
{{ui/ui-button-gap}}
|
||||
|
@ -26,7 +26,7 @@
|
|||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Yellow light=true label=constants.Label.Update onClick=(action "onInfo")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel onClick=(action "onWarn")}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') onClick=(action "onWarn")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Delete onClick=(action "onError")}}
|
||||
{{ui/ui-button-gap}}
|
||||
|
@ -36,7 +36,7 @@
|
|||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Settings label=constants.Label.Update onClick=(action "onInfo")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Print label=constants.Label.Cancel onClick=(action "onWarn")}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Print label=(localize 'cancel') onClick=(action "onWarn")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true icon=constants.Icon.Delete label=constants.Label.Delete onClick=(action "onError")}}
|
||||
{{ui/ui-button-gap}}
|
||||
|
|
|
@ -209,7 +209,7 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Restore onClick=(action "onRestore")}}
|
||||
</div>
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label="Close Account" onClick=(action "onDeactivate")}}
|
||||
</div>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Delete onClick=(action "onDelete")}}
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
light=true
|
||||
color=constants.Color.Green
|
||||
icon=constants.Icon.Checkbox
|
||||
label=constants.Label.Add
|
||||
label=(localize 'add')
|
||||
onClick=(action "onShowAddModal")}}
|
||||
|
||||
<Ui::UiSpacer @size="300" />
|
||||
|
@ -42,9 +42,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Add onClick=(action "onAdd")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'add') onClick=(action "onAdd")}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -65,7 +65,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Save onClick=(action "onUpdate")}}
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="view-customize">
|
||||
{{#if (or isAuthProviderDocumize isDualAuth)}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Person label=constants.Label.Add onClick=(action "onOpenUserModal")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Person label=(localize 'add') onClick=(action "onOpenUserModal")}}
|
||||
<div id="add-user-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
|
@ -22,7 +22,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<Ui::UiSpacer @size="200" />
|
||||
{{ui/ui-button color=constants.Color.Green icon=constants.Icon.Person light=true label=constants.Label.Add onClick=(action "onAddUser")}}
|
||||
{{ui/ui-button color=constants.Color.Green icon=constants.Icon.Person light=true label=(localize 'add') onClick=(action "onAddUser")}}
|
||||
<Ui::UiSpacer @size="300" />
|
||||
</form>
|
||||
<form onsubmit={{action "onAddUser"}} role="form">
|
||||
|
@ -31,7 +31,7 @@
|
|||
{{textarea id="bulkUsers" value=bulkUsers class="form-control" rows="5" placeholder="firstname, lastname, email"}}
|
||||
<small class="form-text text-muted">Comma-delimited list: firstname, lastname, email</small>
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green icon=constants.Icon.People light=true label=constants.Label.Add onClick=(action "onAddUsers")}}
|
||||
{{ui/ui-button color=constants.Color.Green icon=constants.Icon.People light=true label=(localize 'add') onClick=(action "onAddUsers")}}
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="view-customize">
|
||||
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.People label=constants.Label.Add onClick=(action "onShowAddGroupModal")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.People label=(localize 'add') onClick=(action "onShowAddGroupModal")}}
|
||||
<div id="add-group-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
|
@ -20,7 +20,7 @@
|
|||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Close dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Add onClick=(action "onAddGroup")}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=(localize 'add') onClick=(action "onAddGroup")}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Save onClick=(action "onSaveTemplate")}}
|
||||
</div>
|
||||
|
@ -108,7 +108,7 @@
|
|||
{{/each}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Print onClick=(action "onPrintSelection")}}
|
||||
</div>
|
||||
|
@ -124,7 +124,7 @@
|
|||
<p>Are you sure you want to delete this document?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Delete onClick=(action "onDocumentDelete")}}
|
||||
</div>
|
||||
|
@ -146,7 +146,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Duplicate onClick=(action "onDuplicate")}}
|
||||
</div>
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Copy onClick=(action "onCopyPage")}}
|
||||
</div>
|
||||
|
@ -109,7 +109,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Move onClick=(action "onMovePage")}}
|
||||
</div>
|
||||
|
@ -135,7 +135,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Delete onClick=(action "onDeletePage")}}
|
||||
</div>
|
||||
|
@ -162,7 +162,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Publish onClick=(action "onSavePageAsBlock")}}
|
||||
</div>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<p>Are you sure you want to restore this revision?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Restore onClick=(action "onRollback")}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{{focus-input id="new-category-name" type="text" class="form-control mousetrap" placeholder="Category name" value=newCategory}}
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green light=true
|
||||
label=constants.Label.Add icon=constants.Icon.Category
|
||||
label=(localize 'add') icon=constants.Icon.Category
|
||||
onClick=(action "onAdd")}}
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -49,9 +49,9 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Add onClick=(action "onAddEmptyDoc")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'add') onClick=(action "onAddEmptyDoc")}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -83,9 +83,9 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Add onClick=(action "onAddTemplateDoc")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'add') onClick=(action "onAddTemplateDoc")}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -111,7 +111,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -132,7 +132,7 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Export onClick=(action "onExport")}}
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
{{input id="gemini-apikey" type="password" value=config.APIKey class="form-control"}}
|
||||
<small class="form-text text-muted">Gemini user API key (from user profile)</small>
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Authenticate onClick=(action "auth")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'authenticate') onClick=(action "auth")}}
|
||||
</div>
|
||||
<div class="grid-cell-2">
|
||||
{{#if authenticated}}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{{focus-input id="papertrail-apitoken" type="password" value=config.APIToken class="form-control"}}
|
||||
<small class="form-text text-muted">API Token (from your profile)</small>
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Authenticate onClick=(action "auth")}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'authenticate') onClick=(action "auth")}}
|
||||
</form>
|
||||
</div>
|
||||
<div class="grid-cell-2">
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Import onClick=(action "onImport")}}
|
||||
</div>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
{{/if}}
|
||||
{{else}}
|
||||
{{ui/ui-button color=constants.Color.Green light=true
|
||||
label=constants.Label.Authenticate onClick=(action "auth")}}
|
||||
label=(localize 'authenticate') onClick=(action "auth")}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if session.isGlobalAdmin}}
|
||||
|
|
|
@ -1,12 +1,44 @@
|
|||
{
|
||||
"none": "None",
|
||||
"add": "Add",
|
||||
"activate": "Activate",
|
||||
"approve": "Approve",
|
||||
"authenticate": "Authenticate",
|
||||
"cancel": "Cancel",
|
||||
|
||||
|
||||
"name": "Name",
|
||||
"description": "Description",
|
||||
"icon": "Icon",
|
||||
"draft": "Draft",
|
||||
"live": "Live",
|
||||
"archived": "Archived",
|
||||
|
||||
"filter": "Filter",
|
||||
"all": "All",
|
||||
"public": "Public",
|
||||
"protected": "Protected",
|
||||
"personal": "Personal",
|
||||
"label": "Label",
|
||||
"no_labels": "No labels",
|
||||
|
||||
"label": "Label",
|
||||
"labels_none": "No labels",
|
||||
|
||||
"space_new": "New Space",
|
||||
"space_name": "Space name",
|
||||
"space_description": "Space description",
|
||||
"space_clone": "Clone Space",
|
||||
"space_select": "Select Space",
|
||||
"space_copy": "Copy templates, permissions, documents from existing space",
|
||||
"space_copy_template": "Copy templates",
|
||||
"space_copy_permission": "Copy permissions",
|
||||
"space_copy_document": "Copy documents",
|
||||
|
||||
"protection_none": "Changes permitted without approval",
|
||||
"protection_lock": "Locked, changes not permitted",
|
||||
"protection_review": "Changes require approval before publication",
|
||||
"approval_anybody": "Approval required from any approver",
|
||||
"approval_majority": "Majority approval required from approvers",
|
||||
"approval_unanimous": "Unanimous approval required from all approvers",
|
||||
|
||||
|
||||
"z": "z"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue