Complete the French translation
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Zero Knowledge Date Picker</title>
|
||||
<title data-localization="poll_title">Zero Knowledge Date Picker</title>
|
||||
<link rel="icon" type="image/png"
|
||||
href="/customize/main-favicon.png"
|
||||
data-main-favicon="/customize/main-favicon.png"
|
||||
@@ -41,10 +41,10 @@
|
||||
<sub><a href="/"></a></sub>
|
||||
</div>
|
||||
<h1>CryptPoll</h1>
|
||||
<h2>Zero Knowledge, <em>realtime</em> scheduling</h2>
|
||||
<h2 data-localization="poll_subtitle"></h2>
|
||||
|
||||
<p>Your settings are updated instantly, so you never need to save.</p>
|
||||
<p>All your input is encrypted so only people who have the link can access it. Even the server cannot see what you change.</p>
|
||||
<p data-localization="poll_p_save"></p>
|
||||
<p data-localization="poll_p_encryption"></p>
|
||||
|
||||
<hr>
|
||||
<br>
|
||||
@@ -53,7 +53,7 @@
|
||||
<input type="text" id="title" placeholder="title"><br />
|
||||
<textarea id="description" placeholder="description"></textarea>
|
||||
|
||||
<p>Enter your name in the input field below and check the box for times when you are available</p>
|
||||
<p data-localization="poll_p_howtouse"></p>
|
||||
|
||||
<!-- Table markup-->
|
||||
<table id="table">
|
||||
@@ -62,7 +62,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="adduser" class="clickable" title="click to add a user">+ Users</div>
|
||||
<div id="adduser" class="clickable" data-localization="poll_addUserButton" data-localization-title="poll_addUserButtonTitle"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -70,7 +70,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="addoption" class="clickable" title="click to add an option">+ Options</div>
|
||||
<div id="addoption" class="clickable" data-localization="poll_addOptionButton" data-localization-title="poll_addOptionButtonTitle"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -82,28 +82,28 @@
|
||||
|
||||
|
||||
<div class="modal" id="wizard-modal">
|
||||
<button id="close-wizard" class="button action" title="close wizard">Close wizard</button>
|
||||
<button id="close-wizard" class="button action" data-localization="poll_closeWizardButton" data-localization-title="poll_closeWizardButtonTitle"></button>
|
||||
<div class="center">
|
||||
<div id="modal-toolbar">
|
||||
<button id="get-options" class="action button">Compute Options</button>
|
||||
<button id="clear-table" class="action button">Clear Table</button>
|
||||
<button id="get-options" class="action button" data-localization="poll_wizardComputeButton"></button>
|
||||
<button id="clear-table" class="action button" data-localization="poll_wizardClearButton"></button>
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Automatically create a number of options by entering any number of dates and times segments </h2>
|
||||
<h2 data-localization="poll_wizardDescription"></h2>
|
||||
|
||||
<table id="wizard-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="adddate" class="clickable">+ Dates</div>
|
||||
<div id="adddate" class="clickable" data-localization="poll_wizardAddDateButton"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="addtime" class="clickable">+ Times</div>
|
||||
<div id="addtime" class="clickable" data-localization="poll_wizardAddTimeButton"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
@@ -67,8 +67,8 @@ define([
|
||||
module.Wizard = Wizard;
|
||||
|
||||
// special UI elements
|
||||
var $title = $('#title').attr('placeholder', Messages.dateTitleHint || 'title');
|
||||
var $description = $('#description').attr('placeholder', Messages.dateDescription || 'description');
|
||||
var $title = $('#title').attr('placeholder', Messages.poll_titleHint || 'title');
|
||||
var $description = $('#description').attr('placeholder', Messages.poll_descriptionHint || 'description');
|
||||
|
||||
var items = [$title, $description];
|
||||
|
||||
@@ -231,7 +231,7 @@ define([
|
||||
'class': 'save action',
|
||||
'for': id,
|
||||
})
|
||||
.text('COMMIT') // TODO translate
|
||||
.text(Messages.commitButton)
|
||||
.click(function () {
|
||||
module.activeColumn = '';
|
||||
makeUserEditable(id, false);
|
||||
@@ -254,7 +254,7 @@ define([
|
||||
var $user = Input({
|
||||
id: id,
|
||||
type: 'text',
|
||||
placeholder: 'your name',
|
||||
placeholder: Messages.poll_userPlaceholder,
|
||||
disabled: true,
|
||||
}).on('keyup change', function () {
|
||||
proxy.table.cols[id] = $user.val() || "";
|
||||
@@ -262,10 +262,10 @@ define([
|
||||
|
||||
var $edit = $('<span>', {
|
||||
'class': 'edit',
|
||||
title: 'edit column', // TODO translate
|
||||
title: Messages.poll_editUserTitle,
|
||||
}).click(function () {
|
||||
if ($edit.hasClass('editable')) { return; }
|
||||
Cryptpad.confirm("Are you sure you'd like to edit this user?",
|
||||
Cryptpad.confirm(Messages.poll_editUser,
|
||||
function (yes) {
|
||||
if (!yes) { return; }
|
||||
makeUserEditable(id, true);
|
||||
@@ -277,9 +277,9 @@ define([
|
||||
|
||||
var $remove = $('<span>', {
|
||||
'class': 'remove',
|
||||
'title': 'remove column', // TODO translate
|
||||
'title': Messages.poll_removeUserTitle,
|
||||
}).text('✖').click(function () {
|
||||
Cryptpad.confirm("Are you sure you'd like to remove this user?", // TODO translate
|
||||
Cryptpad.confirm(Messages.poll_removeUser,
|
||||
function (yes) {
|
||||
if (!yes) { return; }
|
||||
// remove commit button, and anything else...
|
||||
@@ -329,7 +329,7 @@ define([
|
||||
var makeOption = function (proxy, id, value) {
|
||||
var $option = Input({
|
||||
type: 'text',
|
||||
placeholder: 'option',
|
||||
placeholder: Messages.optionPlaceholder,
|
||||
id: id,
|
||||
}).on('keyup change', function () {
|
||||
proxy.table.rows[id] = $option.val();
|
||||
@@ -337,11 +337,11 @@ define([
|
||||
|
||||
var $edit = $('<span>', {
|
||||
'class': 'edit',
|
||||
title: 'edit option', // TODO translate
|
||||
title: Messages.poll_editOptionTitle,
|
||||
})
|
||||
.click(function () {
|
||||
if ($edit.hasClass('editable')) { return; }
|
||||
Cryptpad.confirm("Are you sure you'd like to edit this option?",
|
||||
Cryptpad.confirm(Messages.poll_editOption,
|
||||
function (yes) {
|
||||
if (!yes) { return; }
|
||||
makeOptionEditable(id, true);
|
||||
@@ -353,10 +353,9 @@ define([
|
||||
|
||||
var $remove = $('<span>', {
|
||||
'class': 'remove',
|
||||
'title': 'remove row', // TODO translate
|
||||
'title': Messages.poll_removeOptionTitle,
|
||||
}).text('✖').click(function () {
|
||||
// TODO translate
|
||||
var msg = "Are you sure you'd like to remove this option?";
|
||||
var msg = Messages.poll_removeOption;
|
||||
Cryptpad.confirm(msg, function (yes) {
|
||||
if (!yes) { return; }
|
||||
removeRow(proxy, id);
|
||||
@@ -384,7 +383,7 @@ define([
|
||||
if (!module.isEditable) { return; }
|
||||
var id = coluid();
|
||||
|
||||
var msg = "Enter a name"; // TODO translate
|
||||
var msg = Messages.poll_addUser;
|
||||
Cryptpad.prompt(msg, "", function (name) {
|
||||
if (name === null) { return; }
|
||||
makeUser(module.rt.proxy, id, name).val(name);
|
||||
@@ -396,7 +395,7 @@ define([
|
||||
if (!module.isEditable) { return; }
|
||||
var id = rowuid();
|
||||
|
||||
var msg = "Propose an option";
|
||||
var msg = Messages.poll_addOption;
|
||||
Cryptpad.prompt(msg, "", function (option) {
|
||||
if (option === null || !option) { return; }
|
||||
makeOption(module.rt.proxy, id, option).val(option).focus();
|
||||
@@ -405,7 +404,7 @@ define([
|
||||
});
|
||||
|
||||
Wizard.$getOptions.click(function () {
|
||||
Cryptpad.confirm("Are you really ready to add these options to your poll?", function (yes) {
|
||||
Cryptpad.confirm(Messages.wizardConfirm, function (yes) {
|
||||
if (!yes) { return; }
|
||||
var options = Wizard.computeSlots(function (a, b) {
|
||||
return a + ' ('+ b + ')';
|
||||
@@ -652,7 +651,7 @@ define([
|
||||
|
||||
var $toolbar = $('#toolbar');
|
||||
|
||||
$toolbar.find('sub a').text('⇐ back to Cryptpad');
|
||||
$toolbar.find('sub a').text(Messages.backToCryptpad);
|
||||
|
||||
var Button = function (opt) {
|
||||
return $('<button>', opt);
|
||||
@@ -719,11 +718,11 @@ define([
|
||||
$toolbar.append(Button({
|
||||
id: 'wizard',
|
||||
'class': 'wizard button action',
|
||||
title: 'wizard!',
|
||||
}).text('WIZARD').click(function () {
|
||||
title: Messages.wizardTitle,
|
||||
}).text(Messages.wizardButton).click(function () {
|
||||
Wizard.show();
|
||||
if (Wizard.hasBeenDisplayed) { return; }
|
||||
Cryptpad.log("click the button in the top left to return to your poll");
|
||||
Cryptpad.log(Messages.wizardLog);
|
||||
Wizard.hasBeenDisplayed = true;
|
||||
}));
|
||||
|
||||
@@ -793,7 +792,7 @@ define([
|
||||
module.activeColumn = '';
|
||||
var promptForName = function () {
|
||||
// HERE
|
||||
Cryptpad.prompt("What is your name?", "", function (name, ev) {
|
||||
Cryptpad.prompt(Messages.promptName, "", function (name, ev) {
|
||||
if (name === null) {
|
||||
name = '';
|
||||
}
|
||||
@@ -860,7 +859,7 @@ define([
|
||||
}).on('ready', ready)
|
||||
.on('disconnect', function () {
|
||||
setEditable(false);
|
||||
Cryptpad.alert("Network connection lost!");
|
||||
Cryptpad.alert(Messages.common_connectionLost);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user