mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
i18n strings
This commit is contained in:
parent
59dc6ea991
commit
38c9a94a9c
7 changed files with 45 additions and 28 deletions
|
@ -5,12 +5,10 @@
|
|||
<Layout::Grid::Sidebar>
|
||||
<div class="sidebar-content">
|
||||
<div class="section">
|
||||
<div class="title">PROFILE</div>
|
||||
<div class="title">{{localize 'profile'}}</div>
|
||||
<div class="text">{{localize 'profile_explain'}}</div>
|
||||
<div class="text">
|
||||
Set your personal information or reset your password.
|
||||
</div>
|
||||
<div class="text">
|
||||
Have a product idea, suggestion or some 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>
|
||||
|
@ -18,7 +16,7 @@
|
|||
<Layout::Grid::Content>
|
||||
{{layout/logo-heading
|
||||
title=session.user.fullname
|
||||
desc="Manage your profile and password"
|
||||
desc=(localize 'profile_explain')
|
||||
icon=constants.Icon.Person}}
|
||||
|
||||
{{user/user-profile model=model save=(action "save")}}
|
||||
|
|
|
@ -11,8 +11,10 @@
|
|||
|
||||
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(),
|
||||
matchFilter: null,
|
||||
|
||||
beforeModel(transition) {
|
||||
|
@ -35,6 +37,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Search');
|
||||
this.get('browser').setTitle(this.i18n.localize('search'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -5,29 +5,29 @@
|
|||
<Layout::Grid::Sidebar>
|
||||
<div class="sidebar-content">
|
||||
<div class="section">
|
||||
<div class="title">Match Filter</div>
|
||||
<div class="title">{{localize 'filter'}}</div>
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
{{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 class="item">
|
||||
{{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 class="item">
|
||||
{{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 class="item">
|
||||
{{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>
|
||||
<Ui::UiSpacer @size="200" />
|
||||
<div class="section">
|
||||
<div class="title">query examples</div>
|
||||
<div class="title">{{localize 'search_example_title'}}</div>
|
||||
<div class="view-search">
|
||||
{{#if (eq appMeta.storageProvider constants.StoreProvider.MySQL)}}
|
||||
<div class="syntax">
|
||||
|
@ -82,8 +82,8 @@
|
|||
|
||||
<Layout::Grid::Content>
|
||||
{{layout/logo-heading
|
||||
title="Search"
|
||||
desc="Find content"
|
||||
title=(localize 'search')
|
||||
desc=(localize 'search_explain')
|
||||
icon=constants.Icon.Search}}
|
||||
|
||||
{{search/search-view
|
||||
|
|
|
@ -11,8 +11,11 @@
|
|||
|
||||
import $ from 'jquery';
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default Route.extend({
|
||||
i18n: service(),
|
||||
|
||||
beforeModel() {
|
||||
let pwd = document.head.querySelector("[property=dbhash]").content;
|
||||
if (pwd.length === 0 || pwd === "{{.DBhash}}") {
|
||||
|
@ -28,7 +31,7 @@ export default Route.extend({
|
|||
dbname: document.head.querySelector("[property=dbname]").content,
|
||||
dbhash: pwd,
|
||||
title: "",
|
||||
message: "This Documize instance contains all our team documentation",
|
||||
message: this.i18n.localize('setup_default_message'),
|
||||
allowAnonymousAccess: false,
|
||||
firstname: "",
|
||||
lastname: "",
|
||||
|
@ -41,7 +44,7 @@ export default Route.extend({
|
|||
|
||||
activate() {
|
||||
$('body').addClass('background-color-theme-100');
|
||||
document.title = "Welcome to the Documize installer";
|
||||
document.title = this.i18n.localize('setup_title');
|
||||
},
|
||||
|
||||
deactivate() {
|
||||
|
|
|
@ -10,9 +10,12 @@
|
|||
// https://documize.com
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default Route.extend({
|
||||
i18n: service(),
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Product News');
|
||||
this.get('browser').setTitle(this.i18n.localize('product_news'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="zone-1" />
|
||||
<div class="zone-2">
|
||||
<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 class="zone-3" />
|
||||
|
@ -13,27 +13,24 @@
|
|||
<Layout::Grid::Sidebar>
|
||||
<div class="sidebar-content">
|
||||
<div class="section">
|
||||
<div class="title">ABOUT</div>
|
||||
<div class="title">{{localize 'about'}}</div>
|
||||
<div class="text"></div>
|
||||
<div class="text">
|
||||
Documize product updates are released frequently for both
|
||||
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>
|
||||
{{localize 'product_feedback'}} <a href="mailto:support@documize.com">{{localize 'get_in_touch'}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Layout::Grid::Sidebar>
|
||||
<Layout::Grid::Content>
|
||||
{{layout/logo-heading
|
||||
title="Product News"
|
||||
desc="Latest product news and updates"
|
||||
title=(localize 'product_news')
|
||||
desc=(localize 'product_news_explain')
|
||||
icon=constants.Icon.Announce}}
|
||||
|
||||
<div class="product-news">
|
||||
{{{newsContent}}}
|
||||
<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>
|
||||
</Layout::Grid::Content>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue