Merge branch 'dev/perf' of ssh://git.kolab.org/diffusion/RPK/roundcubemail-plugins-kolab into dev/perf
Conflicts: plugins/libkolab/SQL/mysql/2018122700.sql plugins/libkolab/SQL/oracle/2018122700.sql
This commit is contained in:
commit
5d560bf4cd
151 changed files with 29472 additions and 10921 deletions
|
@ -1,6 +1,6 @@
|
|||
[main]
|
||||
host = https://www.transifex.com
|
||||
lang_map = en: en_US, de: de_DE, da: da_DK, es: es_ES, fi: fi_FI, fr: fr_FR, ja: ja_JP, nl: nl_NL, cs: cs_CZ, vi: vi_VN, th: th_TH, sv: sv_SE, he: he_IL, hr: hr_HR, sk: sk_SK, sl: sl_SI, uk: uk_UA
|
||||
lang_map = en: en_US, da: da_DK, es: es_ES, fi: fi_FI, fr: fr_FR, ja: ja_JP, nl: nl_NL, cs: cs_CZ, vi: vi_VN, th: th_TH, sv: sv_SE, he: he_IL, hr: hr_HR, sk: sk_SK, sl: sl_SI, uk: uk_UA
|
||||
type = PHP_ALT_ARRAY
|
||||
|
||||
[kolab.kolab_2fa]
|
||||
|
|
|
@ -50,7 +50,6 @@ class calendar extends rcube_plugin
|
|||
'calendar_work_start' => 6,
|
||||
'calendar_work_end' => 18,
|
||||
'calendar_agenda_range' => 60,
|
||||
'calendar_agenda_sections' => 'smart',
|
||||
'calendar_event_coloring' => 0,
|
||||
'calendar_time_indicator' => true,
|
||||
'calendar_allow_invite_shared' => false,
|
||||
|
@ -189,13 +188,13 @@ class calendar extends rcube_plugin
|
|||
|
||||
// add 'Create event' item to message menu
|
||||
if ($this->api->output->type == 'html' && $_GET['_rel'] != 'event') {
|
||||
$this->api->add_content(html::tag('li', null,
|
||||
$this->api->add_content(html::tag('li', array('role' => 'menuitem'),
|
||||
$this->api->output->button(array(
|
||||
'command' => 'calendar-create-from-mail',
|
||||
'label' => 'calendar.createfrommail',
|
||||
'type' => 'link',
|
||||
'classact' => 'icon calendarlink active',
|
||||
'class' => 'icon calendarlink',
|
||||
'class' => 'icon calendarlink disabled',
|
||||
'innerclass' => 'icon calendar',
|
||||
))),
|
||||
'messagemenu');
|
||||
|
@ -296,7 +295,6 @@ class calendar extends rcube_plugin
|
|||
return $calendar ?: $first;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Render the main calendar view from skin template
|
||||
*/
|
||||
|
@ -304,9 +302,6 @@ class calendar extends rcube_plugin
|
|||
{
|
||||
$this->rc->output->set_pagetitle($this->gettext('calendar'));
|
||||
|
||||
// Add CSS stylesheets to the page header
|
||||
$this->ui->addCSS();
|
||||
|
||||
// Add JS files to the page header
|
||||
$this->ui->addJS();
|
||||
|
||||
|
@ -326,7 +321,7 @@ class calendar extends rcube_plugin
|
|||
)));
|
||||
|
||||
$view = rcube_utils::get_input_value('view', rcube_utils::INPUT_GPC);
|
||||
if (in_array($view, array('agendaWeek', 'agendaDay', 'month', 'table')))
|
||||
if (in_array($view, array('agendaWeek', 'agendaDay', 'month', 'list')))
|
||||
$this->rc->output->set_env('view', $view);
|
||||
|
||||
if ($date = rcube_utils::get_input_value('date', rcube_utils::INPUT_GPC))
|
||||
|
@ -378,14 +373,15 @@ class calendar extends rcube_plugin
|
|||
}
|
||||
|
||||
$field_id = 'rcmfd_default_view';
|
||||
$view = $this->rc->config->get('calendar_default_view', $this->defaults['calendar_default_view']);
|
||||
$select = new html_select(array('name' => '_default_view', 'id' => $field_id));
|
||||
$select->add($this->gettext('day'), "agendaDay");
|
||||
$select->add($this->gettext('week'), "agendaWeek");
|
||||
$select->add($this->gettext('month'), "month");
|
||||
$select->add($this->gettext('agenda'), "table");
|
||||
$select->add($this->gettext('agenda'), "list");
|
||||
$p['blocks']['view']['options']['default_view'] = array(
|
||||
'title' => html::label($field_id, rcube::Q($this->gettext('default_view'))),
|
||||
'content' => $select->show($this->rc->config->get('calendar_default_view', $this->defaults['calendar_default_view'])),
|
||||
'content' => $select->show($view == 'table' ? 'list' : $view),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -922,10 +918,6 @@ class calendar extends rcube_plugin
|
|||
$event = rcube_utils::get_input_value('e', rcube_utils::INPUT_POST, true);
|
||||
$success = $reload = $got_msg = false;
|
||||
|
||||
// force notify if hidden + active
|
||||
if ((int)$this->rc->config->get('calendar_itip_send_option', $this->defaults['calendar_itip_send_option']) === 1)
|
||||
$event['_notify'] = 1;
|
||||
|
||||
// read old event data in order to find changes
|
||||
if (($event['_notify'] || $event['_decline']) && $action != 'new') {
|
||||
$old = $this->driver->get_event($event);
|
||||
|
@ -987,7 +979,6 @@ class calendar extends rcube_plugin
|
|||
case "remove":
|
||||
// remove previous deletes
|
||||
$undo_time = $this->driver->undelete ? $this->rc->config->get('undo_timeout', 0) : 0;
|
||||
$this->rc->session->remove('calendar_event_undo');
|
||||
|
||||
// search for event if only UID is given
|
||||
if (!isset($event['calendar']) && $event['uid']) {
|
||||
|
@ -997,11 +988,12 @@ class calendar extends rcube_plugin
|
|||
$undo_time = 0;
|
||||
}
|
||||
|
||||
// Note: the driver is responsible for setting $_SESSION['calendar_event_undo']
|
||||
// containing 'ts' and 'data' elements
|
||||
$success = $this->driver->remove_event($event, $undo_time < 1);
|
||||
$reload = (!$success || $event['_savemode']) ? 2 : 1;
|
||||
|
||||
if ($undo_time > 0 && $success) {
|
||||
$_SESSION['calendar_event_undo'] = array('ts' => time(), 'data' => $event);
|
||||
// display message with Undo link.
|
||||
$msg = html::span(null, $this->gettext('successremoval'))
|
||||
. ' ' . html::a(array('onclick' => sprintf("%s.http_request('event', 'action=undo', %s.display_message('', 'loading'))",
|
||||
|
@ -1055,16 +1047,14 @@ class calendar extends rcube_plugin
|
|||
|
||||
case "undo":
|
||||
// Restore deleted event
|
||||
$event = $_SESSION['calendar_event_undo']['data'];
|
||||
|
||||
if ($event)
|
||||
if ($event = $_SESSION['calendar_event_undo']['data'])
|
||||
$success = $this->driver->restore_event($event);
|
||||
|
||||
if ($success) {
|
||||
$this->rc->session->remove('calendar_event_undo');
|
||||
$this->rc->output->show_message('calendar.successrestore', 'confirmation');
|
||||
$got_msg = true;
|
||||
$reload = 2;
|
||||
$reload = 2;
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -1323,12 +1313,21 @@ class calendar extends rcube_plugin
|
|||
*/
|
||||
function load_events()
|
||||
{
|
||||
$events = $this->driver->load_events(
|
||||
rcube_utils::get_input_value('start', rcube_utils::INPUT_GET),
|
||||
rcube_utils::get_input_value('end', rcube_utils::INPUT_GET),
|
||||
($query = rcube_utils::get_input_value('q', rcube_utils::INPUT_GET)),
|
||||
rcube_utils::get_input_value('source', rcube_utils::INPUT_GET)
|
||||
);
|
||||
$start = rcube_utils::get_input_value('start', rcube_utils::INPUT_GET);
|
||||
$end = rcube_utils::get_input_value('end', rcube_utils::INPUT_GET);
|
||||
$query = rcube_utils::get_input_value('q', rcube_utils::INPUT_GET);
|
||||
$source = rcube_utils::get_input_value('source', rcube_utils::INPUT_GET);
|
||||
|
||||
if (!is_numeric($start) || strpos($start, 'T')) {
|
||||
$start = new DateTime($start, $this->timezone);
|
||||
$start = $start->getTimestamp();
|
||||
}
|
||||
if (!is_numeric($end) || strpos($end, 'T')) {
|
||||
$end = new DateTime($end, $this->timezone);
|
||||
$end = $end->getTimestamp();
|
||||
}
|
||||
|
||||
$events = $this->driver->load_events($start, $end, $query, $source);
|
||||
echo $this->encode($events, !empty($query));
|
||||
exit;
|
||||
}
|
||||
|
@ -1767,15 +1766,12 @@ class calendar extends rcube_plugin
|
|||
// configuration
|
||||
$settings['default_calendar'] = $this->rc->config->get('calendar_default_calendar');
|
||||
$settings['default_view'] = (string)$this->rc->config->get('calendar_default_view', $this->defaults['calendar_default_view']);
|
||||
$settings['date_agenda'] = (string)$this->rc->config->get('calendar_date_agenda', $this->defaults['calendar_date_agenda']);
|
||||
|
||||
$settings['timeslots'] = (int)$this->rc->config->get('calendar_timeslots', $this->defaults['calendar_timeslots']);
|
||||
$settings['first_day'] = (int)$this->rc->config->get('calendar_first_day', $this->defaults['calendar_first_day']);
|
||||
$settings['first_hour'] = (int)$this->rc->config->get('calendar_first_hour', $this->defaults['calendar_first_hour']);
|
||||
$settings['work_start'] = (int)$this->rc->config->get('calendar_work_start', $this->defaults['calendar_work_start']);
|
||||
$settings['work_end'] = (int)$this->rc->config->get('calendar_work_end', $this->defaults['calendar_work_end']);
|
||||
$settings['agenda_range'] = (int)$this->rc->config->get('calendar_agenda_range', $this->defaults['calendar_agenda_range']);
|
||||
$settings['agenda_sections'] = $this->rc->config->get('calendar_agenda_sections', $this->defaults['calendar_agenda_sections']);
|
||||
$settings['event_coloring'] = (int)$this->rc->config->get('calendar_event_coloring', $this->defaults['calendar_event_coloring']);
|
||||
$settings['time_indicator'] = (int)$this->rc->config->get('calendar_time_indicator', $this->defaults['calendar_time_indicator']);
|
||||
$settings['invite_shared'] = (int)$this->rc->config->get('calendar_allow_invite_shared', $this->defaults['calendar_allow_invite_shared']);
|
||||
|
@ -1889,24 +1885,32 @@ class calendar extends rcube_plugin
|
|||
$event['description'] = trim($h2t->get_text());
|
||||
}
|
||||
|
||||
// mapping url => vurl because of the fullcalendar client script
|
||||
// mapping url => vurl, allday => allDay because of the fullcalendar client script
|
||||
$event['vurl'] = $event['url'];
|
||||
$event['allDay'] = !empty($event['allday']);
|
||||
unset($event['url']);
|
||||
unset($event['allday']);
|
||||
|
||||
$event['className'] = $event['className'] ? explode(' ', $event['className']) : array();
|
||||
|
||||
if ($event['allDay']) {
|
||||
$event['end'] = $event['end']->add(new DateInterval('P1D'));
|
||||
}
|
||||
|
||||
if ($_GET['mode'] == 'print') {
|
||||
$event['editable'] = false;
|
||||
}
|
||||
|
||||
return array(
|
||||
'_id' => $event['calendar'] . ':' . $event['id'], // unique identifier for fullcalendar
|
||||
'start' => $this->lib->adjust_timezone($event['start'], $event['allday'])->format('c'),
|
||||
'end' => $this->lib->adjust_timezone($event['end'], $event['allday'])->format('c'),
|
||||
'start' => $this->lib->adjust_timezone($event['start'], $event['allDay'])->format('c'),
|
||||
'end' => $this->lib->adjust_timezone($event['end'], $event['allDay'])->format('c'),
|
||||
// 'changed' might be empty for event recurrences (Bug #2185)
|
||||
'changed' => $event['changed'] ? $this->lib->adjust_timezone($event['changed'])->format('c') : null,
|
||||
'created' => $event['created'] ? $this->lib->adjust_timezone($event['created'])->format('c') : null,
|
||||
'title' => strval($event['title']),
|
||||
'description' => strval($event['description']),
|
||||
'location' => strval($event['location']),
|
||||
'className' => ($addcss ? 'fc-event-cal-'.asciiwords($event['calendar'], true).' ' : '') .
|
||||
'fc-event-cat-' . asciiwords(strtolower(join('-', (array)$event['categories'])), true) .
|
||||
rtrim(' ' . $event['className']),
|
||||
'allDay' => ($event['allday'] == 1),
|
||||
) + $event;
|
||||
}
|
||||
|
||||
|
@ -2056,7 +2060,8 @@ class calendar extends rcube_plugin
|
|||
// convert dates into DateTime objects in user's current timezone
|
||||
$event['start'] = new DateTime($event['start'], $this->timezone);
|
||||
$event['end'] = new DateTime($event['end'], $this->timezone);
|
||||
$event['allday'] = (bool)$event['allday'];
|
||||
$event['allday'] = !empty($event['allDay']);
|
||||
unset($event['allDay']);
|
||||
|
||||
// start/end is all we need for 'move' action (#1480)
|
||||
if ($action == 'move') {
|
||||
|
@ -2410,10 +2415,10 @@ class calendar extends rcube_plugin
|
|||
$title = $this->gettext('print');
|
||||
|
||||
$view = rcube_utils::get_input_value('view', rcube_utils::INPUT_GPC);
|
||||
if (!in_array($view, array('agendaWeek', 'agendaDay', 'month', 'table')))
|
||||
if (!in_array($view, array('agendaWeek', 'agendaDay', 'month', 'list')))
|
||||
$view = 'agendaDay';
|
||||
|
||||
$this->rc->output->set_env('view',$view);
|
||||
$this->rc->output->set_env('view', $view);
|
||||
|
||||
if ($date = rcube_utils::get_input_value('date', rcube_utils::INPUT_GPC))
|
||||
$this->rc->output->set_env('date', $date);
|
||||
|
@ -2421,28 +2426,19 @@ class calendar extends rcube_plugin
|
|||
if ($range = rcube_utils::get_input_value('range', rcube_utils::INPUT_GPC))
|
||||
$this->rc->output->set_env('listRange', intval($range));
|
||||
|
||||
if (isset($_REQUEST['sections']))
|
||||
$this->rc->output->set_env('listSections', rcube_utils::get_input_value('sections', rcube_utils::INPUT_GPC));
|
||||
|
||||
if ($search = rcube_utils::get_input_value('search', rcube_utils::INPUT_GPC)) {
|
||||
$this->rc->output->set_env('search', $search);
|
||||
$title .= ' "' . $search . '"';
|
||||
}
|
||||
|
||||
// Add CSS stylesheets to the page header
|
||||
$skin_path = $this->local_skin_path();
|
||||
$this->include_stylesheet($skin_path . '/fullcalendar.css');
|
||||
$this->include_stylesheet($skin_path . '/print.css');
|
||||
|
||||
// Add JS files to the page header
|
||||
$this->include_script('print.js');
|
||||
$this->include_script('lib/js/fullcalendar.js');
|
||||
// Add JS to the page
|
||||
$this->ui->addJS();
|
||||
|
||||
$this->register_handler('plugin.calendar_css', array($this->ui, 'calendar_css'));
|
||||
$this->register_handler('plugin.calendar_list', array($this->ui, 'calendar_list'));
|
||||
|
||||
$this->rc->output->set_pagetitle($title);
|
||||
$this->rc->output->send("calendar.print");
|
||||
$this->rc->output->send('calendar.print');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2962,7 +2958,7 @@ class calendar extends rcube_plugin
|
|||
'type' => 'link',
|
||||
'wrapper' => 'li',
|
||||
'command' => 'attachment-save-calendar',
|
||||
'class' => 'icon calendarlink',
|
||||
'class' => 'icon calendarlink disabled',
|
||||
'classact' => 'icon calendarlink active',
|
||||
'innerclass' => 'icon calendar',
|
||||
'label' => 'calendar.savetocalendar',
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@
|
|||
"description": "Calendar plugin",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Thomas Bruederli",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -34,33 +34,6 @@ $config['calendar_default_view'] = "agendaWeek";
|
|||
// show a birthdays calendar from the user's address book(s)
|
||||
$config['calendar_contact_birthdays'] = false;
|
||||
|
||||
// mapping of Roundcube date formats to calendar formats (long/short/agenda)
|
||||
// should be in sync with 'date_formats' in main config
|
||||
$config['calendar_date_format_sets'] = array(
|
||||
'yyyy-MM-dd' => array('MMM d yyyy', 'M-d', 'ddd MM-dd'),
|
||||
'dd-MM-yyyy' => array('d MMM yyyy', 'd-M', 'ddd dd-MM'),
|
||||
'yyyy/MM/dd' => array('MMM d yyyy', 'M/d', 'ddd MM/dd'),
|
||||
'MM/dd/yyyy' => array('MMM d yyyy', 'M/d', 'ddd MM/dd'),
|
||||
'dd/MM/yyyy' => array('d MMM yyyy', 'd/M', 'ddd dd/MM'),
|
||||
'dd.MM.yyyy' => array('dd. MMM yyyy', 'd.M', 'ddd dd.MM.'),
|
||||
'd.M.yyyy' => array('d. MMM yyyy', 'd.M', 'ddd d.MM.'),
|
||||
);
|
||||
|
||||
// general date format (only set if different from default date format and not user configurable)
|
||||
// $config['calendar_date_format'] = "yyyy-MM-dd";
|
||||
|
||||
// time format (only set if different from default date format)
|
||||
// $config['calendar_time_format'] = "HH:mm";
|
||||
|
||||
// short date format (used for column titles)
|
||||
// $config['calendar_date_short'] = 'M-d';
|
||||
|
||||
// long date format (used for calendar title)
|
||||
// $config['calendar_date_long'] = 'MMM d yyyy';
|
||||
|
||||
// date format used for agenda view
|
||||
// $config['calendar_date_agenda'] = 'ddd MM-dd';
|
||||
|
||||
// timeslots per hour (1, 2, 3, 4, 6)
|
||||
$config['calendar_timeslots'] = 2;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
|
||||
protected $cal;
|
||||
protected $events = array();
|
||||
protected $search_fields = array('title', 'description', 'location', 'attendees');
|
||||
protected $search_fields = array('title', 'description', 'location', 'attendees', 'categories');
|
||||
|
||||
/**
|
||||
* Factory method to instantiate a kolab_calendar object
|
||||
|
@ -342,6 +342,7 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
if ($virtual && !empty($event['recurrence']) && is_array($event['recurrence']['EXCEPTIONS'])) {
|
||||
foreach ($event['recurrence']['EXCEPTIONS'] as $exception) {
|
||||
if ($event['_instance'] == $exception['_instance']) {
|
||||
unset($exception['calendar'], $exception['className'], $exception['_folder_id']);
|
||||
// clone date objects from main event before adjusting them with exception data
|
||||
if (is_object($event['start'])) $event['start'] = clone $record['start'];
|
||||
if (is_object($event['end'])) $event['end'] = clone $record['end'];
|
||||
|
@ -406,10 +407,12 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
}
|
||||
|
||||
/**
|
||||
* Get number of events in the given calendar
|
||||
*
|
||||
* @param integer Date range start (unix timestamp)
|
||||
* @param integer Date range end (unix timestamp)
|
||||
* @param array Additional query to filter events
|
||||
*
|
||||
* @return integer Count
|
||||
*/
|
||||
public function count_events($start, $end = null, $filter_query = null)
|
||||
|
@ -495,9 +498,9 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
* Update a specific event record
|
||||
*
|
||||
* @see calendar_driver::new_event()
|
||||
*
|
||||
* @return boolean True on success, False on error
|
||||
*/
|
||||
|
||||
public function update_event($event, $exception_id = null)
|
||||
{
|
||||
$updated = false;
|
||||
|
@ -541,6 +544,7 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
* Delete an event record
|
||||
*
|
||||
* @see calendar_driver::remove_event()
|
||||
*
|
||||
* @return boolean True on success, False on error
|
||||
*/
|
||||
public function delete_event($event, $force = true)
|
||||
|
@ -549,9 +553,8 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
|
||||
if (!$deleted) {
|
||||
rcube::raise_error(array(
|
||||
'code' => 600, 'type' => 'php',
|
||||
'file' => __FILE__, 'line' => __LINE__,
|
||||
'message' => sprintf("Error deleting event object '%s' from Kolab server", $event['id'])),
|
||||
'code' => 600, 'file' => __FILE__, 'line' => __LINE__,
|
||||
'message' => sprintf("Error deleting event object '%s' from Kolab server", $event['id'])),
|
||||
true, false);
|
||||
}
|
||||
|
||||
|
@ -562,18 +565,21 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
* Restore deleted event record
|
||||
*
|
||||
* @see calendar_driver::undelete_event()
|
||||
*
|
||||
* @return boolean True on success, False on error
|
||||
*/
|
||||
public function restore_event($event)
|
||||
{
|
||||
if ($this->storage->undelete($event['id'])) {
|
||||
// Make sure this is not an instance identifier
|
||||
$uid = preg_replace('/-\d{8}(T\d{6})?$/', '', $event['id']);
|
||||
|
||||
if ($this->storage->undelete($uid)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
rcube::raise_error(array(
|
||||
'code' => 600, 'type' => 'php',
|
||||
'file' => __FILE__, 'line' => __LINE__,
|
||||
'message' => "Error undeleting the event object $event[id] from the Kolab server"),
|
||||
'code' => 600, 'file' => __FILE__, 'line' => __LINE__,
|
||||
'message' => sprintf("Error undeleting the event object '%s' from the Kolab server", $event['id'])),
|
||||
true, false);
|
||||
}
|
||||
|
||||
|
@ -613,7 +619,7 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
{
|
||||
$object = $event['_formatobj'];
|
||||
if (!$object) {
|
||||
$rec = $this->storage->get_object($event['id']);
|
||||
$rec = $this->storage->get_object($event['uid'] ?: $event['id']);
|
||||
$object = $rec['_formatobj'];
|
||||
}
|
||||
|
||||
|
@ -749,6 +755,9 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
{
|
||||
$record['calendar'] = $this->id;
|
||||
|
||||
// remove (possibly outdated) cached parameters
|
||||
unset($record['_folder_id'], $record['className']);
|
||||
|
||||
if ($links && !array_key_exists('links', $record)) {
|
||||
$record['links'] = $this->get_links($record['uid']);
|
||||
}
|
||||
|
@ -828,18 +837,23 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
$event['comment'] = $old['comment'];
|
||||
}
|
||||
|
||||
// remove some internal properties which should not be cached
|
||||
$cleanup_fn = function(&$event) {
|
||||
unset($event['_savemode'], $event['_fromcalendar'], $event['_identity'], $event['_folder_id'],
|
||||
$event['calendar'], $event['className'], $event['recurrence_id'],
|
||||
$event['_attachments'], $event['attachments'], $event['deleted_attachments']);
|
||||
};
|
||||
|
||||
$cleanup_fn($event);
|
||||
|
||||
// clean up exception data
|
||||
if (is_array($event['exceptions'])) {
|
||||
array_walk($event['exceptions'], function(&$exception) {
|
||||
unset($exception['_mailbox'], $exception['_msguid'], $exception['_formatobj'], $exception['_attachments'],
|
||||
$event['attachments'], $event['deleted_attachments'], $event['recurrence_id']);
|
||||
array_walk($event['exceptions'], function(&$exception) use ($cleanup_fn) {
|
||||
unset($exception['_mailbox'], $exception['_msguid'], $exception['_formatobj']);
|
||||
$cleanup_fn($exception);
|
||||
});
|
||||
}
|
||||
|
||||
// remove some internal properties which should not be saved
|
||||
unset($event['_savemode'], $event['_fromcalendar'], $event['_identity'], $event['_folder_id'],
|
||||
$event['recurrence_id'], $event['attachments'], $event['deleted_attachments'], $event['className']);
|
||||
|
||||
// copy meta data (starting with _) from old object
|
||||
foreach ((array)$old as $key => $val) {
|
||||
if (!isset($event[$key]) && $key[0] == '_')
|
||||
|
|
|
@ -91,24 +91,38 @@ class kolab_driver extends calendar_driver
|
|||
|
||||
$this->calendars = array();
|
||||
foreach ($folders as $folder) {
|
||||
if ($folder instanceof kolab_storage_folder_user) {
|
||||
$calendar = new kolab_user_calendar($folder, $this->cal);
|
||||
$calendar->subscriptions = count($folder->children) > 0;
|
||||
}
|
||||
else {
|
||||
$calendar = new kolab_calendar($folder->name, $this->cal);
|
||||
}
|
||||
|
||||
$calendar = $this->_to_calendar($folder);
|
||||
if ($calendar->ready) {
|
||||
$this->calendars[$calendar->id] = $calendar;
|
||||
if ($calendar->editable)
|
||||
if ($calendar->editable) {
|
||||
$this->has_writeable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->calendars;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert kolab_storage_folder into kolab_calendar
|
||||
*/
|
||||
private function _to_calendar($folder)
|
||||
{
|
||||
if ($folder instanceof kolab_calendar) {
|
||||
return $folder;
|
||||
}
|
||||
|
||||
if ($folder instanceof kolab_storage_folder_user) {
|
||||
$calendar = new kolab_user_calendar($folder, $this->cal);
|
||||
$calendar->subscriptions = count($folder->children) > 0;
|
||||
}
|
||||
else {
|
||||
$calendar = new kolab_calendar($folder->name, $this->cal);
|
||||
}
|
||||
|
||||
return $calendar;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of available calendars from this source
|
||||
*
|
||||
|
@ -129,17 +143,17 @@ class kolab_driver extends calendar_driver
|
|||
}
|
||||
}
|
||||
|
||||
$delim = $this->rc->get_storage()->get_hierarchy_delimiter();
|
||||
$folders = $this->filter_calendars($filter);
|
||||
$delim = $this->rc->get_storage()->get_hierarchy_delimiter();
|
||||
$folders = $this->filter_calendars($filter);
|
||||
$calendars = array();
|
||||
|
||||
// include virtual folders for a full folder tree
|
||||
if (!is_null($tree))
|
||||
$folders = kolab_storage::folder_hierarchy($folders, $tree);
|
||||
|
||||
$parents = array_keys($this->calendars);
|
||||
|
||||
foreach ($folders as $id => $cal) {
|
||||
$fullname = $cal->get_name();
|
||||
$listname = $cal->get_foldername();
|
||||
$imap_path = explode($delim, $cal->name);
|
||||
|
||||
// find parent
|
||||
|
@ -147,72 +161,60 @@ class kolab_driver extends calendar_driver
|
|||
array_pop($imap_path);
|
||||
$parent_id = kolab_storage::folder_id(join($delim, $imap_path));
|
||||
}
|
||||
while (count($imap_path) > 1 && !$this->calendars[$parent_id]);
|
||||
while (count($imap_path) > 1 && !in_array($parent_id, $parents));
|
||||
|
||||
// restore "real" parent ID
|
||||
if ($parent_id && !$this->calendars[$parent_id]) {
|
||||
if ($parent_id && !in_array($parent_id, $parents)) {
|
||||
$parent_id = kolab_storage::folder_id($cal->get_parent());
|
||||
}
|
||||
|
||||
// turn a kolab_storage_folder object into a kolab_calendar
|
||||
if ($cal instanceof kolab_storage_folder) {
|
||||
$cal = new kolab_calendar($cal->name, $this->cal);
|
||||
$this->calendars[$cal->id] = $cal;
|
||||
}
|
||||
$parents[] = $cal->id;
|
||||
|
||||
// special handling for user or virtual folders
|
||||
if ($cal instanceof kolab_storage_folder_user) {
|
||||
if ($cal->virtual) {
|
||||
$calendars[$cal->id] = array(
|
||||
'id' => $cal->id,
|
||||
'name' => $fullname,
|
||||
'listname' => $listname,
|
||||
'editname' => $cal->get_foldername(),
|
||||
'color' => $cal->get_color(),
|
||||
'active' => $cal->is_active(),
|
||||
'title' => $cal->get_owner(),
|
||||
'owner' => $cal->get_owner(),
|
||||
'history' => false,
|
||||
'virtual' => false,
|
||||
'editable' => false,
|
||||
'group' => 'other',
|
||||
'class' => 'user',
|
||||
'removable' => true,
|
||||
);
|
||||
}
|
||||
else if ($cal->virtual) {
|
||||
$calendars[$cal->id] = array(
|
||||
'id' => $cal->id,
|
||||
'name' => $fullname,
|
||||
'listname' => $listname,
|
||||
'name' => $cal->get_name(),
|
||||
'listname' => $cal->get_foldername(),
|
||||
'editname' => $cal->get_foldername(),
|
||||
'virtual' => true,
|
||||
'editable' => false,
|
||||
'group' => $cal->get_namespace(),
|
||||
'class' => 'folder',
|
||||
'group' => $cal->get_namespace(),
|
||||
);
|
||||
}
|
||||
else {
|
||||
// additional folders may come from kolab_storage::folder_hierarchy() above
|
||||
// make sure we deal with kolab_calendar instances
|
||||
$cal = $this->_to_calendar($cal);
|
||||
$this->calendars[$cal->id] = $cal;
|
||||
|
||||
$is_user = ($cal instanceof kolab_user_calendar);
|
||||
|
||||
$calendars[$cal->id] = array(
|
||||
'id' => $cal->id,
|
||||
'name' => $fullname,
|
||||
'listname' => $listname,
|
||||
'editname' => $cal->get_foldername(),
|
||||
'title' => $cal->get_title(),
|
||||
'color' => $cal->get_color(),
|
||||
'editable' => $cal->editable,
|
||||
'rights' => $cal->rights,
|
||||
'showalarms' => $cal->alarms,
|
||||
'history' => !empty($this->bonnie_api),
|
||||
'group' => $cal->get_namespace(),
|
||||
'default' => $cal->default,
|
||||
'active' => $cal->is_active(),
|
||||
'owner' => $cal->get_owner(),
|
||||
'children' => true, // TODO: determine if that folder indeed has child folders
|
||||
'parent' => $parent_id,
|
||||
'subtype' => $cal->subtype,
|
||||
'caldavurl' => $cal->get_caldav_url(),
|
||||
'id' => $cal->id,
|
||||
'name' => $cal->get_name(),
|
||||
'listname' => $cal->get_foldername(),
|
||||
'editname' => $cal->get_foldername(),
|
||||
'title' => $cal->get_title(),
|
||||
'color' => $cal->get_color(),
|
||||
'editable' => $cal->editable,
|
||||
'group' => $is_user ? 'other user' : $cal->get_namespace(),
|
||||
'active' => $cal->is_active(),
|
||||
'owner' => $cal->get_owner(),
|
||||
'removable' => !$cal->default,
|
||||
);
|
||||
|
||||
if (!$is_user) {
|
||||
$calendars[$cal->id] += array(
|
||||
'default' => $cal->default,
|
||||
'rights' => $cal->rights,
|
||||
'showalarms' => $cal->alarms,
|
||||
'history' => !empty($this->bonnie_api),
|
||||
'children' => true, // TODO: determine if that folder indeed has child folders
|
||||
'parent' => $parent_id,
|
||||
'subtype' => $cal->subtype,
|
||||
'caldavurl' => $cal->get_caldav_url(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ($cal->subscriptions) {
|
||||
|
@ -224,7 +226,6 @@ class kolab_driver extends calendar_driver
|
|||
if ($this->rc->config->get('kolab_invitation_calendars') && !($filter & self::FILTER_INSERTABLE)) {
|
||||
foreach (array(self::INVITATIONS_CALENDAR_PENDING, self::INVITATIONS_CALENDAR_DECLINED) as $id) {
|
||||
$cal = new kolab_invitation_calendar($id, $this->cal);
|
||||
$this->calendars[$cal->id] = $cal;
|
||||
if (!($filter & self::FILTER_ACTIVE) || $cal->is_active()) {
|
||||
$calendars[$id] = array(
|
||||
'id' => $cal->id,
|
||||
|
@ -268,7 +269,7 @@ class kolab_driver extends calendar_driver
|
|||
'active' => (bool)$prefs[$id]['active'],
|
||||
'showalarms' => (bool)$this->rc->config->get('calendar_birthdays_alarm_type'),
|
||||
'group' => 'x-birthdays',
|
||||
'editable' => false,
|
||||
'editable' => false,
|
||||
'default' => false,
|
||||
'children' => false,
|
||||
'history' => false,
|
||||
|
@ -337,11 +338,11 @@ class kolab_driver extends calendar_driver
|
|||
return $calendars;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the kolab_calendar instance for the given calendar ID
|
||||
*
|
||||
* @param string Calendar identifier (encoded imap folder name)
|
||||
*
|
||||
* @return object kolab_calendar Object nor null if calendar doesn't exist
|
||||
*/
|
||||
public function get_calendar($id)
|
||||
|
@ -351,9 +352,10 @@ class kolab_driver extends calendar_driver
|
|||
// create calendar object if necesary
|
||||
if (!$this->calendars[$id]) {
|
||||
if (in_array($id, array(self::INVITATIONS_CALENDAR_PENDING, self::INVITATIONS_CALENDAR_DECLINED))) {
|
||||
$this->calendars[$id] = new kolab_invitation_calendar($id, $this->cal);
|
||||
return new kolab_invitation_calendar($id, $this->cal);
|
||||
}
|
||||
else if ($id !== self::BIRTHDAY_CALENDAR_ID) {
|
||||
// for unsubscribed calendar folders
|
||||
if ($id !== self::BIRTHDAY_CALENDAR_ID) {
|
||||
$calendar = kolab_calendar::factory($id, $this->cal);
|
||||
if ($calendar->ready) {
|
||||
$this->calendars[$calendar->id] = $calendar;
|
||||
|
@ -370,13 +372,15 @@ class kolab_driver extends calendar_driver
|
|||
* @param array Hash array with calendar properties
|
||||
* name: Calendar name
|
||||
* color: The color of the calendar
|
||||
*
|
||||
* @return mixed ID of the calendar on success, False on error
|
||||
*/
|
||||
public function create_calendar($prop)
|
||||
{
|
||||
$prop['type'] = 'event';
|
||||
$prop['active'] = true;
|
||||
$prop['type'] = 'event';
|
||||
$prop['active'] = true;
|
||||
$prop['subscribed'] = true;
|
||||
|
||||
$folder = kolab_storage::folder_update($prop);
|
||||
|
||||
if ($folder === false) {
|
||||
|
@ -775,21 +779,26 @@ class kolab_driver extends calendar_driver
|
|||
*/
|
||||
public function remove_event($event, $force = true)
|
||||
{
|
||||
$ret = true;
|
||||
$success = false;
|
||||
$ret = true;
|
||||
$success = false;
|
||||
$savemode = $event['_savemode'];
|
||||
$decline = $event['_decline'];
|
||||
|
||||
if (!$force) {
|
||||
unset($event['attendees']);
|
||||
$this->rc->session->remove('calendar_event_undo');
|
||||
$this->rc->session->remove('calendar_restore_event_data');
|
||||
$sess_data = $event;
|
||||
}
|
||||
|
||||
if (($storage = $this->get_calendar($event['calendar'])) && ($event = $storage->get_event($event['id']))) {
|
||||
$event['_savemode'] = $savemode;
|
||||
$savemode = 'all';
|
||||
$master = $event;
|
||||
|
||||
$this->rc->session->remove('calendar_restore_event_data');
|
||||
$master = $event;
|
||||
|
||||
// read master if deleting a recurring event
|
||||
if ($event['recurrence'] || $event['recurrence_id'] || $event['isexception']) {
|
||||
$master = $storage->get_event($event['uid']);
|
||||
$master = $storage->get_event($event['uid']);
|
||||
$savemode = $event['_savemode'] ?: ($event['_instance'] || $event['isexception'] ? 'current' : 'all');
|
||||
|
||||
// force 'current' mode for single occurrences stored as exception
|
||||
|
@ -817,23 +826,8 @@ class kolab_driver extends calendar_driver
|
|||
case 'current':
|
||||
$_SESSION['calendar_restore_event_data'] = $master;
|
||||
|
||||
// removing the first instance => just move to next occurence
|
||||
if ($master['recurrence'] && $event['_instance'] == libcalendaring::recurrence_instance_identifier($master)) {
|
||||
$recurring = reset($storage->get_recurring_events($event, $event['start'], null, $event['id'] . '-1', 1));
|
||||
|
||||
// no future instances found: delete the master event (bug #1677)
|
||||
if (!$recurring['start']) {
|
||||
$success = $storage->delete_event($master, $force);
|
||||
break;
|
||||
}
|
||||
|
||||
$master['start'] = $recurring['start'];
|
||||
$master['end'] = $recurring['end'];
|
||||
if ($master['recurrence']['COUNT'])
|
||||
$master['recurrence']['COUNT']--;
|
||||
}
|
||||
// remove the matching RDATE entry
|
||||
else if ($master['recurrence']['RDATE']) {
|
||||
if ($master['recurrence']['RDATE']) {
|
||||
foreach ($master['recurrence']['RDATE'] as $j => $rdate) {
|
||||
if ($rdate->format('Ymd') == $event['start']->format('Ymd')) {
|
||||
unset($master['recurrence']['RDATE'][$j]);
|
||||
|
@ -841,9 +835,10 @@ class kolab_driver extends calendar_driver
|
|||
}
|
||||
}
|
||||
}
|
||||
else { // add exception to master event
|
||||
$master['recurrence']['EXDATE'][] = $event['start'];
|
||||
}
|
||||
|
||||
// add exception to master event
|
||||
$master['recurrence']['EXDATE'][] = $event['start'];
|
||||
|
||||
$success = $storage->update_event($master);
|
||||
break;
|
||||
|
||||
|
@ -881,10 +876,10 @@ class kolab_driver extends calendar_driver
|
|||
if (!empty($event['recurrence_date']) && empty($master['recurrence']) && !empty($master['exceptions'])) {
|
||||
// make the first exception the new master
|
||||
$newmaster = array_shift($master['exceptions']);
|
||||
$newmaster['exceptions'] = $master['exceptions'];
|
||||
$newmaster['exceptions'] = $master['exceptions'];
|
||||
$newmaster['_attachments'] = $master['_attachments'];
|
||||
$newmaster['_mailbox'] = $master['_mailbox'];
|
||||
$newmaster['_msguid'] = $master['_msguid'];
|
||||
$newmaster['_mailbox'] = $master['_mailbox'];
|
||||
$newmaster['_msguid'] = $master['_msguid'];
|
||||
|
||||
$success = $storage->update_event($newmaster);
|
||||
}
|
||||
|
@ -901,8 +896,18 @@ class kolab_driver extends calendar_driver
|
|||
}
|
||||
}
|
||||
|
||||
if ($success && !$force) {
|
||||
if ($master['_folder_id'])
|
||||
$sess_data['_folder_id'] = $master['_folder_id'];
|
||||
$_SESSION['calendar_event_undo'] = array('ts' => time(), 'data' => $sess_data);
|
||||
}
|
||||
|
||||
if ($success && $this->freebusy_trigger)
|
||||
$this->rc->output->command('plugin.ping_url', array('action' => 'calendar/push-freebusy', 'source' => $storage->id));
|
||||
$this->rc->output->command('plugin.ping_url', array(
|
||||
'action' => 'calendar/push-freebusy',
|
||||
// _folder_id may be set by invitations calendar
|
||||
'source' => $master['_folder_id'] ?: $storage->id,
|
||||
));
|
||||
|
||||
return $success ? $ret : false;
|
||||
}
|
||||
|
@ -911,19 +916,25 @@ class kolab_driver extends calendar_driver
|
|||
* Restore a single deleted event
|
||||
*
|
||||
* @param array Hash array with event properties:
|
||||
* id: Event identifier
|
||||
* id: Event identifier
|
||||
* calendar: Event calendar
|
||||
*
|
||||
* @return boolean True on success, False on error
|
||||
*/
|
||||
public function restore_event($event)
|
||||
{
|
||||
if ($storage = $this->get_calendar($event['calendar'])) {
|
||||
if (!empty($_SESSION['calendar_restore_event_data']))
|
||||
$success = $storage->update_event($_SESSION['calendar_restore_event_data']);
|
||||
$success = $storage->update_event($event = $_SESSION['calendar_restore_event_data']);
|
||||
else
|
||||
$success = $storage->restore_event($event);
|
||||
|
||||
if ($success && $this->freebusy_trigger)
|
||||
$this->rc->output->command('plugin.ping_url', array('action' => 'calendar/push-freebusy', 'source' => $storage->id));
|
||||
$this->rc->output->command('plugin.ping_url', array(
|
||||
'action' => 'calendar/push-freebusy',
|
||||
// _folder_id may be set by invitations calendar
|
||||
'source' => $event['_folder_id'] ?: $storage->id,
|
||||
));
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
|
|
@ -176,16 +176,31 @@ class kolab_invitation_calendar
|
|||
$event = $this->cal->driver->get_event($id, calendar_driver::FILTER_WRITEABLE);
|
||||
|
||||
if (is_array($event)) {
|
||||
// add pointer to original calendar folder
|
||||
$event['_folder_id'] = $event['calendar'];
|
||||
$event = $this->_mod_event($event);
|
||||
$event = $this->_mod_event($event, $event['calendar']);
|
||||
}
|
||||
|
||||
return $event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create instances of a recurring event
|
||||
*
|
||||
* @see kolab_calendar::get_recurring_events()
|
||||
*/
|
||||
public function get_recurring_events($event, $start, $end = null, $event_id = null, $limit = null)
|
||||
{
|
||||
// forward call to the actual storage folder
|
||||
if ($event['_folder_id']) {
|
||||
$cal = $this->cal->driver->get_calendar($event['_folder_id']);
|
||||
if ($cal && $cal->ready) {
|
||||
return $cal->get_recurring_events($event, $start, $end, $event_id, $limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get attachment body
|
||||
*
|
||||
* @see calendar_driver::get_attachment_body()
|
||||
*/
|
||||
public function get_attachment_body($id, $event)
|
||||
|
@ -212,11 +227,12 @@ class kolab_invitation_calendar
|
|||
}
|
||||
|
||||
/**
|
||||
* @param integer Event's new start (unix timestamp)
|
||||
* @param integer Event's new end (unix timestamp)
|
||||
* @param string Search query (optional)
|
||||
* @param boolean Include virtual events (optional)
|
||||
* @param array Additional parameters to query storage
|
||||
* @param integer Event's new start (unix timestamp)
|
||||
* @param integer Event's new end (unix timestamp)
|
||||
* @param string Search query (optional)
|
||||
* @param boolean Include virtual events (optional)
|
||||
* @param array Additional parameters to query storage
|
||||
*
|
||||
* @return array A list of event records
|
||||
*/
|
||||
public function list_events($start, $end, $search = null, $virtual = 1, $query = array())
|
||||
|
@ -251,7 +267,7 @@ class kolab_invitation_calendar
|
|||
}
|
||||
|
||||
if ($match) {
|
||||
$events[$event['id'] ?: $event['uid']] = $this->_mod_event($event);
|
||||
$events[$event['id'] ?: $event['uid']] = $this->_mod_event($event, $cal->id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -263,12 +279,15 @@ class kolab_invitation_calendar
|
|||
}
|
||||
|
||||
/**
|
||||
* Get number of events in the given calendar
|
||||
*
|
||||
* @param integer Date range start (unix timestamp)
|
||||
* @param integer Date range end (unix timestamp)
|
||||
* @param array Additional query to filter events
|
||||
*
|
||||
* @param integer Date range start (unix timestamp)
|
||||
* @param integer Date range end (unix timestamp)
|
||||
* @return integer Count
|
||||
*/
|
||||
public function count_events($start, $end = null)
|
||||
public function count_events($start, $end = null, $filter = null)
|
||||
{
|
||||
// get email addresses of the current user
|
||||
$user_emails = $this->cal->get_user_emails();
|
||||
|
@ -309,7 +328,7 @@ class kolab_invitation_calendar
|
|||
/**
|
||||
* Helper method to modify some event properties
|
||||
*/
|
||||
private function _mod_event($event)
|
||||
private function _mod_event($event, $calendar_id = null)
|
||||
{
|
||||
// set classes according to PARTSTAT
|
||||
$event = kolab_driver::add_partstat_class($event, $this->partstats);
|
||||
|
@ -318,15 +337,18 @@ class kolab_invitation_calendar
|
|||
$event['calendar'] = $this->id;
|
||||
}
|
||||
|
||||
// add pointer to original calendar folder
|
||||
if ($calendar_id) {
|
||||
$event['_folder_id'] = $calendar_id;
|
||||
}
|
||||
|
||||
return $event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new event record
|
||||
*
|
||||
* @see calendar_driver::new_event()
|
||||
*
|
||||
* @return mixed The created record ID on success, False on error
|
||||
* @see kolab_calendar::insert_event()
|
||||
*/
|
||||
public function insert_event($event)
|
||||
{
|
||||
|
@ -336,8 +358,7 @@ class kolab_invitation_calendar
|
|||
/**
|
||||
* Update a specific event record
|
||||
*
|
||||
* @see calendar_driver::new_event()
|
||||
* @return boolean True on success, False on error
|
||||
* @see kolab_calendar::update_event()
|
||||
*/
|
||||
public function update_event($event, $exception_id = null)
|
||||
{
|
||||
|
@ -355,22 +376,36 @@ class kolab_invitation_calendar
|
|||
/**
|
||||
* Delete an event record
|
||||
*
|
||||
* @see calendar_driver::remove_event()
|
||||
* @return boolean True on success, False on error
|
||||
* @see kolab_calendar::delete_event()
|
||||
*/
|
||||
public function delete_event($event, $force = true)
|
||||
{
|
||||
// forward call to the actual storage folder
|
||||
if ($event['_folder_id']) {
|
||||
$cal = $this->cal->driver->get_calendar($event['_folder_id']);
|
||||
if ($cal && $cal->ready) {
|
||||
return $cal->delete_event($event, $force);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore deleted event record
|
||||
*
|
||||
* @see calendar_driver::undelete_event()
|
||||
* @return boolean True on success, False on error
|
||||
* @see kolab_calendar::restore_event()
|
||||
*/
|
||||
public function restore_event($event)
|
||||
{
|
||||
// forward call to the actual storage folder
|
||||
if ($event['_folder_id']) {
|
||||
$cal = $this->cal->driver->get_calendar($event['_folder_id']);
|
||||
if ($cal && $cal->ready) {
|
||||
return $cal->restore_event($event);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -260,10 +260,12 @@ class kolab_user_calendar extends kolab_calendar
|
|||
}
|
||||
|
||||
/**
|
||||
* Get number of events in the given calendar
|
||||
*
|
||||
* @param integer Date range start (unix timestamp)
|
||||
* @param integer Date range end (unix timestamp)
|
||||
* @param array Additional query to filter events
|
||||
*
|
||||
* @param integer Date range start (unix timestamp)
|
||||
* @param integer Date range end (unix timestamp)
|
||||
* @param array Additional query to filter events
|
||||
* @return integer Count
|
||||
*/
|
||||
public function count_events($start, $end = null, $filter_query = null)
|
||||
|
|
|
@ -0,0 +1,99 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
# Gerd Seyfarth <mail@netsecond.net>, 2015
|
||||
# Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:9
|
||||
msgid "Import/Export"
|
||||
msgstr "Importieren/Exportieren"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:11
|
||||
msgid ""
|
||||
"Event data is usually exchanged using the standard |iCal|_ format which is "
|
||||
"supported for import and export."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:16
|
||||
msgid "Importing Events"
|
||||
msgstr "Termine werden importiert"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:18
|
||||
msgid "This is how to add events from an |iCal|_ (.ics) file:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:20
|
||||
msgid "Click the *Import* toolbar button in the calendar view."
|
||||
msgstr "Klicken Sie in der Kalenderansicht auf die Werkzeugleistenschaltfläche *Import*."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:21
|
||||
msgid "Then select the file to import from your computer's hard drive."
|
||||
msgstr "Dann die Datei für den Import von Ihrer Festplatte wählen."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:22
|
||||
msgid "Select the calendar to import the events to."
|
||||
msgstr "Wählen Sie den Kalender zum Importieren der Termine aus."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:23
|
||||
msgid "Select the threshold for old events to be imported."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:24
|
||||
msgid "Click *Import* and wait for the upload to finish."
|
||||
msgstr "Klicken Sie auf *Import* und warten Sie, bis das Hochladen abgeschlossen ist."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:26
|
||||
msgid ""
|
||||
"The calendar view will be refreshed to display the newly imported events. "
|
||||
"Verify that the according calendar is active if you don't see them."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:34
|
||||
msgid "Exporting Events"
|
||||
msgstr "Termine werden exportiert"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:36
|
||||
msgid ""
|
||||
"Events from your calendars can be exported and downloaded in the |iCal|_ "
|
||||
"format."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:38
|
||||
msgid "Click the *Export* toolbar button in the calendar view."
|
||||
msgstr "Klicken Sie in der Kalenderansicht auf die Werkzeugleistenschaltfläche *Export*."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:39
|
||||
msgid "Select the calendar where events should be exported from."
|
||||
msgstr "Kalender wählen dessen Termine exportiert werden sollen."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:40
|
||||
msgid ""
|
||||
"With the *Events from* selector you choose the time constraints for "
|
||||
"exporting."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:41
|
||||
msgid "Click the *Export* button to start the export."
|
||||
msgstr "Klicken Sie auf die Schaltfläche *Export*, um den Export zu starten."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:42
|
||||
msgid ""
|
||||
"Choose where to save the exported .ics file if prompted, otherwise check the"
|
||||
" \"Downloads\" folder on your computer."
|
||||
msgstr ""
|
29
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/index.po
Normal file
29
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/index.po
Normal file
|
@ -0,0 +1,29 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/index.rst:9
|
||||
msgid "Calendar"
|
||||
msgstr "Kalender"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/index.rst:11
|
||||
msgid ""
|
||||
"The *Calendar* gives you access to your personal and shared calendar and "
|
||||
"scheduling functions."
|
||||
msgstr "Der *Kalender* ermöglicht Ihnen den Zugriff auf Ihren persönlichen und den gemeinsamen Kalender sowie auf Planungsfunktionen."
|
104
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/invitations.po
Normal file
104
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/invitations.po
Normal file
|
@ -0,0 +1,104 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:8
|
||||
msgid "Handle Event Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:10
|
||||
msgid ""
|
||||
"In chapter :ref:`calendar-event-participants` we have learned how to invite "
|
||||
"other people to an event. This will send out invitation emails to all the "
|
||||
"participants with the event data attached. That allows one to directly "
|
||||
"accept or decline an event invitation."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:17
|
||||
msgid "Receive Event Invitations"
|
||||
msgstr "Termineinladungen erhalten"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:19
|
||||
msgid ""
|
||||
"When the webmail system opens an invitation email with event data attached, "
|
||||
"it'll display a yellow box in the preview pane or the email view:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:25
|
||||
msgid "Accept/Decline Invitations"
|
||||
msgstr "Einladungen annehmen/ablehnen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:27
|
||||
msgid ""
|
||||
"Right in the box shown above, you can accept or decline the invitation by "
|
||||
"clicking the according button. This will send an automated response to the "
|
||||
"event organizer informing her about your decision and letting her update "
|
||||
"your participant status in her calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:31
|
||||
msgid ""
|
||||
"In case you accept, by either clicking *Accept* or *Maybe*, this will also "
|
||||
"copy the event into your personal calendar. The selector right next to the "
|
||||
"buttons lets you choose the right one."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:35
|
||||
msgid ""
|
||||
"The copy in your calendar now knows about the invitation and its original "
|
||||
"sender. If you now delete it from your calendar, you'll be asked whether "
|
||||
"this should send a declination message to the person who organizes the "
|
||||
"event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:39
|
||||
msgid ""
|
||||
"After acceping or declining, the email message containing the invitation can"
|
||||
" be deleted."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:43
|
||||
msgid "Process Invitation Replies"
|
||||
msgstr "Einladungsantworten abarbeiten"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:45
|
||||
msgid ""
|
||||
"As an organizer who has invited others to an event, you'll receive responses"
|
||||
" to the automatically sent invitations when the attendees either accept or "
|
||||
"decline them."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:48
|
||||
msgid ""
|
||||
"Such messages are also identified by the webmail system and again a yellow "
|
||||
"box appears in the message view:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:53
|
||||
msgid ""
|
||||
"By clicking the *Update the participant's status* button, the original event"
|
||||
" in your calendar will be updated with the RSVP status from the person who "
|
||||
"responded here."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:56
|
||||
msgid ""
|
||||
"When you now look at the event details in the calendar view, the status "
|
||||
"icons next to each participant now displays the new status."
|
||||
msgstr ""
|
343
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/manage.po
Normal file
343
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/manage.po
Normal file
|
@ -0,0 +1,343 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:7
|
||||
msgid "Manage Your Schedule"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:9
|
||||
msgid ""
|
||||
"All functions to maintain your events are accessible from the main calendar "
|
||||
"view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:13
|
||||
msgid "Add Events to a Calendar"
|
||||
msgstr "Termine zum Kalender hinzufügen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:18
|
||||
msgid "**Via toolbar**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:16
|
||||
msgid ""
|
||||
"Click the *New event* button in the toolbar to get an empty dialog where you"
|
||||
" enter the :ref:`event properties <calendar-edit-event>` such as summary, "
|
||||
"date/time, reminders, etc. Click *Save* to finally add it to the selected "
|
||||
"calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:27
|
||||
msgid "**At a specific date/time**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:21
|
||||
msgid ""
|
||||
"Navigate the calendar view to the date you want to add an event for. Then "
|
||||
"mark the range of time (or dates in month view) with the mouse by pressing "
|
||||
"the button at the time the event should start and releasing it again at time"
|
||||
" it finishes. This will open the :ref:`event dialog <calendar-edit-event>` "
|
||||
"with the selected date/time range already filled in."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:26
|
||||
msgid ""
|
||||
"In order to create new all-day events, double-click the desired day in the "
|
||||
"calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:33
|
||||
msgid "Edit and Reschedule Events"
|
||||
msgstr "Termine bearbeiten und verlegen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:36
|
||||
msgid "The Event Dialog"
|
||||
msgstr "Der Termindialog"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:38
|
||||
msgid ""
|
||||
"When clicking an event in the calendar view, a dialog showing its details is"
|
||||
" displayed. Clicking the *Edit* button in that dialog opens the form to edit"
|
||||
" all properties of the selected event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:41
|
||||
msgid ""
|
||||
"The edit form is divided into different section which can be switched using "
|
||||
"the tabs on top of the dialog:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:44
|
||||
msgid "**Summary**"
|
||||
msgstr "**Zusammenfassung**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:46
|
||||
msgid ""
|
||||
"This general section has text fields and selectors for various properties of"
|
||||
" an event. Here's a description of all the possible values:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:49
|
||||
msgid ""
|
||||
"``Summary``: The title of the event. This is what you will see in the "
|
||||
"calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:50
|
||||
msgid "``Location``: Where the event will be taking place."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:51
|
||||
msgid "``Description``: Any text that describes the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:52
|
||||
msgid "``URL``: A link to more information about this event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:53
|
||||
msgid "``Start``: Date and time when the event starts."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:54
|
||||
msgid "``End``: Date and time when the event starts."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:55
|
||||
msgid "``all-day``: Check this if the event has no start/end time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:56
|
||||
msgid ""
|
||||
"``Reminder``: Will pop up with an notification at a the specified time "
|
||||
"before the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:57
|
||||
msgid ""
|
||||
"``Calendar``: The calendar the event is saved in. Change it to move an event"
|
||||
" from one calendar to another."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:58
|
||||
msgid ""
|
||||
"``Category``: The type of event. Categories can also be used for "
|
||||
":ref:`coloring <settings-calendar>`."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:59
|
||||
msgid ""
|
||||
"``Show me as``: The representation in your free/busy scheduling calendar "
|
||||
"visible to others."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:60
|
||||
msgid "``Priority``: The priority value of the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:61
|
||||
msgid ""
|
||||
"``Privacy``: Flag an event as \"private\" or \"confidential\" when sharing "
|
||||
"your calendar with others."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:63
|
||||
msgid "**Recurrence**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:65
|
||||
msgid ""
|
||||
"For periodically recurring event series, this tabs has the settings how an "
|
||||
"event is repeated over time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:68
|
||||
msgid "``Repeat``: Start with selecting a repetition interval (e.g. monthly)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:69
|
||||
msgid ""
|
||||
"``Every``: How often the frequency will be relevant. For example, for an "
|
||||
"event that takes place every other week choose Weekly and then 2. If you "
|
||||
"choose a frequency of weekly or monthly you can select which days of the "
|
||||
"week or month the event will occur."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:71
|
||||
msgid ""
|
||||
"``Until``: Determines the duration of the repetition. The recurrence can "
|
||||
"either run forever, for a number it times or until a specific date."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:73
|
||||
msgid "**Participants**"
|
||||
msgstr "**Teilnehmer**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:75
|
||||
msgid ""
|
||||
"An important part of managing your schedule is to invite others to events "
|
||||
"and track their RSVP. In this part of the edit dialog you can manage the "
|
||||
"participants of an event. Read more about this further down in the :ref"
|
||||
":`calendar-event-participants` section."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:79
|
||||
msgid "**Attachments**"
|
||||
msgstr "**Anhänge**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:81
|
||||
msgid ""
|
||||
"Sometimes a description text isn't enough to collect information for a "
|
||||
"specific event. Switch to this tab to attach files to the current event or "
|
||||
"to remove them again. Adding files works pretty much the same as "
|
||||
":ref:`attaching them to email messages <mail-compose-attachments>`: first "
|
||||
"select a file from your local disk and click *Upload* in order to attach it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:86
|
||||
msgid ""
|
||||
"Don't forget to finally save the changes by clicking *Save* in the event "
|
||||
"edit dialog. Even switching back and forth the tabs will not yet save the "
|
||||
"data."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:93
|
||||
msgid "Moving and Resizing with the Mouse"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:99
|
||||
msgid ""
|
||||
"If an existing event shall be rescheduled to another time or date, you'll "
|
||||
"find it handy to do that directly in the calendar view without opening the "
|
||||
"edit form. Simply grab the event block with the mouse and move it to the new"
|
||||
" date or time. Release the mouse button to complete."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:103
|
||||
msgid ""
|
||||
"In *Month* and *Day* view, the event blocks have a small handle at the "
|
||||
"bottom. Drag this with the mouse in order to resize the event meaning to "
|
||||
"adjust its duration."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:111
|
||||
msgid "Get Notifications"
|
||||
msgstr "Benachrichtigungen holen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:117
|
||||
msgid ""
|
||||
"While logged in to the webmail, event reminders will be displayed with pop-"
|
||||
"up boxes at the specified time before the event starts. You can specify if "
|
||||
"you want to see alarms for every calendar individually. Enable or disable "
|
||||
"reminders in :ref:`Calendar Settings <calendar-edit-properties>` from the "
|
||||
":ref:`calendar-lists`."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:122
|
||||
msgid "Dismiss or Snooze Reminders"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:124
|
||||
msgid ""
|
||||
"When a reminder box pops up, you can either dismiss the notification for all"
|
||||
" events or each one individually. When dismissed, no further reminders will "
|
||||
"be displayed. Choose a time from the *Snooze* menu to get another reminder "
|
||||
"after the selected time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:133
|
||||
msgid "Inviting Other People"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:135
|
||||
msgid ""
|
||||
"If you need to set up a meeting, and keep track of who's attending and who "
|
||||
"is not, the calendar can do this as well as you to automatically send "
|
||||
"invitations and read their responses."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:138
|
||||
msgid ""
|
||||
"When creating a new event, switch to the *Participants* tab. You're already "
|
||||
"listed as the organizer of the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:142
|
||||
msgid ""
|
||||
"Enter the name or email address of the person to invite. Contacts from the "
|
||||
"address book are suggested as you type. In order to send invitations, make "
|
||||
"sure the entered contact has an email address. Type it in the form ``Person "
|
||||
"Name <email@address.com>``."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:145
|
||||
msgid "Click *Add participant* to add the person to the list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:146
|
||||
msgid "Select a *Role* (e.g. required or optional) for this person."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:147
|
||||
msgid "Repeat 1-3 for further participants."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:148
|
||||
msgid ""
|
||||
"Check the *Send invitations* box if the application should send out "
|
||||
"invitation emails."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:150
|
||||
msgid ""
|
||||
"Invitations will be sent out when you click *Save* and the event is created."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:158
|
||||
msgid "Find Availability"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:160
|
||||
msgid ""
|
||||
"Once all the participants are added to the list, you see the individual "
|
||||
"availability status for each one of them, given that this information is "
|
||||
"available. In case not everybody is free, click the *Find availability...* "
|
||||
"button to open the scheduling dialog. In that dialog, detailed availability "
|
||||
"information for all participants is displayed. Use the *Previous/Next Slot* "
|
||||
"buttons to find the next time slot where all required participants are "
|
||||
"available. Or drag the gray area representing the event duration with the "
|
||||
"mouse to manually select a free slot."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:166
|
||||
msgid ""
|
||||
"Click *Select* to copy the rescheduled date/time back into the event form "
|
||||
"and to close this dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:170
|
||||
msgid "Receive Event Invitations"
|
||||
msgstr "Termineinladungen erhalten"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:172
|
||||
msgid ""
|
||||
"How to process incoming event invitations is described in chapter :ref"
|
||||
":`calendar-invitations`."
|
||||
msgstr ""
|
267
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/overview.po
Normal file
267
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/overview.po
Normal file
|
@ -0,0 +1,267 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:6
|
||||
msgid "Overview"
|
||||
msgstr "Übersicht"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:8
|
||||
msgid ""
|
||||
"The screen of the calendar module presents the following parts: the "
|
||||
":ref:`Calendar View <calendar-view>` itself, a small :ref:`Calendar Widget "
|
||||
"<calendar-minicalendar>` the :ref:`calendar-lists` as well as the usual "
|
||||
"toolbar and search box."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:17
|
||||
msgid "Calendar View"
|
||||
msgstr "Kalenderansicht"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:19
|
||||
msgid ""
|
||||
"The central part of the screen displays the schedule with events from the "
|
||||
"active calendars matching the current date range. The active date range is "
|
||||
"displayed above the calendar in the toolbar area and can be moved forward or"
|
||||
" backward in time using the arrow buttons right next to the title."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:27
|
||||
msgid "Change Views"
|
||||
msgstr "Ansichten ändern"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:29
|
||||
msgid ""
|
||||
"You can view your calendar events in Day, Week, Month or Agenda view. Toggle"
|
||||
" the view mode using the toolbar buttons above the calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:34
|
||||
msgid "**Day**"
|
||||
msgstr "**Tag**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:33
|
||||
msgid ""
|
||||
"All events of a single day appear at the time the begin and spawn a box "
|
||||
"until their end time. The time scale is displayed in the left side of the "
|
||||
"view. All-day events appear at the top."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:37
|
||||
msgid "**Week**"
|
||||
msgstr "**Woche**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:37
|
||||
msgid ""
|
||||
"Similar to the day view but lists all days of the week horizontally. All-day"
|
||||
" events again appear at the top."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:42
|
||||
msgid "**Month**"
|
||||
msgstr "**Monat**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:40
|
||||
msgid ""
|
||||
"Shows all events of the selected month at a time. Each event only appears as"
|
||||
" a single line and if there are more events in a day than can be listed, a "
|
||||
"number at the bottom of the day field indicates that. Click that link to "
|
||||
"open a zoomed view of that single day."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:47
|
||||
msgid "**Agenda**"
|
||||
msgstr "**Tagesordnung**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:45
|
||||
msgid ""
|
||||
"The agenda view shows a list of events for the selected range in a "
|
||||
"chronological order and divided by headers denoting either days, weeks or "
|
||||
"months. Both the number of the days considered for the listing as well as "
|
||||
"the mode how to divide list can be adjusted with the controls at the bottom "
|
||||
"of the agenda view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:51
|
||||
msgid ""
|
||||
"For all the views, the small calendar on the left highlights the currently "
|
||||
"listed days."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:54
|
||||
msgid "Go to a specific Date"
|
||||
msgstr "Zu einem bestimmten Datum gehen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:56
|
||||
msgid ""
|
||||
"Use the mini calendar widget on the left to jump to a specific date. Simply "
|
||||
"click a date and the date range of the current view moves to include the "
|
||||
"selected day. The left/right arrows in the mini calendar's header quickly "
|
||||
"cycle through the months. Use the drop-down menus hidden under the month and"
|
||||
" year display in the widget header to directly jump to another month or "
|
||||
"year."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:60
|
||||
msgid ""
|
||||
"A shortcut to switch the calendar view back to today or the current week "
|
||||
"provides the *Today* button located in the toolbar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:64
|
||||
msgid "Show Event Details"
|
||||
msgstr "Termindetails anzeigen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:66
|
||||
msgid ""
|
||||
"Click an event box in the calendar view to open a dialog displaying all "
|
||||
"details of the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:70
|
||||
msgid "Searching Events"
|
||||
msgstr "Terminsuche"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:72
|
||||
msgid ""
|
||||
"The search box above the calendar view lets you quickly get a list of events"
|
||||
" matching the entered keyword in either the title, location, description or "
|
||||
"attendees. Enter the search term into the box and press <Enter> on your "
|
||||
"keyboard to start the search. The calendar view will switch to *Agenda* mode"
|
||||
" in order to display a list of matches. Of course you can switch the view "
|
||||
"again to display the search results differently."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:77
|
||||
msgid ""
|
||||
"Events are searched within a certain date reange only which is displayed "
|
||||
"above the calendar view. Use the mini calendar widget or the arrow toolbar "
|
||||
"buttons and the range selector below the agenda view to adjust the time "
|
||||
"frame to search in."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:81
|
||||
msgid ""
|
||||
"For searching as well as for normal views, only events from active calendars"
|
||||
" are displayed. Use the checkboxes in the :ref:`calendar-lists` to add or "
|
||||
"hide events from different calendars."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:84
|
||||
msgid ""
|
||||
"Reset the search by clicking the *Reset search* icon on the right border of "
|
||||
"the search box. This will also switch the calendar view to whatever mode you"
|
||||
" had before the search."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:93
|
||||
msgid "Calendars List"
|
||||
msgstr "Kalenderliste"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:95
|
||||
msgid ""
|
||||
"Events can be organized in different calendars which are all displayed in "
|
||||
"the lower left list. Use the checkboxes in that list to show or hide events "
|
||||
"from the specific calendars in the main view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:100
|
||||
msgid ""
|
||||
"Beside your personal calendars, the list also displays calendars shared by "
|
||||
"other users or ones that are shared amongst your workgroup. Small icons in "
|
||||
"the list give a hint about the origin and some of them are possibly read-"
|
||||
"only which is denoted with a small lock icon."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:106
|
||||
msgid "Colorized Events"
|
||||
msgstr "Eingefärbte Termine"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:108
|
||||
msgid ""
|
||||
"In order to better distinguish the events from various calendars in the "
|
||||
"calendar view, calendars have a color assigned which is used to colorize the"
|
||||
" events on the screen. Check the :ref:`settings-calendar` for more advanced "
|
||||
"options how to colorize events in the calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:112
|
||||
msgid ""
|
||||
"You can create any number of calendars to store all your events and name "
|
||||
"them individually."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:116
|
||||
msgid "Create a New Calendar"
|
||||
msgstr "Einen neuen Kalender erstellen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:118
|
||||
msgid "Click the + icon in the calendars list footer."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:119
|
||||
msgid "In the dialog, give the new calendar a unique name and assign a color."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:120
|
||||
msgid "Click *Save* to create it."
|
||||
msgstr "Klicken Sie auf *Speichern* zum Erstellen."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:122
|
||||
msgid "The calendar view will reload and list the new calendar on the left."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:127
|
||||
msgid "Edit Calendar Names and Settings"
|
||||
msgstr "Kalendernamen und Einstellungen bearbeiten"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:129
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:137
|
||||
msgid "Select the calendar to edit by clicking it in the list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:130
|
||||
msgid ""
|
||||
"Click the gear icon in the calendars list footer and select *Edit* from the "
|
||||
"options menu."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:131
|
||||
msgid "Adjust name, color or reminders settings in the edit dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:132
|
||||
msgid "Click *Save* to finally update the calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:135
|
||||
msgid "Remove entire Calendars"
|
||||
msgstr "Gesamte Kalender entfernen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:138
|
||||
msgid ""
|
||||
"Click the gear icon in the calendars list footer and select *Remove* from "
|
||||
"the options menu."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:139
|
||||
msgid ""
|
||||
"After a confirmation dialog, the selected calendar with all its events will "
|
||||
"be deleted. Caution: This action cannot be undone!"
|
||||
msgstr ""
|
179
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/settings.po
Normal file
179
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/settings.po
Normal file
|
@ -0,0 +1,179 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:8
|
||||
msgid "Calendar Preferences"
|
||||
msgstr "Kalendereinstellungen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:10
|
||||
msgid ""
|
||||
"The settings for the calendar module are listed in *Settings > Preferences* "
|
||||
"and are grouped by the following sections:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:14
|
||||
msgid "Main Options"
|
||||
msgstr "Hauptoptionen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:17
|
||||
msgid "**Default view**"
|
||||
msgstr "**Standardansicht**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:17
|
||||
msgid ""
|
||||
"Lets you select the :ref:`calendar-view` which is visible by default when "
|
||||
"opening the calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:21
|
||||
msgid "**Time slots per hour**"
|
||||
msgstr "**Zeitfenster pro Stunde**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:20
|
||||
msgid ""
|
||||
"How one hour in day and week view is divided vertically. If for example set "
|
||||
"to 2, you will see events displayed in 30 minute blocks."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:24
|
||||
msgid "**First weekday**"
|
||||
msgstr "**Erster Wochentag**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:24
|
||||
msgid "Which weekday to begin the week view with."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:28
|
||||
msgid "**First hour to show**"
|
||||
msgstr "**Erste angezeigte Stunde**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:27
|
||||
msgid ""
|
||||
"When opening the day or week view, the listing of events starts at this "
|
||||
"time. Of course all hours of a day are visible by scrolling further up."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:33
|
||||
msgid "**Working hours**"
|
||||
msgstr "**Arbeitszeiten**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:33
|
||||
msgid ""
|
||||
"This time range will be used in the :ref:`availability finder <calendar-"
|
||||
"availability-finder>` when automatically selecting free slots for a meeting."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:40
|
||||
msgid "**Event coloring**"
|
||||
msgstr "**Einfärbung der Termine**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:37
|
||||
msgid ""
|
||||
"The coloring of the title of an event block (\"outline\") as well as the "
|
||||
"background color of the box (\"content\") in day and week views is "
|
||||
"influenced by the color of the calendar an event belongs to and/or the color"
|
||||
" of the category it is assigned to. This setting lets you control which "
|
||||
"source for coloring to use or if you even want a combined coloring that "
|
||||
"reflects both, the assignment of calendars and categories."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:43
|
||||
msgid "**Default reminder setting**"
|
||||
msgstr "**Standard-Erinnerungseinstellung**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:43
|
||||
msgid ""
|
||||
"When creating new events, they'll have this type of reminder set by default."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:46
|
||||
msgid "**Default reminder time**"
|
||||
msgstr "**Standard-Erinnerungszeit**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:46
|
||||
msgid "When enabling reminders in a new event, use this preset as default."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:51
|
||||
msgid "**Create new events in**"
|
||||
msgstr "**Neue Termine erstellen in**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:49
|
||||
msgid ""
|
||||
"This is the default selection for saving new events. Used in both the "
|
||||
"calendar view and when accepting event invitations."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:54
|
||||
msgid "Categories"
|
||||
msgstr "Kategorien"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:56
|
||||
msgid ""
|
||||
"This block allows the management of categories used in your calendar and "
|
||||
"assign colors to them. Use the color picker to change the color by clicking "
|
||||
"on the square color box in the categories list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:59
|
||||
msgid ""
|
||||
"To add a new category, enter its unique name into the text box below the "
|
||||
"listing and then click the *Add category** button to add it. Note that you "
|
||||
"still need to click the *Save* button at the bottom of the preferences panel"
|
||||
" in order to finally register the new categories."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:65
|
||||
msgid "Birthdays Calendar"
|
||||
msgstr "Geburtstagskalender"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:67
|
||||
msgid ""
|
||||
"The calendar view and also display birthdays from contacts saved in your "
|
||||
"address book. This block controls how this is done."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:71
|
||||
msgid "**Display birthdays calendar**"
|
||||
msgstr "**Geburtstagskalender anzeigen**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:71
|
||||
msgid "Enable the birthdays calendar feature with this checkbox."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:74
|
||||
msgid "**From these address books**"
|
||||
msgstr "**Von diesen Adressbüchern**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:74
|
||||
msgid ""
|
||||
"Choose from which address books you'd like to see birthdays in your "
|
||||
"calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:80
|
||||
msgid "**Show reminders**"
|
||||
msgstr "**Erinnerungen anzeigen**"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:77
|
||||
msgid ""
|
||||
"This option controls whether and when to display reminder notifications for "
|
||||
"upcoming birthdays."
|
||||
msgstr ""
|
102
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/sharing.po
Normal file
102
plugins/calendar/helpdocs/locale/de/LC_MESSAGES/sharing.po
Normal file
|
@ -0,0 +1,102 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
# Mads <mads@batmads.com>, 2016
|
||||
# Max Hellwig <max.hellwig@translating-energy.de>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Max Hellwig <max.hellwig@translating-energy.de>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:11
|
||||
msgid "Sharing Calendars"
|
||||
msgstr "Kalender teilen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:13
|
||||
msgid ""
|
||||
"For collaboration, sharing calendars is an important feature. In the "
|
||||
":ref:`overview <calendar-lists>`, we have already learned how calendars "
|
||||
"others share with you appear in the calendars list. The following now "
|
||||
"explains how to make personal calendars accessible to fellow users."
|
||||
msgstr "Kalender zu teilen ist ein wichtiger Teil der Zusammenarbeit. In der :ref:`Übersicht <calendar-lists>` haben wir schon gelernt, wie Kalender, die von anderen mit Ihnen teilen, in der Kalenderliste aussehen. Im Folgenden wird jetzt erklärt wie man persönliche Kalender für andere Benutzer zugänglich macht."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:19
|
||||
msgid "Share a Calendar with others"
|
||||
msgstr "Einen Kalender mit Anderen teilen"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:21
|
||||
msgid ""
|
||||
"Sharing is controlled through the :ref:`Calendar Settings Dialog <calendar-"
|
||||
"edit-properties>`. Double-click a calendar in the list on the left and then "
|
||||
"select the *Sharing* tab at the top of the dialog box:"
|
||||
msgstr "Das Teilen wird über den :ref:`Kalendereinstellungen-Dialog <calendar-edit-properties>` gesteuert. Doppelklicken Sie einen Kalenders in der Liste links und wählen dann den *Teilen*-Reiter im oberen Teil des Dialogfensters aus:"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:27
|
||||
msgid ""
|
||||
"The table displays who already has permission to see and modify the selected"
|
||||
" calendar. In order to share the calendar with a new user do"
|
||||
msgstr "Die Tabelle zeigt an, wer schon Erlaubnis hat, den ausgewählten Kalender zu sehen und verändern. Um den Kalender mit einem neuen Benutzer zu teilen,"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:30
|
||||
msgid "Click the *Add entry* button (+) in the table footer"
|
||||
msgstr "klicken Sie auf die *Eintrag hinzufügen*-Schaltfläche (+) in der Fußzeile der Tabelle."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:31
|
||||
msgid ""
|
||||
"Enter the username or choose one from the autocompletion menu that appears "
|
||||
"when you start typing. Instead of a specific user, permissons can be granted"
|
||||
" for all users or guests."
|
||||
msgstr "Geben Sie den Benutzername ein oder wählen Sie einen aus dem Autovervollständigungs-Menü aus, das erscheint, wenn Sie zu tippen beginnen. Statt einem bestimmten Benutzer können Erlaubnisse auch allen Benutzern oder Gästen gewährt werden."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:33
|
||||
msgid "Select the access rights you want to grant for the user"
|
||||
msgstr "Wählen Sie die Zugangsberechtigungen, die Sie dem Benutzer gewähren wollen."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:34
|
||||
msgid "Click *Save* to add the permission"
|
||||
msgstr "Klicken Sie auf *Speichern*, um die Erlaubnis hinzuzufügen."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:36
|
||||
msgid ""
|
||||
"Double-click an entry to edit the permissions for a particular user or "
|
||||
"group."
|
||||
msgstr "Doppelklicken Sie einen Eintrag, um Erlaubnisse für einen bestimmten Benutzer oder eine bestimmte Gruppe zu bearbeiten."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:38
|
||||
msgid ""
|
||||
"For removing existing permissions, select the according entry in the list "
|
||||
"and then choose *Delete* from the menu behind the gear icon in the footer of"
|
||||
" the list."
|
||||
msgstr "Um bestehende Freigaben zu entfernen, wählen Sie den entsprechenden Eintrag in der Liste aus und wählen dann *Löschen* aus dem Menü hinter dem Zahnradicon in der Fußzeile der Liste aus."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:43
|
||||
msgid "Subscribe to Shared Calendars"
|
||||
msgstr "Geteilte Kalender abonnieren"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:45
|
||||
msgid ""
|
||||
"Calendars shared by others are not showing up right away in the list within "
|
||||
"the calendar view. Switch to :ref:`Settings > Folders <settings-folders>` to"
|
||||
" see all resources you can access. There's a shortcut to this: click *Manage"
|
||||
" folders* in the options menu behind the gear icon located the footer of the"
|
||||
" calendars list."
|
||||
msgstr "Von anderen geteilte Kalender tauchen nicht sofort in der Liste innerhalb der Kalenderansicht auf. Wechseln Sie zu :ref:`Einstellungen > Ordner <settings-folders>`, um alle Hilfsmittel zu sehen, auf die Sie zugreifen können. Es gibt auch einen kürzeren Weg dorthin: Klicken Sie auf *Ordner verwalten* im Optionsmenü hinter dem Zahnradicon in der Fußzeile der Kalenderliste."
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:50
|
||||
msgid ""
|
||||
"In order to make a shared calendar appear in the calendars list, locate it "
|
||||
"in the folder manager and check the *Subscribed* mark in the list. Only "
|
||||
"subscribed calendars are visible in the calendar view."
|
||||
msgstr "Um einen geteilten Kalender in der Kalenderliste erscheinen zu lassen, suchen Sie ihn in der Ordnerverwaltung und versehen Sie das *Abonniert*-Kästchen in der Liste mit einem Häkchen. Nur abonnierte Kalender sind in der Kalenderansicht sichtbar."
|
|
@ -3,26 +3,23 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
# Gerd Seyfarth <mail@netsecond.net>, 2015
|
||||
# Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:9
|
||||
msgid "Import/Export"
|
||||
msgstr "Importieren/Exportieren"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:11
|
||||
msgid ""
|
||||
|
@ -32,7 +29,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:16
|
||||
msgid "Importing Events"
|
||||
msgstr "Termine werden importiert"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:18
|
||||
msgid "This is how to add events from an |iCal|_ (.ics) file:"
|
||||
|
@ -40,15 +37,15 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:20
|
||||
msgid "Click the *Import* toolbar button in the calendar view."
|
||||
msgstr "Klicken Sie in der Kalenderansicht auf die Werkzeugleistenschaltfläche *Import*."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:21
|
||||
msgid "Then select the file to import from your computer's hard drive."
|
||||
msgstr "Dann die Datei für den Import von Ihrer Festplatte wählen."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:22
|
||||
msgid "Select the calendar to import the events to."
|
||||
msgstr "Wählen Sie den Kalender zum Importieren der Termine aus."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:23
|
||||
msgid "Select the threshold for old events to be imported."
|
||||
|
@ -56,7 +53,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:24
|
||||
msgid "Click *Import* and wait for the upload to finish."
|
||||
msgstr "Klicken Sie auf *Import* und warten Sie, bis das Hochladen abgeschlossen ist."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:26
|
||||
msgid ""
|
||||
|
@ -66,7 +63,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:34
|
||||
msgid "Exporting Events"
|
||||
msgstr "Termine werden exportiert"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:36
|
||||
msgid ""
|
||||
|
@ -76,11 +73,11 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:38
|
||||
msgid "Click the *Export* toolbar button in the calendar view."
|
||||
msgstr "Klicken Sie in der Kalenderansicht auf die Werkzeugleistenschaltfläche *Export*."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:39
|
||||
msgid "Select the calendar where events should be exported from."
|
||||
msgstr "Kalender wählen dessen Termine exportiert werden sollen."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:40
|
||||
msgid ""
|
||||
|
@ -90,7 +87,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:41
|
||||
msgid "Click the *Export* button to start the export."
|
||||
msgstr "Klicken Sie auf die Schaltfläche *Export*, um den Export zu starten."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:42
|
||||
msgid ""
|
||||
|
|
|
@ -3,27 +3,26 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/index.rst:9
|
||||
msgid "Calendar"
|
||||
msgstr "Kalender"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/index.rst:11
|
||||
msgid ""
|
||||
"The *Calendar* gives you access to your personal and shared calendar and "
|
||||
"scheduling functions."
|
||||
msgstr "Der *Kalender* ermöglicht Ihnen den Zugriff auf Ihren persönlichen und den gemeinsamen Kalender sowie auf Planungsfunktionen."
|
||||
msgstr ""
|
||||
|
|
|
@ -3,19 +3,18 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:8
|
||||
|
@ -32,7 +31,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:17
|
||||
msgid "Receive Event Invitations"
|
||||
msgstr "Termineinladungen erhalten"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:19
|
||||
msgid ""
|
||||
|
@ -42,7 +41,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:25
|
||||
msgid "Accept/Decline Invitations"
|
||||
msgstr "Einladungen annehmen/ablehnen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:27
|
||||
msgid ""
|
||||
|
@ -75,7 +74,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:43
|
||||
msgid "Process Invitation Replies"
|
||||
msgstr "Einladungsantworten abarbeiten"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:45
|
||||
msgid ""
|
||||
|
|
|
@ -3,19 +3,18 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:7
|
||||
|
@ -30,7 +29,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:13
|
||||
msgid "Add Events to a Calendar"
|
||||
msgstr "Termine zum Kalender hinzufügen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:18
|
||||
msgid "**Via toolbar**"
|
||||
|
@ -65,11 +64,11 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:33
|
||||
msgid "Edit and Reschedule Events"
|
||||
msgstr "Termine bearbeiten und verlegen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:36
|
||||
msgid "The Event Dialog"
|
||||
msgstr "Der Termindialog"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:38
|
||||
msgid ""
|
||||
|
@ -86,7 +85,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:44
|
||||
msgid "**Summary**"
|
||||
msgstr "**Zusammenfassung**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:46
|
||||
msgid ""
|
||||
|
@ -188,7 +187,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:73
|
||||
msgid "**Participants**"
|
||||
msgstr "**Teilnehmer**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:75
|
||||
msgid ""
|
||||
|
@ -200,7 +199,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:79
|
||||
msgid "**Attachments**"
|
||||
msgstr "**Anhänge**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:81
|
||||
msgid ""
|
||||
|
@ -239,7 +238,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:111
|
||||
msgid "Get Notifications"
|
||||
msgstr "Benachrichtigungen holen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:117
|
||||
msgid ""
|
||||
|
@ -334,7 +333,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:170
|
||||
msgid "Receive Event Invitations"
|
||||
msgstr "Termineinladungen erhalten"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:172
|
||||
msgid ""
|
||||
|
|
|
@ -3,24 +3,23 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:6
|
||||
msgid "Overview"
|
||||
msgstr "Übersicht"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:8
|
||||
msgid ""
|
||||
|
@ -32,7 +31,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:17
|
||||
msgid "Calendar View"
|
||||
msgstr "Kalenderansicht"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:19
|
||||
msgid ""
|
||||
|
@ -44,7 +43,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:27
|
||||
msgid "Change Views"
|
||||
msgstr "Ansichten ändern"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:29
|
||||
msgid ""
|
||||
|
@ -54,7 +53,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:34
|
||||
msgid "**Day**"
|
||||
msgstr "**Tag**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:33
|
||||
msgid ""
|
||||
|
@ -65,7 +64,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:37
|
||||
msgid "**Week**"
|
||||
msgstr "**Woche**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:37
|
||||
msgid ""
|
||||
|
@ -75,7 +74,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:42
|
||||
msgid "**Month**"
|
||||
msgstr "**Monat**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:40
|
||||
msgid ""
|
||||
|
@ -87,7 +86,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:47
|
||||
msgid "**Agenda**"
|
||||
msgstr "**Tagesordnung**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:45
|
||||
msgid ""
|
||||
|
@ -106,7 +105,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:54
|
||||
msgid "Go to a specific Date"
|
||||
msgstr "Zu einem bestimmten Datum gehen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:56
|
||||
msgid ""
|
||||
|
@ -126,7 +125,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:64
|
||||
msgid "Show Event Details"
|
||||
msgstr "Termindetails anzeigen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:66
|
||||
msgid ""
|
||||
|
@ -136,7 +135,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:70
|
||||
msgid "Searching Events"
|
||||
msgstr "Terminsuche"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:72
|
||||
msgid ""
|
||||
|
@ -172,7 +171,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:93
|
||||
msgid "Calendars List"
|
||||
msgstr "Kalenderliste"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:95
|
||||
msgid ""
|
||||
|
@ -191,7 +190,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:106
|
||||
msgid "Colorized Events"
|
||||
msgstr "Eingefärbte Termine"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:108
|
||||
msgid ""
|
||||
|
@ -209,7 +208,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:116
|
||||
msgid "Create a New Calendar"
|
||||
msgstr "Einen neuen Kalender erstellen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:118
|
||||
msgid "Click the + icon in the calendars list footer."
|
||||
|
@ -221,7 +220,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:120
|
||||
msgid "Click *Save* to create it."
|
||||
msgstr "Klicken Sie auf *Speichern* zum Erstellen."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:122
|
||||
msgid "The calendar view will reload and list the new calendar on the left."
|
||||
|
@ -229,7 +228,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:127
|
||||
msgid "Edit Calendar Names and Settings"
|
||||
msgstr "Kalendernamen und Einstellungen bearbeiten"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:129
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:137
|
||||
|
@ -252,7 +251,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:135
|
||||
msgid "Remove entire Calendars"
|
||||
msgstr "Gesamte Kalender entfernen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:138
|
||||
msgid ""
|
||||
|
|
|
@ -3,24 +3,23 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:34+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:8
|
||||
msgid "Calendar Preferences"
|
||||
msgstr "Kalendereinstellungen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:10
|
||||
msgid ""
|
||||
|
@ -30,11 +29,11 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:14
|
||||
msgid "Main Options"
|
||||
msgstr "Hauptoptionen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:17
|
||||
msgid "**Default view**"
|
||||
msgstr "**Standardansicht**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:17
|
||||
msgid ""
|
||||
|
@ -44,7 +43,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:21
|
||||
msgid "**Time slots per hour**"
|
||||
msgstr "**Zeitfenster pro Stunde**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:20
|
||||
msgid ""
|
||||
|
@ -54,7 +53,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:24
|
||||
msgid "**First weekday**"
|
||||
msgstr "**Erster Wochentag**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:24
|
||||
msgid "Which weekday to begin the week view with."
|
||||
|
@ -62,7 +61,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:28
|
||||
msgid "**First hour to show**"
|
||||
msgstr "**Erste angezeigte Stunde**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:27
|
||||
msgid ""
|
||||
|
@ -72,7 +71,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:33
|
||||
msgid "**Working hours**"
|
||||
msgstr "**Arbeitszeiten**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:33
|
||||
msgid ""
|
||||
|
@ -82,7 +81,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:40
|
||||
msgid "**Event coloring**"
|
||||
msgstr "**Einfärbung der Termine**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:37
|
||||
msgid ""
|
||||
|
@ -96,7 +95,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:43
|
||||
msgid "**Default reminder setting**"
|
||||
msgstr "**Standard-Erinnerungseinstellung**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:43
|
||||
msgid ""
|
||||
|
@ -105,7 +104,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:46
|
||||
msgid "**Default reminder time**"
|
||||
msgstr "**Standard-Erinnerungszeit**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:46
|
||||
msgid "When enabling reminders in a new event, use this preset as default."
|
||||
|
@ -113,7 +112,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:51
|
||||
msgid "**Create new events in**"
|
||||
msgstr "**Neue Termine erstellen in**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:49
|
||||
msgid ""
|
||||
|
@ -123,7 +122,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:54
|
||||
msgid "Categories"
|
||||
msgstr "Kategorien"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:56
|
||||
msgid ""
|
||||
|
@ -142,7 +141,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:65
|
||||
msgid "Birthdays Calendar"
|
||||
msgstr "Geburtstagskalender"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:67
|
||||
msgid ""
|
||||
|
@ -152,7 +151,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:71
|
||||
msgid "**Display birthdays calendar**"
|
||||
msgstr "**Geburtstagskalender anzeigen**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:71
|
||||
msgid "Enable the birthdays calendar feature with this checkbox."
|
||||
|
@ -160,7 +159,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:74
|
||||
msgid "**From these address books**"
|
||||
msgstr "**Von diesen Adressbüchern**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:74
|
||||
msgid ""
|
||||
|
@ -170,7 +169,7 @@ msgstr ""
|
|||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:80
|
||||
msgid "**Show reminders**"
|
||||
msgstr "**Erinnerungen anzeigen**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:77
|
||||
msgid ""
|
||||
|
|
|
@ -3,26 +3,23 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
# Mads <mads@batmads.com>, 2016
|
||||
# Max Hellwig <max.hellwig@translating-energy.de>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Max Hellwig <max.hellwig@translating-energy.de>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:34+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:11
|
||||
msgid "Sharing Calendars"
|
||||
msgstr "Kalender teilen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:13
|
||||
msgid ""
|
||||
|
@ -30,60 +27,60 @@ msgid ""
|
|||
":ref:`overview <calendar-lists>`, we have already learned how calendars "
|
||||
"others share with you appear in the calendars list. The following now "
|
||||
"explains how to make personal calendars accessible to fellow users."
|
||||
msgstr "Kalender zu teilen ist ein wichtiger Teil der Zusammenarbeit. In der :ref:`Übersicht <calendar-lists>` haben wir schon gelernt, wie Kalender, die von anderen mit Ihnen teilen, in der Kalenderliste aussehen. Im Folgenden wird jetzt erklärt wie man persönliche Kalender für andere Benutzer zugänglich macht."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:19
|
||||
msgid "Share a Calendar with others"
|
||||
msgstr "Einen Kalender mit Anderen teilen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:21
|
||||
msgid ""
|
||||
"Sharing is controlled through the :ref:`Calendar Settings Dialog <calendar-"
|
||||
"edit-properties>`. Double-click a calendar in the list on the left and then "
|
||||
"select the *Sharing* tab at the top of the dialog box:"
|
||||
msgstr "Das Teilen wird über den :ref:`Kalendereinstellungen-Dialog <calendar-edit-properties>` gesteuert. Doppelklicken Sie einen Kalenders in der Liste links und wählen dann den *Teilen*-Reiter im oberen Teil des Dialogfensters aus:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:27
|
||||
msgid ""
|
||||
"The table displays who already has permission to see and modify the selected"
|
||||
" calendar. In order to share the calendar with a new user do"
|
||||
msgstr "Die Tabelle zeigt an, wer schon Erlaubnis hat, den ausgewählten Kalender zu sehen und verändern. Um den Kalender mit einem neuen Benutzer zu teilen,"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:30
|
||||
msgid "Click the *Add entry* button (+) in the table footer"
|
||||
msgstr "klicken Sie auf die *Eintrag hinzufügen*-Schaltfläche (+) in der Fußzeile der Tabelle."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:31
|
||||
msgid ""
|
||||
"Enter the username or choose one from the autocompletion menu that appears "
|
||||
"when you start typing. Instead of a specific user, permissons can be granted"
|
||||
" for all users or guests."
|
||||
msgstr "Geben Sie den Benutzername ein oder wählen Sie einen aus dem Autovervollständigungs-Menü aus, das erscheint, wenn Sie zu tippen beginnen. Statt einem bestimmten Benutzer können Erlaubnisse auch allen Benutzern oder Gästen gewährt werden."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:33
|
||||
msgid "Select the access rights you want to grant for the user"
|
||||
msgstr "Wählen Sie die Zugangsberechtigungen, die Sie dem Benutzer gewähren wollen."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:34
|
||||
msgid "Click *Save* to add the permission"
|
||||
msgstr "Klicken Sie auf *Speichern*, um die Erlaubnis hinzuzufügen."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:36
|
||||
msgid ""
|
||||
"Double-click an entry to edit the permissions for a particular user or "
|
||||
"group."
|
||||
msgstr "Doppelklicken Sie einen Eintrag, um Erlaubnisse für einen bestimmten Benutzer oder eine bestimmte Gruppe zu bearbeiten."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:38
|
||||
msgid ""
|
||||
"For removing existing permissions, select the according entry in the list "
|
||||
"and then choose *Delete* from the menu behind the gear icon in the footer of"
|
||||
" the list."
|
||||
msgstr "Um bestehende Freigaben zu entfernen, wählen Sie den entsprechenden Eintrag in der Liste aus und wählen dann *Löschen* aus dem Menü hinter dem Zahnradicon in der Fußzeile der Liste aus."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:43
|
||||
msgid "Subscribe to Shared Calendars"
|
||||
msgstr "Geteilte Kalender abonnieren"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:45
|
||||
msgid ""
|
||||
|
@ -92,11 +89,11 @@ msgid ""
|
|||
" see all resources you can access. There's a shortcut to this: click *Manage"
|
||||
" folders* in the options menu behind the gear icon located the footer of the"
|
||||
" calendars list."
|
||||
msgstr "Von anderen geteilte Kalender tauchen nicht sofort in der Liste innerhalb der Kalenderansicht auf. Wechseln Sie zu :ref:`Einstellungen > Ordner <settings-folders>`, um alle Hilfsmittel zu sehen, auf die Sie zugreifen können. Es gibt auch einen kürzeren Weg dorthin: Klicken Sie auf *Ordner verwalten* im Optionsmenü hinter dem Zahnradicon in der Fußzeile der Kalenderliste."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:50
|
||||
msgid ""
|
||||
"In order to make a shared calendar appear in the calendars list, locate it "
|
||||
"in the folder manager and check the *Subscribed* mark in the list. Only "
|
||||
"subscribed calendars are visible in the calendar view."
|
||||
msgstr "Um einen geteilten Kalender in der Kalenderliste erscheinen zu lassen, suchen Sie ihn in der Ordnerverwaltung und versehen Sie das *Abonniert*-Kästchen in der Liste mit einem Häkchen. Nur abonnierte Kalender sind in der Kalenderansicht sichtbar."
|
||||
msgstr ""
|
||||
|
|
|
@ -0,0 +1,96 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:9
|
||||
msgid "Import/Export"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:11
|
||||
msgid ""
|
||||
"Event data is usually exchanged using the standard |iCal|_ format which is "
|
||||
"supported for import and export."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:16
|
||||
msgid "Importing Events"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:18
|
||||
msgid "This is how to add events from an |iCal|_ (.ics) file:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:20
|
||||
msgid "Click the *Import* toolbar button in the calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:21
|
||||
msgid "Then select the file to import from your computer's hard drive."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:22
|
||||
msgid "Select the calendar to import the events to."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:23
|
||||
msgid "Select the threshold for old events to be imported."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:24
|
||||
msgid "Click *Import* and wait for the upload to finish."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:26
|
||||
msgid ""
|
||||
"The calendar view will be refreshed to display the newly imported events. "
|
||||
"Verify that the according calendar is active if you don't see them."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:34
|
||||
msgid "Exporting Events"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:36
|
||||
msgid ""
|
||||
"Events from your calendars can be exported and downloaded in the |iCal|_ "
|
||||
"format."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:38
|
||||
msgid "Click the *Export* toolbar button in the calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:39
|
||||
msgid "Select the calendar where events should be exported from."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:40
|
||||
msgid ""
|
||||
"With the *Events from* selector you choose the time constraints for "
|
||||
"exporting."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:41
|
||||
msgid "Click the *Export* button to start the export."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/importexport.rst:42
|
||||
msgid ""
|
||||
"Choose where to save the exported .ics file if prompted, otherwise check the"
|
||||
" \"Downloads\" folder on your computer."
|
||||
msgstr ""
|
28
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/index.po
Normal file
28
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/index.po
Normal file
|
@ -0,0 +1,28 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/index.rst:9
|
||||
msgid "Calendar"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/index.rst:11
|
||||
msgid ""
|
||||
"The *Calendar* gives you access to your personal and shared calendar and "
|
||||
"scheduling functions."
|
||||
msgstr ""
|
103
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/invitations.po
Normal file
103
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/invitations.po
Normal file
|
@ -0,0 +1,103 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:8
|
||||
msgid "Handle Event Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:10
|
||||
msgid ""
|
||||
"In chapter :ref:`calendar-event-participants` we have learned how to invite "
|
||||
"other people to an event. This will send out invitation emails to all the "
|
||||
"participants with the event data attached. That allows one to directly "
|
||||
"accept or decline an event invitation."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:17
|
||||
msgid "Receive Event Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:19
|
||||
msgid ""
|
||||
"When the webmail system opens an invitation email with event data attached, "
|
||||
"it'll display a yellow box in the preview pane or the email view:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:25
|
||||
msgid "Accept/Decline Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:27
|
||||
msgid ""
|
||||
"Right in the box shown above, you can accept or decline the invitation by "
|
||||
"clicking the according button. This will send an automated response to the "
|
||||
"event organizer informing her about your decision and letting her update "
|
||||
"your participant status in her calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:31
|
||||
msgid ""
|
||||
"In case you accept, by either clicking *Accept* or *Maybe*, this will also "
|
||||
"copy the event into your personal calendar. The selector right next to the "
|
||||
"buttons lets you choose the right one."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:35
|
||||
msgid ""
|
||||
"The copy in your calendar now knows about the invitation and its original "
|
||||
"sender. If you now delete it from your calendar, you'll be asked whether "
|
||||
"this should send a declination message to the person who organizes the "
|
||||
"event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:39
|
||||
msgid ""
|
||||
"After acceping or declining, the email message containing the invitation can"
|
||||
" be deleted."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:43
|
||||
msgid "Process Invitation Replies"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:45
|
||||
msgid ""
|
||||
"As an organizer who has invited others to an event, you'll receive responses"
|
||||
" to the automatically sent invitations when the attendees either accept or "
|
||||
"decline them."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:48
|
||||
msgid ""
|
||||
"Such messages are also identified by the webmail system and again a yellow "
|
||||
"box appears in the message view:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:53
|
||||
msgid ""
|
||||
"By clicking the *Update the participant's status* button, the original event"
|
||||
" in your calendar will be updated with the RSVP status from the person who "
|
||||
"responded here."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/invitations.rst:56
|
||||
msgid ""
|
||||
"When you now look at the event details in the calendar view, the status "
|
||||
"icons next to each participant now displays the new status."
|
||||
msgstr ""
|
342
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/manage.po
Normal file
342
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/manage.po
Normal file
|
@ -0,0 +1,342 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:7
|
||||
msgid "Manage Your Schedule"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:9
|
||||
msgid ""
|
||||
"All functions to maintain your events are accessible from the main calendar "
|
||||
"view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:13
|
||||
msgid "Add Events to a Calendar"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:18
|
||||
msgid "**Via toolbar**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:16
|
||||
msgid ""
|
||||
"Click the *New event* button in the toolbar to get an empty dialog where you"
|
||||
" enter the :ref:`event properties <calendar-edit-event>` such as summary, "
|
||||
"date/time, reminders, etc. Click *Save* to finally add it to the selected "
|
||||
"calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:27
|
||||
msgid "**At a specific date/time**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:21
|
||||
msgid ""
|
||||
"Navigate the calendar view to the date you want to add an event for. Then "
|
||||
"mark the range of time (or dates in month view) with the mouse by pressing "
|
||||
"the button at the time the event should start and releasing it again at time"
|
||||
" it finishes. This will open the :ref:`event dialog <calendar-edit-event>` "
|
||||
"with the selected date/time range already filled in."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:26
|
||||
msgid ""
|
||||
"In order to create new all-day events, double-click the desired day in the "
|
||||
"calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:33
|
||||
msgid "Edit and Reschedule Events"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:36
|
||||
msgid "The Event Dialog"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:38
|
||||
msgid ""
|
||||
"When clicking an event in the calendar view, a dialog showing its details is"
|
||||
" displayed. Clicking the *Edit* button in that dialog opens the form to edit"
|
||||
" all properties of the selected event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:41
|
||||
msgid ""
|
||||
"The edit form is divided into different section which can be switched using "
|
||||
"the tabs on top of the dialog:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:44
|
||||
msgid "**Summary**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:46
|
||||
msgid ""
|
||||
"This general section has text fields and selectors for various properties of"
|
||||
" an event. Here's a description of all the possible values:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:49
|
||||
msgid ""
|
||||
"``Summary``: The title of the event. This is what you will see in the "
|
||||
"calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:50
|
||||
msgid "``Location``: Where the event will be taking place."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:51
|
||||
msgid "``Description``: Any text that describes the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:52
|
||||
msgid "``URL``: A link to more information about this event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:53
|
||||
msgid "``Start``: Date and time when the event starts."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:54
|
||||
msgid "``End``: Date and time when the event starts."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:55
|
||||
msgid "``all-day``: Check this if the event has no start/end time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:56
|
||||
msgid ""
|
||||
"``Reminder``: Will pop up with an notification at a the specified time "
|
||||
"before the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:57
|
||||
msgid ""
|
||||
"``Calendar``: The calendar the event is saved in. Change it to move an event"
|
||||
" from one calendar to another."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:58
|
||||
msgid ""
|
||||
"``Category``: The type of event. Categories can also be used for "
|
||||
":ref:`coloring <settings-calendar>`."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:59
|
||||
msgid ""
|
||||
"``Show me as``: The representation in your free/busy scheduling calendar "
|
||||
"visible to others."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:60
|
||||
msgid "``Priority``: The priority value of the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:61
|
||||
msgid ""
|
||||
"``Privacy``: Flag an event as \"private\" or \"confidential\" when sharing "
|
||||
"your calendar with others."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:63
|
||||
msgid "**Recurrence**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:65
|
||||
msgid ""
|
||||
"For periodically recurring event series, this tabs has the settings how an "
|
||||
"event is repeated over time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:68
|
||||
msgid "``Repeat``: Start with selecting a repetition interval (e.g. monthly)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:69
|
||||
msgid ""
|
||||
"``Every``: How often the frequency will be relevant. For example, for an "
|
||||
"event that takes place every other week choose Weekly and then 2. If you "
|
||||
"choose a frequency of weekly or monthly you can select which days of the "
|
||||
"week or month the event will occur."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:71
|
||||
msgid ""
|
||||
"``Until``: Determines the duration of the repetition. The recurrence can "
|
||||
"either run forever, for a number it times or until a specific date."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:73
|
||||
msgid "**Participants**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:75
|
||||
msgid ""
|
||||
"An important part of managing your schedule is to invite others to events "
|
||||
"and track their RSVP. In this part of the edit dialog you can manage the "
|
||||
"participants of an event. Read more about this further down in the :ref"
|
||||
":`calendar-event-participants` section."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:79
|
||||
msgid "**Attachments**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:81
|
||||
msgid ""
|
||||
"Sometimes a description text isn't enough to collect information for a "
|
||||
"specific event. Switch to this tab to attach files to the current event or "
|
||||
"to remove them again. Adding files works pretty much the same as "
|
||||
":ref:`attaching them to email messages <mail-compose-attachments>`: first "
|
||||
"select a file from your local disk and click *Upload* in order to attach it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:86
|
||||
msgid ""
|
||||
"Don't forget to finally save the changes by clicking *Save* in the event "
|
||||
"edit dialog. Even switching back and forth the tabs will not yet save the "
|
||||
"data."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:93
|
||||
msgid "Moving and Resizing with the Mouse"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:99
|
||||
msgid ""
|
||||
"If an existing event shall be rescheduled to another time or date, you'll "
|
||||
"find it handy to do that directly in the calendar view without opening the "
|
||||
"edit form. Simply grab the event block with the mouse and move it to the new"
|
||||
" date or time. Release the mouse button to complete."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:103
|
||||
msgid ""
|
||||
"In *Month* and *Day* view, the event blocks have a small handle at the "
|
||||
"bottom. Drag this with the mouse in order to resize the event meaning to "
|
||||
"adjust its duration."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:111
|
||||
msgid "Get Notifications"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:117
|
||||
msgid ""
|
||||
"While logged in to the webmail, event reminders will be displayed with pop-"
|
||||
"up boxes at the specified time before the event starts. You can specify if "
|
||||
"you want to see alarms for every calendar individually. Enable or disable "
|
||||
"reminders in :ref:`Calendar Settings <calendar-edit-properties>` from the "
|
||||
":ref:`calendar-lists`."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:122
|
||||
msgid "Dismiss or Snooze Reminders"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:124
|
||||
msgid ""
|
||||
"When a reminder box pops up, you can either dismiss the notification for all"
|
||||
" events or each one individually. When dismissed, no further reminders will "
|
||||
"be displayed. Choose a time from the *Snooze* menu to get another reminder "
|
||||
"after the selected time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:133
|
||||
msgid "Inviting Other People"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:135
|
||||
msgid ""
|
||||
"If you need to set up a meeting, and keep track of who's attending and who "
|
||||
"is not, the calendar can do this as well as you to automatically send "
|
||||
"invitations and read their responses."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:138
|
||||
msgid ""
|
||||
"When creating a new event, switch to the *Participants* tab. You're already "
|
||||
"listed as the organizer of the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:142
|
||||
msgid ""
|
||||
"Enter the name or email address of the person to invite. Contacts from the "
|
||||
"address book are suggested as you type. In order to send invitations, make "
|
||||
"sure the entered contact has an email address. Type it in the form ``Person "
|
||||
"Name <email@address.com>``."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:145
|
||||
msgid "Click *Add participant* to add the person to the list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:146
|
||||
msgid "Select a *Role* (e.g. required or optional) for this person."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:147
|
||||
msgid "Repeat 1-3 for further participants."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:148
|
||||
msgid ""
|
||||
"Check the *Send invitations* box if the application should send out "
|
||||
"invitation emails."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:150
|
||||
msgid ""
|
||||
"Invitations will be sent out when you click *Save* and the event is created."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:158
|
||||
msgid "Find Availability"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:160
|
||||
msgid ""
|
||||
"Once all the participants are added to the list, you see the individual "
|
||||
"availability status for each one of them, given that this information is "
|
||||
"available. In case not everybody is free, click the *Find availability...* "
|
||||
"button to open the scheduling dialog. In that dialog, detailed availability "
|
||||
"information for all participants is displayed. Use the *Previous/Next Slot* "
|
||||
"buttons to find the next time slot where all required participants are "
|
||||
"available. Or drag the gray area representing the event duration with the "
|
||||
"mouse to manually select a free slot."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:166
|
||||
msgid ""
|
||||
"Click *Select* to copy the rescheduled date/time back into the event form "
|
||||
"and to close this dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:170
|
||||
msgid "Receive Event Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/manage.rst:172
|
||||
msgid ""
|
||||
"How to process incoming event invitations is described in chapter :ref"
|
||||
":`calendar-invitations`."
|
||||
msgstr ""
|
266
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/overview.po
Normal file
266
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/overview.po
Normal file
|
@ -0,0 +1,266 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:6
|
||||
msgid "Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:8
|
||||
msgid ""
|
||||
"The screen of the calendar module presents the following parts: the "
|
||||
":ref:`Calendar View <calendar-view>` itself, a small :ref:`Calendar Widget "
|
||||
"<calendar-minicalendar>` the :ref:`calendar-lists` as well as the usual "
|
||||
"toolbar and search box."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:17
|
||||
msgid "Calendar View"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:19
|
||||
msgid ""
|
||||
"The central part of the screen displays the schedule with events from the "
|
||||
"active calendars matching the current date range. The active date range is "
|
||||
"displayed above the calendar in the toolbar area and can be moved forward or"
|
||||
" backward in time using the arrow buttons right next to the title."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:27
|
||||
msgid "Change Views"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:29
|
||||
msgid ""
|
||||
"You can view your calendar events in Day, Week, Month or Agenda view. Toggle"
|
||||
" the view mode using the toolbar buttons above the calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:34
|
||||
msgid "**Day**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:33
|
||||
msgid ""
|
||||
"All events of a single day appear at the time the begin and spawn a box "
|
||||
"until their end time. The time scale is displayed in the left side of the "
|
||||
"view. All-day events appear at the top."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:37
|
||||
msgid "**Week**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:37
|
||||
msgid ""
|
||||
"Similar to the day view but lists all days of the week horizontally. All-day"
|
||||
" events again appear at the top."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:42
|
||||
msgid "**Month**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:40
|
||||
msgid ""
|
||||
"Shows all events of the selected month at a time. Each event only appears as"
|
||||
" a single line and if there are more events in a day than can be listed, a "
|
||||
"number at the bottom of the day field indicates that. Click that link to "
|
||||
"open a zoomed view of that single day."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:47
|
||||
msgid "**Agenda**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:45
|
||||
msgid ""
|
||||
"The agenda view shows a list of events for the selected range in a "
|
||||
"chronological order and divided by headers denoting either days, weeks or "
|
||||
"months. Both the number of the days considered for the listing as well as "
|
||||
"the mode how to divide list can be adjusted with the controls at the bottom "
|
||||
"of the agenda view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:51
|
||||
msgid ""
|
||||
"For all the views, the small calendar on the left highlights the currently "
|
||||
"listed days."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:54
|
||||
msgid "Go to a specific Date"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:56
|
||||
msgid ""
|
||||
"Use the mini calendar widget on the left to jump to a specific date. Simply "
|
||||
"click a date and the date range of the current view moves to include the "
|
||||
"selected day. The left/right arrows in the mini calendar's header quickly "
|
||||
"cycle through the months. Use the drop-down menus hidden under the month and"
|
||||
" year display in the widget header to directly jump to another month or "
|
||||
"year."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:60
|
||||
msgid ""
|
||||
"A shortcut to switch the calendar view back to today or the current week "
|
||||
"provides the *Today* button located in the toolbar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:64
|
||||
msgid "Show Event Details"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:66
|
||||
msgid ""
|
||||
"Click an event box in the calendar view to open a dialog displaying all "
|
||||
"details of the event."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:70
|
||||
msgid "Searching Events"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:72
|
||||
msgid ""
|
||||
"The search box above the calendar view lets you quickly get a list of events"
|
||||
" matching the entered keyword in either the title, location, description or "
|
||||
"attendees. Enter the search term into the box and press <Enter> on your "
|
||||
"keyboard to start the search. The calendar view will switch to *Agenda* mode"
|
||||
" in order to display a list of matches. Of course you can switch the view "
|
||||
"again to display the search results differently."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:77
|
||||
msgid ""
|
||||
"Events are searched within a certain date reange only which is displayed "
|
||||
"above the calendar view. Use the mini calendar widget or the arrow toolbar "
|
||||
"buttons and the range selector below the agenda view to adjust the time "
|
||||
"frame to search in."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:81
|
||||
msgid ""
|
||||
"For searching as well as for normal views, only events from active calendars"
|
||||
" are displayed. Use the checkboxes in the :ref:`calendar-lists` to add or "
|
||||
"hide events from different calendars."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:84
|
||||
msgid ""
|
||||
"Reset the search by clicking the *Reset search* icon on the right border of "
|
||||
"the search box. This will also switch the calendar view to whatever mode you"
|
||||
" had before the search."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:93
|
||||
msgid "Calendars List"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:95
|
||||
msgid ""
|
||||
"Events can be organized in different calendars which are all displayed in "
|
||||
"the lower left list. Use the checkboxes in that list to show or hide events "
|
||||
"from the specific calendars in the main view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:100
|
||||
msgid ""
|
||||
"Beside your personal calendars, the list also displays calendars shared by "
|
||||
"other users or ones that are shared amongst your workgroup. Small icons in "
|
||||
"the list give a hint about the origin and some of them are possibly read-"
|
||||
"only which is denoted with a small lock icon."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:106
|
||||
msgid "Colorized Events"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:108
|
||||
msgid ""
|
||||
"In order to better distinguish the events from various calendars in the "
|
||||
"calendar view, calendars have a color assigned which is used to colorize the"
|
||||
" events on the screen. Check the :ref:`settings-calendar` for more advanced "
|
||||
"options how to colorize events in the calendar view."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:112
|
||||
msgid ""
|
||||
"You can create any number of calendars to store all your events and name "
|
||||
"them individually."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:116
|
||||
msgid "Create a New Calendar"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:118
|
||||
msgid "Click the + icon in the calendars list footer."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:119
|
||||
msgid "In the dialog, give the new calendar a unique name and assign a color."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:120
|
||||
msgid "Click *Save* to create it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:122
|
||||
msgid "The calendar view will reload and list the new calendar on the left."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:127
|
||||
msgid "Edit Calendar Names and Settings"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:129
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:137
|
||||
msgid "Select the calendar to edit by clicking it in the list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:130
|
||||
msgid ""
|
||||
"Click the gear icon in the calendars list footer and select *Edit* from the "
|
||||
"options menu."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:131
|
||||
msgid "Adjust name, color or reminders settings in the edit dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:132
|
||||
msgid "Click *Save* to finally update the calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:135
|
||||
msgid "Remove entire Calendars"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:138
|
||||
msgid ""
|
||||
"Click the gear icon in the calendars list footer and select *Remove* from "
|
||||
"the options menu."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/overview.rst:139
|
||||
msgid ""
|
||||
"After a confirmation dialog, the selected calendar with all its events will "
|
||||
"be deleted. Caution: This action cannot be undone!"
|
||||
msgstr ""
|
178
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/settings.po
Normal file
178
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/settings.po
Normal file
|
@ -0,0 +1,178 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:34+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:8
|
||||
msgid "Calendar Preferences"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:10
|
||||
msgid ""
|
||||
"The settings for the calendar module are listed in *Settings > Preferences* "
|
||||
"and are grouped by the following sections:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:14
|
||||
msgid "Main Options"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:17
|
||||
msgid "**Default view**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:17
|
||||
msgid ""
|
||||
"Lets you select the :ref:`calendar-view` which is visible by default when "
|
||||
"opening the calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:21
|
||||
msgid "**Time slots per hour**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:20
|
||||
msgid ""
|
||||
"How one hour in day and week view is divided vertically. If for example set "
|
||||
"to 2, you will see events displayed in 30 minute blocks."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:24
|
||||
msgid "**First weekday**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:24
|
||||
msgid "Which weekday to begin the week view with."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:28
|
||||
msgid "**First hour to show**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:27
|
||||
msgid ""
|
||||
"When opening the day or week view, the listing of events starts at this "
|
||||
"time. Of course all hours of a day are visible by scrolling further up."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:33
|
||||
msgid "**Working hours**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:33
|
||||
msgid ""
|
||||
"This time range will be used in the :ref:`availability finder <calendar-"
|
||||
"availability-finder>` when automatically selecting free slots for a meeting."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:40
|
||||
msgid "**Event coloring**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:37
|
||||
msgid ""
|
||||
"The coloring of the title of an event block (\"outline\") as well as the "
|
||||
"background color of the box (\"content\") in day and week views is "
|
||||
"influenced by the color of the calendar an event belongs to and/or the color"
|
||||
" of the category it is assigned to. This setting lets you control which "
|
||||
"source for coloring to use or if you even want a combined coloring that "
|
||||
"reflects both, the assignment of calendars and categories."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:43
|
||||
msgid "**Default reminder setting**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:43
|
||||
msgid ""
|
||||
"When creating new events, they'll have this type of reminder set by default."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:46
|
||||
msgid "**Default reminder time**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:46
|
||||
msgid "When enabling reminders in a new event, use this preset as default."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:51
|
||||
msgid "**Create new events in**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:49
|
||||
msgid ""
|
||||
"This is the default selection for saving new events. Used in both the "
|
||||
"calendar view and when accepting event invitations."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:54
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:56
|
||||
msgid ""
|
||||
"This block allows the management of categories used in your calendar and "
|
||||
"assign colors to them. Use the color picker to change the color by clicking "
|
||||
"on the square color box in the categories list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:59
|
||||
msgid ""
|
||||
"To add a new category, enter its unique name into the text box below the "
|
||||
"listing and then click the *Add category** button to add it. Note that you "
|
||||
"still need to click the *Save* button at the bottom of the preferences panel"
|
||||
" in order to finally register the new categories."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:65
|
||||
msgid "Birthdays Calendar"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:67
|
||||
msgid ""
|
||||
"The calendar view and also display birthdays from contacts saved in your "
|
||||
"address book. This block controls how this is done."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:71
|
||||
msgid "**Display birthdays calendar**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:71
|
||||
msgid "Enable the birthdays calendar feature with this checkbox."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:74
|
||||
msgid "**From these address books**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:74
|
||||
msgid ""
|
||||
"Choose from which address books you'd like to see birthdays in your "
|
||||
"calendar."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:80
|
||||
msgid "**Show reminders**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/settings.rst:77
|
||||
msgid ""
|
||||
"This option controls whether and when to display reminder notifications for "
|
||||
"upcoming birthdays."
|
||||
msgstr ""
|
99
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/sharing.po
Normal file
99
plugins/calendar/helpdocs/locale/pl/LC_MESSAGES/sharing.po
Normal file
|
@ -0,0 +1,99 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:34+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:11
|
||||
msgid "Sharing Calendars"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:13
|
||||
msgid ""
|
||||
"For collaboration, sharing calendars is an important feature. In the "
|
||||
":ref:`overview <calendar-lists>`, we have already learned how calendars "
|
||||
"others share with you appear in the calendars list. The following now "
|
||||
"explains how to make personal calendars accessible to fellow users."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:19
|
||||
msgid "Share a Calendar with others"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:21
|
||||
msgid ""
|
||||
"Sharing is controlled through the :ref:`Calendar Settings Dialog <calendar-"
|
||||
"edit-properties>`. Double-click a calendar in the list on the left and then "
|
||||
"select the *Sharing* tab at the top of the dialog box:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:27
|
||||
msgid ""
|
||||
"The table displays who already has permission to see and modify the selected"
|
||||
" calendar. In order to share the calendar with a new user do"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:30
|
||||
msgid "Click the *Add entry* button (+) in the table footer"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:31
|
||||
msgid ""
|
||||
"Enter the username or choose one from the autocompletion menu that appears "
|
||||
"when you start typing. Instead of a specific user, permissons can be granted"
|
||||
" for all users or guests."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:33
|
||||
msgid "Select the access rights you want to grant for the user"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:34
|
||||
msgid "Click *Save* to add the permission"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:36
|
||||
msgid ""
|
||||
"Double-click an entry to edit the permissions for a particular user or "
|
||||
"group."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:38
|
||||
msgid ""
|
||||
"For removing existing permissions, select the according entry in the list "
|
||||
"and then choose *Delete* from the menu behind the gear icon in the footer of"
|
||||
" the list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:43
|
||||
msgid "Subscribe to Shared Calendars"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:45
|
||||
msgid ""
|
||||
"Calendars shared by others are not showing up right away in the list within "
|
||||
"the calendar view. Switch to :ref:`Settings > Folders <settings-folders>` to"
|
||||
" see all resources you can access. There's a shortcut to this: click *Manage"
|
||||
" folders* in the options menu behind the gear icon located the footer of the"
|
||||
" calendars list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/calendar/sharing.rst:50
|
||||
msgid ""
|
||||
"In order to make a shared calendar appear in the calendars list, locate it "
|
||||
"in the folder manager and check the *Subscribed* mark in the list. Only "
|
||||
"subscribed calendars are visible in the calendar view."
|
||||
msgstr ""
|
|
@ -60,8 +60,7 @@ class calendar_ui
|
|||
$this->cal->include_script('calendar_base.js');
|
||||
}
|
||||
|
||||
$skin_path = $this->cal->local_skin_path();
|
||||
$this->cal->include_stylesheet($skin_path . '/calendar.css');
|
||||
$this->addCSS();
|
||||
|
||||
$this->ready = true;
|
||||
}
|
||||
|
@ -109,7 +108,17 @@ class calendar_ui
|
|||
public function addCSS()
|
||||
{
|
||||
$skin_path = $this->cal->local_skin_path();
|
||||
$this->cal->include_stylesheet($skin_path . '/fullcalendar.css');
|
||||
|
||||
if ($this->rc->task == 'calendar' && (!$this->rc->action || in_array($this->rc->action, array('index', 'print')))) {
|
||||
// Include fullCalendar style before skin file for simpler style overriding
|
||||
$this->cal->include_stylesheet($skin_path . '/fullcalendar.css');
|
||||
}
|
||||
|
||||
$this->cal->include_stylesheet($skin_path . '/calendar.css');
|
||||
|
||||
if ($this->rc->task == 'calendar' && $this->rc->action == 'print') {
|
||||
$this->cal->include_stylesheet($skin_path . '/print.css');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -117,12 +126,18 @@ class calendar_ui
|
|||
*/
|
||||
public function addJS()
|
||||
{
|
||||
$this->cal->include_script('calendar_ui.js');
|
||||
$this->cal->include_script('lib/js/moment.js');
|
||||
$this->cal->include_script('lib/js/fullcalendar.js');
|
||||
$this->rc->output->include_script('treelist.js');
|
||||
$this->cal->api->include_script('libkolab/libkolab.js');
|
||||
|
||||
jqueryui::miniColors();
|
||||
if ($this->rc->task == 'calendar' && $this->rc->action == 'print') {
|
||||
$this->cal->include_script('print.js');
|
||||
}
|
||||
else {
|
||||
$this->rc->output->include_script('treelist.js');
|
||||
$this->cal->api->include_script('libkolab/libkolab.js');
|
||||
$this->cal->include_script('calendar_ui.js');
|
||||
jqueryui::miniColors();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -130,39 +145,28 @@ class calendar_ui
|
|||
*/
|
||||
function calendar_css($attrib = array())
|
||||
{
|
||||
$categories = $this->cal->driver->list_categories();
|
||||
$js_categories = array();
|
||||
$mode = $this->rc->config->get('calendar_event_coloring', $this->cal->defaults['calendar_event_coloring']);
|
||||
$categories = $this->cal->driver->list_categories();
|
||||
$css = "\n";
|
||||
$css = "\n";
|
||||
|
||||
foreach ((array)$categories as $class => $color) {
|
||||
if (empty($color))
|
||||
continue;
|
||||
if (!empty($color)) {
|
||||
$js_categories[$class] = $color;
|
||||
|
||||
$class = 'cat-' . asciiwords(strtolower($class), true);
|
||||
$css .= ".$class { color: #$color }\n";
|
||||
if ($mode > 0) {
|
||||
if ($mode == 2) {
|
||||
$css .= ".fc-event-$class .fc-event-bg {";
|
||||
$css .= " opacity: 0.9;";
|
||||
$css .= " filter: alpha(opacity=90);";
|
||||
}
|
||||
else {
|
||||
$css .= ".fc-event-$class.fc-event-skin, ";
|
||||
$css .= ".fc-event-$class .fc-event-skin, ";
|
||||
$css .= ".fc-event-$class .fc-event-inner {";
|
||||
}
|
||||
$css .= " background-color: #" . $color . ";";
|
||||
if ($mode % 2)
|
||||
$css .= " border-color: #$color;";
|
||||
$css .= "}\n";
|
||||
$color = ltrim($color, '#');
|
||||
$class = 'cat-' . asciiwords(strtolower($class), true);
|
||||
$css .= ".$class { color: #$color; }\n";
|
||||
}
|
||||
}
|
||||
|
||||
$this->rc->output->set_env('calendar_categories', $js_categories);
|
||||
|
||||
$calendars = $this->cal->driver->list_calendars();
|
||||
foreach ((array)$calendars as $id => $prop) {
|
||||
if (!$prop['color'])
|
||||
continue;
|
||||
$css .= $this->calendar_css_classes($id, $prop, $mode, $attrib);
|
||||
if ($prop['color']) {
|
||||
$css .= $this->calendar_css_classes($id, $prop, $mode, $attrib);
|
||||
}
|
||||
}
|
||||
|
||||
return html::tag('style', array('type' => 'text/css'), $css);
|
||||
|
@ -177,29 +181,12 @@ class calendar_ui
|
|||
|
||||
// replace white with skin-defined color
|
||||
if (!empty($attrib['folder-fallback-color']) && preg_match('/^f+$/i', $folder_color)) {
|
||||
$folder_color = $attrib['folder-fallback-color'];
|
||||
$folder_color = ltrim($attrib['folder-fallback-color'], '#');
|
||||
}
|
||||
|
||||
$class = 'cal-' . asciiwords($id, true);
|
||||
$css = str_replace('$class', $class, $attrib['folder-class']) ?: "li .$class";
|
||||
$css .= ", #eventshow .$class { color: #$folder_color; }\n";
|
||||
|
||||
if ($mode != 1) {
|
||||
if ($mode == 3) {
|
||||
$css .= ".fc-event-$class .fc-event-bg {";
|
||||
$css .= " opacity: 0.9;";
|
||||
$css .= " filter: alpha(opacity=90);";
|
||||
}
|
||||
else {
|
||||
$css .= ".fc-event-$class, ";
|
||||
$css .= ".fc-event-$class .fc-event-inner {";
|
||||
}
|
||||
if (!$prop['printmode'])
|
||||
$css .= " background-color: #$color;";
|
||||
if ($mode % 2 == 0)
|
||||
$css .= " border-color: #$color;";
|
||||
$css .= "}\n";
|
||||
}
|
||||
$css .= " { color: #$folder_color; }\n";
|
||||
|
||||
return $css . ".$class .handle { background-color: #$color; }\n";
|
||||
}
|
||||
|
@ -321,7 +308,7 @@ class calendar_ui
|
|||
$content = html::div(join(' ', $classes),
|
||||
html::a(array('class' => 'calname', 'id' => $label_id, 'title' => $title, 'href' => '#'), rcube::Q($prop['editname'] ?: $prop['listname']))
|
||||
. ($prop['virtual'] ? '' :
|
||||
html::tag('input', array('type' => 'checkbox', 'name' => '_cal[]', 'value' => $id, 'checked' => $prop['active'], 'aria-labelledby' => $label_id), '') .
|
||||
html::tag('input', array('type' => 'checkbox', 'name' => '_cal[]', 'value' => $id, 'checked' => $prop['active'], 'aria-labelledby' => $label_id)) .
|
||||
html::span('actions',
|
||||
($prop['removable'] ? html::a(array('href' => '#', 'class' => 'remove', 'title' => $this->cal->gettext('removelist')), ' ') : '') .
|
||||
html::a(array('href' => '#', 'class' => 'quickview', 'title' => $this->cal->gettext('quickview'), 'role' => 'checkbox', 'aria-checked' => 'false'), '') .
|
||||
|
@ -354,17 +341,6 @@ class calendar_ui
|
|||
. $select_range->show($this->rc->config->get('calendar_agenda_range', $this->cal->defaults['calendar_agenda_range']))
|
||||
);
|
||||
|
||||
$select_sections = new html_select(array('name' => 'listsections', 'id' => 'agenda-listsections', 'class' => 'form-control custom-select'));
|
||||
$select_sections->add('---', '');
|
||||
foreach (array('day' => 'libcalendaring.days', 'week' => 'libcalendaring.weeks', 'month' => 'libcalendaring.months', 'smart' => 'calendar.smartsections') as $val => $label)
|
||||
$select_sections->add(preg_replace('/\(|\)/', '', ucfirst($this->rc->gettext($label))), $val);
|
||||
|
||||
$html .= html::span('input-group',
|
||||
html::label(array('for' => 'agenda-listsections', 'class' => 'input-group-prepend'),
|
||||
html::span('input-group-text', $this->cal->gettext('listsections')))
|
||||
. $select_sections->show($this->rc->config->get('calendar_agenda_sections', $this->cal->defaults['calendar_agenda_sections']))
|
||||
);
|
||||
|
||||
return html::div($attrib, $html);
|
||||
}
|
||||
|
||||
|
@ -537,6 +513,7 @@ class calendar_ui
|
|||
}
|
||||
|
||||
$input = new html_inputfield(array(
|
||||
'id' => 'importfile',
|
||||
'type' => 'file',
|
||||
'name' => '_data',
|
||||
'size' => $attrib['uploadfieldsize'],
|
||||
|
@ -557,7 +534,7 @@ class calendar_ui
|
|||
$html = html::div('form-section form-group row',
|
||||
html::label(array('class' => 'col-sm-4 col-form-label', 'for' => 'importfile'), rcube::Q($this->rc->gettext('importfromfile')))
|
||||
. html::div('col-sm-8', $input->show()
|
||||
. html::div('hint', $this->rc->gettext(array('id' => 'importfile', 'name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))))
|
||||
. html::div('hint', $this->rc->gettext(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))))
|
||||
);
|
||||
|
||||
$html .= html::div('form-section form-group row',
|
||||
|
|
File diff suppressed because it is too large
Load diff
4511
plugins/calendar/lib/js/moment.js
Normal file
4511
plugins/calendar/lib/js/moment.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for Kolab Calendar plugin
|
||||
*
|
||||
* Copyright (C) 2014, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/calendar/
|
||||
*/
|
||||
$labels['default_view'] = 'Standardansicht';
|
||||
$labels['time_format'] = 'Zeitformatierung';
|
||||
$labels['timeslots'] = 'Zeitfenster pro Stunde';
|
||||
|
@ -165,20 +158,73 @@ $labels['nextslot'] = 'Nächster Vorschlag';
|
|||
$labels['suggestedslot'] = 'Empfohlener Slot';
|
||||
$labels['noslotfound'] = 'Es konnten keine freien Zeiten gefunden werden';
|
||||
$labels['invitationsubject'] = 'Sie wurden zu »$title« eingeladen';
|
||||
$labels['invitationmailbody'] = "*\$title*\n\nWann: \$date\n\nTeilnehmer: \$attendees\n\n\$description\n\nIm Anhang finden Sie eine iCalendar-Datei mit allen Details des Termins. Diese können Sie in Ihre Kalenderanwendung importieren.";
|
||||
$labels['invitationattendlinks'] = "Falls Ihr E-Mail-Programm keine iTip-Anfragen unterstützt, können Sie den folgenden Link verwenden, um den Termin zu bestätigen oder abzulehnen:\n\$url";
|
||||
$labels['invitationmailbody'] = '*$title*
|
||||
|
||||
Wann: $date
|
||||
|
||||
Teilnehmer: $attendees
|
||||
|
||||
$description
|
||||
|
||||
Im Anhang finden Sie eine iCalendar-Datei mit allen Details des Termins. Diese können Sie in Ihre Kalenderanwendung importieren.';
|
||||
$labels['invitationattendlinks'] = 'Falls Ihr E-Mail-Programm keine iTip-Anfragen unterstützt, können Sie den folgenden Link verwenden, um den Termin zu bestätigen oder abzulehnen:
|
||||
$url';
|
||||
$labels['eventupdatesubject'] = '»$title« wurde aktualisiert';
|
||||
$labels['eventupdatesubjectempty'] = 'Termin wurde aktualisiert';
|
||||
$labels['eventupdatemailbody'] = "*\$title*\n\nWann: \$date\n\nTeilnehmer: \$attendees\n\nIm Anhang finden Sie eine iCalendar-Datei mit den aktualisiereten Termindaten. Diese können Sie in Ihre Kalenderanwendung importieren.";
|
||||
$labels['eventupdatemailbody'] = '*$title*
|
||||
|
||||
Wann: $date
|
||||
|
||||
Teilnehmer: $attendees
|
||||
|
||||
Im Anhang finden Sie eine iCalendar-Datei mit den aktualisiereten Termindaten. Diese können Sie in Ihre Kalenderanwendung importieren.';
|
||||
$labels['eventcancelsubject'] = '»$title« wurde abgesagt';
|
||||
$labels['eventcancelmailbody'] = "*\$title*\n\nWann: \$date\n\nTeilnehmer: \$attendees\n\nDer Termin wurde von \$organizer abgesagt.\n\nIm Anhang finden Sie eine iCalendar-Datei mit den Termindaten.";
|
||||
$labels['eventcancelmailbody'] = '*$title*
|
||||
|
||||
Wann: $date
|
||||
|
||||
Teilnehmer: $attendees
|
||||
|
||||
Der Termin wurde von $organizer abgesagt.
|
||||
|
||||
Im Anhang finden Sie eine iCalendar-Datei mit den Termindaten.';
|
||||
$labels['itipobjectnotfound'] = 'Der Termin auf den sich diese Nachricht bezieht, wurde in Ihrem Kalender nicht gefunden.';
|
||||
$labels['itipmailbodyaccepted'] = "\$sender hat die Einladung zum folgenden Termin angenommen:\n\n*\$title*\n\nWann: \$date\n\nTeilnehmer: \$attendees";
|
||||
$labels['itipmailbodytentative'] = "\$sender hat die Einladung mit Vorbehalt zum folgenden Termin angenommen:\n\n*\$title*\n\nWann: \$date\n\nTeilnehmer: \$attendees";
|
||||
$labels['itipmailbodydeclined'] = "\$sender hat die Einladung zum folgenden Termin abgelehnt:\n\n*\$title*\n\nWann: \$date\n\nTeilnehmer: \$attendees";
|
||||
$labels['itipmailbodycancel'] = "\$sender hat Ihre Teilnahme bei der folgenden Veranstaltung zurückgewiesen:\n\n*\$title*\n\nWann: \$date";
|
||||
$labels['itipmailbodydelegated'] = "\$sender hat die Teilnahme an folgendem Event delegiert:\n\n*\$title*\n\nWhen: \$date";
|
||||
$labels['itipmailbodydelegatedto'] = "\$sender hat die Teilnahme an folgendem Event an Sie delegiert:\n\n*\$title*\n\nWann: \$date";
|
||||
$labels['itipmailbodyaccepted'] = '$sender hat die Einladung zum folgenden Termin angenommen:
|
||||
|
||||
*$title*
|
||||
|
||||
Wann: $date
|
||||
|
||||
Teilnehmer: $attendees';
|
||||
$labels['itipmailbodytentative'] = '$sender hat die Einladung mit Vorbehalt zum folgenden Termin angenommen:
|
||||
|
||||
*$title*
|
||||
|
||||
Wann: $date
|
||||
|
||||
Teilnehmer: $attendees';
|
||||
$labels['itipmailbodydeclined'] = '$sender hat die Einladung zum folgenden Termin abgelehnt:
|
||||
|
||||
*$title*
|
||||
|
||||
Wann: $date
|
||||
|
||||
Teilnehmer: $attendees';
|
||||
$labels['itipmailbodycancel'] = '$sender hat Ihre Teilnahme bei der folgenden Veranstaltung zurückgewiesen:
|
||||
|
||||
*$title*
|
||||
|
||||
Wann: $date';
|
||||
$labels['itipmailbodydelegated'] = '$sender hat die Teilnahme an folgendem Event delegiert:
|
||||
|
||||
*$title*
|
||||
|
||||
When: $date';
|
||||
$labels['itipmailbodydelegatedto'] = '$sender hat die Teilnahme an folgendem Event an Sie delegiert:
|
||||
|
||||
*$title*
|
||||
|
||||
Wann: $date';
|
||||
$labels['itipdeclineevent'] = 'Möchten Sie die Einladung zu diesem Termin ablehnen?';
|
||||
$labels['declinedeleteconfirm'] = 'Soll der abgelehnte Termin zusätzlich aus dem Kalender gelöscht werden?';
|
||||
$labels['itipcomment'] = 'Kommentar zur Einladungs-/Benachrichtigungsnachricht';
|
||||
|
@ -266,4 +312,3 @@ $labels['arialabeleventattendees'] = 'Teilehmerliste';
|
|||
$labels['arialabeleventresources'] = 'Liste der Terminressourcen';
|
||||
$labels['arialabelresourcesearchform'] = 'Suchformular für Ressourcen';
|
||||
$labels['arialabelresourceselection'] = 'Verfügbare Ressourcen';
|
||||
?>
|
||||
|
|
|
@ -44,7 +44,8 @@ $labels['category'] = 'Category';
|
|||
$labels['categories'] = 'Categories';
|
||||
$labels['addcalendar'] = 'Add calendar';
|
||||
$labels['createcalendar'] = 'Create new calendar';
|
||||
$labels['editcalendar'] = 'Edit calendar properties';
|
||||
$labels['editcalendar'] = 'Edit/Share calendar';
|
||||
$labels['deletecalendar'] = 'Delete calendar';
|
||||
$labels['name'] = 'Name';
|
||||
$labels['color'] = 'Color';
|
||||
$labels['day'] = 'Day';
|
||||
|
@ -248,6 +249,7 @@ $labels['savingdata'] = 'Saving data...';
|
|||
$labels['errorsaving'] = 'Failed to save changes.';
|
||||
$labels['operationfailed'] = 'The requested operation failed.';
|
||||
$labels['invalideventdates'] = 'Invalid dates entered! Please check your input.';
|
||||
$labels['emptyeventtitle'] = 'Event summary cannot be empty.';
|
||||
$labels['invalidcalendarproperties'] = 'Invalid calendar properties! Please set a valid name.';
|
||||
$labels['searchnoresults'] = 'No events found in the selected calendars.';
|
||||
$labels['successremoval'] = 'The event has been deleted successfully.';
|
||||
|
|
|
@ -37,12 +37,13 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
|
||||
var rc_loading;
|
||||
var showdesc = true;
|
||||
var desc_elements = [];
|
||||
var settings = $.extend(rcmail.env.calendar_settings, rcmail.env.libcal_settings);
|
||||
|
||||
// create list of event sources AKA calendars
|
||||
var src, event_sources = [];
|
||||
var add_url = (rcmail.env.search ? '&q='+escape(rcmail.env.search) : '');
|
||||
for (var id in rcmail.env.calendars) {
|
||||
var id, src, event_sources = [];
|
||||
var add_url = '&mode=print' + (rcmail.env.search ? '&q='+escape(rcmail.env.search) : '');
|
||||
for (id in rcmail.env.calendars) {
|
||||
if (!rcmail.env.calendars[id].active)
|
||||
continue;
|
||||
|
||||
|
@ -54,6 +55,9 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
|
||||
source.color = '#' + source.color.replace(/^#/, '');
|
||||
|
||||
if (source.color.match(/^#f+$/i))
|
||||
source.color = '#ccc';
|
||||
|
||||
event_sources.push(source);
|
||||
}
|
||||
|
||||
|
@ -66,72 +70,89 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
header: {
|
||||
left: '',
|
||||
center: 'title',
|
||||
right: 'agendaDay,agendaWeek,month,table'
|
||||
right: 'agendaDay,agendaWeek,month,list'
|
||||
},
|
||||
theme: false,
|
||||
aspectRatio: 0.85,
|
||||
ignoreTimezone: true, // will treat the given date strings as in local (browser's) timezone
|
||||
date: viewdate.getDate(),
|
||||
month: viewdate.getMonth(),
|
||||
year: viewdate.getFullYear(),
|
||||
selectable: false,
|
||||
editable: false,
|
||||
timezone: false, // will treat the given date strings as in local (browser's) timezone
|
||||
monthNames: settings.months,
|
||||
monthNamesShort: settings.months_short,
|
||||
dayNames: settings.days,
|
||||
dayNamesShort: settings.days_short,
|
||||
weekNumbers: settings.show_weekno > 0,
|
||||
weekNumberTitle: rcmail.gettext('weekshort', 'calendar') + ' ',
|
||||
firstDay: settings.first_day,
|
||||
firstHour: settings.first_hour,
|
||||
slotDuration: {minutes: 60/settings.timeslots},
|
||||
businessHours: {
|
||||
start: settings.work_start + ':00',
|
||||
end: settings.work_end + ':00'
|
||||
},
|
||||
views: {
|
||||
list: {
|
||||
titleFormat: settings.dates_long,
|
||||
listDayFormat: settings.date_long,
|
||||
visibleRange: function(currentDate) {
|
||||
return {
|
||||
start: currentDate.clone(),
|
||||
end: currentDate.clone().add(settings.agenda_range, 'days')
|
||||
}
|
||||
}
|
||||
},
|
||||
month: {
|
||||
columnFormat: 'ddd', // Mon
|
||||
titleFormat: 'MMMM YYYY',
|
||||
eventLimit: 10
|
||||
},
|
||||
week: {
|
||||
columnFormat: 'ddd ' + settings.date_short, // Mon 9/7
|
||||
titleFormat: settings.dates_long
|
||||
},
|
||||
day: {
|
||||
columnFormat: 'dddd ' + settings.date_short, // Monday 9/7
|
||||
titleFormat: 'dddd ' + settings.date_long
|
||||
}
|
||||
},
|
||||
timeFormat: settings.time_format,
|
||||
slotLabelFormat: settings.time_format,
|
||||
allDayText: rcmail.gettext('all-day', 'calendar'),
|
||||
defaultDate: viewdate,
|
||||
defaultView: rcmail.env.view,
|
||||
eventSources: event_sources,
|
||||
monthNames : settings['months'],
|
||||
monthNamesShort : settings['months_short'],
|
||||
dayNames : settings['days'],
|
||||
dayNamesShort : settings['days_short'],
|
||||
firstDay : settings['first_day'],
|
||||
firstHour : settings['first_hour'],
|
||||
slotMinutes : 60/settings['timeslots'],
|
||||
timeFormat: {
|
||||
'': settings['time_format'],
|
||||
agenda: settings['time_format'] + '{ - ' + settings['time_format'] + '}',
|
||||
list: settings['time_format'] + '{ - ' + settings['time_format'] + '}',
|
||||
table: settings['time_format'] + '{ - ' + settings['time_format'] + '}'
|
||||
},
|
||||
axisFormat : settings['time_format'],
|
||||
columnFormat: {
|
||||
month: 'ddd', // Mon
|
||||
week: 'ddd ' + settings['date_short'], // Mon 9/7
|
||||
day: 'dddd ' + settings['date_short'], // Monday 9/7
|
||||
list: settings['date_agenda'],
|
||||
table: settings['date_agenda']
|
||||
},
|
||||
titleFormat: {
|
||||
month: 'MMMM yyyy',
|
||||
week: settings['dates_long'],
|
||||
day: 'dddd ' + settings['date_long'],
|
||||
list: settings['dates_long'],
|
||||
table: settings['dates_long']
|
||||
},
|
||||
listSections: rcmail.env.listSections !== undefined ? rcmail.env.listSections : settings['agenda_sections'],
|
||||
listRange: rcmail.env.listRange || settings['agenda_range'],
|
||||
tableCols: ['handle', 'date', 'time', 'title', 'location'],
|
||||
allDayText: rcmail.gettext('all-day', 'calendar'),
|
||||
buttonText: {
|
||||
today: settings['today'],
|
||||
day: rcmail.gettext('day', 'calendar'),
|
||||
week: rcmail.gettext('week', 'calendar'),
|
||||
month: rcmail.gettext('month', 'calendar'),
|
||||
table: rcmail.gettext('agenda', 'calendar')
|
||||
list: rcmail.gettext('agenda', 'calendar')
|
||||
},
|
||||
listTexts: {
|
||||
until: rcmail.gettext('until', 'calendar'),
|
||||
past: rcmail.gettext('pastevents', 'calendar'),
|
||||
today: rcmail.gettext('today', 'calendar'),
|
||||
tomorrow: rcmail.gettext('tomorrow', 'calendar'),
|
||||
thisWeek: rcmail.gettext('thisweek', 'calendar'),
|
||||
nextWeek: rcmail.gettext('nextweek', 'calendar'),
|
||||
thisMonth: rcmail.gettext('thismonth', 'calendar'),
|
||||
nextMonth: rcmail.gettext('nextmonth', 'calendar'),
|
||||
future: rcmail.gettext('futureevents', 'calendar'),
|
||||
week: rcmail.gettext('weekofyear', 'calendar')
|
||||
buttonIcons: {
|
||||
prev: 'left-single-arrow',
|
||||
next: 'right-single-arrow'
|
||||
},
|
||||
eventLimitText: function(num) {
|
||||
return rcmail.gettext('andnmore', 'calendar').replace('$nr', num);
|
||||
},
|
||||
loading: function(isLoading) {
|
||||
rc_loading = rcmail.set_busy(isLoading, 'loading', rc_loading);
|
||||
},
|
||||
// event rendering
|
||||
eventRender: function(event, element, view) {
|
||||
if (view.name != 'month' && view.name != 'table') {
|
||||
var cont = element.find('.fc-event-title');
|
||||
if (view.name == 'list') {
|
||||
var loc = $('<td>').attr('class', 'fc-event-location');
|
||||
if (event.location)
|
||||
loc.text(event.location);
|
||||
element.find('.fc-list-item-title').after(loc);
|
||||
|
||||
// we can't add HTML elements after the curent element,
|
||||
// so we store it for later.
|
||||
if (event.description && showdesc)
|
||||
desc_elements.push({element: element[0], description: event.description});
|
||||
}
|
||||
else if (view.name != 'month') {
|
||||
var cont = element.find('div.fc-title');
|
||||
if (event.location) {
|
||||
cont.after('<div class="fc-event-location">@ ' + Q(event.location) + '</div>');
|
||||
cont = cont.next();
|
||||
|
@ -139,47 +160,35 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
if (event.description && showdesc) {
|
||||
cont.after('<div class="fc-event-description">' + Q(event.description) + '</div>');
|
||||
}
|
||||
/* TODO: create icons black on white
|
||||
if (event.recurrence)
|
||||
element.find('.fc-event-time').append('<i class="fc-icon-recurring"></i>');
|
||||
if (event.alarms)
|
||||
element.find('.fc-event-time').append('<i class="fc-icon-alarms"></i>');
|
||||
*/
|
||||
}
|
||||
if (view.name == 'table' && event.description && showdesc) {
|
||||
var cols = element.children().css('border', 0).length;
|
||||
element.after('<tr class="fc-event-row-secondary fc-event"><td colspan="'+cols+'" class="fc-event-description">' + Q(event.description) + '</td></tr>');
|
||||
}
|
||||
},
|
||||
viewDisplay: function(view) {
|
||||
// remove hard-coded hight and make contents visible
|
||||
window.setTimeout(function(){
|
||||
if (view.name == 'table') {
|
||||
$('div.fc-list-content').css('overflow', 'visible').height('auto');
|
||||
}
|
||||
else {
|
||||
$('div.fc-agenda-divider')
|
||||
.next().css('overflow', 'visible').height('auto')
|
||||
.children('div').css('overflow', 'visible').height('auto');
|
||||
}
|
||||
// adjust fixed height if vertical day slots
|
||||
var h = $('table.fc-agenda-slots:visible').height() + $('table.fc-agenda-allday:visible').height() + 4;
|
||||
if (h) $('table.fc-agenda-days td.fc-widget-content').children('div').height(h);
|
||||
}, 20);
|
||||
eventAfterAllRender: function(view) {
|
||||
if (view.name == 'list') {
|
||||
// Fix colspan of headers after we added Location column
|
||||
fc.find('tr.fc-list-heading > td').attr('colspan', 4);
|
||||
|
||||
$.each(desc_elements, function() {
|
||||
$(this.element).after('<tr class="fc-event-row-secondary fc-list-item"><td colspan="2"></td><td colspan="2" class="fc-event-description">' + Q(this.description) + '</td></tr>');
|
||||
});
|
||||
}
|
||||
},
|
||||
viewRender: function(view) {
|
||||
desc_elements = [];
|
||||
}
|
||||
});
|
||||
|
||||
// activate settings form
|
||||
$('#propdescription').change(function(){
|
||||
$('#propdescription').change(function() {
|
||||
showdesc = this.checked;
|
||||
fc.fullCalendar('render');
|
||||
desc_elements = [];
|
||||
fc.fullCalendar('rerenderEvents');
|
||||
});
|
||||
|
||||
var selector = $('#calendar').data('view-selector');
|
||||
if (selector) {
|
||||
selector = $('#' + selector);
|
||||
|
||||
$('.fc-header-right > span').each(function() {
|
||||
$('.fc-right button').each(function() {
|
||||
var cl = 'btn btn-secondary', btn = $(this);
|
||||
|
||||
if (btn.is('.fc-state-active')) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<h1 class="voice"><roundcube:label name="calendar.calendar" /></h1>
|
||||
|
||||
<!-- calendars list -->
|
||||
<div class="sidebar listbox" role="navigation" aria-labelledby="arial-label-calendars">
|
||||
<div id="layout-sidebar" class="listbox" role="navigation" aria-labelledby="arial-label-calendars">
|
||||
<div class="header">
|
||||
<a class="button icon back-content-button" href="#back" data-hidden="big"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span id="aria-label-calendars" class="header-title"><roundcube:label name="calendar.calendars" /></span>
|
||||
|
@ -12,7 +12,7 @@
|
|||
title="calendar.calendaractions" class="button icon sidebar-menu" data-popup="calendaractions-menu"
|
||||
innerClass="inner" label="actions" />
|
||||
</div>
|
||||
<roundcube:object name="libkolab.folder_search_form" id="calendarlistsearch" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="libkolab.folder_search_form" id="calendarlistsearch" wrapper="searchbar menu"
|
||||
ariatag="h2" label="calsearchform" label-domain="calendar" buttontitle="findcalendars" />
|
||||
<div id="calendars-content" class="scroller">
|
||||
<roundcube:object name="plugin.calendar_list" id="calendarslist" class="treelist listing iconized" />
|
||||
|
@ -22,14 +22,14 @@
|
|||
</div>
|
||||
|
||||
<!-- calendar -->
|
||||
<div class="content selected no-navbar" role="main">
|
||||
<div id="layout-content" class="selected no-navbar" role="main">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon task-menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon back-sidebar-button folders" href="#sidebar" data-hidden="big"><span class="inner"><roundcube:label name="calendar.calendars" /></span></a>
|
||||
<span class="header-title"></span>
|
||||
<!-- toolbar -->
|
||||
<div id="calendartoolbar" class="toolbar">
|
||||
<div id="calendartoolbar" class="toolbar menu">
|
||||
<roundcube:button command="addevent" type="link"
|
||||
class="button create disabled" classAct="button create"
|
||||
label="create" title="calendar.new_event" innerClass="inner" />
|
||||
|
@ -46,18 +46,18 @@
|
|||
<roundcube:container name="toolbar" id="calendartoolbar" />
|
||||
</div>
|
||||
</div>
|
||||
<roundcube:object name="plugin.searchform" id="searchform" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="plugin.searchform" id="searchform" wrapper="searchbar menu"
|
||||
label="searchform" buttontitle="calendar.findevents" label-domain="calendar" ariatag="h2" />
|
||||
<h2 id="aria-label-calendarview" class="voice"><roundcube:label name="calendar.arialabelcalendarview" /></h2>
|
||||
<div id="calendar" class="content" role="main" aria-labelledby="aria-label-calendarview" data-elastic-mode="true">
|
||||
<roundcube:object name="plugin.agenda_options" id="agendaoptions" />
|
||||
<div id="searchcontrols" class="search-controls"></div>
|
||||
</div>
|
||||
<div class="footer toolbar content-frame-navigation" role="toolbar" data-hidden="big">
|
||||
<a href="#" class="button prev" onclick="$('.fc-button-prev').click()"><span class="inner"><roundcube:label name="previous" /></span></a>
|
||||
<a href="#" class="button today" onclick="$('.fc-button-today').click()"><span class="inner"><roundcube:label name="today" /></span></a>
|
||||
<div class="footer toolbar menu content-frame-navigation" role="toolbar" data-hidden="big">
|
||||
<a href="#" class="button prev" onclick="$('.fc-prev-button').click()"><span class="inner"><roundcube:label name="previous" /></span></a>
|
||||
<a href="#" class="button today" onclick="$('.fc-today-button').click()"><span class="inner"><roundcube:label name="today" /></span></a>
|
||||
<a href="#" class="button date" onclick="window.calendar_datepicker()"><span class="inner"><roundcube:label name="date" /></span></a>
|
||||
<a href="#" class="button next" onclick="$('.fc-button-next').click()"><span class="inner"><roundcube:label name="next" /></span></a>
|
||||
<a href="#" class="button next" onclick="$('.fc-next-button').click()"><span class="inner"><roundcube:label name="next" /></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -140,10 +140,10 @@
|
|||
|
||||
<div id="calendaractions-menu" class="popupmenu">
|
||||
<h3 id="aria-label-calendaroptions" class="voice"><roundcube:label name="calendar.calendaractions" /></h3>
|
||||
<ul class="toolbarmenu listing" role="menu" aria-labelledby="aria-label-calendaroptions">
|
||||
<ul class="menu listing" role="menu" aria-labelledby="aria-label-calendaroptions">
|
||||
<roundcube:button type="link-menuitem" command="calendar-create" label="calendar.addcalendar" class="create disabled" classAct="create active" />
|
||||
<roundcube:button type="link-menuitem" command="calendar-edit" label="calendar.edit" class="edit disabled" classAct="edit active" />
|
||||
<roundcube:button type="link-menuitem" command="calendar-delete" label="delete" class="delete disabled" classAct="delete active" />
|
||||
<roundcube:button type="link-menuitem" command="calendar-edit" label="calendar.editcalendar" class="edit disabled" classAct="edit active" />
|
||||
<roundcube:button type="link-menuitem" command="calendar-delete" label="calendar.deletecalendar" class="delete disabled" classAct="delete active" />
|
||||
<roundcube:if condition="env:calendar_driver == 'kolab'" />
|
||||
<roundcube:button type="link-menuitem" command="calendar-remove" label="calendar.removelist" class="remove disabled" classAct="remove active" />
|
||||
<roundcube:endif />
|
||||
|
@ -159,7 +159,7 @@
|
|||
|
||||
<div id="eventoptionsmenu" class="popupmenu">
|
||||
<h3 id="aria-label-eventoptions" class="voice"><roundcube:label name="calendar.eventoptions" /></h3>
|
||||
<ul class="toolbarmenu listing" role="menu" aria-labelledby="aria-label-eventoptions">
|
||||
<ul class="menu listing" role="menu" aria-labelledby="aria-label-eventoptions">
|
||||
<roundcube:button type="link-menuitem" command="event-download" label="download" class="download disabled" classAct="download active" />
|
||||
<roundcube:button type="link-menuitem" command="event-sendbymail" label="send" class="send disabled" classAct="send active" />
|
||||
<roundcube:button type="link-menuitem" command="event-copy" label="copy" class="copy disabled" classAct="copy active" />
|
||||
|
@ -176,7 +176,7 @@
|
|||
<span class="header-title"><roundcube:label name="calendar.tabresources" /></span>
|
||||
</div>
|
||||
<roundcube:object name="plugin.resources_searchform" id="resourcesearchbox"
|
||||
wrapper="searchbar toolbar" ariatag="h4" buttontitle="calendar.findresources"
|
||||
wrapper="searchbar menu" ariatag="h4" buttontitle="calendar.findresources"
|
||||
label="resourcesearchform" label-domain="calendar" />
|
||||
<div class="scroller">
|
||||
<roundcube:object name="plugin.resources_list" id="resources-list" class="listing treelist" />
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div id="calendar" data-view-selector="calendar-view-selector"></div>
|
||||
</div>
|
||||
|
||||
<roundcube:object name="plugin.calendar_list" activeonly="true" id="calendarlist" class="hidden" />
|
||||
<roundcube:object name="plugin.calendar_css" printmode="true" />
|
||||
<roundcube:object name="plugin.calendar_list" activeonly="true" id="calendarlist" />
|
||||
<roundcube:object name="plugin.calendar_css" printmode="true" folder-class="div.$class a.calname" folder-fallback-color="#000" />
|
||||
|
||||
<roundcube:include file="includes/footer.html" />
|
||||
|
|
|
@ -1581,12 +1581,9 @@ a.dropdown-link:after {
|
|||
bottom: -1px;
|
||||
}
|
||||
|
||||
#resource-freebusy-calendar .fc-content {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
#resource-freebusy-calendar .fc-content .fc-event-bg {
|
||||
background: 0;
|
||||
#resource-freebusy-calendar .fc-toolbar {
|
||||
height: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#resource-freebusy-calendar .fc-event.status-busy,
|
||||
|
@ -1615,8 +1612,7 @@ a.dropdown-link:after {
|
|||
#resourcesearchbox {
|
||||
width: 100%;
|
||||
height: 26px;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#resourcequicksearch .iconbutton.searchoptions {
|
||||
|
@ -1633,33 +1629,22 @@ a.dropdown-link:after {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/* fullcalendar style overrides */
|
||||
|
||||
.rcube-fc-content {
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.calendarmain .fc-content {
|
||||
position: absolute !important;
|
||||
top: 40px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
.calendarmain .fc-body,
|
||||
.fc-scroller {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.calendarmain.quickview-active .fc-content {
|
||||
.calendarmain.quickview-active .fc-view .fc-scroller {
|
||||
background-image: url('images/focusview.png');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
#fish-eye-view .fc-content {
|
||||
top: 2px;
|
||||
bottom: 2px;
|
||||
.fc-unthemed .fc-list-heading td {
|
||||
background: rgba(0, 0, 0, .05);
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#quickview-calendar {
|
||||
|
@ -1676,9 +1661,9 @@ a.dropdown-link:after {
|
|||
.calendarmain #calendar .fc-button,
|
||||
.calendarmain #calendar .fc-button.fc-state-default,
|
||||
.calendarmain #calendar .fc-button.fc-state-hover {
|
||||
margin: -2px 0 0 0;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
margin-top: -2px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
color: #333;
|
||||
border: 1px solid #ababab;
|
||||
background: #f1f1f1;
|
||||
|
@ -1704,15 +1689,12 @@ a.dropdown-link:after {
|
|||
margin-right: 0;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
.calendarmain #calendar .fc-left .fc-button {
|
||||
font-size: 10px;
|
||||
color: #555;
|
||||
min-width: 50px;
|
||||
max-width: 75px;
|
||||
height: 13px;
|
||||
height: 40px;
|
||||
line-height: 1em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
@ -1723,89 +1705,91 @@ a.dropdown-link:after {
|
|||
border: 0;
|
||||
background: url(images/toolbar.png) center 100px no-repeat;
|
||||
box-shadow: none;
|
||||
-o-box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
outline: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button:focus {
|
||||
.calendarmain #calendar .fc-left .fc-button:focus {
|
||||
color: #fff;
|
||||
text-shadow: 0px 1px 1px #666;
|
||||
background-color: rgba(30,150,192, 0.5);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button.fc-state-active {
|
||||
.calendarmain #calendar .fc-left .fc-button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-left .fc-button.fc-state-active {
|
||||
font-weight: bold;
|
||||
color: #222;
|
||||
text-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-agendaDay {
|
||||
.calendarmain #calendar .fc-left .fc-agendaDay-button {
|
||||
background-position: center -120px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-agendaDay.fc-state-active {
|
||||
.calendarmain #calendar .fc-left .fc-agendaDay-button.fc-state-active {
|
||||
background-position: center -160px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-agendaWeek {
|
||||
.calendarmain #calendar .fc-left .fc-agendaWeek-button {
|
||||
background-position: center -200px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-agendaWeek.fc-state-active {
|
||||
.calendarmain #calendar .fc-left .fc-agendaWeek-button.fc-state-active {
|
||||
background-position: center -240px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-month {
|
||||
.calendarmain #calendar .fc-left .fc-month-button {
|
||||
background-position: center -280px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-month.fc-state-active {
|
||||
.calendarmain #calendar .fc-left .fc-month-button.fc-state-active {
|
||||
background-position: center -320px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-table {
|
||||
.calendarmain #calendar .fc-left .fc-list-button {
|
||||
background-position: center -360px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-left .fc-button-table.fc-state-active {
|
||||
.calendarmain #calendar .fc-left .fc-list-button.fc-state-active {
|
||||
background-position: center -400px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-right {
|
||||
padding-right: 252px;
|
||||
.calendarmain #calendar .fc-header-toolbar .fc-right {
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-toolbar .fc-center {
|
||||
line-height: 2.5em;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-toolbar .fc-center h2 {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-header-title {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.calendarmain #calendar .fc-toolbar.fc-header-toolbar {
|
||||
margin-bottom: 7px;
|
||||
margin-right: 250px;
|
||||
}
|
||||
|
||||
.fc-event {
|
||||
font-size: 1em !important;
|
||||
}
|
||||
|
||||
.fc-event-hori.fc-type-freebusy,
|
||||
.fc-event-vert.fc-type-freebusy {
|
||||
.fc-event.fc-type-freebusy,
|
||||
.fc-event.fc-type-freebusy {
|
||||
opacity: 0.60;
|
||||
/*
|
||||
color: #fff !important;
|
||||
background: rgba(80,80,80,0.85) !important;
|
||||
background: -moz-linear-gradient(top, rgba(80,80,80,0.85) 0%, rgba(48,48,48,0.9) 100%) !important;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(80,80,80,0.85)), color-stop(100%,rgba(48,48,48,0.9))) !important;
|
||||
background: -webkit-linear-gradient(top, rgba(80,80,80,0.85) 0%, rgba(48,48,48,0.85) 100%) !important;
|
||||
background: -o-linear-gradient(top, rgba(80,80,80,0.85) 0%, rgba(48,48,48,0.85) 100%) !important;
|
||||
background: -ms-linear-gradient(top, rgba(80,80,80,0.85) 0%, rgba(48,48,48,0.85) 100%) !important;
|
||||
background: linear-gradient(to bottom, rgba(80,80,80,0.85) 0%, rgba(48,48,48,0.85) 100%) !important;
|
||||
border-color: #444 !important;
|
||||
cursor: default !important;
|
||||
*/
|
||||
-moz-box-shadow: inset 0px 1px 0 0px #888;
|
||||
-webkit-box-shadow: inset 0px 1px 0 0px #888;
|
||||
-o-box-shadow: inset 0px 1px 0 0px #888;
|
||||
box-shadow: inset 0px 1px 0 0px #888;
|
||||
}
|
||||
|
||||
|
@ -1813,93 +1797,93 @@ a.dropdown-link:after {
|
|||
color: #999;
|
||||
}
|
||||
|
||||
.fc-event-hori.fc-type-freebusy .fc-event-skin,
|
||||
.fc-event-hori.fc-type-freebusy .fc-event-inner,
|
||||
.fc-event-vert.fc-type-freebusy .fc-event-skin,
|
||||
.fc-event-vert.fc-type-freebusy .fc-event-inner {
|
||||
/*
|
||||
background-color: transparent !important;
|
||||
border-color: #444 !important;
|
||||
color: #fff !important;
|
||||
text-shadow: 0 1px 1px #000;
|
||||
*/
|
||||
}
|
||||
|
||||
.fc-event-hori.fc-type-freebusy .fc-event-title,
|
||||
.fc-event-vert.fc-type-freebusy .fc-event-title {
|
||||
.fc-event.fc-type-freebusy .fc-title,
|
||||
.fc-event.fc-type-freebusy .fc-title {
|
||||
position: absolute;
|
||||
top: -5000px;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-needs-action,
|
||||
.fc-event-hori.fc-invitation-needs-action {
|
||||
.fc-event.fc-invitation-needs-action,
|
||||
.fc-event.fc-invitation-needs-action {
|
||||
border: 1px dashed #5757c7 !important;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-tentative,
|
||||
.fc-event-hori.fc-invitation-tentative {
|
||||
.fc-event.fc-invitation-tentative,
|
||||
.fc-event.fc-invitation-tentative {
|
||||
border: 1px dashed #eb8900 !important;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-declined,
|
||||
.fc-event-hori.fc-invitation-declined {
|
||||
.fc-event.fc-invitation-declined,
|
||||
.fc-event.fc-invitation-declined {
|
||||
border: 1px dashed #c00 !important;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-event-ns-other.fc-invitation-declined,
|
||||
.fc-event-hori.fc-event-ns-other.fc-invitation-declined {
|
||||
.fc-event.fc-event-ns-other.fc-invitation-declined,
|
||||
.fc-event.fc-event-ns-other.fc-invitation-declined {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.fc-event-ns-other.fc-invitation-declined .fc-event-title {
|
||||
.fc-event-ns-other.fc-invitation-declined .fc-title {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-tentative .fc-event-head,
|
||||
.fc-event-vert.fc-invitation-declined .fc-event-head,
|
||||
.fc-event-vert.fc-invitation-needs-action .fc-event-head {
|
||||
/* background-color: transparent !important; */
|
||||
.fc-event .fc-bg {
|
||||
opacity: .15;
|
||||
margin-top: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-tentative .fc-event-bg {
|
||||
.fc-event.fc-invitation-tentative .fc-bg {
|
||||
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAOuJAP///yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
||||
opacity: .25;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-needs-action .fc-event-bg {
|
||||
.fc-event.fc-invitation-needs-action .fc-bg {
|
||||
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAFdXx////yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
||||
opacity: .25;
|
||||
}
|
||||
|
||||
.fc-event-vert.fc-invitation-declined .fc-event-bg {
|
||||
.fc-event.fc-invitation-declined .fc-bg {
|
||||
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAMwAAP///yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
||||
opacity: .25;
|
||||
}
|
||||
|
||||
.fc-view-table tr.fc-invitation-tentative td,
|
||||
.fc-view-table tr.fc-invitation-declined td,
|
||||
.fc-view-table tr.fc-invitation-needs-action td {
|
||||
.fc-list-view {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.fc-title,
|
||||
.fc-list-item-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fc-list-table tr.fc-invitation-tentative td,
|
||||
.fc-list-table tr.fc-invitation-declined td,
|
||||
.fc-list-table tr.fc-invitation-needs-action td {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.fc-view-table tr.fc-invitation-tentative td.fc-event-title,
|
||||
.fc-view-table tr.fc-invitation-declined td.fc-event-title,
|
||||
.fc-view-table tr.fc-invitation-needs-action td.fc-event-title {
|
||||
.fc-list-table tr.fc-invitation-tentative .fc-event-dot,
|
||||
.fc-list-table tr.fc-invitation-declined .fc-event-dot,
|
||||
.fc-list-table tr.fc-invitation-needs-action .fc-event-dot {
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
||||
.fc-list-table tr.fc-invitation-tentative td.fc-list-item-title,
|
||||
.fc-list-table tr.fc-invitation-declined td.fc-list-item-title,
|
||||
.fc-list-table tr.fc-invitation-needs-action td.fc-list-item-title {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#quickview-calendar .fc-view-table tr.fc-invitation-tentative td,
|
||||
#quickview-calendar .fc-view-table tr.fc-invitation-declined td,
|
||||
#quickview-calendar .fc-view-table tr.fc-invitation-needs-action td {
|
||||
#quickview-calendar .fc-list-table tr.fc-invitation-tentative td,
|
||||
#quickview-calendar .fc-list-table tr.fc-invitation-declined td,
|
||||
#quickview-calendar .fc-list-table tr.fc-invitation-needs-action td {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.calendarmain .fc-event:focus {
|
||||
outline: 1px solid rgba(71,135,177, 0.4);
|
||||
-webkit-box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
||||
-moz-box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
||||
-o-box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
||||
box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
||||
}
|
||||
.fc-event-title {
|
||||
font-weight: bold;
|
||||
box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
||||
}
|
||||
|
||||
.fc-needs-action,
|
||||
|
@ -1908,40 +1892,40 @@ a.dropdown-link:after {
|
|||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.cal-event-status-cancelled .fc-event-title {
|
||||
.cal-event-status-cancelled .fc-title {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.fc-event-hori .fc-event-title {
|
||||
.fc-event-hori .fc-title {
|
||||
font-weight: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.fc-event-hori .fc-event-time {
|
||||
.fc-event-hori .fc-time {
|
||||
white-space: nowrap;
|
||||
font-weight: normal !important;
|
||||
font-size: 10px;
|
||||
padding-right: 0.6em;
|
||||
}
|
||||
|
||||
.fc-grid .fc-event-time {
|
||||
.fc-grid .fc-time {
|
||||
font-weight: normal !important;
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
.calendarmain .fc-event-vert .fc-event-inner {
|
||||
.calendarmain .fc-event .fc-inner {
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.fc-event-cateories {
|
||||
font-style:italic;
|
||||
.fc-event-categories {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
div.fc-event-location {
|
||||
.fc-event-location {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.fc-more-link {
|
||||
.fc-more {
|
||||
color: #999;
|
||||
padding-top: 1px;
|
||||
cursor: pointer;
|
||||
|
@ -1955,13 +1939,13 @@ div.fc-event-location {
|
|||
background-color: rgba(198,198,198, 0.08);
|
||||
}
|
||||
|
||||
.calendarmain .fc-state-highlight {
|
||||
.calendarmain .fc-unthemed td.fc-day.fc-today {
|
||||
background-color: rgba(233,198,14, 0.12);
|
||||
}
|
||||
|
||||
.fc-widget-header,
|
||||
.fc-widget-content {
|
||||
border-color: #bbd3da !important;
|
||||
border-color: #c3c3c3 !important;
|
||||
}
|
||||
|
||||
.fc-widget-header .fc-agenda-divider-inner {
|
||||
|
@ -1974,6 +1958,11 @@ div.fc-event-location {
|
|||
text-shadow: 0px 1px 1px #fff;
|
||||
}
|
||||
|
||||
.fc-popover .fc-header .fc-title,
|
||||
.fc-list-heading .fc-widget-header {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.fc-view thead th.fc-widget-header {
|
||||
padding: 8px 0;
|
||||
color: #69939e;
|
||||
|
@ -2006,25 +1995,34 @@ div.fc-event-location {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.calendarmain .fc-view-table td.fc-list-header {
|
||||
.fc-list-table td.fc-list-header {
|
||||
color: #004458;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.calendarmain .fc-view-table tr.fc-event td {
|
||||
border-color: #bbd3da;
|
||||
.fc-list-table tr.fc-list-item {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.fc-list-table tr.fc-list-item:hover td {
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fc-list-table tr.fc-list-item td {
|
||||
border-color: #c3c3c3;
|
||||
padding: 6px 8px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.calendarmain .fc-view-table tr.fc-event td.fc-event-handle {
|
||||
.fc-list-table tr.fc-list-item td.fc-event-handle {
|
||||
padding: 6px 0 2px 7px;
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
.calendarmain .fc-view-table .fc-event-handle .fc-event-skin {
|
||||
.fc-list-table .fc-event-handle .fc-event-skin {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
|
@ -2034,7 +2032,7 @@ div.fc-event-location {
|
|||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.calendarmain .fc-view-table .fc-event-handle .fc-event-inner {
|
||||
.fc-list-table .fc-event-handle .fc-event-inner {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
|
@ -2045,35 +2043,44 @@ div.fc-event-location {
|
|||
border: 1px solid rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.calendarmain .fc-view-table col.fc-event-location {
|
||||
.calendarmain .fc-list-table col.fc-event-location {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.fc-view-table table.fc-list-smart {
|
||||
/* table-layout: auto; */
|
||||
.fc-event-dot {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.fc-listappend {
|
||||
text-align: center;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.fc-listappend .message {
|
||||
padding: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
.fc-list-empty {
|
||||
font-size: 150%;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fc-listappend .formlinks a {
|
||||
font-size: 12px;
|
||||
padding: 0 0.3em;
|
||||
max-width: initial;
|
||||
background: unset !important;
|
||||
}
|
||||
|
||||
.fc-event-temp {
|
||||
opacity: 0.4;
|
||||
filter: alpha(opacity=40); /* IE8 */
|
||||
}
|
||||
|
||||
.fc-axis {
|
||||
width: 35px !important;
|
||||
padding: 0 3px !important;
|
||||
}
|
||||
|
||||
.fc .fc-week-number {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fc-month-view .fc-week-number {
|
||||
width: 20px !important;
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.fc-time-grid .fc-now-indicator {
|
||||
border: 1px solid #3ec400;
|
||||
}
|
||||
|
||||
.fc-list-empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Settings section */
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -79,6 +79,11 @@ body, td, th, div, p, h3, select, input, textarea {
|
|||
padding-bottom: 1em;
|
||||
}
|
||||
|
||||
#calendarlist li div a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#calendarlist input,
|
||||
#calendarlist .handle {
|
||||
display: none;
|
||||
|
@ -101,7 +106,7 @@ body, td, th, div, p, h3, select, input, textarea {
|
|||
|
||||
@media print {
|
||||
.noprint,
|
||||
.fc-header-right span {
|
||||
.fc-right {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -116,33 +121,20 @@ body, td, th, div, p, h3, select, input, textarea {
|
|||
overflow: visible;
|
||||
}
|
||||
|
||||
.fc-event-skin,
|
||||
.fc-event-inner .fc-event-skin {
|
||||
.fc-unthemed td.fc-day.fc-today {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
a.fc-event,
|
||||
a.fc-event:hover {
|
||||
color: black;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.fc-event-title {
|
||||
.fc-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fc-event-hori .fc-event-title {
|
||||
font-weight: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.fc-event-hori .fc-event-time {
|
||||
white-space: nowrap;
|
||||
font-weight: normal !important;
|
||||
font-size: 10px;
|
||||
padding-right: 0.6em;
|
||||
}
|
||||
|
||||
.fc-grid .fc-event-time {
|
||||
font-weight: normal !important;
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
.fc-event-cateories {
|
||||
font-style: italic;
|
||||
}
|
||||
|
@ -155,6 +147,13 @@ body, td, th, div, p, h3, select, input, textarea {
|
|||
height: 1.4em;
|
||||
}
|
||||
|
||||
.fc-axis,
|
||||
.fc-week-number,
|
||||
.fc-day-number,
|
||||
.fc-view thead th.fc-widget-header {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.fc-widget-header,
|
||||
.fc-mon, .fc-tue, .fc-wed, .fc-thu, .fc-fri {
|
||||
background-color: #fff;
|
||||
|
@ -164,66 +163,34 @@ body, td, th, div, p, h3, select, input, textarea {
|
|||
border-color: #ccc;
|
||||
}
|
||||
|
||||
.fc-icon-alarms,
|
||||
.fc-icon-recurring {
|
||||
display: inline-block;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
background: url('images/eventicons.gif') 0 0 no-repeat;
|
||||
margin-left: 3px;
|
||||
line-height: 10px;
|
||||
.fc-list-table tr.fc-list-item td,
|
||||
.fc-list-view {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.fc-icon-alarms {
|
||||
background-position: 0 -13px;
|
||||
.fc-list-table tr:first-child td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.fc-view-list, .fc-view-table {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.fc-view-list div.fc-list-header,
|
||||
.fc-view-table td.fc-list-header {
|
||||
padding: 0.3em;
|
||||
background: #fff;
|
||||
font-weight: bold;
|
||||
font-size: 1.2em;
|
||||
color: #333;
|
||||
border-color: #333;
|
||||
border-style: solid;
|
||||
border-width: 1px 0;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.fc-list-section .fc-event {
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.fc-view-table tr.fc-event td,
|
||||
.fc-view-table tr.fc-event td.fc-event-handle {
|
||||
border-color: #999;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.fc-view-table tr.fc-last td {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.fc-view-table tr.fc-event .fc-event-description {
|
||||
padding-left: 2em;
|
||||
padding-top: 0em;
|
||||
}
|
||||
|
||||
.fc-event-vert .fc-event-description {
|
||||
.fc-event-description {
|
||||
font-size: 90%;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.fc-view-month .fc-event-hori .fc-event-inner {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.fc-view-table col.fc-event-location {
|
||||
col.fc-event-location {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.fc-event-row-secondary td {
|
||||
border: 0;
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
.fc-scroller {
|
||||
overflow: visible !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.fc-head .fc-row,
|
||||
.fc-day-grid .fc-row {
|
||||
margin-right: 0 !important;
|
||||
border-right-width: 0 !important;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Kolab 2-Factor Authentication",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Thomas Bruederli",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -100,7 +100,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
open: function(event, ui) {
|
||||
$(event.target).find('input[name="_verify_code"]').keypress(function(e) {
|
||||
if (e.which == 13) {
|
||||
$(e.target).closest('.ui-dialog').find('.ui-button.mainaction').click();
|
||||
$(e.target).closest('.ui-dialog').find('button.mainaction').click();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -242,7 +242,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
// submit code on <Enter>
|
||||
$(event.target).find('input[name="_code"]').keypress(function(e) {
|
||||
if (e.which == 13) {
|
||||
$(e.target).closest('.ui-dialog').find('.ui-button.mainaction').click();
|
||||
$(e.target).closest('.ui-dialog').find('button.mainaction').click();
|
||||
}
|
||||
}).select();
|
||||
},
|
||||
|
|
|
@ -1,16 +1,9 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab 2-Factor-Auth plugin
|
||||
*
|
||||
* Copyright (C) 2015, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_2fa/
|
||||
*/
|
||||
$labels['created'] = 'Erstellt';
|
||||
$labels['remove'] = 'Entfernen';
|
||||
$labels['continue'] = 'Weiter';
|
||||
$labels['or'] = 'oder';
|
||||
$labels['yes'] = 'Ja';
|
||||
$labels['no'] = 'Nein';
|
||||
$labels['label'] = 'Name';
|
||||
$labels['verifycodeexplainhotp'] = $labels['verifycodeexplaintotp'];
|
||||
$labels['enterhighsecurity'] = 'Bestätigen';
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
<h1 class="voice"><roundcube:label name="kolab_2fa.settingstitle" /></h1>
|
||||
|
||||
<div class="content selected no-navbar" role="main">
|
||||
<div id="layout-content" class="selected no-navbar" role="main">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon back-list-button" href="#back"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span class="header-title"><roundcube:label name="kolab_2fa.settingstitle" /></span>
|
||||
<div class="toolbar"></div>
|
||||
<div class="toolbar menu"></div>
|
||||
</div>
|
||||
<div class="scroller frame-content">
|
||||
<p class="addfactor">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "ActiveSync configuration utility for Kolab accounts",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Thomas Bruederli",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
|
||||
// The page with Activesync clients configuration manual
|
||||
$config['activesync_setup_url'] = 'http://docs.kolab.org/client-configuration/';
|
||||
$config['activesync_setup_url'] = 'https://kb.kolabenterprise.com/documentation/setting-up-an-activesync-client';
|
||||
|
|
|
@ -29,7 +29,7 @@ class kolab_activesync_ui
|
|||
private $plugin;
|
||||
public $device = array();
|
||||
|
||||
const SETUP_URL = 'http://docs.kolab.org/client-configuration';
|
||||
const SETUP_URL = 'https://kb.kolabenterprise.com/documentation/setting-up-an-activesync-client';
|
||||
|
||||
|
||||
public function __construct($plugin)
|
||||
|
|
|
@ -30,4 +30,3 @@ $labels['os'] = 'Betriebssystem';
|
|||
$labels['oslanguage'] = 'Betriebssystemsprache';
|
||||
$labels['phonenumber'] = 'Telefonnummer';
|
||||
$labels['arialabeldeviceframe'] = 'Formular für die Einstellungen zur Gerätesynchronisation';
|
||||
?>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<h1 class="voice"><roundcube:label name="kolab_activesync.tabtitle" /></h1>
|
||||
|
||||
<!-- devices list -->
|
||||
<div class="list listbox selected" aria-labelledby="aria-label-deviceslist">
|
||||
<div id="layout-list" class="listbox selected" aria-labelledby="aria-label-deviceslist">
|
||||
<div class="header">
|
||||
<a class="button icon back-sidebar-button" href="#sidebar"><span class="inner"><roundcube:label name="settings" /></span></a>
|
||||
<span id="aria-label-deviceslist" class="header-title"><roundcube:label name="kolab_activesync.devices" /></span>
|
||||
|
@ -18,15 +18,15 @@
|
|||
</div>
|
||||
|
||||
<!-- device info frame -->
|
||||
<div class="content" role="main">
|
||||
<div id="layout-content" role="main">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon back-list-button" href="#back"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span class="header-title"></span>
|
||||
<!-- toolbar -->
|
||||
<div class="toolbar">
|
||||
<div class="toolbar menu">
|
||||
<roundcube:button command="plugin.delete-device" type="link"
|
||||
class="button delete disabled" classAct="button delete"
|
||||
class="delete disabled" classAct="button delete"
|
||||
label="delete" title="kolab_activesync.deletedevice" innerclass="inner" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Kolab addressbook",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Thomas Bruederli",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
# Mads <mads@batmads.com>, 2016
|
||||
# Max Hellwig <max.hellwig@translating-energy.de>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Mads <mads@batmads.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:9
|
||||
msgid "Sharing Address Books"
|
||||
msgstr "Adressbücher teilen"
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:11
|
||||
msgid ""
|
||||
"Just like calendars or regular email folders, personal address books can "
|
||||
"also be shared with other users in your workgroup."
|
||||
msgstr "Persönliche Adressbücher können genauso wie Kalender oder normale E-Mail-Ordner mit anderen Nutzern Ihrer Arbeitsgruppe geteilt werden. "
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:16
|
||||
msgid "Share Contacts with others"
|
||||
msgstr "Kontakte mit Anderen teilen"
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:22
|
||||
msgid ""
|
||||
"Settings for sharing is controlled through the address book properties "
|
||||
"accessible through the *More actions* menu behind the gear icon the footer "
|
||||
"in the :ref:`addressbook-groups` list."
|
||||
msgstr "Die Einstellungen zum Teilen werden über die Eigenschaften des Adressbuchs gemacht, die durch das *Weitere Tätigkeiten*-Menü hinter dem Zahnradicon in der Fußzeile der :ref: `Adressbuchgruppen <addressbook-groups>`-Liste zu erreichen sind. "
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:25
|
||||
msgid "Select the address book you want to share."
|
||||
msgstr "Wählen Sie das Adressbuch aus, dass Sie teilen möchten."
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:26
|
||||
msgid "Choose *Edit address book* from the actions menu."
|
||||
msgstr "Wählen Sie *Adressbuch bearbeiten* aus dem Tätigkeitenmenü. "
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:27
|
||||
msgid "Switch to the *Sharing* tab in the properties form on the right."
|
||||
msgstr "Wechseln Sie auf den *Teilen*-Reiter in der Eigenschaftenmaske rechts. "
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:29
|
||||
msgid ""
|
||||
"The table displays who already has permission to see and modify the selected"
|
||||
" address book. Here you can manage permissions the same way as :ref:`Sharing"
|
||||
" a Folder <settings-folder-sharing>`."
|
||||
msgstr "Die Tabelle zeigt an, wer schon die Erlaubnis hat, das ausgewählte Adressbuch zu sehen und verändern. Freigaben können hier auf die selbe Weise, wie :ref: `Ordner teilen <settings-folder-sharing>` verwaltet werden. "
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:34
|
||||
msgid "Subscribe to Shared Address Books"
|
||||
msgstr "Geteilte Adressbücher abonnieren"
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:36
|
||||
msgid ""
|
||||
"Address books shared by others are not showing up right away in the "
|
||||
"directories list of the web client. Switch to :ref:`Settings > Folders "
|
||||
"<settings-folders>` to see all resources you can access. There's a shortcut "
|
||||
"to this: click *Manage folders* in the actions menu behind the gear icon "
|
||||
"located the footer of the directory list."
|
||||
msgstr "Adressbücher, die von anderen geteilt wurden, werden nicht sofort in der Verzeichnisliste des Webclients angezeigt. Wechseln Sie zu :ref: `Einstellungen > Ordner <settings-folders>`, um alle Hilfsmittel, auf die Sie Zugriff haben, zu sehen. Es gibt einen schnelleren Weg dorthin: Klicken Sie auf *Ordner verwalten* im Tätigkeitenmenü hinter dem Zahnradicon in der Fußzeile der Verzeichnisliste. "
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:41
|
||||
msgid ""
|
||||
"In order to make a shared address book appear in the address book view, "
|
||||
"locate it in the folder manager and check the *Subscribed* mark in the list."
|
||||
" Only subscribed directories are visible in the address book view."
|
||||
msgstr "Um ein geteiltes Adressbuch in der Adressbuchansicht anzuzeigen, wählen Sie es in der Ordnerverwaltung aus und setzen Sie bei *Abonniert* ein Häkchen in der Liste. Nur abonnierte Verzeichnisse sind in der Adressbuchansicht sichtbar. "
|
|
@ -3,66 +3,63 @@
|
|||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
# Ettore Atalan <atalanttore@googlemail.com>, 2014
|
||||
# Mads <mads@batmads.com>, 2016
|
||||
# Max Hellwig <max.hellwig@translating-energy.de>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2017-09-23 20:32+0000\n"
|
||||
"Last-Translator: Mads <mads@batmads.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/kolab/kolab-documentation/language/de/)\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:34+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/kolab/kolab-documentation/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:9
|
||||
msgid "Sharing Address Books"
|
||||
msgstr "Adressbücher teilen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:11
|
||||
msgid ""
|
||||
"Just like calendars or regular email folders, personal address books can "
|
||||
"also be shared with other users in your workgroup."
|
||||
msgstr "Persönliche Adressbücher können genauso wie Kalender oder normale E-Mail-Ordner mit anderen Nutzern Ihrer Arbeitsgruppe geteilt werden. "
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:16
|
||||
msgid "Share Contacts with others"
|
||||
msgstr "Kontakte mit Anderen teilen"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:22
|
||||
msgid ""
|
||||
"Settings for sharing is controlled through the address book properties "
|
||||
"accessible through the *More actions* menu behind the gear icon the footer "
|
||||
"in the :ref:`addressbook-groups` list."
|
||||
msgstr "Die Einstellungen zum Teilen werden über die Eigenschaften des Adressbuchs gemacht, die durch das *Weitere Tätigkeiten*-Menü hinter dem Zahnradicon in der Fußzeile der :ref: `Adressbuchgruppen <addressbook-groups>`-Liste zu erreichen sind. "
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:25
|
||||
msgid "Select the address book you want to share."
|
||||
msgstr "Wählen Sie das Adressbuch aus, dass Sie teilen möchten."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:26
|
||||
msgid "Choose *Edit address book* from the actions menu."
|
||||
msgstr "Wählen Sie *Adressbuch bearbeiten* aus dem Tätigkeitenmenü. "
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:27
|
||||
msgid "Switch to the *Sharing* tab in the properties form on the right."
|
||||
msgstr "Wechseln Sie auf den *Teilen*-Reiter in der Eigenschaftenmaske rechts. "
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:29
|
||||
msgid ""
|
||||
"The table displays who already has permission to see and modify the selected"
|
||||
" address book. Here you can manage permissions the same way as :ref:`Sharing"
|
||||
" a Folder <settings-folder-sharing>`."
|
||||
msgstr "Die Tabelle zeigt an, wer schon die Erlaubnis hat, das ausgewählte Adressbuch zu sehen und verändern. Freigaben können hier auf die selbe Weise, wie :ref: `Ordner teilen <settings-folder-sharing>` verwaltet werden. "
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:34
|
||||
msgid "Subscribe to Shared Address Books"
|
||||
msgstr "Geteilte Adressbücher abonnieren"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:36
|
||||
msgid ""
|
||||
|
@ -71,11 +68,11 @@ msgid ""
|
|||
"<settings-folders>` to see all resources you can access. There's a shortcut "
|
||||
"to this: click *Manage folders* in the actions menu behind the gear icon "
|
||||
"located the footer of the directory list."
|
||||
msgstr "Adressbücher, die von anderen geteilt wurden, werden nicht sofort in der Verzeichnisliste des Webclients angezeigt. Wechseln Sie zu :ref: `Einstellungen > Ordner <settings-folders>`, um alle Hilfsmittel, auf die Sie Zugriff haben, zu sehen. Es gibt einen schnelleren Weg dorthin: Klicken Sie auf *Ordner verwalten* im Tätigkeitenmenü hinter dem Zahnradicon in der Fußzeile der Verzeichnisliste. "
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:41
|
||||
msgid ""
|
||||
"In order to make a shared address book appear in the address book view, "
|
||||
"locate it in the folder manager and check the *Subscribed* mark in the list."
|
||||
" Only subscribed directories are visible in the address book view."
|
||||
msgstr "Um ein geteiltes Adressbuch in der Adressbuchansicht anzuzeigen, wählen Sie es in der Ordnerverwaltung aus und setzen Sie bei *Abonniert* ein Häkchen in der Liste. Nur abonnierte Verzeichnisse sind in der Adressbuchansicht sichtbar. "
|
||||
msgstr ""
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2014, roundcube.net
|
||||
# This file is distributed under the same license as the Roundcube Webmail Help package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kolab Documentation\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-26 23:28+0100\n"
|
||||
"PO-Revision-Date: 2014-11-27 23:34+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/kolab/kolab-documentation/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:9
|
||||
msgid "Sharing Address Books"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:11
|
||||
msgid ""
|
||||
"Just like calendars or regular email folders, personal address books can "
|
||||
"also be shared with other users in your workgroup."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:16
|
||||
msgid "Share Contacts with others"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:22
|
||||
msgid ""
|
||||
"Settings for sharing is controlled through the address book properties "
|
||||
"accessible through the *More actions* menu behind the gear icon the footer "
|
||||
"in the :ref:`addressbook-groups` list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:25
|
||||
msgid "Select the address book you want to share."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:26
|
||||
msgid "Choose *Edit address book* from the actions menu."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:27
|
||||
msgid "Switch to the *Sharing* tab in the properties form on the right."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:29
|
||||
msgid ""
|
||||
"The table displays who already has permission to see and modify the selected"
|
||||
" address book. Here you can manage permissions the same way as :ref:`Sharing"
|
||||
" a Folder <settings-folder-sharing>`."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:34
|
||||
msgid "Subscribe to Shared Address Books"
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:36
|
||||
msgid ""
|
||||
"Address books shared by others are not showing up right away in the "
|
||||
"directories list of the web client. Switch to :ref:`Settings > Folders "
|
||||
"<settings-folders>` to see all resources you can access. There's a shortcut "
|
||||
"to this: click *Manage folders* in the actions menu behind the gear icon "
|
||||
"located the footer of the directory list."
|
||||
msgstr ""
|
||||
|
||||
#: ../../en_US/_plugins/kolab_addressbook/addressbook.rst:41
|
||||
msgid ""
|
||||
"In order to make a shared address book appear in the address book view, "
|
||||
"locate it in the folder manager and check the *Subscribed* mark in the list."
|
||||
" Only subscribed directories are visible in the address book view."
|
||||
msgstr ""
|
|
@ -88,7 +88,7 @@ class kolab_addressbook extends rcube_plugin
|
|||
if ($this->bonnie_api) {
|
||||
$this->add_button(array(
|
||||
'command' => 'contact-history-dialog',
|
||||
'class' => 'history contact-history',
|
||||
'class' => 'history contact-history disabled',
|
||||
'classact' => 'history contact-history active',
|
||||
'innerclass' => 'icon inner',
|
||||
'label' => 'kolab_addressbook.showhistory',
|
||||
|
@ -204,8 +204,9 @@ class kolab_addressbook extends rcube_plugin
|
|||
$jsdata = array();
|
||||
$sources = (array)$this->rc->get_address_sources();
|
||||
|
||||
// list all non-kolab sources first
|
||||
foreach (array_filter($sources, function($source){ return empty($source['kolab']); }) as $j => $source) {
|
||||
// list all non-kolab sources first (also exclude hidden sources)
|
||||
$filter = function($source){ return empty($source['kolab']) && empty($source['hidden']); };
|
||||
foreach (array_filter($sources, $filter) as $j => $source) {
|
||||
$id = strval(strlen($source['id']) ? $source['id'] : $j);
|
||||
$out .= $this->addressbook_list_item($id, $source, $jsdata) . '</li>';
|
||||
}
|
||||
|
@ -830,10 +831,9 @@ class kolab_addressbook extends rcube_plugin
|
|||
}
|
||||
|
||||
$ldap_public = $this->rc->config->get('ldap_public');
|
||||
$abook_type = $this->rc->config->get('address_book_type');
|
||||
|
||||
// Hide option if there's no global addressbook
|
||||
if (empty($ldap_public) || $abook_type != 'ldap') {
|
||||
if (empty($ldap_public)) {
|
||||
return $args;
|
||||
}
|
||||
|
||||
|
@ -1125,9 +1125,8 @@ class kolab_addressbook extends rcube_plugin
|
|||
// Make sure any global addressbooks are defined
|
||||
if ($abook_prio == 0 || $abook_prio == 2) {
|
||||
$ldap_public = $this->rc->config->get('ldap_public');
|
||||
$abook_type = $this->rc->config->get('address_book_type');
|
||||
|
||||
if (empty($ldap_public) || $abook_type != 'ldap') {
|
||||
if (empty($ldap_public)) {
|
||||
$abook_prio = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Address Book plugin
|
||||
*
|
||||
* Copyright (C) 2014, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_addressbook/
|
||||
*/
|
||||
$labels['initials'] = 'Initialen';
|
||||
$labels['profession'] = 'Berufsbezeichnung';
|
||||
$labels['officelocation'] = 'Büro Adresse';
|
||||
|
@ -52,15 +45,3 @@ $labels['objectchangelognotavailable'] = 'Änderungshistorie ist nicht verfügba
|
|||
$labels['objectdiffnotavailable'] = 'Vergleich für die gewählten Versionen nicht möglich';
|
||||
$labels['objectrestoresuccess'] = 'Revision $rev erfolgreich wiederhergestellt';
|
||||
$labels['objectrestoreerror'] = 'Fehler beim Wiederherstellen der alten Revision';
|
||||
$messages['bookdeleteconfirm'] = 'Soll das gewählte Adressbuch und alle Kontakte darin wirklich gelöscht werden?';
|
||||
$messages['bookdeleting'] = 'Adressbuch wird gelöscht...';
|
||||
$messages['booksaving'] = 'Adressbuch wird gespeichert...';
|
||||
$messages['bookdeleted'] = 'Adressbuch erfolgreich gelöscht.';
|
||||
$messages['bookupdated'] = 'Adressbuch erfolgreich aktualisiert.';
|
||||
$messages['bookcreated'] = 'Adressbuch erfolgreich angelegt.';
|
||||
$messages['bookdeleteerror'] = 'Fehler beim Löschen des Adressbuchs.';
|
||||
$messages['bookupdateerror'] = 'Fehler beim Aktualisieren des Adressbuchs.';
|
||||
$messages['bookcreateerror'] = 'Fehler beim Anlegen des Adressbuchs.';
|
||||
$messages['nobooknamewarning'] = 'Bitte den Namen des Adressbuchs angeben.';
|
||||
$messages['noemailnamewarning'] = 'Bitte E-Mail-Adresse oder Namen des Kontakts angeben.';
|
||||
?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<roundcube:object name="libkolab.folder_search_form" id="addressbooksearch" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="libkolab.folder_search_form" id="addressbooksearch" wrapper="searchbar menu"
|
||||
ariatag="h2" label="foldersearchform" label-domain="kolab_addressbook" buttontitle="findaddressbooks" />
|
||||
|
||||
<script>
|
||||
|
@ -11,7 +11,7 @@
|
|||
rcmail.addEventListener('init', function() {
|
||||
// Make checkboxes pretty
|
||||
rcmail.treelist.addEventListener('add-item', function(prop) {
|
||||
UI.pretty_checkbox($(prop.li).find('input').addClass('flex-checkbox'));
|
||||
UI.pretty_checkbox($(prop.li).find('input'));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Kolab authentication",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Thomas Bruederli",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -874,11 +874,15 @@ class kolab_auth extends rcube_plugin
|
|||
$username = sprintf('%s (as user %s)', $username, $login_as);
|
||||
}
|
||||
|
||||
// Don't log full session id for better security
|
||||
$session_id = session_id();
|
||||
$session_id = $session_id ? substr($session_id, 0, 16) : 'no-session';
|
||||
|
||||
$message = sprintf(
|
||||
"Failed login for %s from %s in session %s %s",
|
||||
$username,
|
||||
rcube_utils::remote_ip(),
|
||||
session_id() ?: 'no-session',
|
||||
$session_id,
|
||||
$message ? "($message)" : ''
|
||||
);
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ class kolab_auth_ldap extends rcube_ldap_generic
|
|||
return;
|
||||
}
|
||||
|
||||
if ($rec = $this->get_entry($dn)) {
|
||||
if ($rec = $this->get_entry($dn, $this->attributes)) {
|
||||
$rec = rcube_ldap_generic::normalize_entry($rec);
|
||||
$rec = $this->field_mapping($dn, $rec);
|
||||
}
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Auth plugin
|
||||
*
|
||||
* Copyright (C) 2014, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_auth/
|
||||
*/
|
||||
$labels['loginas'] = 'Anmelden als';
|
||||
$labels['loginasnotallowed'] = 'Keine Privilegien zum Anmelden als $user';
|
||||
?>
|
||||
|
|
661
plugins/kolab_auth_proxy/LICENSE
Normal file
661
plugins/kolab_auth_proxy/LICENSE
Normal file
|
@ -0,0 +1,661 @@
|
|||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
31
plugins/kolab_auth_proxy/README
Normal file
31
plugins/kolab_auth_proxy/README
Normal file
|
@ -0,0 +1,31 @@
|
|||
Proxy authentication for Kolab
|
||||
------------------------------
|
||||
|
||||
This plugin adds ability for configured external app/user to impersonate
|
||||
as another user in services based on Roundcube Framework.
|
||||
|
||||
Currently it works with Kolab iRony only, with one limitation - external file storages
|
||||
are not accessible.
|
||||
|
||||
CONFIGURATION
|
||||
-------------
|
||||
|
||||
1. In iRony config set:
|
||||
|
||||
$config['kolabdav_plugins'] = array('kolab_auth_proxy', 'kolab_auth');
|
||||
|
||||
Note: kolab_auth_proxy MUST be before kolab_auth.
|
||||
|
||||
2. In plugin config set:
|
||||
|
||||
$config['kolab_auth_proxy_user'] = 'proxy';
|
||||
$config['kolab_auth_proxy_pass'] = '12345';
|
||||
$config['kolab_auth_proxy_imap_user'] = 'cyrus-admin';
|
||||
$config['kolab_auth_proxy_imap_pass'] = 'password';
|
||||
|
||||
After this you should be able to use *DAV services using HTTP basic authentication
|
||||
with login: proxy**username and password: 12345, where "username" is the login of
|
||||
the user you want to impersonate as.
|
||||
|
||||
Note that there are more options in config if you need working functionality
|
||||
that involves accessing SMTP or LDAP.
|
25
plugins/kolab_auth_proxy/composer.json
Normal file
25
plugins/kolab_auth_proxy/composer.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name": "kolab/kolab_auth_proxy",
|
||||
"type": "roundcube-plugin",
|
||||
"description": "Proxy authentication for Kolab",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.2",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Aleksander Machniak",
|
||||
"email": "machniak@kolabsys.com",
|
||||
"role": "Lead"
|
||||
}
|
||||
],
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"roundcube/plugin-installer": ">=0.1.3"
|
||||
}
|
||||
}
|
30
plugins/kolab_auth_proxy/config.inc.php.dist
Normal file
30
plugins/kolab_auth_proxy/config.inc.php.dist
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
// Proxy user login
|
||||
// Note: that you should log using form of: <proxy_login>**<username>
|
||||
$config['kolab_auth_proxy_user'] = '';
|
||||
|
||||
// Proxy user password
|
||||
$config['kolab_auth_proxy_pass'] = '';
|
||||
|
||||
// IMAP (master) user
|
||||
$config['kolab_auth_proxy_imap_user'] = 'cyrus-admin';
|
||||
|
||||
// IMAP (master) password
|
||||
$config['kolab_auth_proxy_imap_pass'] = '';
|
||||
|
||||
// SMTP server host
|
||||
// To override the SMTP port or connection method, provide a full URL like 'tls://somehost:587'
|
||||
$config['kolab_auth_proxy_smtp_server'] = '';
|
||||
|
||||
// SMTP username
|
||||
$config['kolab_auth_proxy_smtp_user'] = '';
|
||||
|
||||
// SMTP password
|
||||
$config['kolab_auth_proxy_smtp_pass'] = '';
|
||||
|
||||
// LDAP user DN
|
||||
$config['kolab_auth_proxy_ldap_user'] = 'uid=kolab-service,ou=Special Users,dc=example,dc=org';
|
||||
|
||||
// LDAP password
|
||||
$config['kolab_auth_proxy_ldap_pass'] = '';
|
113
plugins/kolab_auth_proxy/kolab_auth_proxy.php
Normal file
113
plugins/kolab_auth_proxy/kolab_auth_proxy.php
Normal file
|
@ -0,0 +1,113 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Allow specific user to impersonate as any other user
|
||||
* to services based on Roundcube Framework.
|
||||
*
|
||||
* @author Aleksander Machniak <machniak@kolabsys.com>
|
||||
*
|
||||
* Copyright (C) 2019, Kolab Systems AG <contact@kolabsys.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
class kolab_auth_proxy extends rcube_plugin
|
||||
{
|
||||
/**
|
||||
* Plugin initialization
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
// Only iRony for now
|
||||
if (defined('KOLAB_DAV_VERSION')) {
|
||||
$this->add_hook('authenticate', array($this, 'authenticate'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Authenticate hook handler
|
||||
*/
|
||||
public function authenticate($args)
|
||||
{
|
||||
$this->load_config();
|
||||
$this->rc = rcube::get_instance();
|
||||
|
||||
$proxy_user = $this->rc->config->get('kolab_auth_proxy_user');
|
||||
$proxy_pass = $this->rc->config->get('kolab_auth_proxy_pass');
|
||||
|
||||
// Login is in a form of: <proxy_user>**<username>
|
||||
|
||||
if ($proxy_user && $args['pass'] === $proxy_pass
|
||||
&& strpos($args['user'], $proxy_user . '**') === 0
|
||||
&& ($target = substr($args['user'], strlen($proxy_user . '**')))
|
||||
) {
|
||||
$args['user'] = $target;
|
||||
$args['pass'] = '-dummy-'; // cannot be empty
|
||||
|
||||
// Disable iRony's auth cache, otherwise 'authenticate' hook will not
|
||||
// be executed on each request
|
||||
$args['no-cache'] = true;
|
||||
|
||||
$this->add_hook('storage_connect', array($this, 'storage_connect'));
|
||||
// $this->add_hook('managesieve_connect', array($this, 'storage_connect'));
|
||||
$this->add_hook('smtp_connect', array($this, 'smtp_connect'));
|
||||
$this->add_hook('ldap_connected', array($this, 'ldap_connected'));
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
/**
|
||||
* Storage_connect/managesieve_connect hook handler
|
||||
*/
|
||||
public function storage_connect($args)
|
||||
{
|
||||
$imap_user = $this->rc->config->get('kolab_auth_proxy_imap_user');
|
||||
$imap_pass = $this->rc->config->get('kolab_auth_proxy_imap_pass');
|
||||
|
||||
$args['auth_cid'] = $imap_user;
|
||||
$args['auth_pw'] = $imap_pass;
|
||||
$args['auth_type'] = 'PLAIN';
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
/**
|
||||
* Smtp_connect hook handler
|
||||
*/
|
||||
public function smtp_connect($args)
|
||||
{
|
||||
foreach (array('smtp_server', 'smtp_user', 'smtp_pass') as $prop) {
|
||||
$args[$prop] = $this->rc->config->get("kolab_auth_proxy_$prop", $args[$prop]);
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
/**
|
||||
* ldap_connected hook handler
|
||||
*/
|
||||
public function ldap_connected($args)
|
||||
{
|
||||
$ldap_user = $this->rc->config->get('kolab_auth_proxy_ldap_user');
|
||||
$ldap_pass = $this->rc->config->get('kolab_auth_proxy_ldap_pass');
|
||||
|
||||
if ($ldap_user && $ldap_pass && $args['user_specific']) {
|
||||
$args['bind_dn'] = $ldap_user;
|
||||
$args['bind_pass'] = $ldap_pass;
|
||||
$args['search_filter'] = null;
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Chat integration plugin",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Aleksander Machniak",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Chat plugin
|
||||
*
|
||||
* Copyright (C) 2018, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_chat/
|
||||
*/
|
||||
$labels['chat'] = 'Chat';
|
||||
$labels['showinextwin'] = 'Chatanwendung in einem neuen Fenster öffnen';
|
||||
$labels['directmessage'] = 'Eine direkte Nachricht von $u.';
|
||||
$labels['mentionmessage'] = 'Sie wurden von $u in $c erwähnt.';
|
||||
$labels['openchat'] = 'Chat öffnen';
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
<h1 class="voice"><roundcube:label name="kolab_chat.chat" /></h1>
|
||||
|
||||
<div class="content selected no-navbar" role="main">
|
||||
<div id="layout-content" class="selected no-navbar" role="main">
|
||||
<div class="header" data-hidden="lbs">
|
||||
<a class="button icon menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon task-menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<span class="header-title"><roundcube:label name="kolab_chat.chat" /></span>
|
||||
</div>
|
||||
<div class="iframe-wrapper">
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Kolab delegation feature",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Aleksander Machniak",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Delegation plugin
|
||||
*
|
||||
* Copyright (C) 2014, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_delegation/
|
||||
*/
|
||||
$labels['tabtitle'] = 'Vertretung';
|
||||
$labels['delegationtitle'] = 'Verwalte Vertreter';
|
||||
$labels['delegates'] = 'Vertreter';
|
||||
|
@ -33,4 +26,3 @@ $labels['createsuccess'] = 'Der Vertreter wurde erfolgreich hinzugefügt';
|
|||
$labels['createerror'] = 'Konnte Vertreter nicht hinzufügen.';
|
||||
$labels['arialabeldelegatedelete'] = 'Vertreter Löschen Dialog';
|
||||
$labels['arialabeldelegateform'] = 'Verterter Eigenschaften Maske';
|
||||
?>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<h1 class="voice"><roundcube:label name="kolab_delegation.tabtitle" /></h1>
|
||||
|
||||
<!-- devices list -->
|
||||
<div class="list listbox selected" aria-labelledby="aria-label-delegateslist">
|
||||
<div id="layout-list" class="listbox selected" aria-labelledby="aria-label-delegateslist">
|
||||
<div class="header">
|
||||
<a class="button icon back-sidebar-button" href="#sidebar"><span class="inner"><roundcube:label name="settings" /></span></a>
|
||||
<span id="aria-label-delegateslist" class="header-title"><roundcube:label name="kolab_delegation.delegates" /></span>
|
||||
|
@ -15,19 +15,16 @@
|
|||
<roundcube:object name="plugin.delegatelist" id="delegate-table" class="listing" role="listbox"
|
||||
data-label-msg="listempty" data-label-ext="listusebutton" data-create-command="delegate-add" />
|
||||
</div>
|
||||
<!--
|
||||
<div class="footer"></div>
|
||||
-->
|
||||
</div>
|
||||
|
||||
<!-- delegatee info frame -->
|
||||
<div class="content" role="main">
|
||||
<div id="layout-content" role="main">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon back-list-button" href="#back"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span class="header-title"></span>
|
||||
<!-- toolbar -->
|
||||
<div class="toolbar">
|
||||
<div class="toolbar menu">
|
||||
<roundcube:button command="delegate-add" type="link"
|
||||
label="create" title="kolab_delegation.adddelegate"
|
||||
class="button create disabled" classAct="button create" innerClass="inner" />
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "User interface for Kolab File Manager (Chwala)",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Aleksander Machniak",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -185,7 +185,7 @@ function kolab_files_init()
|
|||
}
|
||||
else if (rcmail.env.action == 'open') {
|
||||
// initialize folders list (for dialogs)
|
||||
file_api.folder_list();
|
||||
// file_api.folder_list();
|
||||
|
||||
// get ongoing sessions
|
||||
file_api.request('folder_info', {folder: file_api.file_path(rcmail.env.file), sessions: 1}, 'folder_info_response');
|
||||
|
@ -259,6 +259,11 @@ function kolab_files_init()
|
|||
document_editor = new document_editor_api(editor_config);
|
||||
else
|
||||
document_editor = new manticore_api(editor_config);
|
||||
|
||||
rcmail.addEventListener('responseafterreset', function(o) {
|
||||
// update caps/mountpoints on reset
|
||||
file_api.set_env({caps: rcmail.env.files_caps});
|
||||
});
|
||||
};
|
||||
|
||||
// returns API authorization token
|
||||
|
@ -773,7 +778,7 @@ function kolab_files_file_create_dialog(file)
|
|||
create_func = function(dialog, editaction) {
|
||||
var sel, folder = select.val(), type = type_select.val(), name = input.val();
|
||||
|
||||
if (!name || !folder)
|
||||
if (!name || !folder || !file_api.is_writable(folder))
|
||||
return;
|
||||
|
||||
if (!/\.[a-z0-9]{1,5}$/.test(name)) {
|
||||
|
@ -911,7 +916,8 @@ function kolab_dialog_show(content, params, onopen)
|
|||
params.close = function(e, ui) {
|
||||
var elem, stack = rcmail.dialog_stack;
|
||||
|
||||
content.appendTo(document.body).hide();
|
||||
content.appendTo(document.body);
|
||||
content.hide(); // for Larry's dialogs
|
||||
$(this).parent().remove(); // remove dialog
|
||||
|
||||
// focus previously focused element (guessed)
|
||||
|
@ -927,10 +933,11 @@ function kolab_dialog_show(content, params, onopen)
|
|||
rcmail.ksearch_blur();
|
||||
};
|
||||
|
||||
// display it as popup
|
||||
var dialog = rcmail.show_popup_dialog('', params.title, params.buttons, params);
|
||||
// This is required for Larry's dialogs
|
||||
params.create = function() { content.show(); };
|
||||
|
||||
content.appendTo(dialog).show().find('input[type!="hidden"]:not(:hidden):first').focus();
|
||||
// display it as popup
|
||||
var dialog = rcmail.show_popup_dialog(content, params.title, params.buttons, params);
|
||||
|
||||
if (onopen) onopen(content);
|
||||
|
||||
|
@ -944,7 +951,7 @@ function kolab_dialog_show(content, params, onopen)
|
|||
// Handle form submit with Enter key, click first dialog button instead
|
||||
function kolab_dialog_submit_handler()
|
||||
{
|
||||
$(this).parents('.ui-dialog').find('.ui-button').first().click();
|
||||
$(this).parents('.ui-dialog').find('.ui-dialog-buttonpane button').first().click();
|
||||
return false;
|
||||
};
|
||||
|
||||
|
@ -1251,10 +1258,6 @@ function kolab_files_frame_load(frame)
|
|||
}
|
||||
catch (e) {};
|
||||
|
||||
// on edit page switch immediately to edit mode
|
||||
if (rcmail.file_editor && rcmail.file_editor.editable && rcmail.env.action == 'edit')
|
||||
rcmail.files_edit();
|
||||
|
||||
rcmail.enable_command('files-edit', (rcmail.file_editor && rcmail.file_editor.editable)
|
||||
|| rcmail.env.editor_type
|
||||
|| (file_api.file_type_supported(rcmail.env.file_data.type, rcmail.env.files_caps) & 4));
|
||||
|
@ -1266,6 +1269,10 @@ function kolab_files_frame_load(frame)
|
|||
rcmail.enable_command('image-scale', 'image-rotate', info && !!/^image\//.test(info.type));
|
||||
rcmail.gui_objects.messagepartframe = frame;
|
||||
|
||||
// on edit page switch immediately to edit mode
|
||||
if (rcmail.file_editor && rcmail.file_editor.editable && rcmail.env.action == 'edit')
|
||||
rcmail.files_edit();
|
||||
|
||||
// detect Print button and check if it can be accessed
|
||||
try {
|
||||
if ($('#fileframe').contents().find('#print').length)
|
||||
|
@ -1858,9 +1865,14 @@ rcube_webmail.prototype.files_copy = function(folder, obj, event, files)
|
|||
// create folder selector popup
|
||||
rcube_webmail.prototype.files_folder_selector = function(event, callback)
|
||||
{
|
||||
if (this.folder_selector_reset)
|
||||
this.destroy_entity_selector('folder-selector');
|
||||
|
||||
// The list is incomplete, reset needed before next use
|
||||
this.folder_selector_reset = file_api.list_updates > 0;
|
||||
|
||||
this.entity_selector('folder-selector', callback, file_api.env.folders, function(folder, a, folder_fullname) {
|
||||
var n = folder.depth || 0,
|
||||
id = folder.id,
|
||||
row = $('<li>');
|
||||
|
||||
if (folder.virtual || folder.readonly)
|
||||
|
@ -2091,7 +2103,7 @@ function kolab_files_ui()
|
|||
{
|
||||
this.requests = {};
|
||||
this.uploads = [];
|
||||
this.workers = {};
|
||||
this.list_updates = 0;
|
||||
|
||||
/*
|
||||
// Called on "session expired" session
|
||||
|
@ -2155,28 +2167,39 @@ function kolab_files_ui()
|
|||
var root = folder.split(this.env.directory_separator)[0],
|
||||
caps = this.env.caps;
|
||||
|
||||
if (this.env.caps.MOUNTPOINTS && this.env.caps.MOUNTPOINTS[root])
|
||||
if (this.env.caps.MOUNTPOINTS[root])
|
||||
caps = root != folder ? this.env.caps.MOUNTPOINTS[root] : {};
|
||||
|
||||
return !!caps.ACL;
|
||||
};
|
||||
|
||||
// folders list request
|
||||
this.folder_list = function(params)
|
||||
this.folder_list = function(params, update)
|
||||
{
|
||||
if (!params)
|
||||
params = {}
|
||||
|
||||
params.permissions = 1;
|
||||
params.req = this.set_busy(true, 'loading');
|
||||
|
||||
this.request('folder_list', this.list_params = params, 'folder_list_response');
|
||||
if (params.level === undefined)
|
||||
params.level = -1;
|
||||
|
||||
if (update) {
|
||||
this.list_updates++;
|
||||
params.req = rcmail.display_message('', 'loading');
|
||||
}
|
||||
else {
|
||||
params.req = this.set_busy(true, 'loading');
|
||||
this.list_params = params;
|
||||
}
|
||||
|
||||
this.request('folder_list', params, update ? 'folder_list_update_response' : 'folder_list_response');
|
||||
};
|
||||
|
||||
// folder list response handler
|
||||
this.folder_list_response = function(response)
|
||||
this.folder_list_response = function(response, params)
|
||||
{
|
||||
rcmail.hide_message(this.list_params.req);
|
||||
rcmail.hide_message(params.req);
|
||||
|
||||
if (!this.response(response))
|
||||
return;
|
||||
|
@ -2197,12 +2220,14 @@ function kolab_files_ui()
|
|||
searchbox = $(search_selector, body);
|
||||
}
|
||||
|
||||
this.list_element = list;
|
||||
|
||||
if (elem.data('no-collections') == true)
|
||||
collections = [];
|
||||
|
||||
this.env.folders = this.folder_list_parse(response.result && response.result.list ? response.result.list : response.result);
|
||||
|
||||
rcmail.enable_command('files-create', true);
|
||||
rcmail.enable_command('files-create', response.result && response.result.list && response.result.list.length > 0);
|
||||
|
||||
if (!elem.length)
|
||||
return;
|
||||
|
@ -2229,7 +2254,7 @@ function kolab_files_ui()
|
|||
});
|
||||
|
||||
// add Sessions entry
|
||||
if (rcmail.task == 'files' && !rcmail.env.action && rcmail.env.files_caps && rcmail.env.files_caps.DOCEDIT) {
|
||||
if (rcmail.task == 'files' && !rcmail.env.action && this.env.caps && this.env.caps.DOCEDIT) {
|
||||
rows.push($('<li class="mailbox collection sessions"></li>')
|
||||
.attr('id', 'rcmli' + rcmail.html_identifier_encode('folder-collection-sessions'))
|
||||
.append($('<a class="name"></a>').text(rcmail.gettext('kolab_files.sessions')))
|
||||
|
@ -2288,8 +2313,10 @@ function kolab_files_ui()
|
|||
else if (this.env.collection)
|
||||
rcmail.folder_list.select('folder-collection-' + this.env.collection);
|
||||
else if (folder = this.env.init_folder) {
|
||||
this.env.init_folder = null;
|
||||
rcmail.folder_list.select(folder);
|
||||
if (this.env.folders[folder]) {
|
||||
this.env.init_folder = null;
|
||||
rcmail.folder_list.select(folder);
|
||||
}
|
||||
}
|
||||
else if (folder = this.env.init_collection) {
|
||||
this.env.init_collection = null;
|
||||
|
@ -2298,12 +2325,19 @@ function kolab_files_ui()
|
|||
else if (first)
|
||||
rcmail.folder_list.select(first);
|
||||
|
||||
// add tree icons
|
||||
// this.folder_list_tree(this.env.folders);
|
||||
|
||||
// handle authentication errors on external sources
|
||||
this.folder_list_auth_errors(response.result);
|
||||
|
||||
// Fetch 2 levels of folder hierarchy for all mount points that
|
||||
// do not support fast folders list
|
||||
if (rcmail.env.files_api_version > 4) {
|
||||
var ref = this;
|
||||
$.each(this.env.caps.MOUNTPOINTS || [], function(k, v) {
|
||||
if (!v.FAST_FOLDER_LIST)
|
||||
ref.folder_list({level: 2, folder: k}, true);
|
||||
});
|
||||
}
|
||||
|
||||
// Elastic: Set notree class on the folder list
|
||||
var callback = function() {
|
||||
list[list.find('.treetoggle').length > 0 ? 'removeClass' : 'addClass']('notree');
|
||||
|
@ -2313,6 +2347,34 @@ function kolab_files_ui()
|
|||
callback();
|
||||
};
|
||||
|
||||
// folder list response handler
|
||||
this.folder_list_update_response = function(response, params)
|
||||
{
|
||||
rcmail.hide_message(params.req);
|
||||
|
||||
this.list_updates--;
|
||||
|
||||
if (!this.response(response))
|
||||
return;
|
||||
|
||||
// handle authentication errors on external sources
|
||||
this.folder_list_auth_errors(response.result);
|
||||
|
||||
// Update the list
|
||||
this.folder_list_merge(params.folder, response.result.list, params.level);
|
||||
};
|
||||
|
||||
this.folder_list_update_wait = function(folder)
|
||||
{
|
||||
var ref = this;
|
||||
|
||||
// do maximum 10 parallel requests
|
||||
if (this.list_updates > 10)
|
||||
return setTimeout(function() { ref.folder_list_update_wait(folder); }, 20);
|
||||
|
||||
this.folder_list({folder: folder, level: 0}, true);
|
||||
};
|
||||
|
||||
this.folder_select = function(folder)
|
||||
{
|
||||
if (rcmail.busy || !folder)
|
||||
|
@ -2404,6 +2466,7 @@ function kolab_files_ui()
|
|||
if (folder.depth) {
|
||||
// find parent folder
|
||||
parent_name = i.replace(/\/[^/]+$/, '');
|
||||
|
||||
if (!parent)
|
||||
parent = $(this.env.folders[parent_name].ref);
|
||||
|
||||
|
@ -2733,6 +2796,7 @@ function kolab_files_ui()
|
|||
this.display_message('kolab_files.foldercreatenotice', 'confirmation');
|
||||
|
||||
// refresh folders list
|
||||
// TODO: Don't reload the whole list
|
||||
this.folder_list();
|
||||
};
|
||||
|
||||
|
@ -2747,7 +2811,7 @@ function kolab_files_ui()
|
|||
};
|
||||
|
||||
// folder create response handler
|
||||
this.folder_rename_response = function(response, data)
|
||||
this.folder_rename_response = function(response, params)
|
||||
{
|
||||
if (!this.response(response))
|
||||
return;
|
||||
|
@ -2755,9 +2819,17 @@ function kolab_files_ui()
|
|||
this.display_message('kolab_files.folderupdatenotice', 'confirmation');
|
||||
|
||||
// refresh folders and files list
|
||||
if (this.env.folder == data.folder)
|
||||
this.env.folder = data['new'];
|
||||
if (this.env.folder == params.folder)
|
||||
this.env.folder = params['new'];
|
||||
|
||||
// Removed mount point, refresh capabilities stored in session
|
||||
if (this.env.caps.MOUNTPOINTS[params.folder]) {
|
||||
this.env.caps.MOUNTPOINTS[params['new']] = this.env.caps.MOUNTPOINTS[params.folder];
|
||||
delete this.env.caps.MOUNTPOINTS[params.folder];
|
||||
rcmail.http_post('files/reset', {});
|
||||
}
|
||||
|
||||
// TODO: Don't reload the whole list
|
||||
this.folder_list();
|
||||
};
|
||||
|
||||
|
@ -2769,14 +2841,26 @@ function kolab_files_ui()
|
|||
};
|
||||
|
||||
// folder create response handler
|
||||
this.folder_mount_response = function(response)
|
||||
this.folder_mount_response = function(response, params)
|
||||
{
|
||||
if (!this.response(response))
|
||||
return;
|
||||
|
||||
this.display_message('kolab_files.foldermountnotice', 'confirmation');
|
||||
|
||||
if (response.result.capabilities) {
|
||||
// we make sure the result is an object not array
|
||||
// when the list is empty it is an array, because of how works JSON encoding from PHP
|
||||
var add = {};
|
||||
add[params.folder] = response.result.capabilities;
|
||||
this.env.caps.MOUNTPOINTS = $.extend({}, this.env.caps.MOUNTPOINTS, add);
|
||||
}
|
||||
|
||||
// Refresh capabilities stored in session
|
||||
rcmail.http_post('files/reset', {});
|
||||
|
||||
// refresh folders list
|
||||
// TODO: load only folders from the created mount point
|
||||
this.folder_list();
|
||||
};
|
||||
|
||||
|
@ -2788,18 +2872,24 @@ function kolab_files_ui()
|
|||
};
|
||||
|
||||
// folder delete response handler
|
||||
this.folder_delete_response = function(response, data)
|
||||
this.folder_delete_response = function(response, params)
|
||||
{
|
||||
if (!this.response(response))
|
||||
return;
|
||||
|
||||
this.display_message('kolab_files.folderdeletenotice', 'confirmation');
|
||||
|
||||
if (this.env.folder == data.folder) {
|
||||
if (this.env.folder == params.folder) {
|
||||
this.env.folder = null;
|
||||
rcmail.enable_command('files-folder-delete', 'folder-rename', 'files-list', false);
|
||||
}
|
||||
|
||||
// Removed mount point, refresh capabilities stored in session
|
||||
if (this.env.caps.MOUNTPOINTS[params.folder]) {
|
||||
delete this.env.caps.MOUNTPOINTS[params.folder];
|
||||
rcmail.http_post('files/reset', {});
|
||||
}
|
||||
|
||||
// refresh folders list
|
||||
this.folder_list();
|
||||
this.quota();
|
||||
|
@ -2934,7 +3024,7 @@ function kolab_files_ui()
|
|||
// quota request
|
||||
this.quota = function()
|
||||
{
|
||||
if (rcmail.env.files_quota && (this.env.folder || !rcmail.env.files_caps.NOROOT))
|
||||
if (rcmail.env.files_quota && (this.env.folder || !this.env.caps.NOROOT))
|
||||
this.request('quota', {folder: this.env.folder}, 'quota_response');
|
||||
};
|
||||
|
||||
|
@ -2953,6 +3043,8 @@ function kolab_files_ui()
|
|||
if (!rcmail.gui_objects.sessionslist)
|
||||
return;
|
||||
|
||||
this.file_list_abort(true);
|
||||
|
||||
if (!params)
|
||||
params = {};
|
||||
|
||||
|
@ -3001,23 +3093,11 @@ function kolab_files_ui()
|
|||
if (!rcmail.gui_objects.fileslist)
|
||||
return;
|
||||
|
||||
this.file_list_abort(true);
|
||||
|
||||
if (!params)
|
||||
params = {};
|
||||
|
||||
// reset all pending list requests
|
||||
$.each(this.requests, function(i, v) {
|
||||
v.abort();
|
||||
rcmail.hide_message(i);
|
||||
});
|
||||
|
||||
// reset folder_info workers
|
||||
$.each(this.workers, function(i, v) {
|
||||
clearTimeout(v);
|
||||
});
|
||||
|
||||
this.workers = {};
|
||||
this.requests = {};
|
||||
|
||||
if (params.all_folders) {
|
||||
params.collection = null;
|
||||
params.folder = null;
|
||||
|
@ -3058,7 +3138,7 @@ function kolab_files_ui()
|
|||
if (params.collection || params.all_folders)
|
||||
this.file_list_loop(params);
|
||||
else if (this.env.folder) {
|
||||
params.req_id = this.set_busy(true, 'loading');
|
||||
params.req_id = this.env.file_list_req_id = this.set_busy(true, 'loading');
|
||||
this.requests[params.req_id] = this.request('file_list', params, 'file_list_response');
|
||||
}
|
||||
};
|
||||
|
@ -3091,10 +3171,30 @@ function kolab_files_ui()
|
|||
this.request('folder_info', {folder: this.file_path(list[0].filename), sessions: 1}, 'folder_info_response');
|
||||
};
|
||||
|
||||
this.file_list_abort = function(all)
|
||||
{
|
||||
if (all) {
|
||||
clearTimeout(this.file_list_worker);
|
||||
this.file_list_worker = null;
|
||||
}
|
||||
|
||||
// reset all pending list requests
|
||||
$.each(this.requests, function(i, v) {
|
||||
v.abort();
|
||||
rcmail.hide_message(i);
|
||||
});
|
||||
|
||||
this.requests = {};
|
||||
|
||||
rcmail.set_busy(false, null, this.env.file_list_req_id);
|
||||
};
|
||||
|
||||
// call file_list request for every folder (used for search and virt. collections)
|
||||
this.file_list_loop = function(params)
|
||||
{
|
||||
var i, folders = [], limit = Math.max(this.env.search_threads || 1, 1);
|
||||
var i, folders = [],
|
||||
limit = Math.max(this.env.search_threads || 1, 1),
|
||||
msg = rcmail.get_label('searching') + ' <a onclick="file_api.file_list_abort()">' + rcmail.get_label('kolab_files.abort') + '</a>';
|
||||
|
||||
if (params.collection) {
|
||||
if (!params.search)
|
||||
|
@ -3111,32 +3211,38 @@ function kolab_files_ui()
|
|||
});
|
||||
|
||||
this.env.folders_loop = folders;
|
||||
this.env.folders_loop_params = params;
|
||||
this.env.folders_loop_lock = false;
|
||||
this.env.file_list_req_id = rcmail.display_message(msg, 'loading', 5 * 60 * 1000, 'files-file-search');
|
||||
rcmail.set_busy(true);
|
||||
|
||||
for (i=0; i<folders.length && i<limit; i++) {
|
||||
params.req_id = this.set_busy(true, 'loading');
|
||||
params.req_id = new Date().getTime();
|
||||
params.folder = folders.shift();
|
||||
this.requests[params.req_id] = this.request('file_list', params, 'file_list_loop_response');
|
||||
}
|
||||
};
|
||||
|
||||
// file list response handler for loop'ed request
|
||||
this.file_list_loop_response = function(response)
|
||||
this.file_list_loop_response = function(response, params)
|
||||
{
|
||||
var i, folders = this.env.folders_loop,
|
||||
params = this.env.folders_loop_params,
|
||||
limit = Math.max(this.env.search_threads || 1, 1),
|
||||
var folders = this.env.folders_loop,
|
||||
valid = this.response(response);
|
||||
|
||||
if (response.req_id)
|
||||
rcmail.hide_message(response.req_id);
|
||||
|
||||
for (i=0; i<folders.length && i<limit; i++) {
|
||||
params.req_id = this.set_busy(true, 'loading');
|
||||
if (folders.length) {
|
||||
params.req_id = new Date().getTime();
|
||||
params.folder = folders.shift();
|
||||
this.requests[params.req_id] = this.request('file_list', params, 'file_list_loop_response');
|
||||
}
|
||||
else {
|
||||
rcmail.set_busy(false, null, this.env.file_list_req_id);
|
||||
}
|
||||
|
||||
// refresh sessions info in time intervals (one request for all folders)
|
||||
if (!this.file_list_worker && this.env.caps && this.env.caps.DOCEDIT && (rcmail.fileslist || rcmail.env.file))
|
||||
this.file_list_worker = setTimeout(function() {
|
||||
var params = {req_id: file_api.set_busy(true, 'loading')};
|
||||
file_api.request('sessions', params, 'file_list_sessions_response');
|
||||
}, 0);
|
||||
|
||||
rcmail.fileslist.resize();
|
||||
|
||||
|
@ -3146,6 +3252,36 @@ function kolab_files_ui()
|
|||
this.file_list_loop_result_add(response.result);
|
||||
};
|
||||
|
||||
// Update sessions metadata for files list (in multifolder mode)
|
||||
this.file_list_sessions_response = function(response)
|
||||
{
|
||||
this.file_list_worker = setTimeout(function() {
|
||||
var params = {req_id: file_api.set_busy(true, 'loading')};
|
||||
file_api.request('sessions', params, 'file_list_sessions_response');
|
||||
}, (rcmail.env.files_interval || 60) * 1000);
|
||||
|
||||
if (response.req_id)
|
||||
rcmail.hide_message(response.req_id);
|
||||
|
||||
if (!this.response(response))
|
||||
return;
|
||||
|
||||
this.sessions = [];
|
||||
|
||||
$.each(response.result || [], function(sess_id, data) {
|
||||
var folder = file_api.file_path(data.file);
|
||||
if (!file_api.sessions[folder])
|
||||
file_api.sessions[folder] = {};
|
||||
file_api.sessions[folder][sess_id] = data;
|
||||
});
|
||||
|
||||
// update files list with document session info
|
||||
$.each(file_api.env.file_list || [], function(i, file) {
|
||||
var folder = file_api.file_path(file.filename);
|
||||
file_api.file_session_data_set(file, file_api.sessions[folder]);
|
||||
});
|
||||
};
|
||||
|
||||
// add files from list request to the table (with sorting)
|
||||
this.file_list_loop_result_add = function(result)
|
||||
{
|
||||
|
@ -3161,9 +3297,19 @@ function kolab_files_ui()
|
|||
// lock table, other list responses will wait
|
||||
this.env.folders_loop_lock = true;
|
||||
|
||||
var n, i, len, elem, row, folder, list = [],
|
||||
var n, i, len, elem, folder, list = [],
|
||||
index = this.env.file_list.length,
|
||||
table = rcmail.fileslist;
|
||||
table = rcmail.fileslist,
|
||||
fn = function(result, key, before) {
|
||||
var row = file_api.file_list_row(key, result[key], ++index);
|
||||
table.insert_row(row, before);
|
||||
result[key].row = row;
|
||||
result[key].filename = key;
|
||||
list.push(result[key]);
|
||||
|
||||
if (!folder)
|
||||
folder = file_api.file_path(key);
|
||||
};
|
||||
|
||||
for (n=0, len=index; n<len; n++) {
|
||||
elem = this.env.file_list[n];
|
||||
|
@ -3171,15 +3317,7 @@ function kolab_files_ui()
|
|||
if (this.sort_compare(elem, result[i]) < 0)
|
||||
break;
|
||||
|
||||
row = this.file_list_row(i, result[i], ++index);
|
||||
table.insert_row(row, elem.row);
|
||||
result[i].row = row;
|
||||
result[i].filename = i;
|
||||
list.push(result[i]);
|
||||
|
||||
if (!folder)
|
||||
folder = this.file_path(i);
|
||||
|
||||
fn(result, i, elem.row);
|
||||
delete result[i];
|
||||
}
|
||||
|
||||
|
@ -3187,23 +3325,18 @@ function kolab_files_ui()
|
|||
}
|
||||
|
||||
// add the rest of rows
|
||||
$.each(result, function(key, data) {
|
||||
var row = file_api.file_list_row(key, data, ++index);
|
||||
table.insert_row(row);
|
||||
result[key].row = row;
|
||||
result[key].filename = key;
|
||||
list.push(result[key]);
|
||||
|
||||
if (!folder)
|
||||
folder = file_api.file_path(key);
|
||||
});
|
||||
for (i in result) fn(result, i);
|
||||
|
||||
this.env.file_list = list;
|
||||
this.env.folders_loop_lock = false;
|
||||
|
||||
// update document sessions info of this folder
|
||||
if (folder)
|
||||
this.request('folder_info', {folder: folder, sessions: 1}, 'folder_info_response');
|
||||
// update files list with document session info
|
||||
if (folder && this.sessions[folder])
|
||||
$.each(list, function(i, file) {
|
||||
if (folder == file_api.file_path(file.filename))
|
||||
file_api.file_session_data_set(file, file_api.sessions[folder]);
|
||||
});
|
||||
|
||||
this.env.folders_loop_lock = false;
|
||||
};
|
||||
|
||||
// sort files list (without API request)
|
||||
|
@ -3329,36 +3462,41 @@ function kolab_files_ui()
|
|||
// update files list with document session info
|
||||
$.each(file_api.env.file_list || [], function(i, file) {
|
||||
// skip files from a different folder (in multi-folder listing)
|
||||
if (file.filename.indexOf(prefix) !== 0)
|
||||
return;
|
||||
|
||||
var classes = [];
|
||||
|
||||
if ($(file.row).is('.selected'))
|
||||
classes.push('selected');
|
||||
|
||||
$.each(response.result.sessions || [], function(session_id, session) {
|
||||
if (file.filename == session.file) {
|
||||
if ($.inArray('session', classes) < 0)
|
||||
classes.push('session');
|
||||
|
||||
if (session.is_owner && $.inArray('owner', classes) < 0)
|
||||
classes.push('owner');
|
||||
else if (session.is_invited && $.inArray('invited', classes) < 0)
|
||||
classes.push('invited');
|
||||
}
|
||||
});
|
||||
|
||||
$(file.row).attr('class', classes.join(' '));
|
||||
if (file.filename.indexOf(prefix) >= 0)
|
||||
file_api.file_session_data_set(file, response.result.sessions)
|
||||
});
|
||||
|
||||
// refresh sessions info in time intervals
|
||||
if (rcmail.env.files_caps && rcmail.env.files_caps.DOCEDIT && (rcmail.fileslist || rcmail.env.file))
|
||||
this.workers[folder] = setTimeout(function() {
|
||||
if (this.env.caps && this.env.caps.DOCEDIT && (rcmail.fileslist || rcmail.env.file))
|
||||
this.file_list_worker = setTimeout(function() {
|
||||
file_api.request('folder_info', {folder: folder, sessions: 1}, 'folder_info_response');
|
||||
}, (rcmail.env.files_interval || 60) * 1000);
|
||||
};
|
||||
|
||||
// Set html classes on a file list entry according to defined document sessions
|
||||
this.file_session_data_set = function(file, sessions)
|
||||
{
|
||||
var classes = [], old_class = file.row.className;
|
||||
|
||||
if ($(file.row).is('.selected'))
|
||||
classes.push('selected');
|
||||
|
||||
$.each(sessions || [], function(session_id, session) {
|
||||
if (file.filename == session.file) {
|
||||
if ($.inArray('session', classes) < 0)
|
||||
classes.push('session');
|
||||
|
||||
if (session.is_owner && $.inArray('owner', classes) < 0)
|
||||
classes.push('owner');
|
||||
else if (session.is_invited && $.inArray('invited', classes) < 0)
|
||||
classes.push('invited');
|
||||
}
|
||||
});
|
||||
|
||||
if (classes.length || old_class.length)
|
||||
$(file.row).attr('class', classes.join(' '));
|
||||
};
|
||||
|
||||
this.file_get = function(file, params)
|
||||
{
|
||||
if (!params)
|
||||
|
@ -3602,7 +3740,7 @@ function kolab_files_ui()
|
|||
|
||||
// open the file for editing if editable
|
||||
if (this.file_create_edit_file) {
|
||||
var viewer = this.file_type_supported(this.file_create_edit_type, rcmail.env.files_caps);
|
||||
var viewer = this.file_type_supported(this.file_create_edit_type, this.env.caps);
|
||||
this.file_open(this.file_create_edit_file, viewer, {action: 'edit'});
|
||||
}
|
||||
};
|
||||
|
@ -3895,6 +4033,9 @@ function kolab_files_ui()
|
|||
_frame: 1
|
||||
};
|
||||
|
||||
if (rcmail.is_framed())
|
||||
args._framed = 1;
|
||||
|
||||
if (params && params.session)
|
||||
args._session = params.session;
|
||||
|
||||
|
@ -4062,9 +4203,10 @@ function kolab_files_ui()
|
|||
}
|
||||
|
||||
// ask for password to the first storage on the list
|
||||
var ref = this;
|
||||
$.each(this.auth_errors || [], function(i, v) {
|
||||
file_api.folder_list_auth_dialog(i, v);
|
||||
return false;
|
||||
if (file_api.folder_list_auth_dialog(i, v))
|
||||
return false;
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -4075,19 +4217,22 @@ function kolab_files_ui()
|
|||
dialog = $('#files-folder-auth-dialog'),
|
||||
content = this.folder_list_auth_form(driver);
|
||||
|
||||
if ($('#files-folder-auth-dialog').is(':visible'))
|
||||
return false;
|
||||
|
||||
dialog.find('table.propform').remove();
|
||||
$('.auth-options', dialog).before(content);
|
||||
|
||||
args.buttons[this.t('kolab_files.save')] = function() {
|
||||
var data = {folder: label, list: 1};
|
||||
var data = {folder: label, list: 1, permissions: 1, level: -2};
|
||||
|
||||
$('input', dialog).each(function() {
|
||||
data[this.name] = this.type == 'checkbox' && !this.checked ? '' : this.value;
|
||||
});
|
||||
|
||||
file_api.open_dialog = this;
|
||||
file_api.req = file_api.set_busy(true, 'kolab_files.authenticating');
|
||||
file_api.request('folder_auth', data, 'folder_auth_response');
|
||||
kolab_dialog_close(this);
|
||||
};
|
||||
|
||||
args.buttons[this.t('kolab_files.cancel')] = function() {
|
||||
|
@ -4110,48 +4255,101 @@ function kolab_files_ui()
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
// folder_auth handler
|
||||
this.folder_auth_response = function(response)
|
||||
this.folder_auth_response = function(response, params)
|
||||
{
|
||||
if (!this.response(response))
|
||||
if (!this.response(response)) {
|
||||
this.folder_list_auth_errors();
|
||||
return;
|
||||
|
||||
var folders, found,
|
||||
folder = response.result.folder,
|
||||
id = 'rcmli' + rcmail.html_identifier_encode(folder),
|
||||
parent = $('#' + id);
|
||||
|
||||
// try parent window if the folder element does not exist
|
||||
if (!parent.length && rcmail.is_framed()) {
|
||||
parent = $('#' + id, window.parent.document.body);
|
||||
}
|
||||
|
||||
delete this.auth_errors[folder];
|
||||
kolab_dialog_close(this.open_dialog);
|
||||
delete this.auth_errors[response.result.folder];
|
||||
|
||||
// go to the next one
|
||||
this.folder_list_auth_errors();
|
||||
|
||||
// parse result
|
||||
folders = this.folder_list_parse(response.result.list);
|
||||
delete folders[folder]; // remove root added in folder_list_parse()
|
||||
// update the list
|
||||
this.folder_list_merge(response.result.folder, response.result.list, params.level);
|
||||
};
|
||||
|
||||
// add folders from the external source to the list
|
||||
// Update folders list with additional folders
|
||||
this.folder_list_merge = function(folder, list, level)
|
||||
{
|
||||
if (!list || !list.length)
|
||||
return;
|
||||
|
||||
var i, last, folders, result = {}, index = [], ref = this;
|
||||
|
||||
if (this.list_merge_lock) {
|
||||
return setTimeout(function() { ref.folder_list_merge(folder, list); }, 50);
|
||||
}
|
||||
|
||||
this.list_merge_lock = true;
|
||||
|
||||
// Parse result
|
||||
folders = this.folder_list_parse(list);
|
||||
|
||||
if (level < 0)
|
||||
level *= -1;
|
||||
|
||||
// Add folders from the external source to the list
|
||||
$.each(folders, function(i, f) {
|
||||
file_api.folder_list_row(i, f, parent.get(0));
|
||||
found = true;
|
||||
if (ref.env.folders[i]) {
|
||||
last = i;
|
||||
return;
|
||||
}
|
||||
|
||||
// We don't use this id
|
||||
delete f.id;
|
||||
|
||||
// Append row to the list
|
||||
var row = file_api.folder_list_row(i, f);
|
||||
if (row)
|
||||
ref.list_element.append(row);
|
||||
|
||||
// Need env.folders update so all parents are available
|
||||
// in successive folder_list_row() calls
|
||||
ref.env.folders[i] = f;
|
||||
index.push(i);
|
||||
|
||||
// Load deeper folder hierarchies
|
||||
if (level && f.depth == level)
|
||||
ref.folder_list_update_wait(i);
|
||||
});
|
||||
|
||||
// reset folders list widget
|
||||
if (found)
|
||||
rcmail.folder_list.reset(true);
|
||||
// Reset folders list widget
|
||||
rcmail.folder_list.reset(true, true);
|
||||
|
||||
// add tree icons
|
||||
// this.folder_list_tree(folders);
|
||||
// Rebuild folders list with correct order
|
||||
for (i in this.env.folders) {
|
||||
result[i] = this.env.folders[i];
|
||||
if (i === last)
|
||||
break;
|
||||
}
|
||||
for (i in index) {
|
||||
result[index[i]] = this.env.folders[index[i]];
|
||||
}
|
||||
for (i in this.env.folders) {
|
||||
if (!result[i]) {
|
||||
result[i] = this.env.folders[i];
|
||||
}
|
||||
}
|
||||
|
||||
$.extend(this.env.folders, folders);
|
||||
this.env.folders = result;
|
||||
|
||||
if ((folder = this.env.folder) || (folder = this.env.init_folder)) {
|
||||
if (this.env.folders[folder]) {
|
||||
this.env.init_folder = null;
|
||||
if (folder != rcmail.folder_list.get_selection())
|
||||
rcmail.folder_list.select(folder);
|
||||
}
|
||||
}
|
||||
|
||||
this.list_merge_lock = false;
|
||||
};
|
||||
|
||||
// returns content of the external storage authentication form
|
||||
|
|
|
@ -51,6 +51,7 @@ class kolab_files extends rcube_plugin
|
|||
$this->register_action('open', array($this, 'actions'));
|
||||
$this->register_action('edit', array($this, 'actions'));
|
||||
$this->register_action('share', array($this, 'actions'));
|
||||
$this->register_action('reset', array($this, 'actions'));
|
||||
$this->register_action('autocomplete', array($this, 'autocomplete'));
|
||||
|
||||
// we use libkolab::http_request() from libkolab with its configuration
|
||||
|
|
|
@ -131,10 +131,7 @@ class kolab_files_engine
|
|||
), 'taskbar');
|
||||
}
|
||||
|
||||
if ($_SESSION['kolab_files_caps']['MANTICORE'] || $_SESSION['kolab_files_caps']['WOPI']) {
|
||||
$_SESSION['kolab_files_caps']['DOCEDIT'] = true;
|
||||
$_SESSION['kolab_files_caps']['DOCTYPE'] = $_SESSION['kolab_files_caps']['MANTICORE'] ? 'manticore' : 'wopi';
|
||||
}
|
||||
$caps = $this->capabilities();
|
||||
|
||||
$this->plugin->include_stylesheet($this->plugin->local_skin_path().'/style.css');
|
||||
$this->plugin->include_script($this->url . '/js/files_api.js');
|
||||
|
@ -142,11 +139,11 @@ class kolab_files_engine
|
|||
|
||||
$this->rc->output->set_env('files_url', $this->url . '/api/');
|
||||
$this->rc->output->set_env('files_token', $this->get_api_token());
|
||||
$this->rc->output->set_env('files_caps', $_SESSION['kolab_files_caps']);
|
||||
$this->rc->output->set_env('files_api_version', $_SESSION['kolab_files_caps']['VERSION'] ?: 3);
|
||||
$this->rc->output->set_env('files_caps', $caps);
|
||||
$this->rc->output->set_env('files_api_version', $caps['VERSION'] ?: 3);
|
||||
$this->rc->output->set_env('files_user', $this->rc->get_user_name());
|
||||
|
||||
if ($_SESSION['kolab_files_caps']['DOCEDIT']) {
|
||||
if ($caps['DOCEDIT']) {
|
||||
$this->plugin->add_label('declinednotice', 'invitednotice', 'acceptedownernotice',
|
||||
'declinedownernotice', 'requestednotice', 'acceptednotice', 'declinednotice',
|
||||
'more', 'accept', 'decline', 'join', 'status', 'when', 'file', 'comment',
|
||||
|
@ -350,11 +347,10 @@ class kolab_files_engine
|
|||
'name' => 'store_passwords',
|
||||
'value' => '1',
|
||||
'class' => 'pretty-checkbox',
|
||||
'id' => 'auth-pass-checkbox' . $attrib['suffix'],
|
||||
));
|
||||
|
||||
return html::div('auth-options', $checkbox->show(). ' '
|
||||
. html::label('auth-pass-checkbox' . $attrib['suffix'], $this->plugin->gettext('storepasswords'))
|
||||
return html::div('auth-options',
|
||||
html::label(null, $checkbox->show() . ' ' . $this->plugin->gettext('storepasswords'))
|
||||
. html::p('description hint', $this->plugin->gettext('storepasswordsdesc'))
|
||||
);
|
||||
}
|
||||
|
@ -706,6 +702,8 @@ class kolab_files_engine
|
|||
|
||||
$this->rc->output->include_script('list.js');
|
||||
|
||||
$this->rc->output->add_label('kolab_files.abort', 'searching');
|
||||
|
||||
// attach css rules for mimetype icons
|
||||
if (!$this->filetypes_style) {
|
||||
$this->plugin->include_stylesheet($this->url . '/skins/default/images/mimetypes/style.css');
|
||||
|
@ -1031,6 +1029,46 @@ class kolab_files_engine
|
|||
return $token;
|
||||
}
|
||||
|
||||
protected function capabilities()
|
||||
{
|
||||
if (empty($_SESSION['kolab_files_caps'])) {
|
||||
$token = $this->get_api_token();
|
||||
|
||||
if (empty($_SESSION['kolab_files_caps'])) {
|
||||
$request = $this->get_request(array('method' => 'capabilities'), $token);
|
||||
|
||||
// send request to the API
|
||||
try {
|
||||
$response = $request->send();
|
||||
$status = $response->getStatus();
|
||||
$body = @json_decode($response->getBody(), true);
|
||||
|
||||
if ($status == 200 && $body['status'] == 'OK') {
|
||||
$_SESSION['kolab_files_caps'] = $body['result'];
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason'] ?: "Failed to get capabilities. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
rcube::raise_error($e, true, false);
|
||||
return array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($_SESSION['kolab_files_caps']['MANTICORE'] || $_SESSION['kolab_files_caps']['WOPI']) {
|
||||
$_SESSION['kolab_files_caps']['DOCEDIT'] = true;
|
||||
$_SESSION['kolab_files_caps']['DOCTYPE'] = $_SESSION['kolab_files_caps']['MANTICORE'] ? 'manticore' : 'wopi';
|
||||
}
|
||||
|
||||
if (!empty($_SESSION['kolab_files_caps']) && !isset($_SESSION['kolab_files_caps']['MOUNTPOINTS'])) {
|
||||
$_SESSION['kolab_files_caps']['MOUNTPOINTS'] = array();
|
||||
}
|
||||
|
||||
return $_SESSION['kolab_files_caps'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize HTTP_Request object
|
||||
*/
|
||||
|
@ -1131,16 +1169,29 @@ class kolab_files_engine
|
|||
$this->rc->output->set_env('collection', rcube_utils::get_input_value('collection', rcube_utils::INPUT_GET));
|
||||
}
|
||||
|
||||
$caps = $this->capabilities();
|
||||
|
||||
$this->rc->output->add_label('uploadprogress', 'GB', 'MB', 'KB', 'B');
|
||||
$this->rc->output->set_pagetitle($this->plugin->gettext('files'));
|
||||
$this->rc->output->set_env('file_mimetypes', $this->get_mimetypes());
|
||||
$this->rc->output->set_env('files_quota', $_SESSION['kolab_files_caps']['QUOTA']);
|
||||
$this->rc->output->set_env('files_max_upload', $_SESSION['kolab_files_caps']['MAX_UPLOAD']);
|
||||
$this->rc->output->set_env('files_progress_name', $_SESSION['kolab_files_caps']['PROGRESS_NAME']);
|
||||
$this->rc->output->set_env('files_progress_time', $_SESSION['kolab_files_caps']['PROGRESS_TIME']);
|
||||
$this->rc->output->set_env('files_quota', $caps['QUOTA']);
|
||||
$this->rc->output->set_env('files_max_upload', $caps['MAX_UPLOAD']);
|
||||
$this->rc->output->set_env('files_progress_name', $caps['PROGRESS_NAME']);
|
||||
$this->rc->output->set_env('files_progress_time', $caps['PROGRESS_TIME']);
|
||||
$this->rc->output->send('kolab_files.files');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for resetting some session/cached information
|
||||
*/
|
||||
protected function action_reset()
|
||||
{
|
||||
$this->rc->session->remove('kolab_files_caps');
|
||||
if (($caps = $this->capabilities()) && !empty($caps)) {
|
||||
$this->rc->output->set_env('files_caps', $caps);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for preferences save action
|
||||
*/
|
||||
|
@ -1624,6 +1675,7 @@ class kolab_files_engine
|
|||
$this->mimetypes = false;
|
||||
|
||||
$token = $this->get_api_token();
|
||||
$caps = $this->capabilities();
|
||||
$request = $this->get_request(array('method' => 'mimetypes'), $token);
|
||||
$response = $request->send();
|
||||
$status = $response->getStatus();
|
||||
|
@ -1647,7 +1699,7 @@ class kolab_files_engine
|
|||
'text/plain' => 'txt',
|
||||
'text/html' => 'html',
|
||||
);
|
||||
if (!empty($_SESSION['kolab_files_caps']['MANTICORE'])) {
|
||||
if (!empty($caps['MANTICORE'])) {
|
||||
$mimetypes = array_merge(array('application/vnd.oasis.opendocument.text' => 'odt'), $mimetypes);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Files plugin
|
||||
*
|
||||
* Copyright (C) 2014, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_files/
|
||||
*/
|
||||
$labels['files'] = 'Dateien';
|
||||
$labels['filepreview'] = 'Dateivorschau';
|
||||
$labels['saveall'] = 'Alles in der Cloud speichern …';
|
||||
|
@ -38,7 +31,6 @@ $labels['rename'] = 'Umbenennen';
|
|||
$labels['deletefile'] = 'Datei(en) löschen';
|
||||
$labels['edit'] = 'Bearbeiten';
|
||||
$labels['editfile'] = 'Datei bearbeiten';
|
||||
$labels['save'] = 'Speichern';
|
||||
$labels['savefile'] = 'Datei speichern';
|
||||
$labels['printfile'] = 'Datei drucken';
|
||||
$labels['renamefile'] = 'Datei umbenennen';
|
||||
|
@ -150,3 +142,4 @@ $labels['arialabelfilesessiondialog'] = 'Dokumentbearbeitungssitzung';
|
|||
$labels['type.plain'] = 'Klartextdokument';
|
||||
$labels['type.vndoasisopendocumenttext'] = 'Textdokument (ODF)';
|
||||
$labels['type.html'] = 'HTML-Dokument';
|
||||
$labels['addfolder'] = 'Ordner hinzufügen';
|
||||
|
|
|
@ -68,6 +68,7 @@ $labels['collection_image'] = 'Images';
|
|||
$labels['collection_document'] = 'Documents';
|
||||
$labels['sessions'] = 'Sessions';
|
||||
|
||||
$labels['abort'] = 'Abort';
|
||||
$labels['uploading'] = 'Uploading file(s)...';
|
||||
$labels['attaching'] = 'Attaching file(s)...';
|
||||
$labels['authenticating'] = 'Authenticating...';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<a class="button icon back" href="#back" data-hidden="big" onclick="$('#folderlistbox').hide();$('#filelistcontainer').css('display','flex')"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span class="header-title"><roundcube:label name="folders" /></span>
|
||||
</div>
|
||||
<roundcube:object name="libkolab.folder_search_form" id="foldersearch" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="libkolab.folder_search_form" id="foldersearch" wrapper="searchbar menu"
|
||||
ariatag="h5" label="foldersearchform" buttontitle="kolab_files.findfolders" />
|
||||
<div id="files-folder-list" class="scroller"></div>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<a class="button icon folders" href="#sidebar" data-hidden="big" onclick="$('#filelistcontainer').hide();$('#folderlistbox').css('display','flex')"><span class="inner"><roundcube:label name="folders" /></span></a>
|
||||
<span class="header-title" data-hidden="big" ><roundcube:label name="kolab_files.selectfiles" /></span>
|
||||
</div>
|
||||
<roundcube:object name="file-search-form" id="filesearchbox" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="file-search-form" id="filesearchbox" wrapper="searchbar menu"
|
||||
label="searchform" buttontitle="kolab_files.findfiles" label-domain="kolab_files"
|
||||
ariatag="h3" options="filesearchmenu" />
|
||||
<div id="filesearchmenu" class="hidden searchoptions scroller propform formcontainer" aria-labelledby="aria-label-search-menu" aria-controls="filelist">
|
||||
|
|
|
@ -2,32 +2,28 @@
|
|||
|
||||
<h1 class="voice"><roundcube:var name="env:filename" /></h1>
|
||||
|
||||
<div class="content selected editor-<roundcube:var name="env:editor_type" />">
|
||||
<div id="layout-content" class="selected editor-<roundcube:var name="env:editor_type" />">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header document-editor-header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon members" href="#members" onclick="kolab_files_members_list(this)" data-hidden="big">
|
||||
<span class="inner"><roundcube:label name="kolab_files.arialabelcollaborators"></span>
|
||||
</a>
|
||||
<span class="header-title constant"><roundcube:var name="env:filename" /></span>
|
||||
<div class="toolbar">
|
||||
<roundcube:button command="document-close" type="link"
|
||||
class="button delete disabled" classAct="button delete"
|
||||
<div class="toolbar menu">
|
||||
<roundcube:button command="document-close" type="link" class="delete disabled" classAct="delete"
|
||||
label="kolab_files.terminate" title="kolab_files.terminatesession" innerClass="inner" />
|
||||
<span class="dropbutton">
|
||||
<roundcube:button command="document-export" type="link"
|
||||
class="button export disabled" classAct="button export"
|
||||
<roundcube:button command="document-export" type="link" class="export disabled" classAct="export"
|
||||
label="kolab_files.get" title="kolab_files.getfile" innerClass="inner" />
|
||||
<a href="#export" class="button dropdown" id="exportmenulink" data-popup="export-menu" tabindex="0">
|
||||
<a href="#export" class="dropdown" id="exportmenulink" data-popup="export-menu" tabindex="0">
|
||||
<span class="inner"><roundcubemail:label name="kolab_files.exportoptions" /><span>
|
||||
</a>
|
||||
</span>
|
||||
<roundcube:if condition="env:editor_type == 'wopi'" />
|
||||
<roundcube:button command="document-print" type="link"
|
||||
class="button print disabled" classAct="button print"
|
||||
<roundcube:button command="document-print" type="link" class="print disabled" classAct="print"
|
||||
label="print" title="kolab_files.printfile" innerClass="inner" data-hidden="small" />
|
||||
<roundcube:endif />
|
||||
<roundcube:button command="document-save" type="link"
|
||||
class="button save disabled" classAct="button save"
|
||||
<roundcube:button command="document-save" type="link" class="save disabled" classAct="save"
|
||||
label="kolab_files.save" title="kolab_files.savefile" innerClass="inner" data-hidden="small" />
|
||||
</div>
|
||||
<roundcube:if condition="env:editor_type != 'wopi'" />
|
||||
|
@ -48,18 +44,17 @@
|
|||
<roundcube:object name="filepreviewframe" id="fileframe" role="main"
|
||||
title="kolab_files.arialabelfilecontent" aria-labelledby="aria-label-filecontent" />
|
||||
</div>
|
||||
<div class="footer toolbar hidden-big">
|
||||
<roundcube:button command="document-save" type="link"
|
||||
class="button save disabled" classAct="button save"
|
||||
<div class="footer toolbar menu hidden-big">
|
||||
<roundcube:button command="document-save" type="link" class="save disabled" classAct="save"
|
||||
label="kolab_files.save" title="kolab_files.savefile" innerClass="inner" />
|
||||
<roundcube:button name="close-window" type="link" onclick="parent.$('.ui-dialog:visible button.cancel').click()"
|
||||
class="button cancel" label="cancel" title="cancel" innerClass="inner" />
|
||||
class="cancel" label="cancel" title="cancel" innerClass="inner" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="export-menu" class="popupmenu">
|
||||
<h3 id="aria-label-exportmenu" class="voice"><roundcube:label name="kolab_files.arialabelexportoptions" /></h3>
|
||||
<ul id="exportmenu-menu" class="toolbarmenu listing" role="menu" aria-labelledby="aria-label-exportmenu"></ul>
|
||||
<ul id="exportmenu-menu" class="menu listing" role="menu" aria-labelledby="aria-label-exportmenu"></ul>
|
||||
</div>
|
||||
|
||||
<div id="document-editors-dialog" class="popupmenu editors-dialog" data-editable="true" role="dialog" aria-labelledby="aria-label-doceditorsdialog">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<h1 class="voice"><roundcube:var name="env:filename" /></h1>
|
||||
|
||||
<div class="sidebar listbox">
|
||||
<div id="layout-sidebar" class="listbox">
|
||||
<div class="header">
|
||||
<a class="button icon back-content-button" href="#content" data-hidden="big"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span class="header-title" id="aria-label-contentinfo"><roundcube:label name="properties" /></span>
|
||||
|
@ -12,38 +12,33 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content selected">
|
||||
<div id="layout-content" class="selected">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon properties" id="properties-button" href="#properties" onclick="UI.show_sidebar()" data-hidden="big">
|
||||
<span class="inner"><roundcube:label name="properties"></span>
|
||||
</a>
|
||||
<span class="header-title constant"><roundcube:var name="env:filename" /></span>
|
||||
<div id="filetoolbar" class="toolbar">
|
||||
<roundcube:button command="files-get" type="link"
|
||||
class="button download disabled" classAct="button download"
|
||||
<div id="filetoolbar" class="toolbar menu">
|
||||
<roundcube:button command="files-get" type="link" class="download disabled" classAct="download"
|
||||
label="kolab_files.get" title="kolab_files.getfile" innerClass="inner" />
|
||||
<roundcube:button command="files-edit" type="link"
|
||||
class="button edit disabled" classAct="button edit"
|
||||
<roundcube:button command="files-edit" type="link" class="edit disabled" classAct="edit"
|
||||
label="kolab_files.edit" title="kolab_files.editfile" innerClass="inner" data-hidden="small" />
|
||||
<roundcube:button command="files-save" type="link"
|
||||
class="button save disabled" classAct="button save"
|
||||
<roundcube:button command="files-save" type="link" class="save disabled" classAct="save"
|
||||
label="kolab_files.save" title="kolab_files.savefile" innerClass="inner" style="display:none" data-hidden="small" />
|
||||
<roundcube:button command="files-delete" type="link"
|
||||
class="button delete disabled" classAct="button delete"
|
||||
<roundcube:button command="files-delete" type="link" class="delete disabled" classAct="delete"
|
||||
label="delete" title="kolab_files.deletefile" innerClass="inner" />
|
||||
<roundcube:button command="files-print" type="link"
|
||||
class="button print disabled" classAct="button print"
|
||||
<roundcube:button command="files-print" type="link" class="print disabled" classAct="print"
|
||||
label="print" title="kolab_files.printfile" innerClass="inner" data-hidden="small" />
|
||||
<roundcube:if condition="stripos(env:mimetype, 'image/') === 0" />
|
||||
<roundcube:button command="image-scale" type="link" prop="+" data-hidden="small"
|
||||
class="button zoomin disabled" classAct="button zoomin"
|
||||
class="zoomin disabled" classAct="zoomin"
|
||||
label="zoomin" title="increaseimage" innerclass="inner" />
|
||||
<roundcube:button command="image-scale" type="link" prop="-" data-hidden="small"
|
||||
class="button zoomout disabled" classAct="button zoomout"
|
||||
class="zoomout disabled" classAct="zoomout"
|
||||
label="zoomout" title="decreaseimage" innerclass="inner" />
|
||||
<roundcube:button command="image-rotate" type="link"
|
||||
class="button rotate disabled" classAct="button rotate" data-hidden="small"
|
||||
class="rotate disabled" classAct="rotate" data-hidden="small"
|
||||
label="rotate" title="rotateimage" innerclass="inner" />
|
||||
<roundcube:endif />
|
||||
</div>
|
||||
|
@ -55,15 +50,15 @@
|
|||
<roundcube:if condition="stripos(env:mimetype, 'image/') === 0" />
|
||||
<div id="image-tools" class="image-tools" data-hidden="big">
|
||||
<h3 id="aria-label-imagetools" class="voice"><roundcube:label name="arialabelimagetools" /></h3>
|
||||
<div class="toolbar" role="menu" aria-labelledby="aria-label-imagetools">
|
||||
<div class="toolbar menu" role="menu" aria-labelledby="aria-label-imagetools">
|
||||
<roundcube:button command="image-scale" type="link" prop="+"
|
||||
class="button zoomin disabled" classAct="button zoomin"
|
||||
class="zoomin disabled" classAct="zoomin"
|
||||
label="zoomin" title="increaseimage" innerclass="inner" />
|
||||
<roundcube:button command="image-scale" type="link" prop="-"
|
||||
class="button zoomout disabled" classAct="button zoomout"
|
||||
class="zoomout disabled" classAct="zoomout"
|
||||
label="zoomout" title="decreaseimage" innerclass="inner" />
|
||||
<roundcube:button command="image-rotate" type="link"
|
||||
class="button rotate disabled" classAct="button rotate"
|
||||
class="rotate disabled" classAct="rotate"
|
||||
label="rotate" title="rotateimage" innerclass="inner" />
|
||||
</div>
|
||||
<a href="#" class="button icon tools" onclick="$(this).attr('title', $(this).data('label-' + ($('#image-tools').toggleClass('open').is('.open') ? 'hide' : 'show')))"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<h1 class="voice"><roundcube:label name="kolab_files.files" /></h1>
|
||||
|
||||
<!-- folders list -->
|
||||
<div class="sidebar listbox" role="navigation" aria-labelledby="arial-label-folders">
|
||||
<div id="layout-sidebar" class="listbox" role="navigation" aria-labelledby="arial-label-folders">
|
||||
<div class="header">
|
||||
<a class="button icon back-content-button" href="#back" data-hidden="big"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span id="aria-label-folders" class="header-title"><roundcube:label name="folders" /></span>
|
||||
|
@ -12,11 +12,11 @@
|
|||
title="moreactions" label="actions"
|
||||
class="button icon sidebar-menu" innerClass="inner" data-popup="folderoptions" />
|
||||
</div>
|
||||
<roundcube:object name="libkolab.folder_search_form" id="foldersearch" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="libkolab.folder_search_form" id="foldersearch" wrapper="searchbar menu"
|
||||
ariatag="h2" label="foldersearchform" buttontitle="kolab_files.findfolders" />
|
||||
<div id="files-folder-list" class="scroller"></div>
|
||||
<roundcube:if condition="env:files_quota" />
|
||||
<div class="footer toolbar small">
|
||||
<div class="footer small">
|
||||
<div id="quotadisplay" class="quota-widget">
|
||||
<span class="voice"><roundcube:label name="quota"></span>
|
||||
<roundcube:object name="filequotadisplay" class="count" display="text" />
|
||||
|
@ -26,45 +26,45 @@
|
|||
</div>
|
||||
|
||||
<!-- files -->
|
||||
<div class="content selected no-navbar" role="main">
|
||||
<div id="layout-content" class="selected no-navbar" role="main">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon task-menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon back-sidebar-button folders" href="#sidebar" data-hidden="big"><span class="inner"><roundcube:label name="folders" /></span></a>
|
||||
<span class="header-title"></span>
|
||||
<!-- toolbar -->
|
||||
<div id="filestoolbar" class="toolbar">
|
||||
<div id="filestoolbar" class="toolbar menu">
|
||||
<roundcube:button id="fileslistmenu-link" name="fileslistmenu-link"
|
||||
type="link" onclick="kolab_files_listoptions('files')"
|
||||
label="options" class="button settings" innerClass="inner" />
|
||||
label="options" class="settings" innerClass="inner" />
|
||||
<roundcube:button id="sessionslistmenu-link" name="sessionslistmenu-link"
|
||||
type="link" onclick="kolab_files_listoptions('sessions')"
|
||||
label="options" class="button hidden settings" innerClass="inner" />
|
||||
label="options" class="hidden settings" innerClass="inner" />
|
||||
<span class="spacer"></span>
|
||||
<roundcube:button command="files-upload" type="link" onclick="$('#filesuploadform').click()"
|
||||
class="button upload disabled" classAct="button upload"
|
||||
class="upload disabled" classAct="upload"
|
||||
label="kolab_files.upload" title="kolab_files.uploadfile" innerClass="inner" />
|
||||
<roundcube:button command="files-get" type="link"
|
||||
class="button download disabled" classAct="button download"
|
||||
class="download disabled" classAct="download"
|
||||
label="kolab_files.get" title="kolab_files.getfile" innerClass="inner" />
|
||||
<roundcube:button command="files-open" type="link"
|
||||
class="button open disabled" classAct="button open"
|
||||
class="open disabled" classAct="open"
|
||||
label="kolab_files.view" title="kolab_files.viewfile" innerClass="inner" />
|
||||
<roundcube:button command="files-edit" type="link"
|
||||
class="button edit disabled" classAct="button edit"
|
||||
class="edit disabled" classAct="edit"
|
||||
label="kolab_files.edit" title="kolab_files.editfile" innerClass="inner" />
|
||||
<roundcube:button command="files-create" type="link" data-fab="true"
|
||||
class="button create disabled" classAct="button create"
|
||||
class="create disabled" classAct="create"
|
||||
label="kolab_files.create" title="kolab_files.createfile" innerClass="inner "/>
|
||||
<roundcube:button command="files-delete" type="link"
|
||||
class="button delete disabled" classAct="button delete"
|
||||
class="delete disabled" classAct="delete"
|
||||
label="delete" title="kolab_files.deletefile" innerClass="inner" />
|
||||
<roundcube:button name="filemenulink" id="filemenulink" type="link"
|
||||
class="button more" label="more" title="moreactions"
|
||||
class="more" label="more" title="moreactions"
|
||||
data-popup="file-menu" innerclass="inner" />
|
||||
</div>
|
||||
</div>
|
||||
<roundcube:object name="file-search-form" id="searchform" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="file-search-form" id="searchform" wrapper="searchbar menu"
|
||||
label="searchform" buttontitle="kolab_files.findfiles" label-domain="kolab_files"
|
||||
ariatag="h3" options="filesearchmenu" />
|
||||
<div id="filesearchmenu" class="hidden searchoptions scroller propform formcontainer" aria-labelledby="aria-label-search-menu" aria-controls="filelist">
|
||||
|
@ -130,16 +130,16 @@
|
|||
|
||||
<div id="folderoptions" class="popupmenu" data-editable="true">
|
||||
<h3 id="aria-label-folderoptions" class="voice"><roundcube:label name="kolab_files.folderoptions" /></h3>
|
||||
<ul class="toolbarmenu listing" role="menu" aria-labelledby="aria-label-folderoptions">
|
||||
<ul class="menu listing" role="menu" aria-labelledby="aria-label-folderoptions">
|
||||
<roundcube:button type="link-menuitem" command="folder-create" label="kolab_files.addfolder" class="create disabled" classAct="create active" />
|
||||
<roundcube:button type="link-menuitem" command="folder-rename" label="kolab_files.folderrename" class="rename" classAct="rename active" />
|
||||
<roundcube:button type="link-menuitem" command="folder-rename" label="kolab_files.folderrename" class="rename disabled" classAct="rename active" />
|
||||
<roundcube:if condition="env:files_api_version > 3" />
|
||||
<roundcube:button type="link-menuitem" command="folder-share" label="kolab_files.foldershare" class="share" classAct="share active" />
|
||||
<roundcube:button type="link-menuitem" command="folder-share" label="kolab_files.foldershare" class="share disabled" classAct="share active" />
|
||||
<roundcube:endif />
|
||||
<roundcube:button type="link-menuitem" command="files-folder-delete" label="kolab_files.folderdelete" class="delete" classAct="delete active" />
|
||||
<roundcube:button type="link-menuitem" command="folders" task="settings" label="managefolders" class="folders" classAct="folders active" />
|
||||
<roundcube:button type="link-menuitem" command="files-folder-delete" label="kolab_files.folderdelete" class="delete disabled" classAct="delete active" />
|
||||
<roundcube:button type="link-menuitem" command="folders" task="settings" label="managefolders" class="folders disabled" classAct="folders active" />
|
||||
<roundcube:if condition="!empty(env:external_sources)" />
|
||||
<roundcube:button type="link-menuitem" command="folder-mount" label="kolab_files.foldermount" class="mount storage" classAct="mount storage active" />
|
||||
<roundcube:button type="link-menuitem" command="folder-mount" label="kolab_files.foldermount" class="mount storage disabled" classAct="mount storage active" />
|
||||
<roundcube:endif />
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -199,7 +199,7 @@
|
|||
</div>
|
||||
|
||||
<div id="dragfilemenu" class="popupmenu">
|
||||
<ul class="toolbarmenu listing" role="menu">
|
||||
<ul class="menu listing" role="menu">
|
||||
<roundcube:button type="link-menuitem" command="files-move" onclick="return kolab_files_drag_menu_action('files-move')" label="move" classAct="active" />
|
||||
<roundcube:button type="link-menuitem" command="files-copy" onclick="return kolab_files_drag_menu_action('files-copy')" label="copy" classAct="active" />
|
||||
</ul>
|
||||
|
@ -207,10 +207,10 @@
|
|||
|
||||
<div id="file-menu" class="popupmenu">
|
||||
<h3 id="aria-label-message-menu" class="voice"><roundcube:label name="kolab_files.arialabelmorefileactions" /></h3>
|
||||
<ul class="toolbarmenu listing" role="menu" aria-labelledby="aria-label-file-menu">
|
||||
<roundcube:button type="link-menuitem" command="files-rename" label="kolab_files.rename" class="rename" classAct="rename active" />
|
||||
<roundcube:button type="link-menuitem" command="files-move" label="moveto" class="move" classAct="move active" innerclass="folder-selector-link" aria-haspopup="true" />
|
||||
<roundcube:button type="link-menuitem" command="files-copy" label="copyto" class="copy" classAct="copy active" innerclass="folder-selector-link" aria-haspopup="true" />
|
||||
<ul class="menu listing" role="menu" aria-labelledby="aria-label-file-menu">
|
||||
<roundcube:button type="link-menuitem" command="files-rename" label="kolab_files.rename" class="rename disabled" classAct="rename active" />
|
||||
<roundcube:button type="link-menuitem" command="files-move" label="moveto" class="move disabled" classAct="move active" innerclass="folder-selector-link" aria-haspopup="true" />
|
||||
<roundcube:button type="link-menuitem" command="files-copy" label="copyto" class="copy disabled" classAct="copy active" innerclass="folder-selector-link" aria-haspopup="true" />
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<span class="header-title" data-hidden="small"><roundcube:label name="folders" /></span>
|
||||
<span class="header-title" data-hidden="big"><roundcube:label name="kolab_files.saveto" /></span>
|
||||
</div>
|
||||
<roundcube:object name="libkolab.folder_search_form" id="foldersearch" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="libkolab.folder_search_form" id="foldersearch" wrapper="searchbar menu"
|
||||
ariatag="h2" label="foldersearchform" buttontitle="kolab_files.findfolders" />
|
||||
<h3 id="aria-label-folderlist" class="voice"><roundcube:label name="kolab_files.arialabelfolderlist" /></h3>
|
||||
<div id="files-folder-list" class="scroller" aria-labelledby="aria-label-folderlist" data-no-collections="true"></div>
|
||||
|
|
|
@ -2,8 +2,8 @@ function kolab_files_enable_command(p)
|
|||
{
|
||||
if (p.command == 'files-save') {
|
||||
var toolbar = $('#toolbar-menu');
|
||||
$('a.button.edit', toolbar).parent().hide();
|
||||
$('a.button.save', toolbar).show().parent().show();
|
||||
$('a.edit', toolbar).parent().hide();
|
||||
$('a.save', toolbar).show().parent().show();
|
||||
|
||||
if (window.editor_edit_button)
|
||||
window.editor_edit_button.addClass('hidden');
|
||||
|
@ -52,7 +52,7 @@ function kolab_files_members_list(link)
|
|||
{
|
||||
var dialog = $('<div id="members-dialog" class="session-members"><ul></ul></div>'),
|
||||
title = $(link).text(),
|
||||
add_button = $('#collaborators a.button.add'),
|
||||
add_button = $('#collaborators a.add'),
|
||||
save_func = function(e) {
|
||||
add_button.click();
|
||||
return true;
|
||||
|
@ -78,9 +78,20 @@ function kolab_files_members_list(link)
|
|||
};
|
||||
|
||||
|
||||
if (rcmail.env.action == 'open') {
|
||||
if (rcmail.env.action == 'open' || rcmail.env.action == 'edit') {
|
||||
rcmail.addEventListener('enable-command', kolab_files_enable_command);
|
||||
|
||||
if (rcmail.env.action == 'open') {
|
||||
$('#toolbar-menu a.save').parent().hide();
|
||||
}
|
||||
else if (rcmail.env.action == 'edit') {
|
||||
if (rcmail.env.editor_type == 'wopi' && rcmail.is_framed()) {
|
||||
parent.$('.ui-dialog:visible .ui-dialog-buttonpane').addClass('hidden');
|
||||
}
|
||||
|
||||
rcmail.gui_object('exportmenu', 'export-menu');
|
||||
}
|
||||
|
||||
// center and scale the image in preview frame
|
||||
if (rcmail.env.mimetype.startsWith('image/')) {
|
||||
$('#fileframe').on('load', function() {
|
||||
|
@ -92,9 +103,9 @@ if (rcmail.env.action == 'open') {
|
|||
}
|
||||
|
||||
// Elastic mobile preview uses an iframe in a dialog
|
||||
if (rcmail.is_framed()) {
|
||||
var edit_button = $('#filetoolbar a.button.edit'),
|
||||
save_button = $('#filetoolbar a.button.save');
|
||||
if ((rcmail.env.action == 'open' || rcmail.env.editor_type != 'wopi') && rcmail.is_framed()) {
|
||||
var edit_button = $('#filetoolbar a.edit'),
|
||||
save_button = $('#filetoolbar a.save');
|
||||
|
||||
parent.$('.ui-dialog:visible .ui-dialog-buttonpane .ui-dialog-buttonset').prepend(
|
||||
window.editor_save_button = $('<button type="button">')
|
||||
|
@ -111,30 +122,18 @@ if (rcmail.env.action == 'open') {
|
|||
);
|
||||
}
|
||||
}
|
||||
else if (rcmail.env.action == 'edit') {
|
||||
rcmail.gui_object('exportmenu', 'export-menu');
|
||||
}
|
||||
else {
|
||||
rcmail.addEventListener('files-folder-select', function(p) {
|
||||
var is_sess = p.folder == 'folder-collection-sessions';
|
||||
$('#fileslistmenu-link, #layout > .content > .pagenav, #layout > .content .searchbar')[is_sess ? 'hide' : 'show']();
|
||||
$('#fileslistmenu-link, #layout-content > .pagenav, #layout-content .searchbar')[is_sess ? 'hide' : 'show']();
|
||||
$('#sessionslistmenu-link')[is_sess ? 'removeClass' : 'addClass']('hidden');
|
||||
|
||||
// set list header title for mobile
|
||||
// $('#layout > .content > .header > .header-title').text($('#files-folder-list li.selected a.name:first').text());
|
||||
// $('#layout-content > .header > .header-title').text($('#files-folder-list li.selected a.name:first').text());
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
if (rcmail.env.action == 'open') {
|
||||
$('#toolbar-menu a.button.save').parent().hide();
|
||||
}
|
||||
else if (rcmail.env.action == 'edit') {
|
||||
if (rcmail.is_framed()) {
|
||||
parent.$('.ui-dialog:visible .ui-dialog-buttonpane').addClass('hidden');
|
||||
}
|
||||
}
|
||||
|
||||
if ($('#dragfilemenu').length) {
|
||||
rcmail.gui_object('file_dragmenu', 'dragfilemenu');
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Folders plugin
|
||||
*
|
||||
* Copyright (C) 2015, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_folders/
|
||||
*/
|
||||
$labels['folderctype'] = 'Inhaltstyp';
|
||||
$labels['foldertypemail'] = 'E-Mail';
|
||||
$labels['foldertypeevent'] = 'Kalender';
|
||||
|
@ -26,5 +19,3 @@ $labels['junkemail'] = 'Spam';
|
|||
$labels['confidential'] = 'Vertraulich';
|
||||
$labels['private'] = 'Privat';
|
||||
$labels['xdays'] = '$x Tage';
|
||||
$messages['defaultfolderexists'] = 'Es gibt bereits einen Standardordner des angegebenen Typs';
|
||||
?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Notes module for Roundcube connecting to a Kolab server for storage",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.5",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Thomas Bruederli",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -96,13 +96,13 @@ class kolab_notes extends rcube_plugin
|
|||
|
||||
// add 'Append note' item to message menu
|
||||
if ($this->api->output->type == 'html' && $_REQUEST['_rel'] != 'note') {
|
||||
$this->api->add_content(html::tag('li', null,
|
||||
$this->api->add_content(html::tag('li', array('role' => 'menuitem'),
|
||||
$this->api->output->button(array(
|
||||
'command' => 'append-kolab-note',
|
||||
'label' => 'kolab_notes.appendnote',
|
||||
'type' => 'link',
|
||||
'classact' => 'icon appendnote active',
|
||||
'class' => 'icon appendnote',
|
||||
'class' => 'icon appendnote disabled',
|
||||
'innerclass' => 'icon note',
|
||||
))),
|
||||
'messagemenu');
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Localizations for the Kolab Folders plugin
|
||||
*
|
||||
* Copyright (C) 2015, Kolab Systems AG
|
||||
*
|
||||
* For translation see https://www.transifex.com/projects/p/kolab/resource/kolab_notes/
|
||||
*/
|
||||
$labels['navtitle'] = 'Notizen';
|
||||
$labels['tags'] = 'Schlagworte';
|
||||
$labels['lists'] = 'Notizbücher';
|
||||
|
@ -49,7 +42,6 @@ $labels['deletenotesconfirm'] = 'Willst du wirklich die ausgewählten Notizen l
|
|||
$labels['deletenotebookconfirm'] = 'Willst du wirklich die ausgewählten Notizbücher löschen? Diese Aktion kann nicht rückgängig gemacht werden.';
|
||||
$labels['discardunsavedchanges'] = 'Die aktuelle Notiz wurde noch nicht gespeichert. Die Änderungen verwerfen?';
|
||||
$labels['invalidlistproperties'] = 'Ungültige Notizbuch Eigenschaften! Bitte gebe einen gültigen Namen ein.';
|
||||
$labels['entertitle'] = 'Bitte geben Sie einen Titel für diese Notiz ein!';
|
||||
$labels['aclnorights'] = 'Dir fehlen die Administrationsrechte für dieses Notizbuch.';
|
||||
$labels['arialabelnoteslist'] = 'Notizliste';
|
||||
$labels['arialabelnotesearchform'] = 'Notizen-Suchmaske';
|
||||
|
|
|
@ -27,7 +27,8 @@ $labels['now'] = 'Now';
|
|||
$labels['sortby'] = 'Sort by';
|
||||
$labels['newnotebook'] = 'Create a new notebook';
|
||||
$labels['addnotebook'] = 'Add notebook';
|
||||
$labels['editlist'] = 'Edit Notebook';
|
||||
$labels['deletelist'] = 'Delete notebook';
|
||||
$labels['editlist'] = 'Edit/Share notebook';
|
||||
$labels['listname'] = 'Name';
|
||||
$labels['tabsharing'] = 'Sharing';
|
||||
$labels['discard'] = 'Discard';
|
||||
|
|
|
@ -170,7 +170,7 @@ function rcube_kolab_notes_ui(settings)
|
|||
// Make Elastic checkboxes pretty
|
||||
if (window.UI && UI.pretty_checkbox) {
|
||||
notebookslist.addEventListener('add-item', function(prop) {
|
||||
UI.pretty_checkbox($(prop.li).find('input').addClass('flex-checkbox'));
|
||||
UI.pretty_checkbox($(prop.li).find('input'));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1316,8 +1316,8 @@ function rcube_kolab_notes_ui(settings)
|
|||
dialogClass: 'warning',
|
||||
open: function(event, ui) {
|
||||
$(this).parent().find('.ui-dialog-titlebar-close').hide();
|
||||
setTimeout(function(){
|
||||
dialog.parent().find('.ui-button:visible').first().focus();
|
||||
setTimeout(function() {
|
||||
dialog.parent().find('button:visible').first().focus();
|
||||
}, 10);
|
||||
},
|
||||
close: function(event, ui) {
|
||||
|
|
|
@ -39,7 +39,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
|||
edit = url._id,
|
||||
title = edit ? rcmail.gettext('kolab_notes.editnote') : rcmail.gettext('kolab_notes.appendnote'),
|
||||
dialog_render = function(p) {
|
||||
$dialog.parent().find('.ui-dialog-buttonset .ui-button')
|
||||
$dialog.parent().find('.ui-dialog-buttonset button')
|
||||
.prop('disabled', p.readonly)
|
||||
.last().prop('disabled', false);
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<h1 class="voice"><roundcube:label name="kolab_notes.navtitle" /></h1>
|
||||
|
||||
<!-- notebooks list -->
|
||||
<div class="sidebar listbox" role="navigation" aria-labelledby="arial-label-notebooks">
|
||||
<div id="layout-sidebar" class="listbox" role="navigation" aria-labelledby="arial-label-notebooks">
|
||||
<div class="header">
|
||||
<a class="button icon back-list-button" href="#back"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span id="aria-label-notebooks" class="header-title"><roundcube:label name="kolab_notes.lists" /></span>
|
||||
|
@ -12,7 +12,7 @@
|
|||
title="kolab_notes.listactions" class="button icon sidebar-menu" data-popup="notebookactions-menu"
|
||||
innerClass="inner" label="actions" />
|
||||
</div>
|
||||
<roundcube:object name="libkolab.folder_search_form" id="notebooksearch" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="libkolab.folder_search_form" id="notebooksearch" wrapper="searchbar menu"
|
||||
ariatag="h2" label="foldersearchform" label-domain="kolab_notes" buttontitle="findnotebooks" />
|
||||
<div id="notebooks-content" class="scroller">
|
||||
<roundcube:object name="plugin.notebooks" id="notebooks" class="listing treelist iconized" />
|
||||
|
@ -20,18 +20,18 @@
|
|||
</div>
|
||||
|
||||
<!-- notes list -->
|
||||
<div class="list listbox selected" aria-labelledby="aria-label-noteslist">
|
||||
<div id="layout-list" class="listbox selected" aria-labelledby="aria-label-noteslist">
|
||||
<div class="header">
|
||||
<a class="button icon menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon task-menu-button" href="#menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
<a class="button icon back-sidebar-button folders" href="#sidebar"><span class="inner"><roundcube:label name="kolab_notes.notebooks" /></span></a>
|
||||
<span id="aria-label-noteslist" class="header-title"><roundcube:label name="kolab_notes.notes" /></span>
|
||||
<div id="listcontrols" class="toolbar" role="toolbar">
|
||||
<div id="listcontrols" class="toolbar menu" role="toolbar">
|
||||
<roundcube:button name="optionsmenu" id="listmenulink" type="link" class="button settings active"
|
||||
label="options" innerClass="inner" onclick="return kolab_notes_options_menu()" />
|
||||
</div>
|
||||
<a class="button icon toolbar-menu-button" href="#list-menu"><span class="inner"><roundcube:label name="menu" /></span></a>
|
||||
</div>
|
||||
<roundcube:object name="plugin.searchform" id="searchform" wrapper="searchbar toolbar"
|
||||
<roundcube:object name="plugin.searchform" id="searchform" wrapper="searchbar menu"
|
||||
label="notesearchform" label-domain="kolab_notes" buttontitle="kolab_notes.findnotes" ariatag="h2" />
|
||||
<div class="scroller">
|
||||
<h2 id="aria-label-noteslist" class="voice"><roundcube:label name="kolab_notes.notes" /></h2>
|
||||
|
@ -43,30 +43,26 @@
|
|||
</div>
|
||||
|
||||
<!-- note details frame -->
|
||||
<div class="content" role="main">
|
||||
<div id="layout-content" role="main">
|
||||
<h2 id="aria-label-toolbar" class="voice"><roundcube:label name="arialabeltoolbar" /></h2>
|
||||
<div class="header" role="toolbar" aria-labelledby="aria-label-toolbar">
|
||||
<a class="button icon back-list-button" href="#back"><span class="inner"><roundcube:label name="back" /></span></a>
|
||||
<span class="header-title"></span>
|
||||
<!-- toolbar -->
|
||||
<div id="notestoolbar" class="toolbar">
|
||||
<roundcube:button command="createnote" type="link"
|
||||
class="button create disabled" classAct="button create"
|
||||
<div id="notestoolbar" class="toolbar menu">
|
||||
<roundcube:button command="createnote" type="link" class="create disabled" classAct="create"
|
||||
label="create" title="kolab_notes.createnote" innerclass="inner" data-fab="true" />
|
||||
<roundcube:button command="print" type="link" data-hidden="small"
|
||||
class="button print disabled" classAct="button print"
|
||||
<roundcube:button command="print" type="link" class="print disabled" classAct="print" data-hidden="small"
|
||||
label="print" title="print" innerClass="inner" />
|
||||
<roundcube:button command="delete" type="link"
|
||||
class="button delete disabled" classAct="button delete"
|
||||
<roundcube:button command="delete" type="link" class="delete disabled" classAct="delete"
|
||||
title="delete" label="delete" innerClass="inner" />
|
||||
<span class="spacer"></span>
|
||||
<roundcube:button command="sendnote" type="link"
|
||||
class="button send disabled" classAct="button send"
|
||||
<roundcube:button command="sendnote" type="link" class="send disabled" classAct="send"
|
||||
label="kolab_notes.send" title="kolab_notes.sendnote" innerClass="inner" />
|
||||
<roundcube:container name="toolbar" id="notestoolbar" />
|
||||
<roundcube:if condition="config:kolab_bonnie_api" />
|
||||
<roundcube:button command="history" type="link"
|
||||
class="button history note-history disabled" classAct="button history note-history"
|
||||
class="history note-history disabled" classAct="history note-history"
|
||||
label="libkolab.objectchangelog" title="libkolab.showhistory" innerClass="inner" />
|
||||
<roundcube:endif />
|
||||
</div>
|
||||
|
@ -117,10 +113,10 @@
|
|||
|
||||
<div id="notebookactions-menu" class="popupmenu">
|
||||
<h3 id="aria-label-actionsmenu" class="voice"><roundcube:label name="kolab_notes.arialabelnotesoptionsmenu" /></h3>
|
||||
<ul class="toolbarmenu listing" role="menu" aria-labelledby="aria-label-actionsmenu">
|
||||
<ul class="menu listing" role="menu" aria-labelledby="aria-label-actionsmenu">
|
||||
<roundcube:button type="link-menuitem" command="list-create" label="kolab_notes.addnotebook" class="create disabled" classAct="create active" />
|
||||
<roundcube:button type="link-menuitem" command="list-edit" label="edit" class="edit disabled" classAct="edit active" />
|
||||
<roundcube:button type="link-menuitem" command="list-delete" label="delete" class="delete disabled" classAct="delete active" />
|
||||
<roundcube:button type="link-menuitem" command="list-edit" label="kolab_notes.editlist" class="edit disabled" classAct="edit active" />
|
||||
<roundcube:button type="link-menuitem" command="list-delete" label="kolab_notes.deletelist" class="delete disabled" classAct="delete active" />
|
||||
<roundcube:button type="link-menuitem" command="list-remove" label="kolab_notes.removelist" class="remove disabled" classAct="remove active" />
|
||||
<roundcube:button type="link-menuitem" command="folders" task="settings" label="managefolders" class="folders disabled" classAct="folders active" />
|
||||
</ul>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -2,7 +2,8 @@ Single Sign On Authentication for Kolab
|
|||
---------------------------------------
|
||||
|
||||
This plugin adds possibility to authenticate users via external authentication
|
||||
services. Currently the only supported method of authentication is OpenID Connect.
|
||||
services. Currently it supports various authentication methods based on
|
||||
OAuth2 and OpenID Connect (and requires JWT token use).
|
||||
|
||||
Because Kolab backends do not support token authentication it is required
|
||||
to use master user (sasl proxy) authentication where possible and service
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Single Sign On for Kolab",
|
||||
"homepage": "https://git.kolab.org/diffusion/RPK/",
|
||||
"license": "AGPLv3",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.4",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Aleksander Machniak",
|
||||
|
@ -15,7 +15,7 @@
|
|||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "http://plugins.roundcube.net"
|
||||
"url": "https://plugins.roundcube.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
436
plugins/kolab_sso/drivers/oauth2.php
Normal file
436
plugins/kolab_sso/drivers/oauth2.php
Normal file
|
@ -0,0 +1,436 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* kolab_sso driver implementing OAuth2 Authorization (RFC6749)
|
||||
* with use of JWT tokens.
|
||||
*
|
||||
* @author Aleksander Machniak <machniak@kolabsys.com>
|
||||
*
|
||||
* Copyright (C) 2018-2019, Kolab Systems AG <contact@kolabsys.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
class kolab_sso_oauth2
|
||||
{
|
||||
protected $plugin;
|
||||
protected $id = 'oauth2';
|
||||
protected $config = array();
|
||||
protected $params = array();
|
||||
protected $defaults = array(
|
||||
'scope' => 'email',
|
||||
'token_type' => 'access_token',
|
||||
'user_field' => 'email',
|
||||
'validate_items' => array('aud'),
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* Object constructor
|
||||
*
|
||||
* @param rcube_plugin $plugin kolab_sso plugin object
|
||||
* @param array $config Driver configuration
|
||||
*/
|
||||
public function __construct($plugin, $config)
|
||||
{
|
||||
$this->plugin = $plugin;
|
||||
$this->config = $config;
|
||||
|
||||
$this->plugin->require_plugin('libkolab');
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication request (redirect to SSO service)
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
$params = array(
|
||||
'response_type' => 'code',
|
||||
'scope' => $this->get_param('scope'),
|
||||
'client_id' => $this->get_param('client_id'),
|
||||
'state' => $this->plugin->rc->get_request_token(),
|
||||
'redirect_uri' => $this->redirect_uri(),
|
||||
);
|
||||
|
||||
// Add extra request parameters (don't overwrite params set above)
|
||||
if (!empty($this->config['extra_params'])) {
|
||||
$params = array_merge((array) $this->config['extra_params'], $params);
|
||||
}
|
||||
|
||||
$url = $this->config['auth_uri'] ?: (unslashify($this->config['uri']) . '/authorize');
|
||||
$url .= '?' . http_build_query($params);
|
||||
|
||||
$this->plugin->debug("[{$this->id}][authorize] Redirecting to $url");
|
||||
|
||||
header("Location: $url");
|
||||
die;
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorization response validation
|
||||
*/
|
||||
public function response()
|
||||
{
|
||||
$this->plugin->debug("[{$this->id}][authorize] Response: " . $_SERVER['REQUEST_URI']);
|
||||
|
||||
$this->error = $this->error_message(
|
||||
rcube_utils::get_input_value('error', rcube_utils::INPUT_GET),
|
||||
rcube_utils::get_input_value('error_description', rcube_utils::INPUT_GET),
|
||||
rcube_utils::get_input_value('error_uri', rcube_utils::INPUT_GET)
|
||||
);
|
||||
|
||||
if ($this->error) {
|
||||
return;
|
||||
}
|
||||
|
||||
$state = rcube_utils::get_input_value('state', rcube_utils::INPUT_GET);
|
||||
$code = rcube_utils::get_input_value('code', rcube_utils::INPUT_GET);
|
||||
|
||||
if (!$state) {
|
||||
$this->plugin->debug("[{$this->id}][response] State missing");
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($state != $this->plugin->rc->get_request_token()) {
|
||||
$this->plugin->debug("[{$this->id}][response] Invalid response state");
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$code) {
|
||||
$this->plugin->debug("[{$this->id}][response] Code missing");
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->request_token($code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Error message for the response handler
|
||||
*/
|
||||
public function response_error()
|
||||
{
|
||||
if ($this->error) {
|
||||
return $this->plugin->rc->gettext('loginfailed') . ' ' . $this->error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Existing session validation
|
||||
*/
|
||||
public function validate_session($session)
|
||||
{
|
||||
$this->plugin->debug("[{$this->id}][validate] Session: " . json_encode($session));
|
||||
|
||||
// Sanity checks
|
||||
if (empty($session) || empty($session['code']) || empty($session['validto']) || empty($session['email'])) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Session invalid");
|
||||
return;
|
||||
}
|
||||
|
||||
// Check expiration time
|
||||
$now = new DateTime('now', new DateTimezone('UTC'));
|
||||
$validto = new DateTime($session['validto'], new DateTimezone('UTC'));
|
||||
|
||||
// Don't refresh often than TTL/2
|
||||
$validto->sub(new DateInterval(sprintf('PT%dS', $session['ttl']/2)));
|
||||
if ($now < $validto) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Token valid, skipping refresh");
|
||||
return $session;
|
||||
}
|
||||
|
||||
// No refresh_token, not possible to refresh
|
||||
if (empty($session['refresh_token'])) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Session cannot be refreshed");
|
||||
return;
|
||||
}
|
||||
|
||||
// Renew tokens
|
||||
$info = $this->request_token($session['code'], $session['refresh_token']);
|
||||
|
||||
if (!empty($info)) {
|
||||
// Make sure the email didn't change
|
||||
if (!empty($info['email']) && $info['email'] != $session['email']) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Email address change");
|
||||
return;
|
||||
}
|
||||
|
||||
$session = array_merge($session, $info);
|
||||
|
||||
$this->plugin->debug("[{$this->id}][validate] Session valid: " . json_encode($session));
|
||||
return $session;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication Token request (or token refresh)
|
||||
*/
|
||||
protected function request_token($code, $refresh_token = null)
|
||||
{
|
||||
$mode = $refresh_token ? 'token-refresh' : 'token';
|
||||
$url = $this->config['token_uri'] ?: ($this->config['uri'] . '/token');
|
||||
$params = array(
|
||||
'client_id' => $this->get_param('client_id'),
|
||||
'client_secret' => $this->get_param('client_secret'),
|
||||
'grant_type' => $refresh_token ? 'refresh_token' : 'authorization_code',
|
||||
);
|
||||
|
||||
if ($refresh_token) {
|
||||
$params['refresh_token'] = $refresh_token;
|
||||
$params['scope'] = $this->get_param('scope');
|
||||
}
|
||||
else {
|
||||
$params['code'] = $code;
|
||||
$params['redirect_uri'] = $this->redirect_uri();
|
||||
}
|
||||
|
||||
// Add extra request parameters (don't overwrite params set above)
|
||||
if (!empty($this->config['extra_params'])) {
|
||||
$params = array_merge((array) $this->config['extra_params'], $params);
|
||||
}
|
||||
|
||||
$post = http_build_query($params);
|
||||
|
||||
$this->plugin->debug("[{$this->id}][$mode] Requesting POST $url?$post");
|
||||
|
||||
try {
|
||||
// TODO: JWT-based methods of client authentication
|
||||
// https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.9
|
||||
|
||||
$request = $this->get_request($url, 'POST');
|
||||
$request->setAuth($params['client_id'], $params['client_secret']);
|
||||
$request->setBody($post);
|
||||
|
||||
$response = $request->send();
|
||||
$status = $response->getStatus();
|
||||
$response = $response->getBody();
|
||||
|
||||
$this->plugin->debug("[{$this->id}][$mode] Response: $response");
|
||||
|
||||
$response = @json_decode($response, true);
|
||||
|
||||
if ($status != 200 || !is_array($response) || !empty($response['error'])) {
|
||||
$err = $this->error_text(is_array($response) ? $response['error'] : null);
|
||||
throw new Exception("OpenIDC request failed with error: $err");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$this->error = $this->plugin->gettext('errorunknown');
|
||||
rcube::raise_error(array(
|
||||
'line' => __LINE__, 'file' => __FILE__, 'message' => $e->getMessage()),
|
||||
true, false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Example response: {
|
||||
// "access_token":"ACCESS_TOKEN",
|
||||
// "token_type":"bearer",
|
||||
// "expires_in":2592000,
|
||||
// "refresh_token":"REFRESH_TOKEN",
|
||||
// "scope":"read",
|
||||
// "uid":100101,
|
||||
// "info":{"name":"Mark E. Mark","email":"mark@example.com"}
|
||||
// }
|
||||
|
||||
if (empty($response['access_token']) || empty($response['token_type'])
|
||||
|| strtolower($response['token_type']) != 'bearer'
|
||||
) {
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
$this->plugin->debug("[{$this->id}][$mode] Error: Invalid or unsupported response");
|
||||
return;
|
||||
}
|
||||
|
||||
$ttl = $response['expires_in'] ?: 600;
|
||||
$validto = new DateTime(sprintf('+%d seconds', $ttl), new DateTimezone('UTC'));
|
||||
$token = $response[$this->get_param('token_type')];
|
||||
|
||||
$result = array(
|
||||
'code' => $code,
|
||||
'access_token' => $response['access_token'],
|
||||
// 'token_type' => $response['token_type'],
|
||||
'validto' => $validto->format(DateTime::ISO8601),
|
||||
'ttl' => $ttl,
|
||||
);
|
||||
|
||||
if (!empty($response['refresh_token'])) {
|
||||
$result['refresh_token'] = $response['refresh_token'];
|
||||
}
|
||||
|
||||
if (!empty($token)) {
|
||||
try {
|
||||
$key = $params['client_secret'];
|
||||
|
||||
if (!empty($this->config['pubkey'])) {
|
||||
$pubkey = trim(preg_replace('/\r?\n[\s\t]+/', "\n", $this->config['pubkey']));
|
||||
|
||||
if (strpos($pubkey, '-----') !== 0) {
|
||||
$pubkey = "-----BEGIN PUBLIC KEY-----\n" . trim(chunk_split($pubkey, 64, "\n")) . "\n-----END PUBLIC KEY-----";
|
||||
}
|
||||
|
||||
if ($keyid = openssl_pkey_get_public($pubkey)) {
|
||||
$key = $keyid;
|
||||
}
|
||||
else {
|
||||
throw new Exception("Failed to extract public key");
|
||||
}
|
||||
}
|
||||
|
||||
$jwt = new Firebase\JWT\JWT;
|
||||
$jwt::$leeway = 60;
|
||||
|
||||
$payload = $jwt->decode($token, $key, array_keys(Firebase\JWT\JWT::$supported_algs));
|
||||
|
||||
$result['email'] = $this->validate_token_payload($payload);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$this->error = $this->plugin->gettext('errorinvalidtoken');
|
||||
rcube::raise_error(array(
|
||||
'line' => __LINE__, 'file' => __FILE__, 'message' => $e->getMessage()),
|
||||
true, false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates JWT token payload and returns user/email
|
||||
*/
|
||||
protected function validate_token_payload($payload)
|
||||
{
|
||||
$items = $this->get_maram('validate_items');
|
||||
$email = $this->config['debug_email'] ?: $payload->{$this->get_param('user_field')};
|
||||
|
||||
if (empty($email)) {
|
||||
throw new Exception("No email address in JWT token");
|
||||
}
|
||||
|
||||
foreach ((array) $items as $item_name) {
|
||||
// More extended token validation
|
||||
// https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
|
||||
switch (strtolower($item_name)) {
|
||||
case 'aud':
|
||||
if (!in_array($this->get_param('client_id'), (array) $payload->aud)) {
|
||||
throw new Exception("Token audience does not match");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $email;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL to use when redirecting the user from SSO back to Roundcube
|
||||
*/
|
||||
protected function redirect_uri()
|
||||
{
|
||||
// response_uri is useful when the Provider does not allow
|
||||
// URIs with parameters. In such case set response_uri = '/sso'
|
||||
// and define a redirect in http server, example for Apache:
|
||||
// RewriteRule "^sso" "/roundcubemail/?_task=login&_action=sso" [L,QSA]
|
||||
|
||||
$redirect_params = empty($this->config['response_uri']) ? array('_action' => 'sso') : array();
|
||||
|
||||
$url = $this->plugin->rc->url($redirect_params, false, true);
|
||||
|
||||
if (!empty($this->config['response_uri'])) {
|
||||
$url = unslashify(preg_replace('/\?.*$/', '', $url)) . '/' . ltrim($this->config['response_uri'], '/');
|
||||
}
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get HTTP/Request2 object
|
||||
*/
|
||||
protected function get_request($url, $type)
|
||||
{
|
||||
$config = array_intersect_key($this->config, array_flip(array(
|
||||
'ssl_verify_peer',
|
||||
'ssl_verify_host',
|
||||
'ssl_cafile',
|
||||
'ssl_capath',
|
||||
'ssl_local_cert',
|
||||
'ssl_passphrase',
|
||||
'follow_redirects',
|
||||
)));
|
||||
|
||||
return libkolab::http_request($url, $type, $config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns (localized) user-friendly error message
|
||||
*/
|
||||
protected function error_message($error, $description, $uri)
|
||||
{
|
||||
if (empty($error)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$msg = $this->error_text($error);
|
||||
|
||||
rcube::raise_error(array(
|
||||
'message' => "[SSO] $msg." . ($description ? " $description" : '') . ($uri ? " ($uri)" : '')
|
||||
), true, false);
|
||||
|
||||
$label = 'error' . str_replace('_', '', $error);
|
||||
if (!$this->plugin->rc->text_exists($label, 'kolab_sso')) {
|
||||
$label = 'errorunknown';
|
||||
}
|
||||
|
||||
return $this->plugin->gettext($label);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns error text for specified OpenIDC error code
|
||||
*/
|
||||
protected function error_text($error)
|
||||
{
|
||||
switch ($error) {
|
||||
case 'invalid_request':
|
||||
return "Request malformed";
|
||||
case 'unauthorized_client':
|
||||
return "The client is not authorized";
|
||||
case 'invalid_client':
|
||||
return "Client authentication failed";
|
||||
case 'access_denied':
|
||||
return "Request denied";
|
||||
case 'unsupported_response_type':
|
||||
return "Unsupported response type";
|
||||
case 'invalid_grant':
|
||||
return "Invalid authorization grant";
|
||||
case 'unsupported_grant_type':
|
||||
return "Unsupported authorization grant";
|
||||
case 'invalid_scope':
|
||||
return "Invalid scope";
|
||||
case 'server_error':
|
||||
return "Server error";
|
||||
case 'temporarily_unavailable':
|
||||
return "Service temporarily unavailable";
|
||||
}
|
||||
|
||||
return "Unknown error";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns (hardcoded/configured/default) value of a configuration param
|
||||
*/
|
||||
protected function get_param($name)
|
||||
{
|
||||
return $this->params[$name] ?: ($this->config[$name] ?: $this->defaults[$name]);
|
||||
}
|
||||
}
|
|
@ -23,371 +23,24 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
class kolab_sso_openidc
|
||||
|
||||
require_once __DIR__ . '/oauth2.php';
|
||||
|
||||
class kolab_sso_openidc extends kolab_sso_oauth2
|
||||
{
|
||||
protected $id = 'openidc';
|
||||
protected $config = array();
|
||||
protected $plugin;
|
||||
|
||||
|
||||
public function __construct($plugin, $config)
|
||||
{
|
||||
$this->plugin = $plugin;
|
||||
$this->config = $config;
|
||||
|
||||
$this->plugin->require_plugin('libkolab');
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication request (redirect to SSO service)
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
$params = array(
|
||||
'response_type' => 'code',
|
||||
'scope' => 'openid email offline_access',
|
||||
'client_id' => $this->config['client_id'],
|
||||
'state' => $this->plugin->rc->get_request_token(),
|
||||
'redirect_uri' => $this->redirect_uri(),
|
||||
);
|
||||
|
||||
// TODO: Other params by config: display, prompt, max_age,
|
||||
|
||||
$url = $this->config['auth_uri'] ?: (unslashify($this->config['uri']) . '/authorize');
|
||||
$url .= '?' . http_build_query($params);
|
||||
|
||||
$this->plugin->debug("[{$this->id}][authorize] Redirecting to $url");
|
||||
|
||||
header("Location: $url");
|
||||
die;
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorization response validation
|
||||
*/
|
||||
public function response()
|
||||
{
|
||||
$this->plugin->debug("[{$this->id}][authorize] Response: " . $_SERVER['REQUEST_URI']);
|
||||
|
||||
$this->error = $this->error_message(
|
||||
rcube_utils::get_input_value('error', rcube_utils::INPUT_GET),
|
||||
rcube_utils::get_input_value('error_description', rcube_utils::INPUT_GET),
|
||||
rcube_utils::get_input_value('error_uri', rcube_utils::INPUT_GET)
|
||||
);
|
||||
|
||||
if ($this->error) {
|
||||
return;
|
||||
}
|
||||
|
||||
$state = rcube_utils::get_input_value('state', rcube_utils::INPUT_GET);
|
||||
$code = rcube_utils::get_input_value('code', rcube_utils::INPUT_GET);
|
||||
|
||||
if (!$state) {
|
||||
$this->plugin->debug("[{$this->id}][response] State missing");
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($state != $this->plugin->rc->get_request_token()) {
|
||||
$this->plugin->debug("[{$this->id}][response] Invalid response state");
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$code) {
|
||||
$this->plugin->debug("[{$this->id}][response] Code missing");
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->request_token($code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Error message for the response handler
|
||||
*/
|
||||
public function response_error()
|
||||
{
|
||||
if ($this->error) {
|
||||
return $this->plugin->rc->gettext('loginfailed') . ' ' . $this->error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Existing session validation
|
||||
*/
|
||||
public function validate_session($session)
|
||||
{
|
||||
$this->plugin->debug("[{$this->id}][validate] Session: " . json_encode($session));
|
||||
|
||||
// Sanity checks
|
||||
if (empty($session) || empty($session['code']) || empty($session['validto']) || empty($session['email'])) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Session invalid");
|
||||
return;
|
||||
}
|
||||
|
||||
// Check expiration time
|
||||
$now = new DateTime('now', new DateTimezone('UTC'));
|
||||
$validto = new DateTime($session['validto'], new DateTimezone('UTC'));
|
||||
|
||||
// Don't refresh often than TTL/2
|
||||
$validto->sub(new DateInterval(sprintf('PT%dS', $session['ttl']/2)));
|
||||
if ($now < $validto) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Token valid, skipping refresh");
|
||||
return $session;
|
||||
}
|
||||
|
||||
// No refresh_token, not possible to refresh
|
||||
if (empty($session['refresh_token'])) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Session cannot be refreshed");
|
||||
return;
|
||||
}
|
||||
|
||||
// Renew tokens
|
||||
$info = $this->request_token($session['code'], $session['refresh_token']);
|
||||
|
||||
if (!empty($info)) {
|
||||
// Make sure the email didn't change
|
||||
if (!empty($info['email']) && $info['email'] != $session['email']) {
|
||||
$this->plugin->debug("[{$this->id}][validate] Email address change");
|
||||
return;
|
||||
}
|
||||
|
||||
$session = array_merge($session, $info);
|
||||
|
||||
$this->plugin->debug("[{$this->id}][validate] Session valid: " . json_encode($session));
|
||||
return $session;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication Token request (or token refresh)
|
||||
*/
|
||||
protected function request_token($code, $refresh_token = null)
|
||||
{
|
||||
$mode = $refresh_token ? 'token-refresh' : 'token';
|
||||
$url = $this->config['token_uri'] ?: ($this->config['uri'] . '/token');
|
||||
$params = array(
|
||||
'client_id' => $this->config['client_id'],
|
||||
'client_secret' => $this->config['client_secret'],
|
||||
'grant_type' => $refresh_token ? 'refresh_token' : 'authorization_code',
|
||||
);
|
||||
|
||||
if ($refresh_token) {
|
||||
$params['refresh_token'] = $refresh_token;
|
||||
$params['scope'] = 'openid email offline_access';
|
||||
}
|
||||
else {
|
||||
$params['code'] = $code;
|
||||
$params['redirect_uri'] = $this->redirect_uri();
|
||||
}
|
||||
|
||||
$post = http_build_query($params);
|
||||
|
||||
$this->plugin->debug("[{$this->id}][$mode] Requesting POST $url?$post");
|
||||
|
||||
try {
|
||||
// TODO: JWT-based methods of client authentication
|
||||
// https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.9
|
||||
|
||||
$request = $this->get_request($url, 'POST');
|
||||
$request->setAuth($this->config['client_id'], $this->config['client_secret']);
|
||||
$request->setBody($post);
|
||||
|
||||
$response = $request->send();
|
||||
$status = $response->getStatus();
|
||||
$response = $response->getBody();
|
||||
|
||||
$this->plugin->debug("[{$this->id}][$mode] Response: $response");
|
||||
|
||||
$response = @json_decode($response, true);
|
||||
|
||||
if ($status != 200 || !is_array($response) || !empty($response['error'])) {
|
||||
$err = $this->error_text(is_array($response) ? $response['error'] : null);
|
||||
throw new Exception("OpenIDC request failed with error: $err");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$this->error = $this->plugin->gettext('errorunknown');
|
||||
rcube::raise_error(array(
|
||||
'line' => __LINE__, 'file' => __FILE__, 'message' => $e->getMessage()),
|
||||
true, false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Example response: {
|
||||
// "access_token":"ACCESS_TOKEN",
|
||||
// "token_type":"bearer",
|
||||
// "expires_in":2592000,
|
||||
// "refresh_token":"REFRESH_TOKEN",
|
||||
// "scope":"read",
|
||||
// "uid":100101,
|
||||
// "info":{"name":"Mark E. Mark","email":"mark@example.com"}
|
||||
// }
|
||||
|
||||
if (empty($response['access_token']) || empty($response['token_type'])
|
||||
|| strtolower($response['token_type']) != 'bearer'
|
||||
) {
|
||||
$this->error = $this->plugin->gettext('errorinvalidresponse');
|
||||
$this->plugin->debug("[{$this->id}][$mode] Error: Invalid or unsupported response");
|
||||
return;
|
||||
}
|
||||
|
||||
$ttl = $response['expires_in'] ?: 600;
|
||||
$validto = new DateTime(sprintf('+%d seconds', $ttl), new DateTimezone('UTC'));
|
||||
|
||||
$result = array(
|
||||
'code' => $code,
|
||||
'access_token' => $response['access_token'],
|
||||
// 'token_type' => $response['token_type'],
|
||||
'validto' => $validto->format(DateTime::ISO8601),
|
||||
'ttl' => $ttl,
|
||||
);
|
||||
|
||||
if (!empty($response['refresh_token'])) {
|
||||
$result['refresh_token'] = $response['refresh_token'];
|
||||
}
|
||||
|
||||
if (!empty($response['id_token'])) {
|
||||
try {
|
||||
$key = $this->config['client_secret'];
|
||||
|
||||
if (!empty($this->config['pubkey'])) {
|
||||
$pubkey = trim(preg_replace('/\r?\n[\s\t]+/', "\n", $this->config['pubkey']));
|
||||
|
||||
if (strpos($pubkey, '-----') !== 0) {
|
||||
$pubkey = "-----BEGIN PUBLIC KEY-----\n" . trim(chunk_split($pubkey, 64, "\n")) . "\n-----END PUBLIC KEY-----";
|
||||
}
|
||||
|
||||
if ($keyid = openssl_pkey_get_public($pubkey)) {
|
||||
$key = $keyid;
|
||||
}
|
||||
else {
|
||||
throw new Exception("Failed to extract public key");
|
||||
}
|
||||
}
|
||||
|
||||
$jwt = new Firebase\JWT\JWT;
|
||||
$jwt::$leeway = 60;
|
||||
|
||||
$payload = $jwt->decode($response['id_token'], $key, array_keys(Firebase\JWT\JWT::$supported_algs));
|
||||
$email = $this->config['debug_email'] ?: $payload->email;
|
||||
|
||||
if (empty($email)) {
|
||||
throw new Exception("No email address in JWT token");
|
||||
}
|
||||
|
||||
if (!in_array($this->config['client_id'], (array) $payload->aud)) {
|
||||
throw new Exception("Token audience does not match");
|
||||
}
|
||||
|
||||
// More extended token validation
|
||||
// https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
|
||||
|
||||
$result['email'] = $email;
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$this->error = $this->plugin->gettext('errorinvalidtoken');
|
||||
rcube::raise_error(array(
|
||||
'line' => __LINE__, 'file' => __FILE__, 'message' => $e->getMessage()),
|
||||
true, false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL to use when redirecting the user from SSO back to Roundcube
|
||||
*/
|
||||
protected function redirect_uri()
|
||||
{
|
||||
// response_uri is useful when the Provider does not allow
|
||||
// URIs with parameters. In such case set response_uri = '/sso'
|
||||
// and define a redirect in http server, example for Apache:
|
||||
// RewriteRule "^sso" "/roundcubemail/?_task=login&_action=sso" [L,QSA]
|
||||
|
||||
$redirect_params = empty($this->config['response_uri']) ? array('_action' => 'sso') : array();
|
||||
|
||||
$url = $this->plugin->rc->url($redirect_params, false, true);
|
||||
|
||||
if (!empty($this->config['response_uri'])) {
|
||||
$url = unslashify(preg_replace('/\?.*$/', '', $url)) . '/' . ltrim($this->config['response_uri'], '/');
|
||||
}
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get HTTP/Request2 object
|
||||
*/
|
||||
protected function get_request($url, $type)
|
||||
{
|
||||
$config = array_intersect_key($this->config, array_flip(array(
|
||||
'ssl_verify_peer',
|
||||
'ssl_verify_host',
|
||||
'ssl_cafile',
|
||||
'ssl_capath',
|
||||
'ssl_local_cert',
|
||||
'ssl_passphrase',
|
||||
'follow_redirects',
|
||||
)));
|
||||
|
||||
return libkolab::http_request($url, $type, $config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns (localized) user-friendly error message
|
||||
*/
|
||||
protected function error_message($error, $description, $uri)
|
||||
{
|
||||
if (empty($error)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$msg = $this->error_text($error);
|
||||
|
||||
rcube::raise_error(array(
|
||||
'message' => "[SSO] $msg." . ($description ? " $description" : '') . ($uri ? " ($uri)" : '')
|
||||
), true, false);
|
||||
|
||||
$label = 'error' . str_replace('_', '', $error);
|
||||
if (!$this->plugin->rc->text_exists($label, 'kolab_sso')) {
|
||||
$label = 'errorunknown';
|
||||
}
|
||||
|
||||
return $this->plugin->gettext($label);
|
||||
}
|
||||
protected $params = array(
|
||||
'scope' => 'openid email offline_access',
|
||||
'token_type' => 'id_token',
|
||||
);
|
||||
|
||||
/**
|
||||
* Returns error text for specified OpenIDC error code
|
||||
*/
|
||||
protected function error_text($error)
|
||||
{
|
||||
// OpenIDC-specific codes
|
||||
switch ($error) {
|
||||
// OAuth2 codes
|
||||
case 'invalid_request':
|
||||
return "Request malformed";
|
||||
case 'unauthorized_client':
|
||||
return "The client is not authorized";
|
||||
case 'invalid_client':
|
||||
return "Client authentication failed";
|
||||
case 'access_denied':
|
||||
return "Request denied";
|
||||
case 'unsupported_response_type':
|
||||
return "Unsupported response type";
|
||||
case 'invalid_grant':
|
||||
return "Invalid authorization grant";
|
||||
case 'unsupported_grant_type':
|
||||
return "Unsupported authorization grant";
|
||||
case 'invalid_scope':
|
||||
return "Invalid scope";
|
||||
case 'server_error':
|
||||
return "Server error";
|
||||
case 'temporarily_unavailable':
|
||||
return "Service temporarily unavailable";
|
||||
// OpenIDC codes
|
||||
case 'interaction_required':
|
||||
return "End-User interaction required";
|
||||
case 'login_required':
|
||||
|
@ -408,6 +61,7 @@ class kolab_sso_openidc
|
|||
return "Registration not supported";
|
||||
}
|
||||
|
||||
return "Unknown error";
|
||||
// Fallback to OAuth2-specific codes
|
||||
return parent::error_text($error);
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue