From 14fae65553b0d264ecb21cf55c1134a05f47b5cb Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 8 Mar 2016 10:41:52 +0100 Subject: [PATCH] Fix some not localized error messages --- plugins/calendar/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index e416ea7d..5f2e3c62 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -1505,11 +1505,11 @@ class calendar extends rcube_plugin } else { if ($err == UPLOAD_ERR_INI_SIZE || $err == UPLOAD_ERR_FORM_SIZE) { - $msg = $this->gettext(array('name' => 'filesizeerror', 'vars' => array( + $msg = $this->rc->gettext(array('name' => 'filesizeerror', 'vars' => array( 'size' => $this->rc->show_bytes(parse_bytes(ini_get('upload_max_filesize')))))); } else { - $msg = $this->gettext('fileuploaderror'); + $msg = $this->rc->gettext('fileuploaderror'); } $this->rc->output->command('plugin.import_error', array('message' => $msg));