From 822507d341bce2c95528dd43c895e4496090f8fa Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Jul 2023 09:09:12 -0600 Subject: [PATCH] Calendar: Fix 'None' category option was not translated --- calendar/inc/class.calendar_ui.inc.php | 18 +++++++++++++----- calendar/templates/default/sidebox.xet | 4 +--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index b07dcd1879..45eab2d6b0 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -560,13 +560,21 @@ class calendar_ui array('value' => 'no-enum-groups', 'label' => lang('only group-events'),'title' => lang('Do not include events of group members')), array('value' => 'not-unknown', 'label' => lang('No meeting requests'),'title' => lang('Show all status, but unknown')), ); - $sel_options['status_filter'][] = array('value' => 'deleted', 'label' => lang('Deleted'), 'title' => lang('Show events that have been deleted')); + $sel_options['status_filter'][] = array( + 'value' => 'deleted', 'label' => lang('Deleted'), + 'title' => lang('Show events that have been deleted') + ); + + $sel_options['cat_id'] = array( + ['value' => '0', 'label' => lang('None')] + ); // Merge print - try { - if (class_exists('EGroupware\\collabora\\Bo') && - $GLOBALS['egw_info']['user']['apps']['collabora'] && - $discovery = \EGroupware\collabora\Bo::discover() + try + { + if(class_exists('EGroupware\\collabora\\Bo') && + $GLOBALS['egw_info']['user']['apps']['collabora'] && + $discovery = \EGroupware\collabora\Bo::discover() ) { $cont['collabora_enabled'] = true; diff --git a/calendar/templates/default/sidebox.xet b/calendar/templates/default/sidebox.xet index 10fbf073f9..77ae090e78 100644 --- a/calendar/templates/default/sidebox.xet +++ b/calendar/templates/default/sidebox.xet @@ -18,9 +18,7 @@ Egroupware - - - +