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

i18n strings

This commit is contained in:
McMatts 2022-03-04 13:28:36 -05:00
parent 59dc6ea991
commit 38c9a94a9c
7 changed files with 45 additions and 28 deletions

View file

@ -5,12 +5,10 @@
<Layout::Grid::Sidebar> <Layout::Grid::Sidebar>
<div class="sidebar-content"> <div class="sidebar-content">
<div class="section"> <div class="section">
<div class="title">PROFILE</div> <div class="title">{{localize 'profile'}}</div>
<div class="text">{{localize 'profile_explain'}}</div>
<div class="text"> <div class="text">
Set your personal information or reset your password. {{localize 'product_feedback'}} <a href="mailto:support@documize.com">{{localize 'get_in_touch'}}</a>
</div>
<div class="text">
Have a product idea, suggestion or some feedback? <a href="mailto:support@documize.com">Get in touch.</a>
</div> </div>
</div> </div>
</div> </div>
@ -18,7 +16,7 @@
<Layout::Grid::Content> <Layout::Grid::Content>
{{layout/logo-heading {{layout/logo-heading
title=session.user.fullname title=session.user.fullname
desc="Manage your profile and password" desc=(localize 'profile_explain')
icon=constants.Icon.Person}} icon=constants.Icon.Person}}
{{user/user-profile model=model save=(action "save")}} {{user/user-profile model=model save=(action "save")}}

View file

@ -11,8 +11,10 @@
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(),
matchFilter: null, matchFilter: null,
beforeModel(transition) { beforeModel(transition) {
@ -35,6 +37,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
}, },
activate() { activate() {
this.get('browser').setTitle('Search'); this.get('browser').setTitle(this.i18n.localize('search'));
} }
}); });

View file

@ -5,29 +5,29 @@
<Layout::Grid::Sidebar> <Layout::Grid::Sidebar>
<div class="sidebar-content"> <div class="sidebar-content">
<div class="section"> <div class="section">
<div class="title">Match Filter</div> <div class="title">{{localize 'filter'}}</div>
<div class="list"> <div class="list">
<div class="item"> <div class="item">
{{input id="search-1" type="checkbox" checked=matchFilter.matchDoc}} {{input id="search-1" type="checkbox" checked=matchFilter.matchDoc}}
<label for="search-1" class="name">Document name</label> <label for="search-1" class="name">{{localize 'search_doc_name'}}</label>
</div> </div>
<div class="item"> <div class="item">
{{input id="search-2" type="checkbox" checked=matchFilter.matchContent}} {{input id="search-2" type="checkbox" checked=matchFilter.matchContent}}
<label for="search-2" class="name">Document content</label> <label for="search-2" class="name">{{localize 'search_doc_content'}}</label>
</div> </div>
<div class="item"> <div class="item">
{{input id="search-3" type="checkbox" checked=matchFilter.matchTag}} {{input id="search-3" type="checkbox" checked=matchFilter.matchTag}}
<label for="search-3" class="name">Tag name</label> <label for="search-3" class="name">{{localize 'search_tag_name'}}</label>
</div> </div>
<div class="item"> <div class="item">
{{input id="search-4" type="checkbox" checked=matchFilter.matchFile}} {{input id="search-4" type="checkbox" checked=matchFilter.matchFile}}
<label for="search-4" class="name">Attachment name</label> <label for="search-4" class="name">{{localize 'search_attachment_name'}}</label>
</div> </div>
</div> </div>
</div> </div>
<Ui::UiSpacer @size="200" /> <Ui::UiSpacer @size="200" />
<div class="section"> <div class="section">
<div class="title">query examples</div> <div class="title">{{localize 'search_example_title'}}</div>
<div class="view-search"> <div class="view-search">
{{#if (eq appMeta.storageProvider constants.StoreProvider.MySQL)}} {{#if (eq appMeta.storageProvider constants.StoreProvider.MySQL)}}
<div class="syntax"> <div class="syntax">
@ -82,8 +82,8 @@
<Layout::Grid::Content> <Layout::Grid::Content>
{{layout/logo-heading {{layout/logo-heading
title="Search" title=(localize 'search')
desc="Find content" desc=(localize 'search_explain')
icon=constants.Icon.Search}} icon=constants.Icon.Search}}
{{search/search-view {{search/search-view

View file

@ -11,8 +11,11 @@
import $ from 'jquery'; import $ from 'jquery';
import Route from '@ember/routing/route'; import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default Route.extend({ export default Route.extend({
i18n: service(),
beforeModel() { beforeModel() {
let pwd = document.head.querySelector("[property=dbhash]").content; let pwd = document.head.querySelector("[property=dbhash]").content;
if (pwd.length === 0 || pwd === "{{.DBhash}}") { if (pwd.length === 0 || pwd === "{{.DBhash}}") {
@ -28,7 +31,7 @@ export default Route.extend({
dbname: document.head.querySelector("[property=dbname]").content, dbname: document.head.querySelector("[property=dbname]").content,
dbhash: pwd, dbhash: pwd,
title: "", title: "",
message: "This Documize instance contains all our team documentation", message: this.i18n.localize('setup_default_message'),
allowAnonymousAccess: false, allowAnonymousAccess: false,
firstname: "", firstname: "",
lastname: "", lastname: "",
@ -41,7 +44,7 @@ export default Route.extend({
activate() { activate() {
$('body').addClass('background-color-theme-100'); $('body').addClass('background-color-theme-100');
document.title = "Welcome to the Documize installer"; document.title = this.i18n.localize('setup_title');
}, },
deactivate() { deactivate() {

View file

@ -10,9 +10,12 @@
// https://documize.com // https://documize.com
import Route from '@ember/routing/route'; import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default Route.extend({ export default Route.extend({
i18n: service(),
activate() { activate() {
this.get('browser').setTitle('Product News'); this.get('browser').setTitle(this.i18n.localize('product_news'));
} }
}); });

View file

@ -3,7 +3,7 @@
<div class="zone-1" /> <div class="zone-1" />
<div class="zone-2"> <div class="zone-2">
<div class="label color-gray-700"> <div class="label color-gray-700">
Documize {{appMeta.edition}} Edition {{appMeta.version}} (build {{appMeta.revision}}) Documize {{appMeta.edition}} {{appMeta.version}} ({{appMeta.revision}})
</div> </div>
</div> </div>
<div class="zone-3" /> <div class="zone-3" />
@ -13,27 +13,24 @@
<Layout::Grid::Sidebar> <Layout::Grid::Sidebar>
<div class="sidebar-content"> <div class="sidebar-content">
<div class="section"> <div class="section">
<div class="title">ABOUT</div> <div class="title">{{localize 'about'}}</div>
<div class="text"></div>
<div class="text"> <div class="text">
Documize product updates are released frequently for both {{localize 'product_feedback'}} <a href="mailto:support@documize.com">{{localize 'get_in_touch'}}</a>
cloud and self-hosted customers.
</div>
<div class="text">
Have an idea, suggestion or some feedback? <a href="mailto:support@documize.com">Get in touch.</a>
</div> </div>
</div> </div>
</div> </div>
</Layout::Grid::Sidebar> </Layout::Grid::Sidebar>
<Layout::Grid::Content> <Layout::Grid::Content>
{{layout/logo-heading {{layout/logo-heading
title="Product News" title=(localize 'product_news')
desc="Latest product news and updates" desc=(localize 'product_news_explain')
icon=constants.Icon.Announce}} icon=constants.Icon.Announce}}
<div class="product-news"> <div class="product-news">
{{{newsContent}}} {{{newsContent}}}
<div class="action"> <div class="action">
Have an idea? Suggestion or feedback? <a href="mailto:support@documize.com">Get in touch!</a> {{localize 'product_feedback'}} <a href="mailto:support@documize.com">{{localize 'get_in_touch'}}</a>
</div> </div>
</div> </div>
</Layout::Grid::Content> </Layout::Grid::Content>

View file

@ -82,6 +82,7 @@
"about": "About", "about": "About",
"meta": "Meta", "meta": "Meta",
"permissions": "Permissions", "permissions": "Permissions",
"profile": "Profile",
"public": "Public", "public": "Public",
"protected": "Protected", "protected": "Protected",
@ -136,6 +137,13 @@
"password_match": "Passwords must match", "password_match": "Passwords must match",
"welcome": "Welcome to Documize", "welcome": "Welcome to Documize",
"welcome_explain": "Let's set up your account and get you started", "welcome_explain": "Let's set up your account and get you started",
"profile_explain": "Manage your profile and password",
"search_doc_name": "Document name",
"search_doc_content": "Document content",
"search_tag_name": "Tag name",
"search_attachment_name": "Attachment name",
"search_example_title": "Query examples",
"search_explain": "Find content using keywords and operators",
"backup_explain1": "Documize Community is a multi-tenanted application enabling both 'tech.mycompany.com' and 'sales.mycompany.com' to run using the same executable/database. As a Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. The Documize Community Tenant Administrator can login to perform a tenant-level backup (e.g. marketing.mycompany.com).", "backup_explain1": "Documize Community is a multi-tenanted application enabling both 'tech.mycompany.com' and 'sales.mycompany.com' to run using the same executable/database. As a Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. The Documize Community Tenant Administrator can login to perform a tenant-level backup (e.g. marketing.mycompany.com).",
"backup_explain2": "Documize Community is a multi-tenanted application enabling both 'tech.mycompany.com' and 'sales.mycompany.com' to run using the same executable/database. A Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. As a Documize Community Tenant Administrator you can perform a tenant-level backup (e.g. marketing.mycompany.com).", "backup_explain2": "Documize Community is a multi-tenanted application enabling both 'tech.mycompany.com' and 'sales.mycompany.com' to run using the same executable/database. A Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. As a Documize Community Tenant Administrator you can perform a tenant-level backup (e.g. marketing.mycompany.com).",
@ -327,6 +335,12 @@
"admin_labels_explain": "Group and navigate spaces with visual labels", "admin_labels_explain": "Group and navigate spaces with visual labels",
"admin_search_explain": "Rebuild the search index", "admin_search_explain": "Rebuild the search index",
"setup_title": "Documize Community Setup",
"setup_default_message": "Documize Community instance contains all our documentation",
"get_in_touch": "Get in touch",
"product_feedback": "Have a product idea, suggestion or some feedback?",
"product_news": "Product News",
"product_news_explain": "Latest product news and updates",
"404": "Oops! That page couldn't be found.", "404": "Oops! That page couldn't be found.",
"404_explain": "Maybe the content you're looking for is no longer available?", "404_explain": "Maybe the content you're looking for is no longer available?",
"close_account": "Please close my Documize account.", "close_account": "Please close my Documize account.",