Update translation keys on install page
This commit is contained in:
parent
a27b3df661
commit
c7019a0757
2 changed files with 12 additions and 12 deletions
|
@ -129,6 +129,14 @@ define(req, function(AppConfig, Default, Language) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Messages.install_token = "Install token";
|
||||||
|
Messages.install_header = "Installation"; // XXX
|
||||||
|
Messages.install_instance = "Set up your new CryptPad instance"; // XXX
|
||||||
|
Messages.install_launch = "Launch";
|
||||||
|
Messages.install_notes = `<ul class="cp-notes-list">
|
||||||
|
<li>This page will help you create your first administrator account and set up your instance.</li>
|
||||||
|
<li>Your password is the secret key that encrypts all of your documents. <span class="red">If you lose it there is no way we can recover your data.</span></li>
|
||||||
|
<li>If you are using a shared computer, <span class="red">remember to log out</span> when you are done. Only closing the browser window leaves your account exposed. </li></ul>`;
|
||||||
|
|
||||||
return Messages;
|
return Messages;
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ define([
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Msg.install_token = "Install token";
|
|
||||||
|
|
||||||
document.title = Msg.install_header;
|
document.title = Msg.install_header;
|
||||||
|
|
||||||
var frame = function (content) {
|
var frame = function (content) {
|
||||||
|
@ -27,8 +25,7 @@ Msg.install_token = "Install token";
|
||||||
h('div#cp-main', [
|
h('div#cp-main', [
|
||||||
//Pages.infopageTopbar(),
|
//Pages.infopageTopbar(),
|
||||||
h('div.container.cp-container', [
|
h('div.container.cp-container', [
|
||||||
//h('div.row.cp-page-title', h('h1', Msg.install_header)),
|
h('div.row.cp-page-title', h('h1', Msg.install_header)),
|
||||||
h('div.row.cp-page-title', h('h1', Msg.register_header)),
|
|
||||||
].concat(content)),
|
].concat(content)),
|
||||||
Pages.infopageFooter(),
|
Pages.infopageFooter(),
|
||||||
]),
|
]),
|
||||||
|
@ -39,17 +36,12 @@ Msg.install_token = "Install token";
|
||||||
h('div.row.cp-register-det', [
|
h('div.row.cp-register-det', [
|
||||||
h('div#data.hidden.col-md-6', [
|
h('div#data.hidden.col-md-6', [
|
||||||
h('h2', Msg.register_notes_title),
|
h('h2', Msg.register_notes_title),
|
||||||
//Pages.setHTML(h('div.cp-register-notes'), Msg.install_notes)
|
Pages.setHTML(h('div.cp-register-notes'), Msg.install_notes)
|
||||||
Pages.setHTML(h('div.cp-register-notes'), Msg.register_notes)
|
|
||||||
]),
|
]),
|
||||||
h('div.cp-reg-form.col-md-6', [
|
h('div.cp-reg-form.col-md-6', [
|
||||||
h('div#userForm.form-group.hidden', [
|
h('div#userForm.form-group.hidden', [
|
||||||
h('div.cp-register-instance', [
|
h('div.cp-register-instance', [
|
||||||
Msg._getKey('register_instance', [ Pages.Instance.name ]),
|
Msg.install_instance,
|
||||||
/*h('br'),
|
|
||||||
h('a', {
|
|
||||||
href: '/features.html'
|
|
||||||
}, Msg.register_whyRegister)*/
|
|
||||||
]),
|
]),
|
||||||
h('input.form-control#installtoken', {
|
h('input.form-control#installtoken', {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
@ -75,7 +67,7 @@ Msg.install_token = "Install token";
|
||||||
/*h('div.checkbox-container', [
|
/*h('div.checkbox-container', [
|
||||||
UI.createCheckbox('import-recent', Msg.register_importRecent, true)
|
UI.createCheckbox('import-recent', Msg.register_importRecent, true)
|
||||||
]),*/
|
]),*/
|
||||||
h('button#register', Msg.login_register)
|
h('button#register', Msg.install_launch)
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue