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

i18n admin strings

This commit is contained in:
McMatts 2022-03-03 19:10:06 -05:00
parent 4ed2b3902c
commit 53297f7627
27 changed files with 99 additions and 58 deletions

View file

@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
global: service(), global: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isGlobalAdmin")) { if (!this.get("session.isGlobalAdmin")) {
@ -56,6 +57,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Authentication'); this.get('browser').setTitle(this.i18n.localize('authentication'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Authentication" title=(localize 'authentication')
desc="Choose user authentication provider — Documize, Redhat Keycloak, LDAP/AD, Central Authentication Server" desc=(localize 'admin_auth_explain')
icon=constants.Icon.Locked}} icon=constants.Icon.Locked}}
{{customize/auth-settings {{customize/auth-settings

View file

@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
global: service(), global: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isAdmin")) { if (!this.get("session.isAdmin")) {
@ -28,6 +29,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Backup/Restore'); this.get('browser').setTitle(this.i18n.localize('admin_backup'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Backup & Restore" title=(localize 'admin_backup')
desc="Export all content to self-contained single zip file" desc=(localize 'admin_backup_explain')
icon=constants.Icon.Database}} icon=constants.Icon.Database}}
{{customize/backup-restore onBackup=(action "onBackup") onRestore=(action "onRestore")}} {{customize/backup-restore onBackup=(action "onBackup") onRestore=(action "onRestore")}}

View file

@ -11,8 +11,11 @@
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
import Route from '@ember/routing/route'; import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default Route.extend(AuthenticatedRouteMixin, { export default Route.extend(AuthenticatedRouteMixin, {
i18n: service(),
beforeModel() { beforeModel() {
if (!this.session.isAdmin) { if (!this.session.isAdmin) {
this.transitionTo('auth.login'); this.transitionTo('auth.login');
@ -20,6 +23,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Manage Spaces'); this.get('browser').setTitle(this.i18n.localize('spaces'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Spaces" title=(localize 'spaces')
desc="Delete spaces, take ownership of shared and orphaned spaces" desc=(localize 'admin_spaces_explain')
icon=constants.Icon.Grid}} icon=constants.Icon.Grid}}
{{customize/space-admin}} {{customize/space-admin}}

View file

@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
orgService: service('organization'), orgService: service('organization'),
appMeta: service(), appMeta: service(),
session: service(), session: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isAdmin")) { if (!this.get("session.isAdmin")) {
@ -34,6 +35,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('General Settings'); this.get('browser').setTitle(this.i18n.localize('admin_general'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="General" title=(localize 'admin_general')
desc="Options to help you customize Documize Community" desc=(localize 'admin_general_explain')
icon=constants.Icon.Settings}} icon=constants.Icon.Settings}}
{{customize/general-settings model=model {{customize/general-settings model=model

View file

@ -11,8 +11,11 @@
import Route from '@ember/routing/route'; import Route from '@ember/routing/route';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
import { inject as service } from '@ember/service';
export default Route.extend(AuthenticatedRouteMixin, { export default Route.extend(AuthenticatedRouteMixin, {
i18n: service(),
beforeModel () { beforeModel () {
if (!this.session.isAdmin) { if (!this.session.isAdmin) {
this.transitionTo('auth.login'); this.transitionTo('auth.login');
@ -20,6 +23,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Groups'); this.get('browser').setTitle(this.i18n.localize('admin_user_groups'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="User Groups" title=(localize 'admin_user_groups')
desc="Define groups for easier user and permission management" desc=(localize 'admin_user_groups_explain')
icon=constants.Icon.People}} icon=constants.Icon.People}}
{{customize/user-groups}} {{customize/user-groups}}

View file

@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
orgService: service('organization'), orgService: service('organization'),
appMeta: service(), appMeta: service(),
session: service(), session: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isAdmin")) { if (!this.get("session.isAdmin")) {
@ -42,6 +43,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Integrations'); this.get('browser').setTitle(this.i18n.localize('admin_integrations'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Integrations" title=(localize 'admin_integrations')
desc="Enable and configure third party integrations" desc=(localize 'admin_integrations_explain')
icon=constants.Icon.Integrations}} icon=constants.Icon.Integrations}}
{{customize/integration-settings jira=model.jira trello=model.trello}} {{customize/integration-settings jira=model.jira trello=model.trello}}

View file

@ -15,6 +15,7 @@ import Controller from '@ember/controller';
export default Controller.extend(Notifier, { export default Controller.extend(Notifier, {
labelSvc: service('label'), labelSvc: service('label'),
i18n: service(),
load() { load() {
this.get('labelSvc').getAll().then((labels) => { this.get('labelSvc').getAll().then((labels) => {
@ -26,21 +27,21 @@ export default Controller.extend(Notifier, {
onAdd(label) { onAdd(label) {
this.get('labelSvc').add(label).then(() => { this.get('labelSvc').add(label).then(() => {
this.load(); this.load();
this.notifySuccess('Label added'); this.notifySuccess(this.i18n.localize('added'));
}); });
}, },
onDelete(id) { onDelete(id) {
this.get('labelSvc').delete(id).then(() => { this.get('labelSvc').delete(id).then(() => {
this.load(); this.load();
this.notifySuccess('Label deleted'); this.notifySuccess(this.i18n.localize('deleted'));
}); });
}, },
onUpdate(label) { onUpdate(label) {
this.get('labelSvc').update(label).then(() => { this.get('labelSvc').update(label).then(() => {
this.load(); this.load();
this.notifySuccess('Label saved'); this.notifySuccess(this.i18n.localize('saved'));
}); });
} }
} }

View file

@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
labelSvc: service('label'), labelSvc: service('label'),
appMeta: service(), appMeta: service(),
session: service(), session: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isAdmin")) { if (!this.get("session.isAdmin")) {
@ -29,6 +30,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Space Labels'); this.get('browser').setTitle(this.i18n.localize('labels'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Labels" title=(localize 'labels')
desc="Group and navigate spaces with visual labels" desc=(localize 'admin_labels_explain')
icon=constants.Icon.Checkbox}} icon=constants.Icon.Checkbox}}
{{customize/space-labels {{customize/space-labels

View file

@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
global: service(), global: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isAdmin")) { if (!this.get("session.isAdmin")) {
@ -28,6 +29,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Notices'); this.get('browser').setTitle(this.i18n.localize('notice'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Third Party Notices" title=(localize 'notice')
desc="Documize Community utilizes open source libraries and components from third parties" desc=(localize 'third_party')
icon=constants.Icon.Announce}} icon=constants.Icon.Announce}}
<pre> <pre>

View file

@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
global: service(), global: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isAdmin")) { if (!this.get("session.isAdmin")) {
@ -28,6 +29,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Product Changelog'); this.get('browser').setTitle(this.i18n.localize('admin_changelog'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Changelog" title=(localize 'admin_changelog')
desc=(concat "You are running Documize " appMeta.edition " " appMeta.version " (build " appMeta.revision ")") desc=(concat appMeta.edition " " appMeta.version " (" appMeta.revision ")")
icon=constants.Icon.Announce}} icon=constants.Icon.Announce}}
{{customize/change-log}} {{customize/change-log}}

View file

@ -17,6 +17,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
global: service(), global: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isGlobalAdmin")) { if (!this.get("session.isGlobalAdmin")) {
@ -29,6 +30,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Search Engine'); this.get('browser').setTitle(this.i18n.localize('search'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Search" title=(localize 'search')
desc="Rebuild the search index" desc=(localize 'admin_search_explain')
icon=constants.Icon.Search}} icon=constants.Icon.Search}}
{{customize/search-index searchStatus=model reindex=(action "reindex")}} {{customize/search-index searchStatus=model reindex=(action "reindex")}}

View file

@ -18,6 +18,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
global: service(), global: service(),
i18n: service(),
beforeModel() { beforeModel() {
if (!this.get("session.isGlobalAdmin")) { if (!this.get("session.isGlobalAdmin")) {
@ -32,6 +33,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('SMTP Settings'); this.get('browser').setTitle(this.i18n.localize('admin_mail_server'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="Mail Server" title=(localize 'admin_mail_server')
desc="Specify mail server details required for sending user invite and notification emails" desc=(localize 'admin_mail_server_explain')
icon=constants.Icon.Send}} icon=constants.Icon.Send}}
{{customize/smtp-settings model=model saveSMTP=(action "saveSMTP")}} {{customize/smtp-settings model=model saveSMTP=(action "saveSMTP")}}

View file

@ -13,69 +13,69 @@
<Layout::Grid::Sidebar> <Layout::Grid::Sidebar>
<div class="sidebar-content"> <div class="sidebar-content">
<div class="section"> <div class="section">
<div class="title">administration</div> <div class="title">{{localize 'administration'}}</div>
<div class="list"> <div class="list">
{{#link-to "customize.general" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.general" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Settings}} /> <i class={{concat "dicon " constants.Icon.Settings}} />
<div class="name">General</div> <div class="name">{{localize 'admin_general'}}</div>
{{/link-to}} {{/link-to}}
{{#link-to "customize.labels" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.labels" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Checkbox}} /> <i class={{concat "dicon " constants.Icon.Checkbox}} />
<div class="name">Labels</div> <div class="name">{{localize 'labels'}}</div>
{{/link-to}} {{/link-to}}
{{#link-to "customize.folders" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.folders" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Grid}} /> <i class={{concat "dicon " constants.Icon.Grid}} />
<div class="name">Spaces</div> <div class="name">{{localize 'spaces'}}</div>
{{/link-to}} {{/link-to}}
{{#link-to "customize.users" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.users" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Person}} /> <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}}
{{#link-to "customize.groups" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.groups" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.People}} /> <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}}
{{#link-to "customize.integrations" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.integrations" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Integrations}} /> <i class={{concat "dicon " constants.Icon.Integrations}} />
<div class="name">Integrations</div> <div class="name">{{localize 'admin_integrations'}}</div>
{{/link-to}} {{/link-to}}
{{#if session.isGlobalAdmin}} {{#if session.isGlobalAdmin}}
{{#link-to "customize.smtp" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.smtp" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Send}} /> <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}}
{{#link-to "customize.auth" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.auth" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Locked}} /> <i class={{concat "dicon " constants.Icon.Locked}} />
<div class="name">Authentication</div> <div class="name">{{localize 'authentication'}}</div>
{{/link-to}} {{/link-to}}
{{#unless (eq appMeta.storageProvider constants.StoreProvider.SQLServer)}} {{#unless (eq appMeta.storageProvider constants.StoreProvider.SQLServer)}}
{{#link-to "customize.search" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.search" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Search}} /> <i class={{concat "dicon " constants.Icon.Search}} />
<div class="name">Search</div> <div class="name">{{localize 'search'}}</div>
{{/link-to}} {{/link-to}}
{{/unless}} {{/unless}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}} {{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#link-to "customize.audit" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.audit" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.ButtonAction}} /> <i class={{concat "dicon " constants.Icon.ButtonAction}} />
<div class="name">Audit Log</div> <div class="name">{{localize 'admin_audit_log'}}</div>
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if (eq appMeta.location "selfhost")}} {{#if (eq appMeta.location "selfhost")}}
{{#link-to "customize.backup" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.backup" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Database}} /> <i class={{concat "dicon " constants.Icon.Database}} />
<div class="name">Backup & Restore</div> <div class="name">{{localize 'admin_backup'}}</div>
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}} {{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#link-to "customize.billing" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.billing" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Handshake}} /> <i class={{concat "dicon " constants.Icon.Handshake}} />
<div class="name">Billing</div> <div class="name">{{localize 'admin_billing'}}</div>
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}
{{#link-to "customize.product" activeClass="selected" class="item" tagName="div"}} {{#link-to "customize.product" activeClass="selected" class="item" tagName="div"}}
<i class={{concat "dicon " constants.Icon.Announce}} /> <i class={{concat "dicon " constants.Icon.Announce}} />
<div class="name">Changelog</div> <div class="name">{{localize 'admin_changelog'}}</div>
{{/link-to}} {{/link-to}}
</div> </div>
</div> </div>

View file

@ -17,6 +17,7 @@ import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-rout
export default Route.extend(AuthenticatedRouteMixin, { export default Route.extend(AuthenticatedRouteMixin, {
userService: service('user'), userService: service('user'),
appMeta: service(), appMeta: service(),
i18n: service(),
beforeModel () { beforeModel () {
if (!this.session.isAdmin) { if (!this.session.isAdmin) {
@ -33,6 +34,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Users'); this.get('browser').setTitle(this.i18n.localize('admin_user_management'));
} }
}); });

View file

@ -1,6 +1,6 @@
{{layout/logo-heading {{layout/logo-heading
title="User Management" title=(localize 'admin_user_management')
desc="Manage basic information, passwords and permissions" desc=(localize 'admin_user_management_explain')
icon=constants.Icon.Person}} icon=constants.Icon.Person}}
{{customize/user-admin users=model {{customize/user-admin users=model

View file

@ -1,6 +1,7 @@
{ {
"none": "None", "none": "None",
"add": "Add", "add": "Add",
"added": "Added",
"activate": "Activate", "activate": "Activate",
"approve": "Approve", "approve": "Approve",
"authenticate": "Authenticate", "authenticate": "Authenticate",
@ -22,6 +23,7 @@
"join": "Join", "join": "Join",
"leave": "Leave", "leave": "Leave",
"login": "Login", "login": "Login",
"authentication": "Authentication",
"move": "Move", "move": "Move",
"next": "Next", "next": "Next",
"ok": "OK", "ok": "OK",
@ -35,6 +37,7 @@
"restore": "Restore", "restore": "Restore",
"request": "Request", "request": "Request",
"save": "Save", "save": "Save",
"saved": "Saved",
"search": "Search", "search": "Search",
"send": "Send", "send": "Send",
"share": "Share", "share": "Share",
@ -43,7 +46,6 @@
"unassigned": "Unassigned", "unassigned": "Unassigned",
"update": "Update", "update": "Update",
"version": "Version", "version": "Version",
"added": "Added",
"viewed": "Viewed", "viewed": "Viewed",
"edited": "Edited", "edited": "Edited",
"draft": "Draft", "draft": "Draft",
@ -63,6 +65,7 @@
"password": "Password", "password": "Password",
"password_confirm": "Confirm Password", "password_confirm": "Confirm Password",
"encryption": "Encryption", "encryption": "Encryption",
"notice": "Notice",
"filter": "Filter", "filter": "Filter",
"all": "All", "all": "All",
@ -71,10 +74,11 @@
"personal": "Personal", "personal": "Personal",
"label": "Label", "label": "Label",
"labels": "Labels",
"labels_none": "No labels", "labels_none": "No labels",
"space": "Space", "space": "Space",
"spaces": "Spaces", "spaces": "Spaces",
"space_new": "New Space", "space_new": "New Space",
"space_name": "Space name", "space_name": "Space name",
"space_description": "Space description", "space_description": "Space description",
@ -259,6 +263,26 @@
"auth_cas_back_url": "Documize CAS URL", "auth_cas_back_url": "Documize CAS URL",
"auth_cas_back_url_explain": "e.g. http://Documize-URL/auth/cas", "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"
} }