1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

i18n space strings

This commit is contained in:
McMatts 2022-03-08 12:50:34 -05:00
parent 4885a1b380
commit 97c4c927ac
6 changed files with 36 additions and 21 deletions

View file

@ -129,11 +129,11 @@
</div>
{{#ui/ui-dialog title=(localize 'delete_documents') confirmCaption=(localize 'delete') buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDeleteDocuments")}}
<p>Are you sure you want to delete {{selectedDocuments.length}} {{selectedCaption}}?</p>
<p>{{localize 'delete_confirm'}} ({{selectedDocuments.length}} {{selectedCaption}})</p>
{{/ui/ui-dialog}}
{{#ui/ui-dialog title=(localize 'move_documents') confirmCaption=(localize 'move') buttonColor=constants.Color.Green show=showMoveDialog onAction=(action "onMoveDocuments")}}
<p>Select space for {{selectedDocuments.length}} {{selectedCaption}}</p>
<p>{{localize 'space_change_prompt'}} ({{selectedDocuments.length}} {{selectedCaption}})</p>
{{ui/ui-list-picker items=moveOptions nameField="name" singleSelect=true}}
{{/ui/ui-dialog}}

View file

@ -1,13 +1,13 @@
{{layout/logo-heading
title="Delete Space"
desc="Proceed with caution as there is no undo"
title=(localize 'delete_space')
desc=(localize 'no_undo')
icon=constants.Icon.Delete}}
<form>
<div class="form-group">
<label>Please type space name to confirm</label>
{{focus-input id="delete-space-name" type="text" value=deleteSpaceName class="form-control mousetrap" placeholder="Space name" autocomplete="off"}}
<small class="form-text text-muted">This will delete all documents and templates within this space!</small>
<label>{{localize 'space_delete_prompt'}}</label>
{{focus-input id="delete-space-name" type="text" value=deleteSpaceName class="form-control mousetrap" placeholder=(localize 'name') autocomplete="off"}}
<small class="form-text text-muted">{{localize 'space_delete_warn'}}</small>
</div>
</form>

View file

@ -5,19 +5,19 @@
<form role="form">
<div class="form-group">
<label>Name</label>
<label>{{localize 'name'}}</label>
{{focus-input id="space-name" type="text" value=spaceName class=(if hasNameError "form-control is-invalid" "form-control") placeholder="Space name" autocomplete="off"}}
</div>
<div class="form-group">
<label>Description</label>
<label>{{localize 'description'}}</label>
<div id="space-desc" class="wysiwyg wysiwyg-editor">
{{{spaceDesc}}}
</div>
</div>
<div class="form-group">
<label>Visibility</label>
<label>{{localize 'visibility'}}</label>
{{ui/ui-select id="spacetypes-dropdown" content=spaceTypeOptions optionValuePath="id" optionLabelPath="label" selection=spaceType action=(action "onSetSpaceType")}}
</div>
@ -37,7 +37,7 @@
<div class="form-group">
<label>Label</label>
<ul class="space-label-picker">
<li class="label none {{if (eq spaceLabel "") "selected"}}" {{action "onSetLabel" ""}} role="button" tabindex="0">None</li>
<li class="label none {{if (eq spaceLabel "") "selected"}}" {{action "onSetLabel" ""}} role="button" tabindex="0">{{localize 'none'}}</li>
{{#each labels as |label|}}
<li class="label {{if (eq spaceLabel label.id) "selected"}}" role="button" tabindex="0"
style={{label.bgColor}}
@ -49,15 +49,15 @@
</div>
<div class="form-group">
<label>Enable Feedback</label>
<label>{{localize 'feedback_enable'}}</label>
{{x-toggle value=allowLikes size="medium" theme="light" onToggle=(action (mut allowLikes))}}
</div>
{{#if allowLikes}}
<div class="form-group">
<label>Feedback Prompt</label>
{{input type="text" id="space-likes-prompt" class="form-control" placeholder="Enter prompt asking for user feedback" value=likes}}
<small class="form-text text-muted">Specify the prompt, e.g. Did this help you? Was this helpful? Did you find what you needed?</small>
{{input type="text" id="space-likes-prompt" class="form-control" placeholder=(localize 'feedback_prompt_hint') value=likes}}
<small class="form-text text-muted">{{localize 'feedback_prompt_explain'}}</small>
</div>
{{/if}}
</form>