merge master into filesystem

master
Robin Appelman 2013-01-01 17:57:23 +01:00
commit b8eb7a042d
56 changed files with 324 additions and 63 deletions

View File

@ -20,9 +20,10 @@ if(!$data) {
OCP\JSON::error(array('data' => array('message' => OC_Calendar_App::$l10n->t('Wrong calendar'))));
exit;
}
$permissions = OC_Calendar_App::getPermissions($id, OC_Calendar_App::EVENT);
$object = OC_VObject::parse($data['calendardata']);
$vevent = $object->VEVENT;
$object = OC_Calendar_Object::cleanByAccessClass($id, $object);
$permissions = OC_Calendar_App::getPermissions($id, OC_Calendar_App::EVENT, $vevent->CLASS->value);
$dtstart = $vevent->DTSTART;
$dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent);
@ -53,6 +54,7 @@ switch($dtstart->getDateType()) {
break;
}
$accessclass = $vevent->getAsString('CLASS');
$summary = $vevent->getAsString('SUMMARY');
$location = $vevent->getAsString('LOCATION');
$categories = $vevent->getAsString('CATEGORIES');
@ -198,6 +200,7 @@ if($data['repeating'] == 1) {
}
$calendar_options = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser());
$category_options = OC_Calendar_App::getCategoryOptions();
+$access_class_options = OC_Calendar_App::getAccessClassOptions();
$repeat_options = OC_Calendar_App::getRepeatOptions();
$repeat_end_options = OC_Calendar_App::getEndOptions();
$repeat_month_options = OC_Calendar_App::getMonthOptions();
@ -213,12 +216,16 @@ if($permissions & OCP\PERMISSION_UPDATE) {
$tmpl = new OCP\Template('calendar', 'part.editevent');
} elseif($permissions & OCP\PERMISSION_READ) {
$tmpl = new OCP\Template('calendar', 'part.showevent');
} elseif($permissions === 0) {
OCP\JSON::error(array('data' => array('message' => OC_Calendar_App::$l10n->t('You do not have the permissions to edit this event.'))));
exit;
}
$tmpl->assign('eventid', $id);
$tmpl->assign('permissions', $permissions);
$tmpl->assign('lastmodified', $lastmodified);
$tmpl->assign('calendar_options', $calendar_options);
$tmpl->assign('access_class_options', $access_class_options);
$tmpl->assign('repeat_options', $repeat_options);
$tmpl->assign('repeat_month_options', $repeat_month_options);
$tmpl->assign('repeat_weekly_options', $repeat_weekly_options);
@ -231,6 +238,7 @@ $tmpl->assign('repeat_bymonthday_options', $repeat_bymonthday_options);
$tmpl->assign('repeat_weekofmonth_options', $repeat_weekofmonth_options);
$tmpl->assign('title', $summary);
$tmpl->assign('accessclass', $accessclass);
$tmpl->assign('location', $location);
$tmpl->assign('categories', $categories);
$tmpl->assign('calendar', $data['calendarid']);

View File

@ -44,6 +44,7 @@ foreach($calendars as $calendar) {
array_push($calendar_options, $calendar);
}
}
$access_class_options = OC_Calendar_App::getAccessClassOptions();
$repeat_options = OC_Calendar_App::getRepeatOptions();
$repeat_end_options = OC_Calendar_App::getEndOptions();
$repeat_month_options = OC_Calendar_App::getMonthOptions();
@ -58,6 +59,7 @@ $repeat_bymonthday_options = OC_Calendar_App::getByMonthDayOptions();
$tmpl = new OCP\Template('calendar', 'part.newevent');
$tmpl->assign('access', 'owner');
$tmpl->assign('calendar_options', $calendar_options);
$tmpl->assign('access_class_options', $access_class_options);
$tmpl->assign('repeat_options', $repeat_options);
$tmpl->assign('repeat_month_options', $repeat_month_options);
$tmpl->assign('repeat_weekly_options', $repeat_weekly_options);

View File

@ -11,15 +11,15 @@ OCP\JSON::callCheck();
$id = $_POST['id'];
$permissions = OC_Calendar_App::getPermissions($id, OC_Calendar_App::EVENT);
$vcalendar = OC_Calendar_App::getVCalendar($id, false, false);
$vevent = $vcalendar->VEVENT;
$permissions = OC_Calendar_App::getPermissions($id, OC_Calendar_App::EVENT, $vevent->CLASS->value);
if(!$permissions & OCP\PERMISSION_UPDATE) {
OCP\JSON::error(array('message'=>'permission denied'));
exit;
}
$vcalendar = OC_Calendar_App::getVCalendar($id, false, false);
$vevent = $vcalendar->VEVENT;
$delta = new DateInterval('P0D');
$delta->d = $_POST['dayDelta'];
$delta->i = $_POST['minuteDelta'];

View File

@ -4,6 +4,7 @@
"No calendars found." => "لم يتم العثور على جدول الزمني",
"No events found." => "لم يتم العثور على احداث",
"Wrong calendar" => "جدول زمني خاطئ",
"You do not have the permissions to edit this event." => "ليس لديك الصلاحية لتعديل هذا التقويم.",
"The file contained either no events or all events are already saved in your calendar." => "الملف إما ليس به أحداث أو قد تكون كل الأحداث حفظت فى التقويم الخاص بك.",
"events has been saved in the new calendar" => "تم حفظ الأحداث فى التقويم الجديد",
"Import failed" => "لقد فشل الإستيراد",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "ليس لديك الصلاحية لإضافة هذا التقويم.",
"New Calendar" => "جدول زمني جديد",
"You do not have the permissions to add events to this calendar." => "ليس لديك الصلاحية لإضافة أحداث لهذا التقويم.",
"You do not have the permissions to edit this event." => "ليس لديك الصلاحية لتعديل هذا التقويم.",
"You do not have the permissions to delete this event." => "ليس لديك الصلاحية لحذف هذا الحدث.",
"Does not repeat" => "لا يعاد",
"Daily" => "يومي",

View File

@ -4,6 +4,7 @@
"No calendars found." => "No s'han trobat calendaris.",
"No events found." => "No s'han trobat events.",
"Wrong calendar" => "Calendari erroni",
"You do not have the permissions to edit this event." => "No teniu permisos per editar aquest esdeveniment.",
"The file contained either no events or all events are already saved in your calendar." => "El fitxer no contenia esdeveniments o aquests ja estaven desats en el vostre caledari",
"events has been saved in the new calendar" => "els esdeveniments s'han desat en el calendari nou",
"Import failed" => "Ha fallat la importació",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "No teniu permisos per afegir en aquest calendari.",
"New Calendar" => "Calendari nou",
"You do not have the permissions to add events to this calendar." => "No teniu permisos per afegir esdeveniments en aquest calendari.",
"You do not have the permissions to edit this event." => "No teniu permisos per editar aquest esdeveniment.",
"You do not have the permissions to delete this event." => "No teniu permisos per eliminar aquest esdeveniment.",
"Busy" => "Ocupat",
"Public" => "Públic",
"Private" => "Privat",
"Confidential" => "Confidencial",
"Does not repeat" => "No es repeteix",
"Daily" => "Diari",
"Weekly" => "Mensual",
@ -154,6 +158,7 @@
"Category" => "Categoria",
"Separate categories with commas" => "Separeu les categories amb comes",
"Edit categories" => "Edita categories",
"Access Class" => "Tipus d'accés",
"All Day Event" => "Esdeveniment de tot el dia",
"From" => "Des de",
"To" => "Fins a",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Žádné kalendáře nenalezeny.",
"No events found." => "Žádné události nenalezeny.",
"Wrong calendar" => "Nesprávný kalendář",
"You do not have the permissions to edit this event." => "Nemáte práva upravovat tuto událost.",
"The file contained either no events or all events are already saved in your calendar." => "Soubor neobsahoval žádné události, nebo jsou všechny události již ve Vašem kalendáři.",
"events has been saved in the new calendar" => "události byly uloženy v novém kalendáři",
"Import failed" => "Import selhal",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Nemáte práva pro přidání tohoto kalendáře.",
"New Calendar" => "Nový kalendář",
"You do not have the permissions to add events to this calendar." => "Nemáte práva pro přidání událostí do tohoto kalendáře.",
"You do not have the permissions to edit this event." => "Nemáte práva upravovat tuto událost.",
"You do not have the permissions to delete this event." => "Nemáte práva smazat tuto událost.",
"Busy" => "Zaneprázdněná",
"Public" => "Veřejná",
"Private" => "Soukromá",
"Confidential" => "Důvěrná",
"Does not repeat" => "Neopakuje se",
"Daily" => "Denně",
"Weekly" => "Týdně",
@ -154,6 +158,7 @@
"Category" => "Kategorie",
"Separate categories with commas" => "Kategorie oddělené čárkami",
"Edit categories" => "Upravit kategorie",
"Access Class" => "Třída přístupu",
"All Day Event" => "Celodenní událost",
"From" => "Od",
"To" => "Do",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Der blev ikke fundet nogen kalendere.",
"No events found." => "Der blev ikke fundet nogen begivenheder.",
"Wrong calendar" => "Forkert kalender",
"You do not have the permissions to edit this event." => "Du har ikke rettigheder til at redigere denne begivenhed.",
"The file contained either no events or all events are already saved in your calendar." => "Enten indeholdt filen ingen begivenheder, eller også er alle begivenheder allerede gemt i din kalender.",
"events has been saved in the new calendar" => "begivenheder er gemt i den nye kalender",
"Import failed" => "Import mislykkedes",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Du har ikke rettigheder til at tilføje til denne kalender.",
"New Calendar" => "Ny kalender",
"You do not have the permissions to add events to this calendar." => "Du har ikke rettigheder til at tilføje begivenheder til denne kalender.",
"You do not have the permissions to edit this event." => "Du har ikke rettigheder til at redigere denne begivenhed.",
"You do not have the permissions to delete this event." => "Du har ikke rettigheder til at slette denne begivenhed.",
"Does not repeat" => "Gentages ikke",
"Daily" => "Dagligt",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Keine Kalender gefunden.",
"No events found." => "Keine Termine gefunden.",
"Wrong calendar" => "Falscher Kalender",
"You do not have the permissions to edit this event." => "Du besitzt nicht die Berechtigung, diese Veranstaltung zu bearbeiten.",
"The file contained either no events or all events are already saved in your calendar." => "Entweder enthielt die Datei keine Termine oder alle Termine waren bereits im Kalender gespeichert.",
"events has been saved in the new calendar" => "Der Termin wurde im neuen Kalender gespeichert.",
"Import failed" => "Import fehlgeschlagen",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Du besitzt nicht die Berechtigung, diesem Kalender etwas hinzuzufügen.",
"New Calendar" => "Neuer Kalender",
"You do not have the permissions to add events to this calendar." => "Du besitzt nicht die Berechtigung, diesem Kalender eine Veranstaltung hinzuzufügen.",
"You do not have the permissions to edit this event." => "Du besitzt nicht die Berechtigung, diese Veranstaltung zu bearbeiten.",
"You do not have the permissions to delete this event." => "Du besitzt nicht die Berechtigung, diese Veranstaltung zu löschen.",
"Busy" => "Beschäftigt",
"Public" => "Öffentlich",
"Private" => "Privat",
"Confidential" => "Vertraulich",
"Does not repeat" => "einmalig",
"Daily" => "täglich",
"Weekly" => "wöchentlich",
@ -154,6 +158,7 @@
"Category" => "Kategorie",
"Separate categories with commas" => "Kategorien mit Kommata trennen",
"Edit categories" => "Kategorien ändern",
"Access Class" => "Zugriffsklasse",
"All Day Event" => "Ganztägiges Ereignis",
"From" => "von",
"To" => "bis",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Keine Kalender gefunden.",
"No events found." => "Keine Termine gefunden.",
"Wrong calendar" => "Falscher Kalender",
"You do not have the permissions to edit this event." => "Sie besitzen nicht die Berechtigung, diese Veranstaltung zu bearbeiten.",
"The file contained either no events or all events are already saved in your calendar." => "Entweder enthielt die Datei keine Termine oder alle Termine waren bereits im Kalender gespeichert.",
"events has been saved in the new calendar" => "Der Termin wurde im neuen Kalender gespeichert.",
"Import failed" => "Import fehlgeschlagen",
@ -48,8 +49,10 @@
"You do not have the permissions to add to this calendar." => "Sie besitzen nicht die Berechtigung, diesem Kalender etwas hinzuzufügen.",
"New Calendar" => "Neuer Kalender",
"You do not have the permissions to add events to this calendar." => "Sie besitzen nicht die Berechtigung, diesem Kalender eine Veranstaltung hinzuzufügen.",
"You do not have the permissions to edit this event." => "Sie besitzen nicht die Berechtigung, diese Veranstaltung zu bearbeiten.",
"You do not have the permissions to delete this event." => "Sie besitzen nicht die Berechtigung, diese Veranstaltung zu löschen.",
"Public" => "Öffentlich",
"Private" => "Privat",
"Confidential" => "Vertraulich",
"Does not repeat" => "einmalig",
"Daily" => "täglich",
"Weekly" => "wöchentlich",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Δε βρέθηκαν ημερολόγια.",
"No events found." => "Δε βρέθηκαν συμβάντα.",
"Wrong calendar" => "Λάθος ημερολόγιο",
"You do not have the permissions to edit this event." => "Δεν έχετε δικαιώματα να επεξεργαστείτε αυτό το συμβάν.",
"The file contained either no events or all events are already saved in your calendar." => "Το αρχείο που περιέχει είτε κανένα συμβάν είτε όλα τα συμβάντα έχουν ήδη αποθηκευτεί στο ημερολόγιό σας.",
"events has been saved in the new calendar" => "τα συμβάντα αποθηκεύτηκαν σε ένα νέο ημερολόγιο",
"Import failed" => "Η εισαγωγή απέτυχε",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Δεν έχετε δικαιώματα να προσθέσετε σε αυτό το ημερολόγιο.",
"New Calendar" => "Νέα Ημερολόγιο",
"You do not have the permissions to add events to this calendar." => "Δεν έχετε δικαιώματα να προσθέστε συμβάντα σε αυτό το ημερολόγιο.",
"You do not have the permissions to edit this event." => "Δεν έχετε δικαιώματα να επεξεργαστείτε αυτό το συμβάν.",
"You do not have the permissions to delete this event." => "Δεν έχετε δικαιώματα να διαγράψετε αυτό το συμβάν.",
"Does not repeat" => "Μη επαναλαμβανόμενο",
"Daily" => "Καθημερινά",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Neniu kalendaro troviĝis.",
"No events found." => "Neniu okazaĵo troviĝis.",
"Wrong calendar" => "Malĝusta kalendaro",
"You do not have the permissions to edit this event." => "Vi ne havas la permeson redakti ĉi tiun okazaĵon.",
"The file contained either no events or all events are already saved in your calendar." => "Aŭ la dosiero enhavas neniun okazaĵon aŭ ĉiuj okazaĵoj jam estas konservitaj en via kalendaro.",
"events has been saved in the new calendar" => "okazaĵoj estas konservitaj en la nova kalendaro",
"Import failed" => "Enporto malsukcesis",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Vi ne havas la permeson aldoni al ĉi tiu kalendaro.",
"New Calendar" => "Nova kalendaro",
"You do not have the permissions to add events to this calendar." => "Vi ne havas la permeson aldoni okazaĵojn al ĉi tiu kalendaro.",
"You do not have the permissions to edit this event." => "Vi ne havas la permeson redakti ĉi tiun okazaĵon.",
"You do not have the permissions to delete this event." => "Vi ne havas la permeson forigi ĉi tiun okazaĵon.",
"Does not repeat" => "Ĉi tio ne ripetiĝas",
"Daily" => "Tage",

View File

@ -4,6 +4,7 @@
"No calendars found." => "No se encontraron calendarios.",
"No events found." => "No se encontraron eventos.",
"Wrong calendar" => "Calendario incorrecto",
"You do not have the permissions to edit this event." => "No tiene permisos para editar este evento.",
"The file contained either no events or all events are already saved in your calendar." => "El archivo no contiene eventos o ya existen en tu calendario.",
"events has been saved in the new calendar" => "Los eventos han sido guardados en el nuevo calendario",
"Import failed" => "Fallo en la importación",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "No tiene permisos para añadir a este calendario.",
"New Calendar" => "Nuevo calendario",
"You do not have the permissions to add events to this calendar." => "No tiene permisos para añadir eventos a este calendario.",
"You do not have the permissions to edit this event." => "No tiene permisos para editar este evento.",
"You do not have the permissions to delete this event." => "No tiene permisos para eliminar este evento.",
"Busy" => "Ocupado",
"Public" => "Publico",
"Private" => "Privado",
"Confidential" => "Confidencial",
"Does not repeat" => "No se repite",
"Daily" => "Diariamente",
"Weekly" => "Semanalmente",
@ -154,6 +158,7 @@
"Category" => "Categoría",
"Separate categories with commas" => "Separar categorías con comas",
"Edit categories" => "Editar categorías",
"Access Class" => "Clase de acceso",
"All Day Event" => "Todo el día",
"From" => "Desde",
"To" => "Hasta",

View File

@ -4,6 +4,7 @@
"No calendars found." => "No se encontraron calendarios.",
"No events found." => "No se encontraron eventos.",
"Wrong calendar" => "Calendario incorrecto",
"You do not have the permissions to edit this event." => "No tenés permisos suficientes para editar este evento.",
"The file contained either no events or all events are already saved in your calendar." => "El archivo no contiene eventos o ya existen en tu calendario.",
"events has been saved in the new calendar" => "Los eventos fueros guardados en el nuevo calendario",
"Import failed" => "Error al importar",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "No tenés permisos suficientes para añadir a este calendario.",
"New Calendar" => "Calendario nuevo",
"You do not have the permissions to add events to this calendar." => "No tenés permisos suficientes para añadir eventos a este calendario.",
"You do not have the permissions to edit this event." => "No tenés permisos suficientes para editar este evento.",
"You do not have the permissions to delete this event." => "No tenés permisos suficientes para eliminar este evento.",
"Busy" => "Ocupado",
"Public" => "Publico",
"Private" => "Privado",
"Confidential" => "Confidencial",
"Does not repeat" => "No se repite",
"Daily" => "Diariamente",
"Weekly" => "Semanalmente",
@ -154,6 +158,7 @@
"Category" => "Categoría",
"Separate categories with commas" => "Separar categorías con comas",
"Edit categories" => "Editar categorías",
"Access Class" => "Clase de acceso",
"All Day Event" => "Todo el día",
"From" => "Desde",
"To" => "Hasta",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Kalendreid ei leitud.",
"No events found." => "Üritusi ei leitud.",
"Wrong calendar" => "Vale kalender",
"You do not have the permissions to edit this event." => "Sul pole õigusi selle ürituse muutmiseks.",
"The file contained either no events or all events are already saved in your calendar." => "Failis polnud ühtegi üritust või kõik üritused on juba sinu kalendrisse salvestatud.",
"events has been saved in the new calendar" => "üritust salvestati uude kalendrisse",
"Import failed" => "Importimine ebaõnnestus",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Sul pole õigusi selle kalendri lisamiseks.",
"New Calendar" => "Uus kalender",
"You do not have the permissions to add events to this calendar." => "Sul pole õigusi sellesse kalendrisse ürituste lisamiseks.",
"You do not have the permissions to edit this event." => "Sul pole õigusi selle ürituse muutmiseks.",
"You do not have the permissions to delete this event." => "Sul pole õigusi selle ürituse kustutamiseks.",
"Does not repeat" => "Ei kordu",
"Daily" => "Iga päev",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Ez da egutegirik aurkitu.",
"No events found." => "Ez da gertaerarik aurkitu.",
"Wrong calendar" => "Egutegi okerra",
"You do not have the permissions to edit this event." => "Gertaera hau editatzeko baimenik ez daukazu.",
"The file contained either no events or all events are already saved in your calendar." => "Fitxategiak ez zuen gertaerarik edo gertaera guztiak dagoeneko egutegian gordeta zeuden.",
"events has been saved in the new calendar" => "gertaerak egutegi berrian gorde dira",
"Import failed" => "Inportazioak huts egin du",
@ -47,8 +48,11 @@
"You do not have the permissions to add to this calendar." => "Egutegi honetan gehitzeko baimenik ez daukazu.",
"New Calendar" => "Egutegi berria",
"You do not have the permissions to add events to this calendar." => "Egutegi honetan gertaerak gehitzeko baimenik ez daukazu.",
"You do not have the permissions to edit this event." => "Gertaera hau editatzeko baimenik ez daukazu.",
"You do not have the permissions to delete this event." => "Gertaera hau ezabatzeko baimenik ez daukazu.",
"Busy" => "Lanpetuta",
"Public" => "Publikoa",
"Private" => "Pribatua",
"Confidential" => "Konfidentziala",
"Does not repeat" => "Ez da errepikatzen",
"Daily" => "Egunero",
"Weekly" => "Astero",
@ -153,6 +157,7 @@
"Category" => "Kategoria",
"Separate categories with commas" => "Banatu kategoriak komekin",
"Edit categories" => "Editatu kategoriak",
"Access Class" => "Sarrera mota",
"All Day Event" => "Egun osoko gertaera",
"From" => "Hasiera",
"To" => "Bukaera",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Kalentereita ei löytynyt",
"No events found." => "Tapahtumia ei löytynyt.",
"Wrong calendar" => "Väärä kalenteri",
"You do not have the permissions to edit this event." => "Käyttöoikeutesi eivät riitä tämän tapahtuman muokkaukseen.",
"The file contained either no events or all events are already saved in your calendar." => "Tiedosto ei joko sisältänyt tapahtumia tai vaihtoehtoisesti kaikki tapahtumat on jo tallennettu kalenteriisi.",
"events has been saved in the new calendar" => "tapahtumat on tallennettu uuteen kalenteriin",
"Import failed" => "Tuonti epäonnistui",
@ -46,7 +47,6 @@
"You do not have the permissions to add to this calendar." => "Käyttöoikeutesi eivät riitä lisäämiseen tähän kalenteriin.",
"New Calendar" => "Uusi kalenteri",
"You do not have the permissions to add events to this calendar." => "Käyttöoikeutesi eivät riitä tapahtumien lisäämiseen tähän kalenteriin.",
"You do not have the permissions to edit this event." => "Käyttöoikeutesi eivät riitä tämän tapahtuman muokkaukseen.",
"You do not have the permissions to delete this event." => "Käyttöoikeutesi eivät riitä tämän tapahtuman poistamiseen.",
"Does not repeat" => "Ei toistoa",
"Daily" => "Päivittäin",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Aucun calendrier n'a été trouvé.",
"No events found." => "Aucun événement n'a été trouvé.",
"Wrong calendar" => "Mauvais calendrier",
"You do not have the permissions to edit this event." => "Vous n'avez pas les droits suffisants pour éditer cet évènement.",
"The file contained either no events or all events are already saved in your calendar." => "Soit le fichier ne contient aucun événement soit tous les événements sont déjà enregistrés dans votre calendrier.",
"events has been saved in the new calendar" => "Les événements ont été enregistrés dans le nouveau calendrier",
"Import failed" => "Échec de l'import",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Vous n'avez pas les droits suffisants pour ajouter du contenu à ce calendrier.",
"New Calendar" => "Nouveau Calendrier",
"You do not have the permissions to add events to this calendar." => "Vous n'avez pas les droits suffisants pour ajouter des évènements à ce calendrier.",
"You do not have the permissions to edit this event." => "Vous n'avez pas les droits suffisants pour éditer cet évènement.",
"You do not have the permissions to delete this event." => "Vous n'avez pas les droits suffisants pour supprimer cet évènement.",
"Busy" => "Occupé",
"Public" => "Publique",
"Private" => "Privé",
"Confidential" => "Confidentiel",
"Does not repeat" => "Pas de répétition",
"Daily" => "Tous les jours",
"Weekly" => "Hebdomadaire",
@ -154,6 +158,7 @@
"Category" => "Catégorie",
"Separate categories with commas" => "Séparer les catégories par des virgules",
"Edit categories" => "Modifier les catégories",
"Access Class" => "Classe d'accès",
"All Day Event" => "Journée entière",
"From" => "De",
"To" => "À",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Non se atoparon calendarios.",
"No events found." => "Non se atoparon eventos.",
"Wrong calendar" => "Calendario equivocado",
"You do not have the permissions to edit this event." => "Non tes permisos para editar este evento.",
"The file contained either no events or all events are already saved in your calendar." => "Ou ben o ficheiro non ten eventos ou xa todos eles están anotados xa no teu calendario.",
"events has been saved in the new calendar" => "gardáronse os eventos no novo calendario",
"Import failed" => "Fallou a importación",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Non tes os permisos para engadir este calendario.",
"New Calendar" => "Novo calendario",
"You do not have the permissions to add events to this calendar." => "Non tes os permisos para engadir novos eventos neste calendario.",
"You do not have the permissions to edit this event." => "Non tes permisos para editar este evento.",
"You do not have the permissions to delete this event." => "Non tes permisos para borrar este evento.",
"Does not repeat" => "Non se repite",
"Daily" => "Diariamente",

View File

@ -4,6 +4,7 @@
"No calendars found." => "לא נמצאו לוחות שנה.",
"No events found." => "לא נמצאו אירועים.",
"Wrong calendar" => "לוח שנה לא נכון",
"You do not have the permissions to edit this event." => "אין לך הרשאות לערוך את האירוע הזה.",
"The file contained either no events or all events are already saved in your calendar." => "או שהקובץ לא מכיל אירועים או שכל האירועים כבר נשמרו בלוח השנה",
"events has been saved in the new calendar" => "האירועים נשמרו בלוח השנה החדש",
"Import failed" => "כשלון ביבוא",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "אין לך הרשאות להוסיף את לוח השנה הזה.",
"New Calendar" => "לוח שנה חדש",
"You do not have the permissions to add events to this calendar." => "אין לך הרשאות להוספת אירועים ללוח השנה הזה.",
"You do not have the permissions to edit this event." => "אין לך הרשאות לערוך את האירוע הזה.",
"You do not have the permissions to delete this event." => "אין לך הרשאות למחוק את האירוע הזה.",
"Does not repeat" => "ללא חזרה",
"Daily" => "יומי",

View File

@ -1,6 +1,7 @@
<?php $TRANSLATIONS = array(
"No events found." => "tidak ada kejadian ditemukan",
"Wrong calendar" => "Kalender salah",
"You do not have the permissions to edit this event." => "anda tidak memiliki ijin untuk mengubah kejadian ini",
"Import failed" => "impor gagal",
"New Timezone:" => "zona waktu baru",
"Timezone changed" => "Zona waktu telah diubah",
@ -40,7 +41,6 @@
"You do not have the permissions to add to this calendar." => "anda tidak memiliki ijin untuk menambahkan ke kalender ini",
"New Calendar" => "kalender baru",
"You do not have the permissions to add events to this calendar." => "anda tidak memiliki ijin untuk menambahkan kejadian ke kalender ini",
"You do not have the permissions to edit this event." => "anda tidak memiliki ijin untuk mengubah kejadian ini",
"You do not have the permissions to delete this event." => "anda tidak memiliki ijin untuk menghapus kejadian ini",
"Does not repeat" => "Tidak akan mengulangi",
"Daily" => "Harian",

32
l10n/is.php Normal file
View File

@ -0,0 +1,32 @@
<?php $TRANSLATIONS = array(
"Invalid request" => "Ógild fyrirspurn",
"Clients" => "Notendahugbúnaður",
"Other" => "Annað",
"Personal" => "Um mig",
"by" => "af",
"Monday" => "Mánudagur",
"Tuesday" => "Þriðjudagur",
"Wednesday" => "Miðvikudagur",
"Thursday" => "Fimmtudagur",
"Friday" => "Föstudagur",
"Saturday" => "Laugardagur",
"Sunday" => "Sunnudagur",
"November" => "Nóvember",
"December" => "Desember",
"Title" => "Titill",
"List" => "Listi",
"Settings" => "Stillingar",
"Download" => "Niðurhal",
"Edit" => "Breyta",
"Delete" => "Eyða",
"Save" => "Vista",
"Submit" => "Senda",
"Cancel" => "Hætta við",
"Export" => "Flytja út",
"Share" => "Deila",
"Location" => "Staðsetning",
"Advanced" => "Ítarlegt",
"Import" => "Flytja inn",
"Unshare" => "Hætta deilingu",
"URLs" => "URL"
);

View File

@ -4,6 +4,7 @@
"No calendars found." => "Nessun calendario trovato.",
"No events found." => "Nessun evento trovato.",
"Wrong calendar" => "Calendario sbagliato",
"You do not have the permissions to edit this event." => "Non hai i permessi per modificare questo evento.",
"The file contained either no events or all events are already saved in your calendar." => "Il file non conteneva alcun evento o tutti gli eventi erano già salvati nel tuo calendario.",
"events has been saved in the new calendar" => "gli eventi sono stati salvati nel nuovo calendario",
"Import failed" => "Importazione non riuscita",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Non hai i permessi per aggiungere a questo calendario.",
"New Calendar" => "Nuovo calendario",
"You do not have the permissions to add events to this calendar." => "Non hai i permessi per aggiungere eventi a questo calendario.",
"You do not have the permissions to edit this event." => "Non hai i permessi per modificare questo evento.",
"You do not have the permissions to delete this event." => "Non hai i permessi per eliminare questo evento.",
"Busy" => "Occupato",
"Public" => "Pubblico",
"Private" => "Privato",
"Confidential" => "Confidenziale",
"Does not repeat" => "Non ripetere",
"Daily" => "Giornaliero",
"Weekly" => "Settimanale",
@ -154,6 +158,7 @@
"Category" => "Categoria",
"Separate categories with commas" => "Categorie separate da virgole",
"Edit categories" => "Modifica le categorie",
"Access Class" => "Classe di accesso",
"All Day Event" => "Evento che occupa tutta la giornata",
"From" => "Da",
"To" => "A",

View File

@ -4,6 +4,7 @@
"No calendars found." => "カレンダーが見つかりませんでした。",
"No events found." => "イベントが見つかりませんでした。",
"Wrong calendar" => "誤ったカレンダーです",
"You do not have the permissions to edit this event." => "このイベントを編集する権限がありません。",
"The file contained either no events or all events are already saved in your calendar." => "イベントの無いもしくはすべてのイベントを含むファイルは既にあなたのカレンダーに保存されています。",
"events has been saved in the new calendar" => "イベントは新しいカレンダーに保存されました",
"Import failed" => "インポートに失敗",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "このカレンダーに追加する権限がありません。",
"New Calendar" => "新しくカレンダーを作成",
"You do not have the permissions to add events to this calendar." => "このカレンダーにイベントを追加する権限がありません。",
"You do not have the permissions to edit this event." => "このイベントを編集する権限がありません。",
"You do not have the permissions to delete this event." => "このイベントを削除する権限がありません。",
"Busy" => "多忙",
"Public" => "公開",
"Private" => "プライベート",
"Confidential" => "秘密",
"Does not repeat" => "繰り返さない",
"Daily" => "毎日",
"Weekly" => "毎週",
@ -154,6 +158,7 @@
"Category" => "カテゴリー",
"Separate categories with commas" => "カテゴリをコンマで区切る",
"Edit categories" => "カテゴリを編集",
"Access Class" => "公開設定",
"All Day Event" => "終日イベント",
"From" => "開始",
"To" => "終了",

View File

@ -4,6 +4,7 @@
"No calendars found." => "კალენდარი არ იქნა ნაპოვნი.",
"No events found." => "ივენთი არ იქნა ნაპოვნი.",
"Wrong calendar" => "არასწორი კალენდარი",
"You do not have the permissions to edit this event." => "თქვენ არ გაქვთ მოცემული ივენთის რედაქტირების უფლება.",
"The file contained either no events or all events are already saved in your calendar." => "ფაილი არ შეიცავს ივენთებს ან ყველა ივენთი უკვე შენახულია კალენდარში",
"events has been saved in the new calendar" => "ივენთები შენახულ იქნა ახალ კალენდარში",
"Import failed" => "იმპორტი ვერ მოხერხდა",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "თქვენ არ გაქვთ კალენდარის დამატების უფლება.",
"New Calendar" => "ახალი კალენდარი",
"You do not have the permissions to add events to this calendar." => "თქვენ არ გაქვთ ივენთის დამატების უფლება კალენდარში.",
"You do not have the permissions to edit this event." => "თქვენ არ გაქვთ მოცემული ივენთის რედაქტირების უფლება.",
"You do not have the permissions to delete this event." => "თქვენ არ გაქვთ მოცემული ივენთის წაშლის უფლება.",
"Does not repeat" => "არ უნდა გამეორდეს",
"Daily" => "ყოველდღიური",

View File

@ -4,6 +4,7 @@
"No calendars found." => "달력이 없습니다.",
"No events found." => "일정이 없습니다.",
"Wrong calendar" => "잘못된 달력",
"You do not have the permissions to edit this event." => "이 일정을 편집할 수 있는 권한이 없습니다.",
"The file contained either no events or all events are already saved in your calendar." => "이 파일에 일정 정보가 없거나 모든 정보가 달력에 저장되었습니다.",
"events has been saved in the new calendar" => "일정이 새로운 달력에 저장되었습니다",
"Import failed" => "가져오기 실패",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "이 달력에 추가할 수 있는 권한이 없습니다.",
"New Calendar" => "새 달력",
"You do not have the permissions to add events to this calendar." => "이 달력에 일정을 추가할 수 있는 권한이 없습니다.",
"You do not have the permissions to edit this event." => "이 일정을 편집할 수 있는 권한이 없습니다.",
"You do not have the permissions to delete this event." => "이 일정을 삭제할 수 있는 권한이 없습니다.",
"Does not repeat" => "반복 없음",
"Daily" => "매일",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Не се најдени календари.",
"No events found." => "Не се најдени настани.",
"Wrong calendar" => "Погрешен календар",
"You do not have the permissions to edit this event." => "Немате привилегија да го уредувате настанов.",
"The file contained either no events or all events are already saved in your calendar." => "Датотеката или не содржи настани или сите настани се веќе во Вашиот календар.",
"events has been saved in the new calendar" => "Настани беа снимени во нов календар",
"Import failed" => "Внесувањето не успеа",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Немате привилегија да додадете во календаров.",
"New Calendar" => "Нов календар",
"You do not have the permissions to add events to this calendar." => "Немате привилегија да додавате настани во овој календар.",
"You do not have the permissions to edit this event." => "Немате привилегија да го уредувате настанов.",
"You do not have the permissions to delete this event." => "Немате привилегија да го избришете настанов.",
"Does not repeat" => "Не се повторува",
"Daily" => "Дневно",

View File

@ -2,6 +2,7 @@
"No calendars found." => "Ingen kalendere funnet",
"No events found." => "Ingen hendelser funnet",
"Wrong calendar" => "Feil kalender",
"You do not have the permissions to edit this event." => "Du har ikke tilgang til å endre dette eventet",
"New Timezone:" => "Ny tidssone:",
"Timezone changed" => "Tidssone endret",
"Invalid request" => "Ugyldig forespørsel",
@ -29,7 +30,6 @@
"You do not have the permissions to delete this calendar." => "Du har ikke tilgang til å slette denne kalenderen",
"You do not have the permissions to add to this calendar." => "Du har ikke tilgang til å legge til noe i denne kalenderen",
"New Calendar" => "Ny kalender",
"You do not have the permissions to edit this event." => "Du har ikke tilgang til å endre dette eventet",
"You do not have the permissions to delete this event." => "Du har ikke tilgang til å slette dette eventet",
"Does not repeat" => "Gjentas ikke",
"Daily" => "Daglig",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Geen agenda's gevonden.",
"No events found." => "Geen gebeurtenissen gevonden.",
"Wrong calendar" => "Verkeerde agenda",
"You do not have the permissions to edit this event." => "U heeft geen permissie om deze gebeurtenis te bewerken.",
"The file contained either no events or all events are already saved in your calendar." => "Het bestand bevat geen gebeurtenissen of alle gebeurtenissen worden al in uw agenda bewaard.",
"events has been saved in the new calendar" => "De gebeurtenissen worden in de nieuwe agenda bewaard",
"Import failed" => "import is gefaald",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "U heeft geen permissie om deze agenda toe te voegen.",
"New Calendar" => "Nieuwe agenda",
"You do not have the permissions to add events to this calendar." => "U heeft geen permissie om gebeurtenissen aan deze agenda toe te voegen.",
"You do not have the permissions to edit this event." => "U heeft geen permissie om deze gebeurtenis te bewerken.",
"You do not have the permissions to delete this event." => "U heeft geen permissie om deze gebeurtenis te verwijderen.",
"Busy" => "Bezig",
"Public" => "Openbaar",
"Private" => "Privé",
"Confidential" => "Vertrouwelijk",
"Does not repeat" => "Geen",
"Daily" => "Dagelijks",
"Weekly" => "Wekelijks",
@ -154,6 +158,7 @@
"Category" => "Categorie",
"Separate categories with commas" => "Gescheiden door komma's",
"Edit categories" => "Wijzig categorieën",
"Access Class" => "Toegangsklasse",
"All Day Event" => "Hele dag",
"From" => "Van",
"To" => "Aan",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Cap de calendièr trobat.",
"No events found." => "Cap d'eveniment trobat.",
"Wrong calendar" => "Calendièr pas corrècte",
"You do not have the permissions to edit this event." => "Sias pas permés d'editar aqueste eveniment.",
"The file contained either no events or all events are already saved in your calendar." => "Lo fichièr contenguèt siá pas d'eveniments o totes los eveniments son ja enregistrats dins ton calendièr.",
"events has been saved in the new calendar" => "eveniments que son estats enregistrats dins un calendièr novèl",
"Import failed" => "Fracàs d'importacion",
@ -46,7 +47,6 @@
"You do not have the permissions to add to this calendar." => "Sias pas permés d'apondre a 'n aqueste calendièr.",
"New Calendar" => "Calendièr novèl",
"You do not have the permissions to add events to this calendar." => "Sias pas permés d'apondre eveniments a 'n aqueste calendièr.",
"You do not have the permissions to edit this event." => "Sias pas permés d'editar aqueste eveniment.",
"You do not have the permissions to delete this event." => "Sias pas permés d'escafar aqueste eveniment.",
"Does not repeat" => "Torna pas far",
"Daily" => "Jornalièr",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Brak kalendarzy",
"No events found." => "Brak wydzarzeń",
"Wrong calendar" => "Nieprawidłowy kalendarz",
"You do not have the permissions to edit this event." => "Nie masz uprawnień, aby edytować to wydarzenie.",
"The file contained either no events or all events are already saved in your calendar." => "Plik nie zawierał żadne zdarzeń lub wszystkie zdarzenia są już zapisane w kalendarzu.",
"events has been saved in the new calendar" => "zdarzenia zostały zapisane w nowym kalendarzu",
"Import failed" => "Import nieudany",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Nie masz uprawnień, aby dodawać do tego kalendarza.",
"New Calendar" => "Nowy kalendarz",
"You do not have the permissions to add events to this calendar." => "Nie masz uprawnień, aby dodać wydarzenia do tego kalendarza.",
"You do not have the permissions to edit this event." => "Nie masz uprawnień, aby edytować to wydarzenie.",
"You do not have the permissions to delete this event." => "Nie masz uprawnień, aby skasować to wydarzenie.",
"Does not repeat" => "Brak",
"Daily" => "Codziennie",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Nenhum calendário encontrado.",
"No events found." => "Nenhum evento encontrado.",
"Wrong calendar" => "Calendário incorreto",
"You do not have the permissions to edit this event." => "Você não tem permissões para editar esse evento.",
"The file contained either no events or all events are already saved in your calendar." => "O arquivo não continha nenhum evento ou todos os eventos já estão guardados no seu calendário.",
"events has been saved in the new calendar" => "os eventos foram salvos no novo calendário",
"Import failed" => "Falha na importação",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Você não tem permissões para adicionar esse calendário.",
"New Calendar" => "Novo Calendário",
"You do not have the permissions to add events to this calendar." => "Você não tem permissões para adicionar eventos nesse calendário.",
"You do not have the permissions to edit this event." => "Você não tem permissões para editar esse evento.",
"You do not have the permissions to delete this event." => "Você não tem permissões para remover esse evento.",
"Does not repeat" => "Não repetir",
"Daily" => "Diariamente",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Nenhum calendário encontrado.",
"No events found." => "Nenhum evento encontrado.",
"Wrong calendar" => "Calendário errado",
"You do not have the permissions to edit this event." => "Não tem permissões para alterar este evento.",
"The file contained either no events or all events are already saved in your calendar." => "O ficheiro não continha nenhuns eventos ou então todos os eventos já estavam carregados no seu calendário",
"events has been saved in the new calendar" => "Os eventos foram guardados no novo calendário",
"Import failed" => "Falha na importação",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Não tem permissões para acrescentar a este calendário.",
"New Calendar" => "Novo calendário",
"You do not have the permissions to add events to this calendar." => "Não tem permissões para acrescentar eventos a este calendário.",
"You do not have the permissions to edit this event." => "Não tem permissões para alterar este evento.",
"You do not have the permissions to delete this event." => "Não tem permissões para apagar este evento.",
"Busy" => "Ocupado",
"Public" => "Público",
"Private" => "Privado",
"Confidential" => "Confidencial",
"Does not repeat" => "Não repete",
"Daily" => "Diário",
"Weekly" => "Semanal",
@ -154,6 +158,7 @@
"Category" => "Categoria",
"Separate categories with commas" => "Separe categorias por virgulas",
"Edit categories" => "Editar categorias",
"Access Class" => "Classe de Acesso",
"All Day Event" => "Evento de dia inteiro",
"From" => "De",
"To" => "Para",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Nici un calendar găsit.",
"No events found." => "Nici un eveniment găsit.",
"Wrong calendar" => "Calendar greșit",
"You do not have the permissions to edit this event." => "Nu ai permisiunile necesare pentru a edita acest eveniment.",
"The file contained either no events or all events are already saved in your calendar." => "Fișierul nu conținea nici nu eveniment sau toate evenimentele sunt deja salvate în calendar.",
"events has been saved in the new calendar" => "evenimentele au fost salvate în noul calendar",
"Import failed" => "importul a eșuat",
@ -13,6 +14,8 @@
"Invalid request" => "Cerere eronată",
"Calendar" => "Calendar",
"Deletion failed" => "Ștergerea a eșuat",
"ddd d MMMM[ yyyy]{ - [ddd d] MMMM yyyy}" => "ddd d MMMM[ yyyy]{ - [ddd d] MMMM yyyy}",
"ddd d MMMM[ yyyy] HH:mm{ - [ ddd d MMMM yyyy] HH:mm}" => "ddd d MMMM[ yyyy] HH:mm{ - [ ddd d MMMM yyyy] HH:mm}",
"user" => "utilizator",
"group" => "grup",
"Editable" => "Editabil",
@ -46,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Nu ai permisiuni pentru a face adăugiri în acest calendar.",
"New Calendar" => "Calendar nou",
"You do not have the permissions to add events to this calendar." => "Nu ai permisiunile necesare pentru a adăuga evenimente la acest calendar.",
"You do not have the permissions to edit this event." => "Nu ai permisiunile necesare pentru a edita acest eveniment.",
"You do not have the permissions to delete this event." => "Nu ai permisiunile necesare pentru a șterge acest eveniment.",
"Busy" => "Ocupat",
"Public" => "Public",
"Private" => "Privat",
"Confidential" => "Confidential",
"Does not repeat" => "Nerepetabil",
"Daily" => "Zilnic",
"Weekly" => "Săptămânal",
@ -112,6 +118,7 @@
"Nov." => "Noi.",
"Dec." => "Dec.",
"All day" => "Toată ziua",
"Missing or invalid fields" => "Campuri necompletate sau invalide",
"Title" => "Titlu",
"From Date" => "Începând cu",
"From Time" => "De la",
@ -151,6 +158,7 @@
"Category" => "Categorie",
"Separate categories with commas" => "Separă categoriile prin virgule",
"Edit categories" => "Editează categorii",
"Access Class" => "Clasa de Acces",
"All Day Event" => "Toată ziua",
"From" => "De la",
"To" => "Către",
@ -177,6 +185,7 @@
"Name of new calendar" => "Numele noului calendar",
"Take an available name!" => "Alegeți un nume disponibil!",
"A Calendar with this name already exists. If you continue anyhow, these calendars will be merged." => "Un calendar cu acest nume există deja. Dacă oricum veți continua, aceste calendare vor fi fuzionate.",
"Remove all events from the selected calendar" => "Sterge toate evenimentele selectate din calendar",
"Import" => "Importă",
"Close Dialog" => "Închide",
"Create a new event" => "Crează un eveniment nou",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Календари не найдены.",
"No events found." => "События не найдены.",
"Wrong calendar" => "Неверный календарь",
"You do not have the permissions to edit this event." => "У вас нет права редактировать это событие.",
"The file contained either no events or all events are already saved in your calendar." => "Файл либо не собержит событий, либо все события уже есть в календаре",
"events has been saved in the new calendar" => "события были сохранены в новый календарь",
"Import failed" => "Ошибка импорта",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "У вас нет права добавлять в этот календарь.",
"New Calendar" => "Новый Календарь",
"You do not have the permissions to add events to this calendar." => "У вас нет права создавать события в этом календаре.",
"You do not have the permissions to edit this event." => "У вас нет права редактировать это событие.",
"You do not have the permissions to delete this event." => "У вас нет права удалить это событие.",
"Does not repeat" => "Не повторяется",
"Daily" => "Ежедневно",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Не найдено календарей",
"No events found." => "Не найдено событий",
"Wrong calendar" => "Неверный календарь",
"You do not have the permissions to edit this event." => "У Вас нет прав доступа для редактирования этого события.",
"The file contained either no events or all events are already saved in your calendar." => "Файл либо не содержит событий, либо все события уже сохранены в Вашем календаре.",
"events has been saved in the new calendar" => "Событие было сохранено в новом календаре ",
"Import failed" => "Импортирование не удалось",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "У Вас нет прав доступа для добавления этого календаря.",
"New Calendar" => "Новый календарь",
"You do not have the permissions to add events to this calendar." => "У Вас нет прав доступа для добавления событий в этот календарь.",
"You do not have the permissions to edit this event." => "У Вас нет прав доступа для редактирования этого события.",
"You do not have the permissions to delete this event." => "У Вас нет прав доступа для удаления этого события.",
"Does not repeat" => "Не повторяется",
"Daily" => "Ежедневный",

View File

@ -4,6 +4,7 @@
"No calendars found." => "දිනදසුන් හමුවී නැත.",
"No events found." => "සිදුවීම් හමුවී නැත.",
"Wrong calendar" => "වැරදි දිනදසුනක්",
"You do not have the permissions to edit this event." => "මෙම සිදුවීම සංස්කරණය කිරීම සදහා ඔබට අවසර නොමැත.",
"The file contained either no events or all events are already saved in your calendar." => "ලිපිගොනුවේ තුල කිසිදු සිදුවීමක් නොමැත හෝ සියලු සිදුවීම් දැනටමත් ඔබගේ දිනදසුනේ සුරැකී පවතී.",
"events has been saved in the new calendar" => "නව දිනදසුනක සිදුවීම් සුරකින ලදී",
"Import failed" => "ආයත කිරීම අසාර්ථකයි",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "මෙම දින දසුනට එකතු කිරීම සදහා ඔබට අවසර නොමැත",
"New Calendar" => "නව දිනදසුන",
"You do not have the permissions to add events to this calendar." => "මෙම දින දසුනට සිදුවීම් එකතු කිරීම සදහා ඔබට අවසර නොමැත",
"You do not have the permissions to edit this event." => "මෙම සිදුවීම සංස්කරණය කිරීම සදහා ඔබට අවසර නොමැත.",
"You do not have the permissions to delete this event." => "මෙම සිදුවීම මකාදැමීම සදහා ඔබට අවසර නොමැත.",
"Does not repeat" => "පුනරාවර්ථන නොවේ",
"Daily" => "දිනපතා",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Nenašiel sa žiadny kalendár.",
"No events found." => "Nenašla sa žiadna udalosť.",
"Wrong calendar" => "Zlý kalendár",
"You do not have the permissions to edit this event." => "Nemáte oprávnenie pre úpravu tejto udalosti.",
"The file contained either no events or all events are already saved in your calendar." => "Súbor neobsahoval žiadne udalosti, alebo už sú všetky udalosti vo vašom kalendári.",
"events has been saved in the new calendar" => "udalosti boli zapísané do nového kalendára",
"Import failed" => "Import zlyhal",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Nemáte oprávnenie pre pridanie do tohto kalendára.",
"New Calendar" => "Nový kalendár",
"You do not have the permissions to add events to this calendar." => "Nemáte oprávnenie pre pridanie udalostí do tohto kalendára.",
"You do not have the permissions to edit this event." => "Nemáte oprávnenie pre úpravu tejto udalosti.",
"You do not have the permissions to delete this event." => "Nemáte oprávnenie pre odstránenie tejto udalosti.",
"Does not repeat" => "Neopakovať",
"Daily" => "Denne",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Ni bilo najdenih koledarjev.",
"No events found." => "Ni bilo najdenih dogodkov.",
"Wrong calendar" => "Napačen koledar",
"You do not have the permissions to edit this event." => "Nimate dovoljenj za urejanje tega dogodka.",
"The file contained either no events or all events are already saved in your calendar." => "Datoteka ni vsebovala dogodkov ali pa so vsi dogodki že shranjeni v koledarju.",
"events has been saved in the new calendar" => "dogodki so bili shranjeni v nov koledar",
"Import failed" => "Uvoz je spodletel",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Nimate dovoljenj za dodajanje tega koledarja.",
"New Calendar" => "Nov koledar",
"You do not have the permissions to add events to this calendar." => "Nimate dovoljenj za dodajanje dogodkov v ta koledar.",
"You do not have the permissions to edit this event." => "Nimate dovoljenj za urejanje tega dogodka.",
"You do not have the permissions to delete this event." => "Nimate dovoljenj za izbris tega dogodka.",
"Does not repeat" => "Se ne ponavlja",
"Daily" => "Dnevno",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Није пронађен ниједан календар.",
"No events found." => "Није пронађен ниједан догађај.",
"Wrong calendar" => "Погрешан календар",
"You do not have the permissions to edit this event." => "Немате дозволу да мењате овај догађај",
"Import failed" => "Увоз није успео",
"events has been saved in your calendar" => "догађаји су сачувани у вашем календару",
"New Timezone:" => "Нова временска зона:",
@ -45,7 +46,6 @@
"You do not have the permissions to add to this calendar." => "Немате дозволу да додате у овај календар",
"New Calendar" => "Нови календар",
"You do not have the permissions to add events to this calendar." => "Немате дозволу да додате догађаје у овај календар",
"You do not have the permissions to edit this event." => "Немате дозволу да мењате овај догађај",
"You do not have the permissions to delete this event." => "Немате дозволу да избришете овај догађај",
"Does not repeat" => "Не понавља се",
"Daily" => "дневно",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Inga kalendrar funna",
"No events found." => "Inga händelser funna.",
"Wrong calendar" => "Fel kalender",
"You do not have the permissions to edit this event." => "Du har inte behörighet att ändra denna händelse.",
"The file contained either no events or all events are already saved in your calendar." => "Filen innehöll inga händelser eller så är alla händelser redan sparade i kalendern.",
"events has been saved in the new calendar" => "händelser har sparats i den nya kalendern",
"Import failed" => "Misslyckad import",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Du har inte behörighet att lägga till denna kalender.",
"New Calendar" => "Ny kalender",
"You do not have the permissions to add events to this calendar." => "Du har inte behörighet att lägga till händelser till denna kalender.",
"You do not have the permissions to edit this event." => "Du har inte behörighet att ändra denna händelse.",
"You do not have the permissions to delete this event." => "Du har inte behörighet att radera denna händelse.",
"Busy" => "Upptagen",
"Public" => "Publik",
"Private" => "Privat",
"Confidential" => "Konfidentiell",
"Does not repeat" => "Upprepas inte",
"Daily" => "Dagligen",
"Weekly" => "Varje vecka",
@ -154,6 +158,7 @@
"Category" => "Kategori",
"Separate categories with commas" => "Separera kategorier med komman",
"Edit categories" => "Redigera kategorier",
"Access Class" => "Åtkomstklass",
"All Day Event" => "Hela dagen",
"From" => "Från",
"To" => "Till",

View File

@ -4,6 +4,7 @@
"No calendars found." => "நாட்காட்டிகள் எதுவும் கண்டறியப்படவில்லை",
"No events found." => "நிகழ்வுகள் எதுவும் கண்டறியப்படவில்லை",
"Wrong calendar" => "பிழையான நாட்காட்டி",
"You do not have the permissions to edit this event." => "இந்த நிகழ்வை தொகுப்பதற்கு உங்களுக்கு அனுமதி இல்லை ",
"The file contained either no events or all events are already saved in your calendar." => "கோப்பு உங்களுடைய நாட்காட்டியில் ஒரு நிகழ்வும் இல்லாததையோ அல்லது ஏற்கனவே எல்லா நிகழ்வும் சேமித்ததையோ கொண்டுள்ளது. ",
"events has been saved in the new calendar" => "புதிய நாட்காட்டியில் நிகழ்வுகள் சேமிக்கப்பட்டது",
"Import failed" => "இறக்குமதி தோல்வியுற்றது",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "இந்த நாட்காட்டியை சேர்ப்பதற்கு உங்களுக்கு அனுமதி இல்லை",
"New Calendar" => "புதிய நாட்காட்டி",
"You do not have the permissions to add events to this calendar." => "இந்த நாட்காட்டிக்கு நிகழ்வுகளை சேர்க்க உங்களுக்கு அனுமதி இல்லை",
"You do not have the permissions to edit this event." => "இந்த நிகழ்வை தொகுப்பதற்கு உங்களுக்கு அனுமதி இல்லை ",
"You do not have the permissions to delete this event." => "இந்த நிகழ்வை அழிப்பதற்கு உங்களுக்கு அனுமதி இல்லை ",
"Does not repeat" => "மீண்டும் இல்லாமல்",
"Daily" => "ஒவ்வொரு நாளும்",

View File

@ -4,6 +4,7 @@
"No calendars found." => "ไม่พบปฏิทินที่ต้องการ",
"No events found." => "ไม่พบกิจกรรมที่ต้องการ",
"Wrong calendar" => "ปฏิทินไม่ถูกต้อง",
"You do not have the permissions to edit this event." => "คุณไม่ได้รับสิทธิ์ให้แก้ไขกิจกรรมนี้",
"The file contained either no events or all events are already saved in your calendar." => "ไฟล์ดังกล่าวบรรจุข้อมูลกิจกรรมที่มีอยู่แล้วในปฏิทินของคุณ",
"events has been saved in the new calendar" => "กิจกรรมได้ถูกบันทึกไปไว้ในปฏิทินที่สร้างขึ้นใหม่แล้ว",
"Import failed" => "การนำเข้าข้อมูลล้มเหลว",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "คุณไม่ได้รับสิทธิ์ให้เพิ่มปฏิทินนี้",
"New Calendar" => "สร้างปฏิทินใหม่",
"You do not have the permissions to add events to this calendar." => "คุณไม่ได้รับสิทธิ์ให้เพิ่มกิจกรรมเข้าไปในปฏิทินนี้",
"You do not have the permissions to edit this event." => "คุณไม่ได้รับสิทธิ์ให้แก้ไขกิจกรรมนี้",
"You do not have the permissions to delete this event." => "คุณไม่ได้รับสิทธิ์ให้ลบกิจกรรมนี้",
"Does not repeat" => "ไม่ต้องทำซ้ำ",
"Daily" => "รายวัน",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Takvim yok.",
"No events found." => "Etkinlik yok.",
"Wrong calendar" => "Yanlış takvim",
"You do not have the permissions to edit this event." => "Bu olayı düzeltme yetkisine sahip değilsiniz.",
"The file contained either no events or all events are already saved in your calendar." => "Dosya ya hiçbir etkinlik içermiyor veya bütün etkinlikler takviminizde zaten saklı.",
"events has been saved in the new calendar" => "Etkinlikler yeni takvimde saklandı",
"Import failed" => "İçeri aktarma başarısız oldu.",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "Bu takvime ekleme yetkisine sahip değilsiniz.",
"New Calendar" => "Yeni Takvim",
"You do not have the permissions to add events to this calendar." => "Bu takvime olay ekleme yetkisine sahip değilsiniz.",
"You do not have the permissions to edit this event." => "Bu olayı düzeltme yetkisine sahip değilsiniz.",
"You do not have the permissions to delete this event." => "Bu olayı silme yetkisine sahip değilsiniz.",
"Busy" => "Meşgul",
"Public" => "Halka açık",
"Private" => "Özel",
"Confidential" => "Gizli",
"Does not repeat" => "Tekrar etmiyor",
"Daily" => "Günlük",
"Weekly" => "Haftalı",
@ -154,6 +158,7 @@
"Category" => "Kategori",
"Separate categories with commas" => "Kategorileri virgülle ayırın",
"Edit categories" => "Kategorileri düzenle",
"Access Class" => "Erişim Sınıfı",
"All Day Event" => "Tüm Gün Olay",
"From" => "Kimden",
"To" => "Kime",
@ -189,6 +194,7 @@
"Unshare" => "Paylaşılmayan",
"Nobody" => "Hiçkimse",
"Shared via calendar" => "Takvimle paylaş",
"NOTE: Actions on events shared via calendar will affect the entire calendar sharing." => "NOT: Takvimde paylaşılan etkinlikler üzerindeki eylemler tüm takvim paylaşımını etkileyecektir.",
"View an event" => "Bir olay görüntüle",
"No categories selected" => "Kategori seçilmedi",
"of" => "nın",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Календарів не знадено.",
"No events found." => "Подій не знайдено.",
"Wrong calendar" => "Невірний календар",
"You do not have the permissions to edit this event." => "У вас немає прав редагувати цю подію.",
"The file contained either no events or all events are already saved in your calendar." => "Файл або не містить подій, або всі події вже збережені у вашому календарі.",
"events has been saved in the new calendar" => "подій було збережено в новому календарі",
"Import failed" => "Імпорт не був виконаний",
@ -48,8 +49,11 @@
"You do not have the permissions to add to this calendar." => "У вас немає прав додавати у цей календар.",
"New Calendar" => "Новий Календар",
"You do not have the permissions to add events to this calendar." => "У вас немає прав додавати події у цей календар.",
"You do not have the permissions to edit this event." => "У вас немає прав редагувати цю подію.",
"You do not have the permissions to delete this event." => "У вас немає прав видалити цю подію.",
"Busy" => "Зайнято",
"Public" => "Загально",
"Private" => "Приватно",
"Confidential" => "Конфіденційно",
"Does not repeat" => "Не повторювати",
"Daily" => "Щоденно",
"Weekly" => "Щотижня",
@ -154,6 +158,7 @@
"Category" => "Категорія",
"Separate categories with commas" => "Розділити категорії комами",
"Edit categories" => "Редагувати категорії",
"Access Class" => "Клас Доступу",
"All Day Event" => "Подія на весь день",
"From" => "З",
"To" => "По",

View File

@ -4,6 +4,7 @@
"No calendars found." => "Không tìm thấy lịch.",
"No events found." => "Không tìm thấy sự kiện nào",
"Wrong calendar" => "Sai lịch",
"You do not have the permissions to edit this event." => "Bạn không có quyền chỉnh sửa sự kiện này.",
"The file contained either no events or all events are already saved in your calendar." => "Các tập tin có hay không có sự kiện hoặc tất cả các sự kiện đã được lưu trong lịch của bạn.",
"events has been saved in the new calendar" => "sự kiện đã được lưu vào lịch mới.",
"Import failed" => "Nhập vào thất bại",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "Bạn không có quyền thêm lịch này",
"New Calendar" => "Lịch mới",
"You do not have the permissions to add events to this calendar." => "Bạn không có quyền thêm các sự kiện vào lịch này.",
"You do not have the permissions to edit this event." => "Bạn không có quyền chỉnh sửa sự kiện này.",
"You do not have the permissions to delete this event." => "Bạn không có quyền xóa sự kiện này.",
"Does not repeat" => "Không lặp lại",
"Daily" => "Hàng ngày",

View File

@ -4,6 +4,7 @@
"No calendars found." => "未找到日程表。",
"No events found." => "未找到事件。",
"Wrong calendar" => "错误的日历",
"You do not have the permissions to edit this event." => "您没有权限编辑此事件。",
"The file contained either no events or all events are already saved in your calendar." => "文件没有包含事件,或者所有事件已经存储在您的日程表中了。",
"events has been saved in the new calendar" => "事件已保存到新日程表",
"Import failed" => "导入失败",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "您没有权限添加到此日程表。",
"New Calendar" => "新的日历",
"You do not have the permissions to add events to this calendar." => "您没有权限向此日程表添加事件。",
"You do not have the permissions to edit this event." => "您没有权限编辑此事件。",
"You do not have the permissions to delete this event." => "您没有权限删除此事件。",
"Does not repeat" => "不要重复",
"Daily" => "每天",

View File

@ -4,6 +4,7 @@
"No calendars found." => "无法找到日历。",
"No events found." => "无法找到事件。",
"Wrong calendar" => "错误的日历",
"You do not have the permissions to edit this event." => "您没有权限编辑此日历",
"The file contained either no events or all events are already saved in your calendar." => "文件中不含事件,或者所有事件已保存到日历中。",
"events has been saved in the new calendar" => "事件已被保存到新日历",
"Import failed" => "导入失败",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "您没有权限增加到此日历",
"New Calendar" => "新日历",
"You do not have the permissions to add events to this calendar." => "您没有权限增加事项到此日历",
"You do not have the permissions to edit this event." => "您没有权限编辑此日历",
"You do not have the permissions to delete this event." => "您没有权限删除此事件",
"Does not repeat" => "不重复",
"Daily" => "每天",

View File

@ -4,6 +4,7 @@
"No calendars found." => "沒有找到行事曆",
"No events found." => "沒有找到活動",
"Wrong calendar" => "錯誤日曆",
"You do not have the permissions to edit this event." => "您沒有權限來編輯此事件.",
"The file contained either no events or all events are already saved in your calendar." => "檔案中包含的所有事件或無事件都已存到您的日曆",
"events has been saved in the new calendar" => "事件已存到新日曆",
"Import failed" => "匯入失敗",
@ -48,7 +49,6 @@
"You do not have the permissions to add to this calendar." => "您沒有權限來新增此日曆.",
"New Calendar" => "新日曆",
"You do not have the permissions to add events to this calendar." => "您沒有權限新增事件至此日曆.",
"You do not have the permissions to edit this event." => "您沒有權限來編輯此事件.",
"You do not have the permissions to delete this event." => "您沒有權限來刪除此事件.",
"Does not repeat" => "不重覆",
"Daily" => "每日",

View File

@ -215,6 +215,14 @@ class OC_Calendar_App{
}
}
/**
* @brief returns the options for the access class of an event
* @return array - valid inputs for the access class of an event
*/
public static function getAccessClassOptions() {
return OC_Calendar_Object::getAccessClassOptions(self::$l10n);
}
/**
* @brief returns the options for the repeat rule of an repeating event
* @return array - valid inputs for the repeat rule of an repeating event
@ -310,9 +318,10 @@ class OC_Calendar_App{
* @param (int) $id - id of the calendar / event
* @param (string) $type - type of the id (calendar/event)
* @return (int) $permissions - CRUDS permissions
* @param (string) $accessclass - access class (rfc5545, section 3.8.1.3)
* @see OCP\Share
*/
public static function getPermissions($id, $type) {
public static function getPermissions($id, $type, $accessclass = '') {
$permissions_all = OCP\PERMISSION_ALL;
if($type == self::CALENDAR) {
@ -341,12 +350,37 @@ class OC_Calendar_App{
if ($sharedEvent) {
$event_permissions = $sharedEvent['permissions'];
}
return max($calendar_permissions, $event_permissions);
if ($accessclass === 'PRIVATE') {
return 0;
} elseif ($accessclass === 'CONFIDENTIAL') {
return OCP\Share::PERMISSION_READ;
} else {
return max($calendar_permissions, $event_permissions);
}
}
}
return 0;
}
/*
* @brief Get the permissions for an access class
* @param (string) $accessclass - access class (rfc5545, section 3.8.1.3)
* @return (int) $permissions - CRUDS permissions
* @see OCP\Share
*/
public static function getAccessClassPermissions($accessclass = '') {
switch($accessclass) {
case 'CONFIDENTIAL':
return OCP\Share::PERMISSION_READ;
case 'PUBLIC':
case '':
return (OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE | OCP\Share::PERMISSION_DELETE);
default:
return 0;
}
}
/**
* @brief analyses the parameter for calendar parameter and returns the objects
* @param (string) $calendarid - calendarid
@ -367,7 +401,7 @@ class OC_Calendar_App{
$calendar = self::getCalendar($calendarid);
OCP\Response::enableCaching(0);
OCP\Response::setETagHeader($calendar['ctag']);
$events = OC_Calendar_Object::allInPeriod($calendarid, $start, $end);
$events = OC_Calendar_Object::allInPeriod($calendarid, $start, $end, $calendar['userid'] !== OCP\User::getUser());
} else {
OCP\Util::emitHook('OC_Calendar', 'getEvents', array('calendar_id' => $calendarid, 'events' => &$events));
}
@ -393,11 +427,21 @@ class OC_Calendar_App{
$vevent = $object->VEVENT;
$return = array();
$id = $event['id'];
if(OC_Calendar_Object::getowner($id) !== OCP\USER::getUser()) {
// do not show events with private or unknown access class
if ($vevent->CLASS->value !== 'CONFIDENTIAL'
&& $vevent->CLASS->value !== 'PUBLIC'
&& $vevent->CLASS->value !== '')
{
return $return;
}
$object = OC_Calendar_Object::cleanByAccessClass($id, $object);
}
$allday = ($vevent->DTSTART->getDateType() == Sabre\VObject\Property\DateTime::DATE)?true:false;
$last_modified = @$vevent->__get('LAST-MODIFIED');
$lastmodified = ($last_modified)?$last_modified->getDateTime()->format('U'):0;
$staticoutput = array('id'=>(int)$event['id'],
'title' => ($event['summary']!=null || $event['summary'] != '')?$event['summary']: self::$l10n->t('unnamed'),
'title' => ($vevent->SUMMARY->value != '')?$vevent->SUMMARY->value: self::$l10n->t('unnamed'),
'description' => isset($vevent->DESCRIPTION)?$vevent->DESCRIPTION->value:'',
'lastmodified'=>$lastmodified,
'allDay'=>$allday);

View File

@ -69,6 +69,13 @@ class OC_Calendar_Export{
if(!$object){
return false;
}
$sharedAccessClassPermissions = OC_Calendar_App::getAccessClassPermissions($object->VEVENT->CLASS->value);
if (!($sharedAccessClassPermissions & OCP\PERMISSION_READ)) {
return '';
}
$object = OC_Calendar_Object::cleanByAccessClass($event['calendarid'], $object);
if($object->VEVENT){
$dtstart = $object->VEVENT->DTSTART;
$start_dt = $dtstart->getDateTime();

View File

@ -121,11 +121,13 @@ class OC_Calendar_Import{
if(!($object instanceof Sabre\VObject\Component\VEvent) && !($object instanceof Sabre\VObject\Component\VJournal) && !($object instanceof Sabre\VObject\Component\VTodo)) {
continue;
}
$dtend = OC_Calendar_Object::getDTEndFromVEvent($object);
$object->DTSTART->getDateTime()->setTimezone(new DateTimeZone($this->tz));
if($object->DTEND) {
$object->DTEND->setDateTime($dtend->getDateTime(), $object->DTSTART->getDateType());
$object->DTEND->getDateTime()->setTimezone(new DateTimeZone($this->tz));
if(!is_null($object->DTSTART)){
$dtend = OC_Calendar_Object::getDTEndFromVEvent($object);
$object->DTSTART->getDateTime()->setTimezone(new DateTimeZone($this->tz));
if($object->DTEND) {
$object->DTEND->setDateTime($dtend->getDateTime(), $object->DTSTART->getDateType());
$object->DTEND->getDateTime()->setTimezone(new DateTimeZone($this->tz));
}
}
$vcalendar = $this->createVCalendar($object->serialize());
$insertid = OC_Calendar_Object::add($this->id, $vcalendar);

View File

@ -186,9 +186,11 @@ class OC_Calendar_Object{
$oldobject = self::find($id);
$calendar = OC_Calendar_Calendar::find($oldobject['calendarid']);
$oldvobject = OC_VObject::parse($oldobject['calendardata']);
if ($calendar['userid'] != OCP\User::getUser()) {
$sharedCalendar = OCP\Share::getItemSharedWithBySource('calendar', $id);
if (!$sharedCalendar || !($sharedCalendar['permissions'] & OCP\PERMISSION_UPDATE)) {
$sharedAccessClassPermissions = OC_Calendar_App::getAccessClassPermissions($oldvobject->VEVENT->CLASS->value);
if (!$sharedCalendar || !($sharedCalendar['permissions'] & OCP\PERMISSION_UPDATE) || !($sharedAccessClassPermissions & OCP\PERMISSION_UPDATE)) {
throw new Exception(
OC_Calendar_App::$l10n->t(
'You do not have the permissions to edit this event.'
@ -220,9 +222,11 @@ class OC_Calendar_Object{
$oldobject = self::findWhereDAVDataIs($cid,$uri);
$calendar = OC_Calendar_Calendar::find($cid);
$oldvobject = OC_VObject::parse($oldobject['calendardata']);
if ($calendar['userid'] != OCP\User::getUser()) {
$sharedCalendar = OCP\Share::getItemSharedWithBySource('calendar', $cid);
if (!$sharedCalendar || !($sharedCalendar['permissions'] & OCP\PERMISSION_UPDATE)) {
$sharedAccessClassPermissions = OC_Calendar_App::getAccessClassPermissions($oldvobject->VEVENT->CLASS->value);
if (!$sharedCalendar || !($sharedCalendar['permissions'] & OCP\PERMISSION_UPDATE) || !($sharedAccessClassPermissions & OCP\PERMISSION_UPDATE)) {
throw new Sabre_DAV_Exception_Forbidden(
OC_Calendar_App::$l10n->t(
'You do not have the permissions to edit this event.'
@ -250,9 +254,11 @@ class OC_Calendar_Object{
public static function delete($id) {
$oldobject = self::find($id);
$calendar = OC_Calendar_Calendar::find($oldobject['calendarid']);
$object = OC_VObject::parse($oldobject['calendardata']);
if ($calendar['userid'] != OCP\User::getUser()) {
$sharedCalendar = OCP\Share::getItemSharedWithBySource('calendar', $id);
if (!$sharedCalendar || !($sharedCalendar['permissions'] & OCP\PERMISSION_DELETE)) {
$sharedAccessClassPermissions = OC_Calendar_App::getAccessClassPermissions($object->VEVENT->CLASS->value);
if (!$sharedCalendar || !($sharedCalendar['permissions'] & OCP\PERMISSION_DELETE) || !($sharedAccessClassPermissions & OCP\PERMISSION_DELETE)) {
throw new Exception(
OC_Calendar_App::$l10n->t(
'You do not have the permissions to delete this event.'
@ -446,6 +452,55 @@ class OC_Calendar_Object{
return $dtend;
}
/**
* @brief Remove all properties which should not be exported for the AccessClass Confidential
* @param string $calendarId Calendar ID
* @param Sabre_VObject $vobject Sabre VObject
* @return object
*/
public static function cleanByAccessClass($calendarId, $vobject) {
// Do not clean your own calendar
if(OC_Calendar_Object::getowner($calendarId) === OCP\USER::getUser()) {
return $vobject;
}
$vevent = $vobject->VEVENT;
if($vevent->CLASS->value == 'CONFIDENTIAL') {
foreach ($vevent->children as &$property) {
switch($property->name) {
case 'CREATED':
case 'DTSTART':
case 'RRULE':
case 'DURATION':
case 'DTEND':
case 'CLASS':
case 'UID':
break;
case 'SUMMARY':
$property->value = OC_Calendar_App::$l10n->t('Busy');
break;
default:
$vevent->__unset($property->name);
break;
}
}
}
return $vobject;
}
/**
* @brief returns the options for the access class of an event
* @return array - valid inputs for the access class of an event
*/
public static function getAccessClassOptions($l10n) {
return array(
'PUBLIC' => (string)$l10n->t('Public'),
'PRIVATE' => (string)$l10n->t('Private'),
'CONFIDENTIAL' => (string)$l10n->t('Confidential')
);
}
/**
* @brief returns the options for the repeat rule of an repeating event
* @return array - valid inputs for the repeat rule of an repeating event
@ -776,6 +831,7 @@ class OC_Calendar_Object{
* @return object updated $vcalendar
*/
public static function updateVCalendarFromRequest($request, $vcalendar) {
$accessclass = $request["accessclass"];
$title = $request["title"];
$location = $request["location"];
$categories = $request["categories"];
@ -953,6 +1009,7 @@ class OC_Calendar_Object{
}
unset($vevent->DURATION);
$vevent->setString('CLASS', $accessclass);
$vevent->setString('LOCATION', $location);
$vevent->setString('DESCRIPTION', $description);
$vevent->setString('CATEGORIES', $categories);

View File

@ -267,6 +267,9 @@ class OC_Connector_Sabre_CalDAV extends Sabre_CalDAV_Backend_Abstract {
public function getCalendarObject($calendarId,$objectUri) {
$data = OC_Calendar_Object::findWhereDAVDataIs($calendarId,$objectUri);
if(is_array($data)) {
$object = OC_VObject::parse($data['calendardata']);
$object = OC_Calendar_Object::cleanByAccessClass($calendarId, $object);
$data['calendardata'] = $object->serialize();
$data = $this->OCAddETag($data);
}
return $data;

View File

@ -45,11 +45,13 @@ class OC_Connector_Sabre_CalDAV_CalendarObject extends Sabre_CalDAV_CalendarObje
$uid = OC_Calendar_Calendar::extractUserID($this->getOwner());
if($uid != OCP\USER::getUser()) {
$object = OC_VObject::parse($this->objectData['calendardata']);
$sharedCalendar = OCP\Share::getItemSharedWithBySource('calendar', $this->calendarInfo['id']);
if ($sharedCalendar && ($sharedCalendar['permissions'] & OCP\PERMISSION_READ)) {
$sharedAccessClassPermissions = OC_Calendar_App::getAccessClassPermissions($object->VEVENT->CLASS->value);
if ($sharedCalendar && ($sharedCalendar['permissions'] & OCP\PERMISSION_READ) && ($sharedAccessClassPermissions & OCP\PERMISSION_READ)) {
$readprincipal = 'principals/' . OCP\USER::getUser();
}
if ($sharedCalendar && ($sharedCalendar['permissions'] & OCP\PERMISSION_UPDATE)) {
if ($sharedCalendar && ($sharedCalendar['permissions'] & OCP\PERMISSION_UPDATE) && ($sharedAccessClassPermissions & OCP\PERMISSION_UPDATE)) {
$writeprincipal = 'principals/' . OCP\USER::getUser();
}
}

View File

@ -46,6 +46,17 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid
</td>
<?php } ?>
</tr>
<tr>
<th width="75px"><?php echo $l->t("Access Class");?>:</th>
<td>
<select style="width:140px;" name="accessclass">
<?php
if (!isset($_['calendar'])) {$_['calendar'] = false;}
echo OCP\html_select_options($_['access_class_options'], $_['accessclass']);
?>
</select>
</td>
</tr>
</table>
<hr>
<table width="100%">

View File

@ -42,6 +42,16 @@
<input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id'] ?>">
</td>
</tr>
<tr>
<th width="75px"><?php echo $l->t("Access Class");?>:</th>
<td>
<select id="accessclass" name="accessclass">
<?php
echo OCP\html_select_options(array($_['access_class_options'][$_['accessclass']]), $_['accessclass']);
?>
</select>
</td>
</tr>
</table>
<hr>
<table width="100%">