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

@ -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() {