Skip to content
Open
Prev Previous commit
Next Next commit
some french traduction for js file
  • Loading branch information
jcliment27 committed Aug 19, 2016
commit e8c3fa40de63b26eb7fbcb13ca5f72f6e8d96b8c
12 changes: 6 additions & 6 deletions js/zerobin.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function send_comment(parentid) {
var cipherdata = zeroCipher(pageKey(), $('textarea#replymessage').val());
var ciphernickname = '';
var nick=$('input#nickname').val();
if (nick != '' && nick != 'Optional nickname...') {
if (nick != '' && nick != translate('Optional nickname')+'...') {
ciphernickname = zeroCipher(pageKey(), nick);
}
var data_to_send = { data:cipherdata,
Expand All @@ -311,15 +311,15 @@ function send_comment(parentid) {

$.post(scriptLocation(), data_to_send, 'json')
.error(function() {
showError('Comment could not be sent (serveur error or not responding).');
showError(translate('Comment could not be sent (serveur error or not responding).'));
})
.success(function(data) {
if (data.status == 0) {
showStatus('Comment posted.');
showStatus(translate('Comment posted.'));
location.reload();
}
else if (data.status==1) {
showError('Could not post comment: '+data.message);
showError(translate('Could not post comment')+': '+data.message);
}
else {
showError('Could not post comment.');
Expand All @@ -340,12 +340,12 @@ function send_data() {
// If sjcl has not collected enough entropy yet, display a message.
if (!sjcl.random.isReady())
{
showStatus('Sending paste (Please move your mouse for more entropy)...', spin=true);
showStatus(translate('Sending paste (Please move your mouse for more entropy)'+'...'), spin=true);
sjcl.random.addEventListener('seeded', function(){ send_data(); });
return;
}

showStatus('Sending paste...', spin=true);
showStatus(translate('Sending paste'+'...'), spin=true);

var randomkey = sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 0), 0);
var cipherdata = zeroCipher(randomkey, $('textarea#message').val());
Expand Down
5 changes: 5 additions & 0 deletions lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ lang["Hit CTRL+C to copy"]="Appuyez sur CTRL+C pour copier le lien";
lang["Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL ?)"]="Impossible de déchiffrer le texte: La clé de déchiffrement manque dans l'URL (Avez vous utilisez une redirection ou un URL raccourcie qui retire certaine partie de l'URL ?)";
lang["Could not create paste"]="Impossible de poster le texte";
lang["Data could not be sent (serveur error or not responding)"]="Les données n'ont pu être envoyées (erreur serveur ou ne répond pas)";
lang["Sending paste"]="Envoi du texte";
lang["Sending paste (Please move your mouse for more entropy)"]="Envoi de texte (Bougez votre souris afin de générer de l'entropie";
lang["Comment could not be sent (serveur error or not responding)."]="Le commentaire n'a pu être envoyé (erreur serveur ou ne répond pas";
lang["Comment posted."]="Commentaire posté.";
lang["Could not post comment"]="Le commentaire n'a pu être posté";