mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
i18n space strings
This commit is contained in:
parent
97c4c927ac
commit
5e687f5ef4
7 changed files with 40 additions and 28 deletions
|
@ -19,6 +19,7 @@ export default Component.extend(AuthMixin, Notifier, {
|
|||
router: service(),
|
||||
spaceSvc: service('folder'),
|
||||
sectionSvc: service('section'),
|
||||
i18n: service(),
|
||||
|
||||
showDeleteDialog: false,
|
||||
deleteBlockId: '',
|
||||
|
@ -54,7 +55,7 @@ export default Component.extend(AuthMixin, Notifier, {
|
|||
|
||||
this.get('sectionSvc').deleteBlock(id).then(() => {
|
||||
this.set('deleteBlockId', '');
|
||||
this.notifySuccess('Deleted');
|
||||
this.notifySuccess(this.i18n.localize('deleted'));
|
||||
|
||||
this.get('sectionSvc').getSpaceBlocks(this.get('space.id')).then((blocks) => {
|
||||
this.set('blocks', blocks);
|
||||
|
|
|
@ -22,6 +22,7 @@ export default Component.extend(ModalMixin, Notifer, {
|
|||
categorySvc: service('category'),
|
||||
appMeta: service(),
|
||||
store: service(),
|
||||
i18n: service(),
|
||||
editId: '',
|
||||
editName: '',
|
||||
editDefault: false,
|
||||
|
@ -120,7 +121,7 @@ export default Component.extend(ModalMixin, Notifer, {
|
|||
|
||||
this.get('categorySvc').add(c).then(() => {
|
||||
this.load();
|
||||
this.notifySuccess('Category added');
|
||||
this.notifySuccess(this.i18n.localize('added'));
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
{{#ui/ui-dialog title="Delete User" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDelete")}}
|
||||
{{#ui/ui-dialog title="Delete User" confirmCaption=(localize 'delete') buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDelete")}}
|
||||
<p>{{localize 'user_delete_confirm' deleteUser.fullname}}</p>
|
||||
{{/ui/ui-dialog}}
|
||||
|
||||
|
|
|
@ -34,6 +34,6 @@
|
|||
{{/each}}
|
||||
</ul>
|
||||
|
||||
{{#ui/ui-dialog title="Delete Attachment" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDialog onAction=(action "onDelete")}}
|
||||
{{#ui/ui-dialog title="Delete Attachment" confirmCaption=(localize 'delete') buttonColor=constants.Color.Red show=showDialog onAction=(action "onDelete")}}
|
||||
<p>Are you sure you want to delete this attachment?</p>
|
||||
{{/ui/ui-dialog}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{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 'blocks_explain')
|
||||
icon=constants.Icon.Blocks}}
|
||||
|
||||
<div class="space-admin">
|
||||
|
@ -10,8 +10,8 @@
|
|||
<div class="name">{{block.title}}</div>
|
||||
<div class="desc">{{block.excerpt}}</div>
|
||||
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Gray tooltip="Edit block" onClick=(action "onEdit" block.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete block" onClick=(action "onShowDeleteDialog" block.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Gray tooltip=(localize 'edit') onClick=(action "onEdit" block.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'delete') onClick=(action "onShowDeleteDialog" block.id)}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
|
||||
{{#if isSpaceAdmin}}
|
||||
{{#ui/ui-dialog title="Delete Content Block" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDeleteBlock")}}
|
||||
<p>Are you sure you want to delete this re-usable content block?</p>
|
||||
{{#ui/ui-dialog title="Delete Content Block" confirmCaption=(localize 'delete') buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDeleteBlock")}}
|
||||
<p>{{localize 'block_delete_confirm'}}</p>
|
||||
{{/ui/ui-dialog}}
|
||||
{{/if}}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{{layout/logo-heading
|
||||
title="Categories"
|
||||
desc="Assign categories to documents and decide who can view them"
|
||||
title=(localize 'categories')
|
||||
desc=(localize 'category_explain')
|
||||
icon=constants.Icon.Category}}
|
||||
|
||||
<div class="space-admin">
|
||||
<div class="categories">
|
||||
<form class="form" onsubmit={{action "onAdd"}} role="form">
|
||||
<div class="form-group">
|
||||
{{focus-input id="new-category-name" type="text" class="form-control mousetrap" placeholder="Category name" value=newCategory}}
|
||||
{{focus-input id="new-category-name" type="text" class="form-control mousetrap" placeholder=(localize 'category') value=newCategory}}
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green light=true
|
||||
label=(localize 'add') icon=constants.Icon.Category
|
||||
|
@ -25,24 +25,23 @@
|
|||
<div class="info">
|
||||
<div class="name">{{cat.category}}</div>
|
||||
<div class="desc">
|
||||
Assigned to {{cat.documents}} {{if (eq cat.documents 1) "document" "documents" }}
|
||||
and viewable by {{cat.users}} users/groups
|
||||
{{localize 'category_assignment_summary' cat.documents cat.users}}
|
||||
</div>
|
||||
{{#unless cat.access}}
|
||||
<p class="color-red-600 bold-500">You have no view permission for this category</p>
|
||||
<p class="color-red-600 bold-500">{{localize 'category_no_access'}}</p>
|
||||
{{/unless}}
|
||||
{{#if cat.isDefault}}
|
||||
<p class="color-yellow-600 bold-500">Default category for new content</p>
|
||||
<p class="color-yellow-600 bold-500">{{localize 'category_default'}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="actions">
|
||||
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Locked color=constants.Color.Gray
|
||||
tooltip="Set view permissions" onClick=(action "onShowAccessPicker" cat.id)}}
|
||||
tooltip=(localize 'permissions') onClick=(action "onShowAccessPicker" cat.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Gray
|
||||
tooltip="Edit category" onClick=(action "onShowEdit" cat.id)}}
|
||||
tooltip=(localize 'edit') onClick=(action "onShowEdit" cat.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red
|
||||
tooltip="Delete category" onClick=(action "onShowDelete" cat.id)}}
|
||||
tooltip=(localize 'delete') onClick=(action "onShowDelete" cat.id)}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -53,15 +52,15 @@
|
|||
<div id="category-edit-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Edit Category</div>
|
||||
<div class="modal-header">{{localize 'edit'}}</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
{{focus-input id="edit-category-name" type="text" class="form-control mousetrap" placeholder="Category name" value=editName}}
|
||||
{{focus-input id="edit-category-name" type="text" class="form-control mousetrap" placeholder=(localize 'name') value=editName}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Default</label>
|
||||
<label>{{localize 'default'}}</label>
|
||||
{{x-toggle value=editDefault size="medium" theme="light" onToggle=(action (mut editDefault))}}
|
||||
<small class="form-text text-muted">Automatically applies to newly created documents</small>
|
||||
<small class="form-text text-muted">{{localize 'category_default_explain'}}</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
@ -76,9 +75,9 @@
|
|||
<div id="category-delete-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Delete Category</div>
|
||||
<div class="modal-header">{{localize 'delete'}}</div>
|
||||
<div class="modal-body">
|
||||
<p>Are you sure you want to delete this category?</p>
|
||||
<p>{{localize 'categroy_delete_confirm'}}</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'close') dismiss=true}}
|
||||
|
@ -89,8 +88,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#ui/ui-dialog title="Set Category Access" confirmCaption="Save" buttonColor=constants.Color.Green show=showCategoryAccess onAction=(action "onGrantAccess")}}
|
||||
<p>Select who can view documents within category</p>
|
||||
{{#ui/ui-dialog title=(localize 'category_permissions') confirmCaption=(localize 'save') buttonColor=constants.Color.Green show=showCategoryAccess onAction=(action "onGrantAccess")}}
|
||||
<p>{{localize 'category_permissions_explain'}}</p>
|
||||
<div class="widget-list-picker">
|
||||
<ul class="options">
|
||||
{{#each categoryPermissions as |permission|}}
|
||||
|
|
|
@ -98,6 +98,7 @@
|
|||
"references": "references",
|
||||
"move_up": "Move up",
|
||||
"move_down": "Move down",
|
||||
"default": "Default",
|
||||
"no_undo": "Proceed with caution as there is no undo",
|
||||
|
||||
"public": "Public",
|
||||
|
@ -113,6 +114,7 @@
|
|||
"space": "Space",
|
||||
"spaces": "Spaces",
|
||||
"category": "Category",
|
||||
"category_explain": "Assign categories to documents and decide who can view them",
|
||||
"categories": "Categories",
|
||||
"tag": "Tag",
|
||||
"tags": "Tags",
|
||||
|
@ -125,6 +127,8 @@
|
|||
"unpin": "Unpin",
|
||||
"unpinned": "Unpinned",
|
||||
"blocks": "Content Blocks",
|
||||
"blocks_explain": "Content blocks provide re-usable content that can be inserted into any document",
|
||||
"block_delete_confirm": "Are you sure you want to delete this re-usable content block?",
|
||||
"actions": "Actions",
|
||||
"activity": "Activity",
|
||||
"reports": "Reports",
|
||||
|
@ -186,6 +190,13 @@
|
|||
"feedback_prompt_explain": "Specify the prompt, e.g. Did this help you? Was this helpful? Did you find what you needed?",
|
||||
"likes_prompt": "Did this help you?",
|
||||
"delete_confirm": "Are you sure you want to delete?",
|
||||
"category_assignment_summary": "Assigned to {1} documents and viewable by {2} users/groups",
|
||||
"category_no_access": "You have no view permission for this category",
|
||||
"category_default": "Default category for new content",
|
||||
"category_default_explain": "Automatically applies to newly created documents",
|
||||
"category_delete_confirm": "Are you sure you want to delete this category?",
|
||||
"category_permissions": "Category Permissions",
|
||||
"category_permissions_explain": "Select who can view documents within category",
|
||||
|
||||
"login_cas": "Authenticating with CAS...",
|
||||
"login_cass_error": "CAS authentication failure",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue