From c9f18f2b859be322b90d752190dd23eba91175d6 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 18 Mar 2009 14:36:06 +0000 Subject: [PATCH] Monotone-Parent: 69a8d2cacd25c46b70eb478efad9561bfba7a390 Monotone-Revision: 408ae95acfcd0bdbf903540439a12eaacb285310 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-18T14:36:06 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/Dutch.lproj/Localizable.strings | 2 ++ UI/Scheduler/English.lproj/Localizable.strings | 2 ++ UI/Scheduler/French.lproj/Localizable.strings | 2 ++ UI/Scheduler/German.lproj/Localizable.strings | 2 ++ UI/Scheduler/Italian.lproj/Localizable.strings | 2 ++ UI/Scheduler/Spanish.lproj/Localizable.strings | 2 ++ UI/WebServerResources/SchedulerUI.js | 11 +++++++++-- 7 files changed, 21 insertions(+), 2 deletions(-) diff --git a/UI/Scheduler/Dutch.lproj/Localizable.strings b/UI/Scheduler/Dutch.lproj/Localizable.strings index a2a2a85ee..fbec39913 100644 --- a/UI/Scheduler/Dutch.lproj/Localizable.strings +++ b/UI/Scheduler/Dutch.lproj/Localizable.strings @@ -424,6 +424,8 @@ validate_endbeforestart = "Het begin vindt plaats vóór het einde."; "eventDeleteConfirmation" = "Weet u zeker dat u deze afspraak wilt verwijderen?"; "taskDeleteConfirmation" = "Weet u zeker dat u deze taak wilt verwijderen?"; +"You cannot remove nor unsubscribe from your personal calendar." += "U kunt niet uw persoonlijke agenda verwijderen of ontabonneren."; "Are you sure you want to delete the calendar \"%{0}\"?" = "Weet u zeker dat u de agenda \"%{0}\" wilt verwijderen?"; diff --git a/UI/Scheduler/English.lproj/Localizable.strings b/UI/Scheduler/English.lproj/Localizable.strings index 8770df7be..0aa705c58 100644 --- a/UI/Scheduler/English.lproj/Localizable.strings +++ b/UI/Scheduler/English.lproj/Localizable.strings @@ -441,6 +441,8 @@ validate_endbeforestart = "The end date that you entered occurs before the st "eventDeleteConfirmation" = "Erasing this event will be permanent.\nWould you like to continue?"; "taskDeleteConfirmation" = "Erasing this task will be permanent.\nWould you like to continue?"; +"You cannot remove nor unsubscribe from your personal calendar." += "You cannot remove nor unsubscribe from your personal calendar."; "Are you sure you want to delete the calendar \"%{0}\"?" = "Are you sure you want to delete the calendar \"%{0}\"?"; diff --git a/UI/Scheduler/French.lproj/Localizable.strings b/UI/Scheduler/French.lproj/Localizable.strings index 550ecd65d..e9575d522 100644 --- a/UI/Scheduler/French.lproj/Localizable.strings +++ b/UI/Scheduler/French.lproj/Localizable.strings @@ -439,6 +439,8 @@ validate_endbeforestart = "La date de fin est avant la date de début."; "eventDeleteConfirmation" = "L'effacement de cet événement sera permanent.\nVoulez-vous continuer?"; "taskDeleteConfirmation" = "L'effacement de cette tâche sera permanent.\nVoulez-vous continuer?"; +"You cannot remove nor unsubscribe from your personal calendar." += "Vous ne pouvez pas supprimer ni vous désabonner de votre agenda personnel."; "Are you sure you want to delete the calendar \"%{0}\"?" = "Voulez-vous vraiment supprimer l'agenda «%{0}»?"; diff --git a/UI/Scheduler/German.lproj/Localizable.strings b/UI/Scheduler/German.lproj/Localizable.strings index 2760fad62..ac7013475 100644 --- a/UI/Scheduler/German.lproj/Localizable.strings +++ b/UI/Scheduler/German.lproj/Localizable.strings @@ -438,6 +438,8 @@ validate_endbeforestart = "Ihr Beginn ist nach dem Ende"; "eventDeleteConfirmation" = "Wollen Sie diesen Termin wirklich dauerhaft löschen?"; "taskDeleteConfirmation" = "Wollen Sie diese Aufgabe wirklich dauerhaft löschen?"; +"You cannot remove nor unsubscribe from your personal calendar." += "You cannot remove nor unsubscribe from your personal calendar."; "Are you sure you want to delete the calendar \"%{0}\"?" = "Wollen Sie diesen Kalender wirklich löschen \"%{0}\"?"; diff --git a/UI/Scheduler/Italian.lproj/Localizable.strings b/UI/Scheduler/Italian.lproj/Localizable.strings index eb88730d2..f9d368d9c 100644 --- a/UI/Scheduler/Italian.lproj/Localizable.strings +++ b/UI/Scheduler/Italian.lproj/Localizable.strings @@ -441,6 +441,8 @@ validate_endbeforestart = "La data finale specificata è precedente alla data "eventDeleteConfirmation" = "Stai per cancellare in maniera permanente l'evento.\nVuoi procedere?"; "taskDeleteConfirmation" = "Stai per cancellare in maniera permanente il task.\nVuoi procedere?"; +"You cannot remove nor unsubscribe from your personal calendar." += "You cannot remove nor unsubscribe from your personal calendar."; "Are you sure you want to delete the calendar \"%{0}\"?" = "Sei sicuro di voler cancellare il calendario \"%{0}\"?"; diff --git a/UI/Scheduler/Spanish.lproj/Localizable.strings b/UI/Scheduler/Spanish.lproj/Localizable.strings index 18a6c3b3c..341c91128 100644 --- a/UI/Scheduler/Spanish.lproj/Localizable.strings +++ b/UI/Scheduler/Spanish.lproj/Localizable.strings @@ -445,6 +445,8 @@ validate_endbeforestart = "Su fecha/hora de comienzo es posterio a la de fina "eventDeleteConfirmation" = "No se puede deshacer el borrado de este evento. ¿Desea continuar?"; "taskDeleteConfirmation" = "No se puede deshacer el borrado de esta tarea. ¿Desea continuar?"; +"You cannot remove nor unsubscribe from your personal calendar." += "You cannot remove nor unsubscribe from your personal calendar."; "Are you sure you want to delete the calendar \"%{0}\"?" = "¿Está seguro/a que desea borrar el calendario \"%{0}\"?"; diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index ed5febbf2..c175462f1 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -1880,8 +1880,15 @@ function onCalendarRemove(event) { var owner = nodes[i].getAttribute("owner"); var folderId = nodes[i].getAttribute("id"); if (owner == UserLogin) { - var folderIdElements = folderId.split(":"); - deletePersonalCalendar(folderIdElements[0]); + if (folderId == "/personal") { + var label = labels["You cannot remove nor unsubscribe from your" + + " personal calendar."]; + window.alert(label); + } + else { + var folderIdElements = folderId.split(":"); + deletePersonalCalendar(folderIdElements[0]); + } } else unsubscribeFromFolder(folderId, owner,