move text for login page into translation file
parent
f9da200381
commit
db12b5e896
|
@ -113,7 +113,10 @@ define(function () {
|
||||||
out.recentPadsIframe = 'Your recent pads';
|
out.recentPadsIframe = 'Your recent pads';
|
||||||
|
|
||||||
out.okButton = 'OK (enter)';
|
out.okButton = 'OK (enter)';
|
||||||
|
|
||||||
|
out.cancel = "cancel";
|
||||||
out.cancelButton = 'Cancel (esc)';
|
out.cancelButton = 'Cancel (esc)';
|
||||||
|
|
||||||
out.forget = "Forget";
|
out.forget = "Forget";
|
||||||
|
|
||||||
// Polls
|
// Polls
|
||||||
|
@ -220,12 +223,19 @@ define(function () {
|
||||||
// login
|
// login
|
||||||
out.login_login = "log in";
|
out.login_login = "log in";
|
||||||
out.login_register = "register";
|
out.login_register = "register";
|
||||||
|
out.logoutButton = "log out";
|
||||||
|
|
||||||
|
out.login_migrate = "Would you like to migrate existing data from your anonymous session?";
|
||||||
|
|
||||||
|
out.username_label = "Username: ";
|
||||||
|
|
||||||
out.login_username = "your username";
|
out.login_username = "your username";
|
||||||
out.login_password = "your password";
|
out.login_password = "your password";
|
||||||
out.login_confirm = "confirm your password";
|
out.login_confirm = "confirm your password";
|
||||||
out.login_remember = "remember me";
|
out.login_remember = "remember me";
|
||||||
|
|
||||||
|
out.login_cancel_prompt = "...or if you may have entered the wrong username or password, cancel to try again.";
|
||||||
|
|
||||||
out.login_warning = [
|
out.login_warning = [
|
||||||
'<h1 id="warning">WARNING</h1>',
|
'<h1 id="warning">WARNING</h1>',
|
||||||
'<p>Cryptpad stores your personal information in an encrypted realtime document, as it does with all other types of realtime documents.</p>',
|
'<p>Cryptpad stores your personal information in an encrypted realtime document, as it does with all other types of realtime documents.</p>',
|
||||||
|
@ -235,10 +245,15 @@ define(function () {
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
||||||
out.login_logout = [
|
out.login_logout = [
|
||||||
'<p>It seems you are already logged in</p>',
|
//'<p>It seems you are already logged in</p>',
|
||||||
'<p>Would you like to log out and authenticate as another user?</p>',
|
//'<p>Would you like to log out and authenticate as another user?</p>',
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
||||||
|
out.login_hashing = "Hashing your password, this might take some time.";
|
||||||
|
|
||||||
|
out.login_no_user = "There is no user associated with the username and password that you entered.";
|
||||||
|
out.login_confirm_password = "Re-enter your password to register...";
|
||||||
|
|
||||||
out.loginText = '<p>Your username and password are used to generate a unique key which is never known by our server.</p>\n' +
|
out.loginText = '<p>Your username and password are used to generate a unique key which is never known by our server.</p>\n' +
|
||||||
'<p>Be careful not to forget your credentials, as they are impossible to recover</p>';
|
'<p>Be careful not to forget your credentials, as they are impossible to recover</p>';
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<title>Cryptpad: login</title>
|
||||||
<script data-main="main" src="/bower_components/requirejs/require.js"></script>
|
<script data-main="main" src="/bower_components/requirejs/require.js"></script>
|
||||||
<link rel="stylesheet" href="/customize/main.css" />
|
<link rel="stylesheet" href="/customize/main.css" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -14,13 +15,10 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
width: 80vw;
|
|
||||||
min-width: 1000px;
|
|
||||||
margin: auto;
|
|
||||||
padding-top: 50px;
|
padding-top: 50px;
|
||||||
}
|
}
|
||||||
div.box {
|
div.box {
|
||||||
width: 80%;
|
width: 70%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
@ -28,11 +26,22 @@
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
div.box { width: 90%; }
|
||||||
|
}
|
||||||
input[type="text"], input[type="password"] {
|
input[type="text"], input[type="password"] {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#confirm { display: none; }
|
hr.choice {
|
||||||
|
margin-top: 45px;
|
||||||
|
margin-bottom: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#notice-box {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -42,20 +51,35 @@
|
||||||
<input type="text" name="username" id="username" data-localization-placeholder="login_username" autofocus><br />
|
<input type="text" name="username" id="username" data-localization-placeholder="login_username" autofocus><br />
|
||||||
<input type="password" name="password" id="password" data-localization-placeholder="login_password"><br />
|
<input type="password" name="password" id="password" data-localization-placeholder="login_password"><br />
|
||||||
|
|
||||||
<label for="register" data-localization="login_register"></label>
|
|
||||||
<input type="checkbox" name="register" id="register"><br />
|
|
||||||
<input type="password" name="confirm" id="confirm" data-localization-placeholder="login_confirm">
|
|
||||||
<br />
|
|
||||||
<hr />
|
|
||||||
<button id="login" data-localization="login_login"></button>
|
<button id="login" data-localization="login_login"></button>
|
||||||
<input type="checkbox" name="remember" id="remember" checked="true"><label for="remember" data-localization="login_remember"></label>
|
<input type="checkbox" name="remember" id="remember" checked="true"><label for="remember" data-localization="login_remember"></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="notice-box" class="box">
|
||||||
|
<p id="notice"></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="confirm-box" class="box">
|
||||||
|
<p data-localization="login_no_user"></p>
|
||||||
|
<p data-localization="login_confirm_password"></p>
|
||||||
|
|
||||||
|
<input type="password" name="confirm" id="confirm" data-localization-placeholder="login_confirm">
|
||||||
|
<button id="register" data-localization="login_register"></button>
|
||||||
|
|
||||||
|
<hr class="choice"/>
|
||||||
|
<p data-localization="login_cancel_prompt"></p>
|
||||||
|
|
||||||
|
<button id="cancel-register" data-localization="cancel"></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="logout-box" class="box">
|
<div id="logout-box" class="box">
|
||||||
<div data-localization="login_logout"></div>
|
<div data-localization="login_logout"></div>
|
||||||
<button id="logout">logout</button>
|
<button id="logout" data-localization="logoutButton"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="user-box" class="box">
|
<div id="user-box" class="box">
|
||||||
|
<div>
|
||||||
|
<span data-localization="username_label"></span>
|
||||||
|
<strong id="display-name" class="display"></strong>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue