diff --git a/UI/MailerUI/Dutch.lproj/Localizable.strings b/UI/MailerUI/Dutch.lproj/Localizable.strings index 6ab842000..e9740ce92 100644 --- a/UI/MailerUI/Dutch.lproj/Localizable.strings +++ b/UI/MailerUI/Dutch.lproj/Localizable.strings @@ -204,6 +204,17 @@ "Please select a message to print." = "Selecteer een bericht om af te drukken."; "Please select only one message to print." = "Selecteer een enkel bericht om af te drukken."; +"The folder with name \"%{0}\" could not be created." += "The folder with name \"%{0}\" could not be created."; +"This folder could not be renamed to \"%{0}\"." += "This folder could not be renamed to \"%{0}\"."; +"The folder could not be deleted." += "The folder could not be deleted."; +"The trash could not be emptied." += "The trash could not be emptied."; +"The folder functionality could not be changed." += "The folder functionality could not be changed."; + "You need to choose a non-virtual folder!" = "U dient een niet-virtuele map te kiezen!"; "Moving a message into its own folder is impossible!" diff --git a/UI/MailerUI/English.lproj/Localizable.strings b/UI/MailerUI/English.lproj/Localizable.strings index 5e348b6a4..13ab1be61 100644 --- a/UI/MailerUI/English.lproj/Localizable.strings +++ b/UI/MailerUI/English.lproj/Localizable.strings @@ -220,6 +220,18 @@ "Please select a message to print." = "Please select a message to print."; "Please select only one message to print." = "Please select only one message to print."; + +"The folder with name \"%{0}\" could not be created." += "The folder with name \"%{0}\" could not be created."; +"This folder could not be renamed to \"%{0}\"." += "This folder could not be renamed to \"%{0}\"."; +"The folder could not be deleted." += "The folder could not be deleted."; +"The trash could not be emptied." += "The trash could not be emptied."; +"The folder functionality could not be changed." += "The folder functionality could not be changed."; + "You need to choose a non-virtual folder!" = "You need to choose a non-virtual folder!"; "Moving a message into its own folder is impossible!" diff --git a/UI/MailerUI/French.lproj/Localizable.strings b/UI/MailerUI/French.lproj/Localizable.strings index f2c4d6797..ed775da32 100644 --- a/UI/MailerUI/French.lproj/Localizable.strings +++ b/UI/MailerUI/French.lproj/Localizable.strings @@ -221,6 +221,17 @@ "Please select a message to print." = "Veuillez sélectionner un message à imprimer."; "Please select only one message to print." = "Veuillez ne sélectionner qu'un seul message à imprimer."; +"The folder with name \"%{0}\" could not be created." += "Le dossier intitulé \"%{0}\" n'a pas pu être créé."; +"This folder could not be renamed to \"%{0}\"." += "Ce dossier n'a pu être renommé en \"%{0}\"."; +"The folder could not be deleted." += "Le dossier n'a pas pu être effacé."; +"The trash could not be emptied." += "La corbeille n'a pas pu être vidée."; +"The folder functionality could not be changed." += "La fonctionnalité du dossier n'a pas pu être changée."; + "You need to choose a non-virtual folder!" = "Vous devez choisir un dossier non-virtuel."; "Moving a message into its own folder is impossible!" diff --git a/UI/MailerUI/German.lproj/Localizable.strings b/UI/MailerUI/German.lproj/Localizable.strings index 5bbd718cd..8b92a793f 100644 --- a/UI/MailerUI/German.lproj/Localizable.strings +++ b/UI/MailerUI/German.lproj/Localizable.strings @@ -204,6 +204,17 @@ "Please select a message to print." = "Sie müssen eine Nachricht zum Drucken auswählen."; "Please select only one message to print." = "Bitte wählen Sie nur eine Nachricht zum Drucken aus."; +"The folder with name \"%{0}\" could not be created." += "The folder with name \"%{0}\" could not be created."; +"This folder could not be renamed to \"%{0}\"." += "This folder could not be renamed to \"%{0}\"."; +"The folder could not be deleted." += "The folder could not be deleted."; +"The trash could not be emptied." += "The trash could not be emptied."; +"The folder functionality could not be changed." += "The folder functionality could not be changed."; + "You need to choose a non-virtual folder!" = "Sie müssen einen nicht-virtuellen Ordner auswählen!"; "Moving a message into its own folder is impossible!" diff --git a/UI/MailerUI/Italian.lproj/Localizable.strings b/UI/MailerUI/Italian.lproj/Localizable.strings index c47208097..b1c61b0bd 100644 --- a/UI/MailerUI/Italian.lproj/Localizable.strings +++ b/UI/MailerUI/Italian.lproj/Localizable.strings @@ -227,6 +227,17 @@ "Please select a message to print." = "Per favore seleziona un messaggio da stampare."; "Please select only one message to print." = "Per favore seleziona un solo messaggio da stampare."; +"The folder with name \"%{0}\" could not be created." += "The folder with name \"%{0}\" could not be created."; +"This folder could not be renamed to \"%{0}\"." += "This folder could not be renamed to \"%{0}\"."; +"The folder could not be deleted." += "The folder could not be deleted."; +"The trash could not be emptied." += "The trash could not be emptied."; +"The folder functionality could not be changed." += "The folder functionality could not be changed."; + "You need to choose a non-virtual folder!" = "Devi selezionare una cartella fisica, non virtuale!"; "Moving a message into its own folder is impossible!" diff --git a/UI/MailerUI/Spanish.lproj/Localizable.strings b/UI/MailerUI/Spanish.lproj/Localizable.strings index 3fadf9fd3..3cad5cc2f 100644 --- a/UI/MailerUI/Spanish.lproj/Localizable.strings +++ b/UI/MailerUI/Spanish.lproj/Localizable.strings @@ -223,6 +223,17 @@ "Please select a message to print." = "Seleccione el mensaje que desea imprimir."; "Please select only one message to print." = "Para imprimir, seleccione sólo un mensaje."; +"The folder with name \"%{0}\" could not be created." += "The folder with name \"%{0}\" could not be created."; +"This folder could not be renamed to \"%{0}\"." += "This folder could not be renamed to \"%{0}\"."; +"The folder could not be deleted." += "The folder could not be deleted."; +"The trash could not be emptied." += "The trash could not be emptied."; +"The folder functionality could not be changed." += "The folder functionality could not be changed."; + "You need to choose a non-virtual folder!" = "Ha de seleccionar una carpeta no virtual."; "Moving a message into its own folder is impossible!" diff --git a/UI/WebServerResources/MailerUI.js b/UI/WebServerResources/MailerUI.js index 1b6f17ad5..72883cc56 100644 --- a/UI/WebServerResources/MailerUI.js +++ b/UI/WebServerResources/MailerUI.js @@ -1581,18 +1581,21 @@ function onMenuCreateFolder(event) { if (name && name.length > 0) { var folderID = document.menuTarget.getAttribute("dataname"); var urlstr = URLForFolderID(folderID) + "/createFolder?name=" + name; - triggerAjaxRequest(urlstr, folderOperationCallback); + var errorLabel = labels["The folder with name \"%{0}\" could not be created."]; + triggerAjaxRequest(urlstr, folderOperationCallback, + errorLabel.formatted(name)); } } function onMenuRenameFolder(event) { - var name = window.prompt(labels["Enter the new name of your folder :"] - , - ""); + var name = window.prompt(labels["Enter the new name of your folder :"], + ""); if (name && name.length > 0) { var folderID = document.menuTarget.getAttribute("dataname"); var urlstr = URLForFolderID(folderID) + "/renameFolder?name=" + name; - triggerAjaxRequest(urlstr, folderOperationCallback); + var errorLabel = labels["This folder could not be renamed to \"%{0}\"."]; + triggerAjaxRequest(urlstr, folderOperationCallback, + errorLabel.formatted(name)); } } @@ -1601,7 +1604,8 @@ function onMenuDeleteFolder(event) { if (answer) { var folderID = document.menuTarget.getAttribute("dataname"); var urlstr = URLForFolderID(folderID) + "/deleteFolder"; - triggerAjaxRequest(urlstr, folderOperationCallback); + var errorLabel = labels["The folder could not be deleted."]; + triggerAjaxRequest(urlstr, folderOperationCallback, errorLabel); } } @@ -1614,7 +1618,8 @@ function onMenuExpungeFolder(event) { function onMenuEmptyTrash(event) { var folderID = document.menuTarget.getAttribute("dataname"); var urlstr = URLForFolderID(folderID) + "/emptyTrash"; - triggerAjaxRequest(urlstr, folderOperationCallback, folderID); + var errorLabel = labels["The trash could not be emptied."]; + triggerAjaxRequest(urlstr, folderOperationCallback, errorLabel); if (folderID == Mailer.currentMailbox) { var div = $('messageContent'); @@ -1634,7 +1639,8 @@ function _onMenuChangeToXXXFolder(event, folder) { else { var folderID = document.menuTarget.getAttribute("dataname"); var urlstr = URLForFolderID(folderID) + "/setAs" + folder + "Folder"; - triggerAjaxRequest(urlstr, folderOperationCallback); + var errorLabel = labels["The folder functionality could not be changed."]; + triggerAjaxRequest(urlstr, folderOperationCallback, errorLabel); } } @@ -1731,7 +1737,7 @@ function folderOperationCallback(http) { && isHttpStatus204(http.status)) initMailboxTree(); else - window.alert(labels["Operation failed"]); + window.alert(http.callbackData); } function folderRefreshCallback(http) {