From 22a2c5e0eefcea8572f2ab5ad2e5a22789b6f555 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 2 Jun 2014 12:57:28 +0200 Subject: Localize title and summary attributes; make message count display box a live area --- program/include/rcmail_output_html.php | 8 ++++++++ skins/larry/templates/mail.html | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 19a8d142c..1fa0376fb 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -858,6 +858,14 @@ EOF; return ''; } + // localize title and summary attributes + if (!empty($attrib['title']) && $this->app->text_exists($attrib['title'])) { + $attrib['title'] = $this->app->gettext($attrib['title']); + } + if (!empty($attrib['summary']) && $this->app->text_exists($attrib['summary'])) { + $attrib['summary'] = $this->app->gettext($attrib['summary']); + } + // execute command switch ($command) { // return a button diff --git a/skins/larry/templates/mail.html b/skins/larry/templates/mail.html index 26cef3f3c..92b01e019 100644 --- a/skins/larry/templates/mail.html +++ b/skins/larry/templates/mail.html @@ -97,7 +97,6 @@ id="messagelist" class="records-table messagelist sortheader fixedheader" optionsmenuIcon="true" - summary="Email Messages Listing" aria-labelledby="aria-label-messagelist" /> @@ -116,7 +115,7 @@ -- cgit v1.2.3