Complete the French translation

pull/1/head
yflory 8 years ago
parent 0d9f63b977
commit 5c63585952

@ -2,38 +2,21 @@
<div>
<div class="bottom-bar">
<div class="bottom-bar-left">
<p>
<a href="http://www.xwiki.com/" target="_blank">
Made with
<img class="bottom-bar-heart" src="/customize/heart.png" />
in
<img class="bottom-bar-fr" src="/customize/fr.png" />
</a>
<p data-localization="bottom_love">
</p>
<span class="bottom-bar-language">
<select id="language-selector">
<option value="en">English</option>
<option value="fr">Français</option>
</select>
</span>
</p>
</div>
<!--
<div class="bottom-bar-center">
<p><a href="https://github.com/xwiki-labs/cryptpad">Fork me on GitHub</a></p>
</div> -->
<div class="bottom-bar-right">
<p>
<a href="http://labs.xwiki.com/" title="XWiki Labs" target="_blank">
An
<img src="/customize/logo-xwiki2.png"
alt="XWiki SAS"
class="bottom-bar-xwiki"
/> Labs Project </a> with the support of
<a href="http://ng.open-paas.org/" title="OpenPaaS::ng" target="_blank"> <img src="/customize/openpaasng.png"
alt="OpenPaaS-ng"
class="bottom-bar-openpaas" />
</a>
</a>
<p data-localization="bottom_support">
</p>
</div>
</div>

@ -3,8 +3,9 @@
*/
define([
'/customize/languageSelector.js',
'/customize/messages.js',
'/bower_components/jquery/dist/jquery.min.js'
], function (LS) {
], function (LS, Messages) {
var $ = window.jQuery;
var main = function () {
$.ajax({
@ -17,6 +18,7 @@ define([
href: '/customize/main.css'
}));
LS.main();
Messages._applyTranslation();
}
});
};

@ -147,8 +147,13 @@ tr {
margin-top: 12px;
margin-bottom: 12px;
white-space: nowrap;
}
.create {
display: none;
}
.action {
display: inline-block;
}
/* Tables */
table {
border-collapse: collapse;

@ -28,10 +28,10 @@ define([
Cryptpad.styleAlerts();
var padTypes = {
'/pad/': 'Pad',
'/code/': 'Code',
'/poll/': 'Poll',
'/slide/': 'Presentation',
'/pad/': Messages.type.pad,
'/code/': Messages.type.code,
'/poll/': Messages.type.poll,
'/slide/': Messages.type.slide,
};
var $table = $('table.scroll');
@ -85,7 +85,7 @@ define([
var $remove = $('<td>', {
'class': 'remove',
title: "forget '"+shortTitle + "'"
title: Messages.forget + " '"+shortTitle + "'"
}).text('✖').click(function () {
Cryptpad.confirm(Messages.forgetPrompt + ' (' + Cryptpad.fixHTML(shortTitle) + ')', function (yes) {
if (!yes) { return; }

@ -12,13 +12,17 @@ define(['/customize/languageSelector.js',
var language = LS.getLanguage();
if (!language || language === defaultLanguage || language === 'default' || !map[language]) { return Default; }
var messages;
// Add the missing translated keys to the returned object
if (!language || language === defaultLanguage || language === 'default' || !map[language]) {
messages = Default;
}
else {
// Add the translated keys to the returned object
messages = $.extend(true, {}, Default, map[language]);
}
// Get keys with parameters
messages._getKey = function (key, argArray) {
if (!messages[key]) { return '?'; }
var text = messages[key];
@ -27,5 +31,43 @@ define(['/customize/languageSelector.js',
});
};
messages._applyTranslation = function () {
$('[data-localization]').each(function (i, e) {
var $el = $(this);
var key = $el.data('localization');
$el.html(messages[key]);
});
$('[data-localization-title]').each(function (i, e) {
var $el = $(this);
var key = $el.data('localization-title');
$el.attr('title', messages[key]);
});
};
// Non translatable keys
messages.initialState = [
'<p>',
'This is <strong>CryptPad</strong>, the zero knowledge realtime collaborative editor.',
'<br>',
'What you type here is encrypted so only people who have the link can access it.',
'<br>',
'Even the server cannot see what you type.',
'</p>',
'<p>',
'<small>',
'<i>What you see here, what you hear here, when you leave here, let it stay here</i>',
'</small>',
'</p>',
].join('');
messages.codeInitialState = [
'/*\n',
' This is CryptPad, the zero knowledge realtime collaborative editor.\n',
' What you type here is encrypted so only people who have the link can access it.\n',
' Even the server cannot see what you type.\n',
' What you see here, what you hear here, when you leave here, let it stay here.\n',
'*/'
].join('');
return messages;
});

@ -1,15 +1,20 @@
define(function () {
var out = {};
out.main_title = "Cryptpad: Editeur collaboratif en temps réel, zero knowledge";
out.errorBox_errorType_disconnected = 'Connexion perdue';
out.errorBox_errorExplanation_disconnected = [
'La connexion au serveur a été perdue. Vous pouvez essayer de vous reconnecter en rechargeant la page',
'ou vous pouvez revoir votre travail en fermant cette boîte de dialogue.',
].join('');
out.editingAlone = 'Edition seul(e)';
out.editingWithOneOtherPerson = 'Edition avec une autre personne';
out.editingWith = 'Edition avec';
out.common_connectionLost = 'Connexion au serveur perdue';
out.editingAlone = 'Pas d\'autre participant';
out.editingWithOneOtherPerson = 'Édition avec une autre personne';
out.editingWith = 'Édition avec';
out.otherPeople = 'autres personnes';
out.disconnected = 'Déconnecté';
out.synchronizing = 'Synchronisation';
@ -24,7 +29,7 @@ define(function () {
out.exportPrompt = 'Comment souhaitez-vous nommer ce fichier ?';
out.back = '&#8656; Retour';
out.backToCryptpad = '&#8656; Retour vers Cryptpad';
out.backToCryptpad = ' Retour vers Cryptpad';
out.changeNameButton = 'Changer de nom';
out.changeNamePrompt = 'Changer votre nom : ';
@ -38,6 +43,17 @@ define(function () {
out.forgetButtonTitle = 'Enlever ce document de la liste en page d\'accueil';
out.forgetPrompt = 'Cliquer sur OK supprimera l\'URL de ce document de la mémoire de votre navigateur (localStorage), êtes-vous sûr ?';
out.shareButton = 'PARTAGER';
out.shareButtonTitle = "Copier l'URL dans le presse-papiers";
out.shareSuccess = 'URL copiée dans le presse-papiers';
out.shareFailed = "Échec de la copie de l'URL dans le presse-papiers";
out.presentButton = 'PRÉSENTER';
out.presentButtonTitle = "Entrer en mode présentation";
out.presentSuccess = 'Appuyer sur Échap pour quitter le mode présentation';
out.commitButton = 'VALIDER';
out.disconnectAlert = 'Perte de la connexion au réseau !';
out.tryIt = 'Essayez-le !';
@ -46,11 +62,6 @@ define(function () {
out.okButton = 'OK (Entrée)';
out.cancelButton = 'Annuler (Echap)';
/* We don't want to change the initial states since they may interfere with Chainpad
* out.initialState = '';
* out.codeInitialState = '';
*/
out.loginText = '<p>Votre nom d\'utilisateur et votre mot de passe sont utilisés pour générer une clé unique qui reste inconnue de notre serveur.</p>\n' +
'<p>Faites attention de ne pas oublier vos identifiants puisqu\'ils seront impossible à récupérer.</p>';
@ -60,9 +71,55 @@ define(function () {
out.type.poll = 'Sondage';
out.type.slide = 'Présentation';
out.main_title = "Cryptpad: Editeur collaboratif en temps réel, zero knowledge";
out.main_p1 = 'CryptPad l\'éditeur collaboratif en temps réel <strong>zero knowledge</strong>. Le cryptage est effectué depuis votre navigateur, ce qui protège les données contre le serveur, le cloud, et la NSA. La clé de cryptage est stockée dans l\'<a href="https://fr.wikipedia.org/wiki/Identificateur_de_fragment">identifieur de fragment</a> de l\'URL qui n\'est jamais envoyée au serveur mais est accessible depuis javascript, de sorte qu\'en partageant l\'URL, vous donner l\'accès au pad à ceux qui souhaitent participer.';
out.forget = "Oublier";
// Polls
out.poll_title = "Sélecteur de date Zero Knowledge";
out.poll_subtitle = "Planification de rendez-vous et sondages en <em>temps-réel</em> et Zero Knowledge";
out.poll_p_save = "Vos modifications sont mises à jour instantanément, donc vous n'avez jamais besoin de sauver le contenu.";
out.poll_p_encryption = "Tout ce que vous entrez est crypté donc seules les personnes possédant le lien du sondage y ont accès. Même le serveur ne peut pas voir le contenu.";
out.poll_p_howtouse = "Entrez votre nom dans le champ ci-dessous et cochez les cases lorsque les options vous conviennent.";
out.promptName = "Quel est votre nom ?";
out.wizardButton = 'ASSISTANT';
out.wizardLog = "Cliquez sur le bouton dans le coin supérieur gauche pour retourner au sondage";
out.wizardTitle = "Utiliser l'assistant pour créer votre sondage";
out.wizardConfirm = "Êtes-vous vraiment prêt à ajouter ces options au sondage ?";
out.poll_closeWizardButton = "Fermer l'assistant";
out.poll_closeWizardButtonTitle = "Fermer l'assistant";
out.poll_wizardComputeButton = "Générer les options";
out.poll_wizardClearButton = "Vider le tableau";
out.poll_wizardDescription = "Créer automatiquement des options en entrant des dates et des horaires correspondant";
out.poll_wizardAddDateButton = "+ Dates";
out.poll_wizardAddTimeButton = "+ Horaires";
out.poll_addUserButton = "+ Utilisateurs";
out.poll_addUserButtonTitle = "Cliquer pour ajouter un utilisateur";
out.poll_addOptionButton = "+ Options";
out.poll_addOptionButtonTitle = "Cliquer pour ajouter une option";
out.poll_addOption = "Indiquer la nouvelle option";
out.poll_optionPlaceholder = "Option";
out.poll_addUser = "Entrer un nom";
out.poll_userPlaceholder = "Votre nom";
out.poll_removeOption = "Êtes-vous sûr de vouloir supprimer cette option ?";
out.poll_removeOptionTitle = "Supprimer la ligne";
out.poll_removeUser = "Êtes-vous sûr de vouloir supprimer cet utilisateur ?";
out.poll_removeUserTitle = "Supprimer la colonne";
out.poll_editOption = "Êtes-vous sûr de vouloir éditer cette option ?";
out.poll_editOptionTitle = "Éditer la ligne";
out.poll_editUser = "Êtes-vous sûr de vouloir éditer les choix de cet utilisateur ?";
out.poll_editUserTitle = "Éditer la colonne";
out.poll_titleHint = "Titre";
out.poll_descriptionHint = "Description";
// index.html
out.main_p1 = 'CryptPad est l\'éditeur collaboratif en temps réel <strong>zero knowledge</strong>. Le cryptage est effectué depuis votre navigateur, ce qui protège les données contre le serveur, le cloud, et la NSA. La clé de cryptage est stockée dans l\'<a href="https://fr.wikipedia.org/wiki/Identificateur_de_fragment">identifieur de fragment</a> de l\'URL qui n\'est jamais envoyée au serveur mais est accessible depuis javascript, de sorte qu\'en partageant l\'URL, vous donner l\'accès au pad à ceux qui souhaitent participer.';
out.main_p2 = 'Ce projet utilise l\'éditeur visuel (WYSIWYG) <a href="http://ckeditor.com/">CKEditor</a>, l\'éditeur de code source <a href="https://codemirror.net/">CodeMirror</a>, et le moteur temps-réel <a href="https://github.com/xwiki-contrib/chainpad">ChainPad</a>.';
out.main_howitworks = 'Comment ça fonctionne';
out.main_howitworks_p1 = 'CryptPad utilise une variante de l\'algorithme d\'<a href="https://en.wikipedia.org/wiki/Operational_transformation">Operational transformation</a> qui est capable de trouver un consensus distribué en utilisant une chaîne de bloc Nakamoto, un outil popularisé par le <a href="https://fr.wikipedia.org/wiki/Bitcoin">Bitcoin</a>. De cette manière, l\'algorithme évite la nécessité d\'utiliser un serveur central pour résoudre les conflits d\'édition de l\'Operational Transformation, et sans ce besoin de résolution des conflits le serveur peut rester ignorant du contenu qui est édité dans le pad.';
@ -81,6 +138,8 @@ define(function () {
out.button_newpoll = 'CRÉER UN SONDAGE';
out.button_newslide = 'CRÉER UNE PRÉSENTATION';
// privacy.html
out.policy_title = 'Politique de confidentialité de Cryptpad';
out.policy_whatweknow = 'Ce que nous savons de vous';
out.policy_whatweknow_p1 = 'En tant qu\'application hébergée sur le web, Cryptpad a accès aux meta-données exposées par le protocole HTTP. Ceci inclus votre adresse IP et d\'autres en-têtes HTTP qui peuvent être utilisées pour identifier votre propre navigateur. Vous pouvez voir quelles informations votre navigateur partage en visitant <a target="_blank" href="https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending" title="what http headers is my browser sending">WhatIsMyBrowser.com</a>.';
@ -100,6 +159,8 @@ define(function () {
out.policy_choices_vpn = 'Si vous souhaitez utiliser notre instance hébergée (cryptpad.fr) mais que vous ne souhaitez pas exposer votre adresse IP, vous pouvez la protéger en utilisant le <a href="https://www.torproject.org/projects/torbrowser.html.en" title="downloads from the Tor project" target="_blank">navigateur Tor</a>, ou un <a href="https://riseup.net/fr/vpn" title="VPNs provided by Riseup" target="_blank">VPN</a>.';
out.policy_choices_ads = 'Si vous souhaitez uniquement bloquer notre plateforme d\'analytique, vous pouvez utiliser un bloqueur de publicités tel que <a href="https://www.eff.org/fr/privacybadger" title="download privacy badger" target="_blank">Privacy Badger</a>.';
// terms.html
out.tos_title = "Conditions d'utilisation de Cryptpad";
out.tos_legal = "Veuillez ne pas être malveillant, abusif, ou faire quoi que ce soit d'illégal.";
out.tos_availability = "Nous espérons que vous trouvez ce service utile, mais nous ne pouvons garantir ses performances et disponibilités. Nous vous recommandons d'exporter vos données régurlièrement.";
@ -107,5 +168,10 @@ define(function () {
out.tos_logs = "Les meta-données fournies par votre navigateur au serveur peuvent être enregistrées dans le but de maintenir le service.";
out.tos_3rdparties = "Nous ne fournissons aucune donnée individuelle à des tierces parties à moins d'y être contraints par la loi.";
// BottomBar.html
out.bottom_love = '<a href="http://www.xwiki.com/fr" target="_blank">Fait avec <img class="bottom-bar-heart" src="/customize/heart.png" /> en <img class="bottom-bar-fr" src="/customize/fr.png" /></a>';
out.bottom_support = '<a href="http://labs.xwiki.com/" title="XWiki Labs" target="_blank">Un projet <img src="/customize/logo-xwiki2.png" alt="XWiki SAS" class="bottom-bar-xwiki"/> Labs</a> avec le soutien de <a href="http://ng.open-paas.org/" title="OpenPaaS::ng" target="_blank"> <img src="/customize/openpaasng.png" alt="OpenPaaS-ng" class="bottom-bar-openpaas" /></a>';
return out;
});

@ -1,12 +1,17 @@
define(function () {
var out = {};
out.main_title = "Cryptpad: Zero Knowledge, Collaborative Real Time Editing";
out.errorBox_errorType_disconnected = 'Connection Lost';
out.errorBox_errorExplanation_disconnected = [
'Lost connection to server, you may reconnect by reloading the page or review your work ',
'by clicking outside of this box.'
].join('');
out.common_connectionLost = 'Server Connection Lost';
out.editingAlone = 'Editing alone';
out.editingWithOneOtherPerson = 'Editing with one other person';
out.editingWith = 'Editing with';
@ -24,7 +29,7 @@ define(function () {
out.exportPrompt = 'What would you like to name your file?';
out.back = '&#8656; Back';
out.backToCryptpad = '&#8656; Back to Cryptpad';
out.backToCryptpad = ' Back to Cryptpad';
out.changeNameButton = 'Change name';
out.changeNamePrompt = 'Change your name: ';
@ -38,48 +43,82 @@ define(function () {
out.forgetButtonTitle = 'remove this document from your home page listings';
out.forgetPrompt = 'Clicking OK will remove the URL for this pad from localStorage, are you sure?';
out.shareButton = 'SHARE';
out.shareButtonTitle = "Copy URL to clipboard";
out.shareSuccess = 'Copied URL to clipboard';
out.shareFailed = "Failed to copy URL to clipboard";
out.presentButton = 'PRESENT';
out.presentButtonTitle = "Enter presentation mode";
out.presentSuccess = 'Hit ESC to exit presentation mode';
out.commitButton = 'COMMIT';
out.disconnectAlert = 'Network connection lost!';
out.tryIt = 'Try it out!';
out.tryIt = ' out!';
out.recentPads = 'Your recent pads (stored only in your browser)';
out.okButton = 'OK (enter)';
out.cancelButton = 'Cancel (esc)';
out.initialState = [
'<p>',
'This is <strong>CryptPad</strong>, the zero knowledge realtime collaborative editor.',
'<br>',
'What you type here is encrypted so only people who have the link can access it.',
'<br>',
'Even the server cannot see what you type.',
'</p>',
'<p>',
'<small>',
'<i>What you see here, what you hear here, when you leave here, let it stay here</i>',
'</small>',
'</p>',
].join('');
out.codeInitialState = [
'/*\n',
' This is CryptPad, the zero knowledge realtime collaborative editor.\n',
' What you type here is encrypted so only people who have the link can access it.\n',
' Even the server cannot see what you type.\n',
' What you see here, what you hear here, when you leave here, let it stay here.\n',
'*/'
].join('');
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>';
// TODO : move at the beginning
out.type = {};
out.type.pad = 'Pad';
out.type.code = 'Code';
out.type.poll = 'Poll';
out.type.slide = 'Presentation';
out.main_title = "Cryptpad: Zero Knowledge, Collaborative Real Time Editing";
out.forget = "Forget";
// Polls
out.poll_title = "Zero Knowledge Date Picker";
out.poll_subtitle = "Zero Knowledge, <em>realtime</em> scheduling";
out.poll_p_save = "Your settings are updated instantly, so you never need to save.";
out.poll_p_encryption = "All your input is encrypted so only people who have the link can access it. Even the server cannot see what you change.";
out.poll_p_howtouse = "Enter your name in the input field below and check the box for times when you are available";
out.promptName = "What is you name ?";
out.wizardButton = 'WIZARD';
out.wizardLog = "Click the button in the top left to return to your poll";
out.wizardTitle = "Use the wizard to create your poll";
out.wizardConfirm = "Are you really ready to add these options to your poll?";
out.poll_closeWizardButton = "Close wizard";
out.poll_closeWizardButtonTitle = "Close wizard";
out.poll_wizardComputeButton = "Compute Options";
out.poll_wizardClearButton = "Clear Table";
out.poll_wizardDescription = "Automatically create a number of options by entering any number of dates and times segments";
out.poll_wizardAddDateButton = "+ Dates";
out.poll_wizardAddTimeButton = "+ Times";
out.poll_addUserButton = "+ Users";
out.poll_addUserButtonTitle = "Click to add a user";
out.poll_addOptionButton = "+ Options";
out.poll_addOptionButtonTitle = "Click to add an option";
out.poll_addOption = "Propose an option";
out.poll_optionPlaceholder = "Option";
out.poll_addUser = "Enter a name";
out.poll_userPlaceholder = "Your name";
out.poll_removeOption = "Are you sure you'd like to remove this option?";
out.poll_removeOptionTitle = "Remove the row";
out.poll_removeUser = "Are you sure you'd like to remove this user?";
out.poll_removeUserTitle = "Remove the column";
out.poll_editOption = "Are you sure you'd like to edit this option?";
out.poll_editOptionTitle = "Edit the row";
out.poll_editUser = "Are you sure you'd like to edit this user?";
out.poll_editUserTitle = "Edit the column";
out.poll_titleHint = "Title";
out.poll_descriptionHint = "Description";
// index.html
out.main_p1 = 'CryptPad is the <strong>zero knowledge</strong> realtime collaborative editor. Encryption carried out in your web browser protects the data from the server, the cloud, and the NSA. The secret encryption key is stored in the URL <a href="https://en.wikipedia.org/wiki/Fragment_identifier">fragment identifier</a> which is never sent to the server but is available to javascript so by sharing the URL, you give authorization to others who want to participate.';
out.main_p2 = 'This project uses the <a href="http://ckeditor.com/">CKEditor</a> Visual Editor, <a href="https://codemirror.net/">CodeMirror</a>, and the <a href="https://github.com/xwiki-contrib/chainpad">ChainPad</a> realtime engine.';
@ -100,6 +139,8 @@ define(function () {
out.button_newpoll = 'CREATE NEW POLL';
out.button_newslide = 'CREATE NEW PRESENTATION';
// privacy.html
out.policy_title = 'Cryptpad Privacy Policy';
out.policy_whatweknow = 'What we know about you';
out.policy_whatweknow_p1 = 'As an application that is hosted on the web, Cryptpad has access to metadata exposed by the HTTP protocol. This includes your IP address, and various other HTTP headers that can be used to identify your particular browser. You can see what information your browser is sharing by visiting <a target="_blank" href="https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending" title="what http headers is my browser sending">WhatIsMyBrowser.com</a>.';
@ -119,6 +160,8 @@ define(function () {
out.policy_choices_vpn = 'If you want to use our hosted instance, but don\'t want to expose your IP address, you can protect your IP using the <a href="https://www.torproject.org/projects/torbrowser.html.en" title="downloads from the Tor project" target="_blank">Tor browser bundle</a>, or a <a href="https://riseup.net/en/vpn" title="VPNs provided by Riseup" target="_blank">VPN</a>.';
out.policy_choices_ads = 'If you just want to block our analytics platform, you can use adblocking tools like <a href="https://www.eff.org/privacybadger" title="download privacy badger" target="_blank">Privacy Badger</a>.';
// terms.html
out.tos_title = "Cryptpad Terms of Service";
out.tos_legal = "Please don't be malicious, abusive, or do anything illegal.";
out.tos_availability = "We hope you find this service useful, but availability or performance cannot be guaranteed. Please export your data regularly.";
@ -126,5 +169,10 @@ define(function () {
out.tos_logs = "Metadata provided by your browser to the server may be logged for the purpose of maintaining the service.";
out.tos_3rdparties = "We do not provide individualized data to third parties unless required to by law.";
// BottomBar.html
out.bottom_love = '<a href="http://www.xwiki.com/" target="_blank">Made with <img class="bottom-bar-heart" src="/customize/heart.png" /> in <img class="bottom-bar-fr" src="/customize/fr.png" /></a>';
out.bottom_support = '<a href="http://labs.xwiki.com/" title="XWiki Labs" target="_blank">An <img src="/customize/logo-xwiki2.png" alt="XWiki SAS" class="bottom-bar-xwiki"/> Labs Project </a> with the support of <a href="http://ng.open-paas.org/" title="OpenPaaS::ng" target="_blank"> <img src="/customize/openpaasng.png" alt="OpenPaaS-ng" class="bottom-bar-openpaas" /></a>';
return out;
});

@ -716,11 +716,7 @@ define([
};
};
$('[data-localization]').each(function (i, e) {
var $el = $(this);
var key = $el.data('localization');
$el.html(Messages[key]);
});
Messages._applyTranslation();
return common;
});

@ -224,7 +224,7 @@ define([
return {
failed: function () {
connected = false;
userListElement.textContent = 'Disconnected';
userListElement.textContent = Messages.disconnected;
lagElement.textContent = '';
},
reconnecting: function (userId) {

@ -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);
});
});

@ -116,12 +116,12 @@ define([
var $present = Button({
id: 'present',
'class': 'present button action',
title: 'enter presentation mode',
title: Messages.presentButtonTitle,
})
.text("PRESENT")
.text(Messages.presentButton)
.click(function () {
Slide.show(true, $textarea.val());
Cryptpad.log("Hit ESC to exit presentation mode");
Cryptpad.log(Messages.presentSuccess);
});
var $forget = Button({
@ -206,18 +206,18 @@ define([
var $share = Button({
id: 'share',
'class': 'export button action',
title: 'copy url', // TODO translate
'class': 'share button action',
title: Messages.shareButtonTitle,
})
.text('SHARE')
.text(Messages.shareButton)
.click(function () {
var text = window.location.href;
var success = Clipboard.copy(text);
if (success) {
Cryptpad.log("copied URL to clipboard");
Cryptpad.log(Messages.shareSuccess);
return;
}
Cryptpad.warn("failed to copy URL to clipboard");
Cryptpad.warn(Messages.shareFailed);
});
$bar
@ -283,7 +283,7 @@ define([
var onAbort = config.onAbort = function (info) {
$textarea.attr('disabled', true);
Cryptpad.alert("Server Connection Lost");
Cryptpad.alert(Messages.common_connectionLost);
};
Cryptpad.ready(function () {

Loading…
Cancel
Save