Skip to content
Open
Prev Previous commit
Next Next commit
some french translation
  • Loading branch information
root committed Aug 19, 2016
commit 2d3d16818cbccdadc37314d4fc0994c19ee9ff62
8 changes: 4 additions & 4 deletions js/zerobin.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function send_data() {
};
$.post(scriptLocation(), data_to_send, 'json')
.error(function() {
showError('Data could not be sent (serveur error or not responding).');
showError(translate('Data could not be sent (serveur error or not responding)')+'.');
})
.success(function(data) {
if (data.status == 0) {
Expand All @@ -380,10 +380,10 @@ function send_data() {
showStatus('');
}
else if (data.status==1) {
showError('Could not create paste: '+data.message);
showError(translate('Could not create paste')+': '+data.message);
}
else {
showError('Could not create paste.');
showError(translate('Could not create paste')+'.');
}
});
}
Expand Down Expand Up @@ -593,7 +593,7 @@ $(function() {
if ($('div#cipherdata').text().length > 1) {
// Missing decryption key in URL ?
if (window.location.hash.length == 0) {
showError('Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL ?)');
showError(translate('Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL ?)'));
return;
}

Expand Down
3 changes: 3 additions & 0 deletions lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ lang["Post comment"]="Poster le commentaire";
lang["Delete link"]="Supprimer l'accès à ce lien";
lang["Your paste is"]="votre texte est accessible via ce lien";
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)";