mirror of
https://github.com/documize/community.git
synced 2025-07-18 20:59:43 +02:00
i18n admin strings
This commit is contained in:
parent
4ed2b3902c
commit
53297f7627
27 changed files with 99 additions and 58 deletions
|
@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
appMeta: service(),
|
||||
session: service(),
|
||||
global: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isGlobalAdmin")) {
|
||||
|
@ -56,6 +57,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Authentication');
|
||||
this.get('browser').setTitle(this.i18n.localize('authentication'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Authentication"
|
||||
desc="Choose user authentication provider — Documize, Redhat Keycloak, LDAP/AD, Central Authentication Server"
|
||||
title=(localize 'authentication')
|
||||
desc=(localize 'admin_auth_explain')
|
||||
icon=constants.Icon.Locked}}
|
||||
|
||||
{{customize/auth-settings
|
||||
|
|
|
@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
appMeta: service(),
|
||||
session: service(),
|
||||
global: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isAdmin")) {
|
||||
|
@ -28,6 +29,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Backup/Restore');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_backup'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Backup & Restore"
|
||||
desc="Export all content to self-contained single zip file"
|
||||
title=(localize 'admin_backup')
|
||||
desc=(localize 'admin_backup_explain')
|
||||
icon=constants.Icon.Database}}
|
||||
|
||||
{{customize/backup-restore onBackup=(action "onBackup") onRestore=(action "onRestore")}}
|
||||
|
|
|
@ -11,8 +11,11 @@
|
|||
|
||||
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default Route.extend(AuthenticatedRouteMixin, {
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.session.isAdmin) {
|
||||
this.transitionTo('auth.login');
|
||||
|
@ -20,6 +23,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Manage Spaces');
|
||||
this.get('browser').setTitle(this.i18n.localize('spaces'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Spaces"
|
||||
desc="Delete spaces, take ownership of shared and orphaned spaces"
|
||||
title=(localize 'spaces')
|
||||
desc=(localize 'admin_spaces_explain')
|
||||
icon=constants.Icon.Grid}}
|
||||
|
||||
{{customize/space-admin}}
|
||||
{{customize/space-admin}}
|
||||
|
|
|
@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
orgService: service('organization'),
|
||||
appMeta: service(),
|
||||
session: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isAdmin")) {
|
||||
|
@ -34,6 +35,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('General Settings');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_general'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="General"
|
||||
desc="Options to help you customize Documize Community"
|
||||
title=(localize 'admin_general')
|
||||
desc=(localize 'admin_general_explain')
|
||||
icon=constants.Icon.Settings}}
|
||||
|
||||
{{customize/general-settings model=model
|
||||
|
|
|
@ -11,8 +11,11 @@
|
|||
|
||||
import Route from '@ember/routing/route';
|
||||
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default Route.extend(AuthenticatedRouteMixin, {
|
||||
i18n: service(),
|
||||
|
||||
beforeModel () {
|
||||
if (!this.session.isAdmin) {
|
||||
this.transitionTo('auth.login');
|
||||
|
@ -20,6 +23,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Groups');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_user_groups'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="User Groups"
|
||||
desc="Define groups for easier user and permission management"
|
||||
title=(localize 'admin_user_groups')
|
||||
desc=(localize 'admin_user_groups_explain')
|
||||
icon=constants.Icon.People}}
|
||||
|
||||
{{customize/user-groups}}
|
||||
{{customize/user-groups}}
|
||||
|
|
|
@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
orgService: service('organization'),
|
||||
appMeta: service(),
|
||||
session: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isAdmin")) {
|
||||
|
@ -42,6 +43,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Integrations');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_integrations'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Integrations"
|
||||
desc="Enable and configure third party integrations"
|
||||
title=(localize 'admin_integrations')
|
||||
desc=(localize 'admin_integrations_explain')
|
||||
icon=constants.Icon.Integrations}}
|
||||
|
||||
{{customize/integration-settings jira=model.jira trello=model.trello}}
|
||||
|
|
|
@ -15,6 +15,7 @@ import Controller from '@ember/controller';
|
|||
|
||||
export default Controller.extend(Notifier, {
|
||||
labelSvc: service('label'),
|
||||
i18n: service(),
|
||||
|
||||
load() {
|
||||
this.get('labelSvc').getAll().then((labels) => {
|
||||
|
@ -26,21 +27,21 @@ export default Controller.extend(Notifier, {
|
|||
onAdd(label) {
|
||||
this.get('labelSvc').add(label).then(() => {
|
||||
this.load();
|
||||
this.notifySuccess('Label added');
|
||||
this.notifySuccess(this.i18n.localize('added'));
|
||||
});
|
||||
},
|
||||
|
||||
onDelete(id) {
|
||||
this.get('labelSvc').delete(id).then(() => {
|
||||
this.load();
|
||||
this.notifySuccess('Label deleted');
|
||||
this.notifySuccess(this.i18n.localize('deleted'));
|
||||
});
|
||||
},
|
||||
|
||||
onUpdate(label) {
|
||||
this.get('labelSvc').update(label).then(() => {
|
||||
this.load();
|
||||
this.notifySuccess('Label saved');
|
||||
this.notifySuccess(this.i18n.localize('saved'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
labelSvc: service('label'),
|
||||
appMeta: service(),
|
||||
session: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isAdmin")) {
|
||||
|
@ -29,6 +30,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Space Labels');
|
||||
this.get('browser').setTitle(this.i18n.localize('labels'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Labels"
|
||||
desc="Group and navigate spaces with visual labels"
|
||||
title=(localize 'labels')
|
||||
desc=(localize 'admin_labels_explain')
|
||||
icon=constants.Icon.Checkbox}}
|
||||
|
||||
{{customize/space-labels
|
||||
|
|
|
@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
appMeta: service(),
|
||||
session: service(),
|
||||
global: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isAdmin")) {
|
||||
|
@ -28,6 +29,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Notices');
|
||||
this.get('browser').setTitle(this.i18n.localize('notice'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Third Party Notices"
|
||||
desc="Documize Community utilizes open source libraries and components from third parties"
|
||||
title=(localize 'notice')
|
||||
desc=(localize 'third_party')
|
||||
icon=constants.Icon.Announce}}
|
||||
|
||||
<pre>
|
||||
|
|
|
@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
appMeta: service(),
|
||||
session: service(),
|
||||
global: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isAdmin")) {
|
||||
|
@ -28,6 +29,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Product Changelog');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_changelog'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Changelog"
|
||||
desc=(concat "You are running Documize " appMeta.edition " " appMeta.version " (build " appMeta.revision ")")
|
||||
title=(localize 'admin_changelog')
|
||||
desc=(concat appMeta.edition " " appMeta.version " (" appMeta.revision ")")
|
||||
icon=constants.Icon.Announce}}
|
||||
|
||||
{{customize/change-log}}
|
||||
|
|
|
@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
appMeta: service(),
|
||||
session: service(),
|
||||
global: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isGlobalAdmin")) {
|
||||
|
@ -29,6 +30,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Search Engine');
|
||||
this.get('browser').setTitle(this.i18n.localize('search'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Search"
|
||||
desc="Rebuild the search index"
|
||||
title=(localize 'search')
|
||||
desc=(localize 'admin_search_explain')
|
||||
icon=constants.Icon.Search}}
|
||||
|
||||
{{customize/search-index searchStatus=model reindex=(action "reindex")}}
|
||||
|
|
|
@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
appMeta: service(),
|
||||
session: service(),
|
||||
global: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
if (!this.get("session.isGlobalAdmin")) {
|
||||
|
@ -32,6 +33,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('SMTP Settings');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_mail_server'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Mail Server"
|
||||
desc="Specify mail server details required for sending user invite and notification emails"
|
||||
title=(localize 'admin_mail_server')
|
||||
desc=(localize 'admin_mail_server_explain')
|
||||
icon=constants.Icon.Send}}
|
||||
|
||||
{{customize/smtp-settings model=model saveSMTP=(action "saveSMTP")}}
|
||||
|
|
|
@ -13,69 +13,69 @@
|
|||
<Layout::Grid::Sidebar>
|
||||
<div class="sidebar-content">
|
||||
<div class="section">
|
||||
<div class="title">administration</div>
|
||||
<div class="title">{{localize 'administration'}}</div>
|
||||
<div class="list">
|
||||
{{#link-to "customize.general" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Settings}} />
|
||||
<div class="name">General</div>
|
||||
<div class="name">{{localize 'admin_general'}}</div>
|
||||
{{/link-to}}
|
||||
{{#link-to "customize.labels" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Checkbox}} />
|
||||
<div class="name">Labels</div>
|
||||
<div class="name">{{localize 'labels'}}</div>
|
||||
{{/link-to}}
|
||||
{{#link-to "customize.folders" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Grid}} />
|
||||
<div class="name">Spaces</div>
|
||||
<div class="name">{{localize 'spaces'}}</div>
|
||||
{{/link-to}}
|
||||
{{#link-to "customize.users" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Person}} />
|
||||
<div class="name">User Management</div>
|
||||
<div class="name">{{localize 'admin_user_management'}}</div>
|
||||
{{/link-to}}
|
||||
{{#link-to "customize.groups" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.People}} />
|
||||
<div class="name">User Groups</div>
|
||||
<div class="name">{{localize 'admin_user_groups'}}</div>
|
||||
{{/link-to}}
|
||||
{{#link-to "customize.integrations" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Integrations}} />
|
||||
<div class="name">Integrations</div>
|
||||
<div class="name">{{localize 'admin_integrations'}}</div>
|
||||
{{/link-to}}
|
||||
{{#if session.isGlobalAdmin}}
|
||||
{{#link-to "customize.smtp" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Send}} />
|
||||
<div class="name">Mail Server</div>
|
||||
<div class="name">{{localize 'admin_mail_server'}}</div>
|
||||
{{/link-to}}
|
||||
{{#link-to "customize.auth" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Locked}} />
|
||||
<div class="name">Authentication</div>
|
||||
<div class="name">{{localize 'authentication'}}</div>
|
||||
{{/link-to}}
|
||||
{{#unless (eq appMeta.storageProvider constants.StoreProvider.SQLServer)}}
|
||||
{{#link-to "customize.search" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Search}} />
|
||||
<div class="name">Search</div>
|
||||
<div class="name">{{localize 'search'}}</div>
|
||||
{{/link-to}}
|
||||
{{/unless}}
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
{{#link-to "customize.audit" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.ButtonAction}} />
|
||||
<div class="name">Audit Log</div>
|
||||
<div class="name">{{localize 'admin_audit_log'}}</div>
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if (eq appMeta.location "selfhost")}}
|
||||
{{#link-to "customize.backup" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Database}} />
|
||||
<div class="name">Backup & Restore</div>
|
||||
<div class="name">{{localize 'admin_backup'}}</div>
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
{{#link-to "customize.billing" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Handshake}} />
|
||||
<div class="name">Billing</div>
|
||||
<div class="name">{{localize 'admin_billing'}}</div>
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
{{#link-to "customize.product" activeClass="selected" class="item" tagName="div"}}
|
||||
<i class={{concat "dicon " constants.Icon.Announce}} />
|
||||
<div class="name">Changelog</div>
|
||||
<div class="name">{{localize 'admin_changelog'}}</div>
|
||||
{{/link-to}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -17,6 +17,7 @@ import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-rout
|
|||
export default Route.extend(AuthenticatedRouteMixin, {
|
||||
userService: service('user'),
|
||||
appMeta: service(),
|
||||
i18n: service(),
|
||||
|
||||
beforeModel () {
|
||||
if (!this.session.isAdmin) {
|
||||
|
@ -33,6 +34,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Users');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_user_management'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="User Management"
|
||||
desc="Manage basic information, passwords and permissions"
|
||||
title=(localize 'admin_user_management')
|
||||
desc=(localize 'admin_user_management_explain')
|
||||
icon=constants.Icon.Person}}
|
||||
|
||||
{{customize/user-admin users=model
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"none": "None",
|
||||
"add": "Add",
|
||||
"added": "Added",
|
||||
"activate": "Activate",
|
||||
"approve": "Approve",
|
||||
"authenticate": "Authenticate",
|
||||
|
@ -22,6 +23,7 @@
|
|||
"join": "Join",
|
||||
"leave": "Leave",
|
||||
"login": "Login",
|
||||
"authentication": "Authentication",
|
||||
"move": "Move",
|
||||
"next": "Next",
|
||||
"ok": "OK",
|
||||
|
@ -35,6 +37,7 @@
|
|||
"restore": "Restore",
|
||||
"request": "Request",
|
||||
"save": "Save",
|
||||
"saved": "Saved",
|
||||
"search": "Search",
|
||||
"send": "Send",
|
||||
"share": "Share",
|
||||
|
@ -43,7 +46,6 @@
|
|||
"unassigned": "Unassigned",
|
||||
"update": "Update",
|
||||
"version": "Version",
|
||||
"added": "Added",
|
||||
"viewed": "Viewed",
|
||||
"edited": "Edited",
|
||||
"draft": "Draft",
|
||||
|
@ -63,6 +65,7 @@
|
|||
"password": "Password",
|
||||
"password_confirm": "Confirm Password",
|
||||
"encryption": "Encryption",
|
||||
"notice": "Notice",
|
||||
|
||||
"filter": "Filter",
|
||||
"all": "All",
|
||||
|
@ -71,10 +74,11 @@
|
|||
"personal": "Personal",
|
||||
|
||||
"label": "Label",
|
||||
"labels": "Labels",
|
||||
"labels_none": "No labels",
|
||||
|
||||
"space": "Space",
|
||||
"spaces": "Spaces",
|
||||
|
||||
"space_new": "New Space",
|
||||
"space_name": "Space name",
|
||||
"space_description": "Space description",
|
||||
|
@ -259,6 +263,26 @@
|
|||
"auth_cas_back_url": "Documize CAS URL",
|
||||
"auth_cas_back_url_explain": "e.g. http://Documize-URL/auth/cas",
|
||||
|
||||
"administration": "Administration",
|
||||
"admin_general": "General",
|
||||
"admin_general_explain": "Options to help you customize Documize Community",
|
||||
"admin_user_management": "User Management",
|
||||
"admin_user_management_explain": "Manage basic information, passwords and permissions",
|
||||
"admin_user_groups": "User Groups",
|
||||
"admin_user_groups_explain": "Define groups for easier user and permission management",
|
||||
"admin_integrations": "Integrations",
|
||||
"admin_integrations_explain": "Enable and configure third party integrations",
|
||||
"admin_mail_server": "Mail Server",
|
||||
"admin_mail_server_explain": "Specify mail server details required for sending user invite and notification emails",
|
||||
"admin_audit_log": "Audit Log",
|
||||
"admin_backup": "Backup & Restore",
|
||||
"admin_backup_explain": "Export all content to self-contained single zip file",
|
||||
"admin_billing": "Billing",
|
||||
"admin_changelog": "Changelog",
|
||||
"admin_auth_explain": "Choose user authentication provider — Documize, Redhat Keycloak, LDAP/AD, Central Authentication Server",
|
||||
"admin_spaces_explain": "Delete spaces, take ownership of shared and orphaned spaces",
|
||||
"admin_labels_explain": "Group and navigate spaces with visual labels",
|
||||
"admin_search_explain": "Rebuild the search index",
|
||||
|
||||
"---": "---"
|
||||
"third_party": "Documize Community utilizes open source libraries and components from third parties"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue