Missing translations

pull/1/head
yflory 7 years ago
parent a9d01ac864
commit cf22c58e39

@ -316,6 +316,10 @@ define(function () {
out.canvas_chooseColor = "Choisir une couleur"; out.canvas_chooseColor = "Choisir une couleur";
out.canvas_imageEmbed = "Intégrer une image de votre ordinateur"; out.canvas_imageEmbed = "Intégrer une image de votre ordinateur";
// OnlyOffice
out.oo_saveError = "Une erreur s'est produite lors de la sauvegarde de vos modifications. Merci de réessayer dans quelques instants.";
out.oo_newVersion = "Une nouvelle version du document est disponible. Cliquez sur OK pour l'ouvrir.";
// Profile // Profile
out.profileButton = "Profil"; // dropdown menu out.profileButton = "Profil"; // dropdown menu
out.profile_urlPlaceholder = 'URL'; out.profile_urlPlaceholder = 'URL';

@ -304,6 +304,10 @@ define(function () {
out.poll_comment_disabled = "Publish this poll using the ✓ button to enable the comments."; out.poll_comment_disabled = "Publish this poll using the ✓ button to enable the comments.";
// OnlyOffice
out.oo_saveError = "We were unable to save your modifications, please try again in a few moments.";
out.oo_newVersion = "A new version of this document is available, click OK to load it.";
// Canvas // Canvas
out.canvas_clear = "Clear"; out.canvas_clear = "Clear";
out.canvas_delete = "Delete selection"; out.canvas_delete = "Delete selection";

@ -158,10 +158,10 @@ define([
common.getSframeChannel().query('Q_OO_SAVE', data, function (err) { common.getSframeChannel().query('Q_OO_SAVE', data, function (err) {
if (err) { if (err) {
console.error(err); console.error(err);
return void UI.log('TODO: Unable to save this version. Please try again :/'); return void UI.alert(Messages.oo_saveError);
} }
hashes.push(data.url); hashes.push(data.url);
UI.log('TODO: Saved! :D'); // TODO UI.log(Messages.saved);
APP.onLocal(); APP.onLocal();
}); });
} }
@ -385,11 +385,11 @@ define([
hashes = newHashes; hashes = newHashes;
if (reloadDisplayed) { return; } if (reloadDisplayed) { return; }
reloadDisplayed = true; reloadDisplayed = true;
UI.confirm('TODO new version available. Press OK to reload.', function (yes) { UI.confirm(Messages.oo_newVersion, function (yes) {
reloadDisplayed = false; reloadDisplayed = false;
if (!yes) { return; } if (!yes) { return; }
common.gotoURL(); common.gotoURL();
}); // XXX });
} }
}; };

Loading…
Cancel
Save