mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
i18n strings
This commit is contained in:
parent
59dc6ea991
commit
38c9a94a9c
7 changed files with 45 additions and 28 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue