1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

i18n admin strings

This commit is contained in:
McMatts 2022-03-02 20:30:39 -05:00
parent 479d03ba70
commit 29447a2784
4 changed files with 73 additions and 47 deletions

View file

@ -1,50 +1,50 @@
<div class="view-customize">
<form>
<div class="form-group">
<label for="smtp-host">Host</label>
<label for="smtp-host">{{localize 'smtp_host'}}</label>
{{focus-input id="smtp-host" type="text" value=model.smtp.host class=(if SMTPHostEmptyError "form-control is-invalid" "form-control")}}
<small class="form-text">e.g. my.host.com</small>
<small class="form-text">{{localize 'smtp_host_explain'}}</small>
</div>
<div class="form-group">
<label for="smtp-port">Port</label>
<label for="smtp-port">{{localize 'smtp_port'}}</label>
{{input id="smtp-port" type="text" value=model.smtp.port class=(if SMTPPortEmptyError "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">e.g. 587</small>
<small class="form-text text-muted">{{localize 'smtp_port_explain'}}</small>
</div>
<div class="form-group">
<label for="smtp-userid">Username</label>
<label for="smtp-userid">{{localize 'smtp_username'}}</label>
{{input id="smtp-userid" type="text" value=model.smtp.userid class="form-control"}}
<small class="form-text text-muted">e.g. Login username for SMTP server</small>
<small class="form-text text-muted">{{localize 'smtp_username_explain'}}</small>
</div>
<div class="form-group">
<label for="smtp-password">Password</label>
<label for="smtp-password">{{localize 'smtp_password'}}</label>
{{input id="smtp-password" type="password" value=model.smtp.password class="form-control"}}
<small class="form-text text-muted">e.g. Login password for SMTP server</small>
<small class="form-text text-muted">{{localize 'smtp_password_explain'}}</small>
</div>
<div class="form-group">
<label for="smtp-sender">Sender Email</label>
<label for="smtp-sender">{{localize 'smtp_sender_email'}}</label>
{{input id="smtp-sender" type="email" value=model.smtp.sender class=(if SMTPSenderEmptyError "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">e.g. user@some-domain.com</small>
<small class="form-text text-muted">{{localize 'smtp_sender_email_explain'}}</small>
</div>
<div class="form-group">
<label for="smtp-senderName">Sender Name</label>
<label for="smtp-senderName">{{localize 'smtp_sender_name'}}</label>
{{input id="smtp-senderName" type="text" value=model.smtp.senderName class=(if senderNameError "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">e.g. Documize</small>
<small class="form-text text-muted">{{localize 'smtp_sender_name_explain'}}</small>
</div>
<div class="form-group">
<label for="smtp-fqdn">Sender Server Fully Qualified Domain Name</label>
<label for="smtp-fqdn">{{localize 'smtp_fqdn'}}</label>
{{input id="smtp-fqdn" type="text" value=model.smtp.fqdn class="form-control"}}
<small class="form-text text-muted">(optional) SMTP can require valid domain name, e.g. docs.example.org</small>
<small class="form-text text-muted">{{localize 'smtp_fqdn_explain'}}</small>
</div>
<div class="form-group">
<label>Anonymous Authentication (Ignore Credentials)</label>
<label>{{localize 'smtp_anon_auth'}}</label>
{{x-toggle value=model.smtp.anonymous size="medium" theme="light" onToggle=(action (mut model.smtp.anonymous))}}
</div>
<div class="form-group">
<label>Base64 Encode Credentials</label>
<label>{{localize 'smtp_base64'}}</label>
{{x-toggle value=model.smtp.base64creds size="medium" theme="light" onToggle=(action (mut model.smtp.base64creds))}}
</div>
<div class="form-group">
<label>Use SSL</label>
<label>{{localize 'smtp_ssl'}}</label>
{{x-toggle value=model.smtp.usessl size="medium" theme="light" onToggle=(action (mut model.smtp.usessl))}}
</div>
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Send label=buttonText onClick=(action "saveSMTP")}}

View file

@ -1,5 +1,5 @@
{{#if spaces}}
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label="Export All Content" onClick=(action "onExport")}}
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label=(localize 'space_admin_export') onClick=(action "onExport")}}
<Ui::UiSpacer @size="300" />
<div class="view-customize">
@ -10,22 +10,22 @@
{{#link-to "folder.index" space.id space.slug}}
<div class="name">
{{#if (eq space.spaceType constants.SpaceType.Public)}}
<i class={{concat "dicon " constants.Icon.World}} title="Public space" />
<i class={{concat "dicon " constants.Icon.World}} title={{localize 'public'}} />
{{/if}}
{{#if (eq space.spaceType constants.SpaceType.Protected)}}
<i class={{concat "dicon " constants.Icon.People}} title="Protected space" />
<i class={{concat "dicon " constants.Icon.People}} title={{localize 'protected'}} />
{{/if}}
{{#if (eq space.spaceType constants.SpaceType.Private)}}
<i class={{concat "dicon " constants.Icon.Person}} title="Personal space" />
<i class={{concat "dicon " constants.Icon.Person}} title={{localize 'personal'}} />
{{/if}}
{{space.name}}
</div>
<div class="desc">Some description that is to be wired up to the backend</div>
<div class="desc">{{space.desc}}</div>
{{/link-to}}
<Ui::UiSpacer @size="200" />
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
{{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip="Add myself as owner" onClick=(action "onOwner" space.id)}}
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete space" onClick=(action "onShow" space.id)}}
{{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip=(localize 'space_admin_make_owner') onClick=(action "onOwner" space.id)}}
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'space_admin_delete') onClick=(action "onShow" space.id)}}
{{/ui/ui-toolbar}}
</div>
</li>
@ -36,14 +36,14 @@
<div id="space-delete-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">Space Deletion</div>
<div class="modal-header">{{localize 'space_admin_delete_title'}}</div>
<div class="modal-body">
<form onsubmit={{action "onDelete"}}>
<p>Are you sure you want to delete this space and all documents?</p>
<p>{{localize 'space_admin_delete_check'}}</p>
<div class="form-group">
<label for="delete-space-name">Please type space name to confirm</label>
{{input type="text" id="delete-space-name" class="form-control mousetrap" placeholder="Space name" value=deleteSpace.name}}
<small class="form-text text-muted">This will delete all documents and templates within this space!</small>
<label for="delete-space-name">{{localize 'space_admin_confirm'}}</label>
{{input type="text" id="delete-space-name" class="form-control mousetrap" placeholder="" value=deleteSpace.name}}
<small class="form-text text-muted">{{localize 'space_admin_confirm_explain'}}</small>
</div>
</form>
</div>
@ -56,7 +56,7 @@
</div>
</div>
{{else}}
<p>There are no shared spaces to manage</p>
<p>{{localize 'space_admin_empty'}}</p>
{{/if}}

View file

@ -17,8 +17,8 @@
</div>
<div class="grid-cell-2 grid-cell-right">
{{#ui/ui-toolbar dark=false light=true raised=false large=false bordered=false}}
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Green tooltip="Update label" onClick=(action "onShowUpdateModal" label)}}
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete label" onClick=(action "onShowDeleteModal" label)}}
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Green tooltip=(localize 'update') onClick=(action "onShowUpdateModal" label)}}
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'delete') onClick=(action "onShowDeleteModal" label)}}
{{/ui/ui-toolbar}}
</div>
</div>
@ -30,14 +30,14 @@
<div id="add-label-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">Add Label</div>
<div class="modal-header">{{localize 'label_add'}}</div>
<div class="modal-body">
<div class="form-group">
<label for="add-label-name">Name</label>
{{input type="text" id="add-label-name" class="form-control mousetrap" placeholder="Label name" value=labelName}}
<label for="add-label-name">{{localize 'name'}}</label>
{{input type="text" id="add-label-name" class="form-control mousetrap" placeholder="" value=labelName}}
</div>
<div class="form-group">
<label>Color</label>
<label>{{localize 'color'}}</label>
{{ui/label-color-picker onChange=(action "onSetColor")}}
</div>
</div>
@ -53,14 +53,14 @@
<div id="edit-label-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">Update Label</div>
<div class="modal-header">{{localize 'label_update'}}</div>
<div class="modal-body">
<div class="form-group">
<label for="edit-label-name">Name</label>
{{input type="text" id="edit-label-name" class="form-control mousetrap" placeholder="Label name" value=labelName}}
<label for="edit-label-name">{{localize 'name'}}</label>
{{input type="text" id="edit-label-name" class="form-control mousetrap" placeholder="" value=labelName}}
</div>
<div class="form-group">
<label>Color</label>
<label>{{localize 'color'}}</label>
{{ui/label-color-picker onChange=(action "onSetColor")}}
</div>
</div>
@ -73,6 +73,6 @@
</div>
</div>
{{#ui/ui-dialog title="Delete Label" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDelete")}}
<p>Are you sure you want to delete the label <b>{{deleteLabel.name}}?</b></p>
{{#ui/ui-dialog title=(localize 'label_delete') confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDelete")}}
<p>{{localize 'label_delete_confirm' deleteLabel.name}}</p>
{{/ui/ui-dialog}}

View file

@ -53,6 +53,7 @@
"name": "Name",
"description": "Description",
"icon": "Icon",
"color": "Color",
"running": "Running...",
"filter": "Filter",
@ -82,9 +83,7 @@
"approval_anybody": "Approval required from any approver",
"approval_majority": "Majority approval required from approvers",
"approval_unanimous": "Unanimous approval required from all approvers",
"template_published": "Published Template",
"block_published": "Published Block",
"auth_email_password": "Built-in email/password",
@ -110,10 +109,8 @@
"restore_confirm": "Confirm Restore",
"restore_confirm_input": "Please type RESTORE to commence the process",
"restore_warn": "You should only restore to an empty Documize Community instance",
"changelog_available": "Product update is available",
"changelog_guidance": "To upgrade, replace existing binary and restart Documize Community.",
"customize_name": "Site Name",
"customize_name_explain": "Provide short title for this Documize Community instance",
"customize_message": "Site Message",
@ -142,6 +139,35 @@
"search_reindex_rebuild": "Rebuild",
"search_reindex_start": "Starting search re-index process",
"search_reindex_finish": "Search re-indexing complete",
"smtp_host": "Host",
"smtp_host_explain": "e.g. my.host.com",
"smtp_port": "Port",
"smtp_port_explain": "e.g. 587",
"smtp_username": "Username",
"smtp_username_explain": "e.g. Login username for SMTP server",
"smtp_password": "Password",
"smtp_password_explain": "e.g. Login password for SMTP server",
"smtp_sender_email": "Sender Email",
"smtp_sender_email_explain": "e.g. user@example.org",
"smtp_sender_name": "Sender Name",
"smtp_sender_name_explain": "e.g. Documize",
"smtp_fqdn": "Sender Server Fully Qualified Domain Name",
"smtp_fqdn_explain": "(optional) SMTP can require valid domain name, e.g. docs.example.org",
"smtp_anon_auth": "Anonymous Authentication (Ignore Credentials)",
"smtp_base64": "Base64 Encode Credentials",
"smtp_ssl": "Use SSL",
"space_admin_export": "Export All Content",
"space_admin_make_owner": "Add myself as owner",
"space_admin_delete": "Delete space",
"space_admin_empty": "There are no shared spaces to manage",
"space_admin_delete_title": "Space Deletion",
"space_admin_delete_check": "Are you sure you want to delete this space and all documents?",
"space_admin_confirm": "Please type space name to confirm",
"space_admin_confirm_explain": "This will delete all documents and templates within this space!",
"label_add": "Add Label",
"label_update": "Update Label",
"label_delete": "Delete Label",
"label_delete_confirm": "Are you sure you want to delete the label {1}?",
"x": "x"
}