summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-06-02 12:57:28 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-06-02 12:57:28 +0200
commit22a2c5e0eefcea8572f2ab5ad2e5a22789b6f555 (patch)
treed3aea3587167e698a203c8a00ed63046ee4effaf /program/include
parentb4446aa7a9b0722bc68d61ed1e03b7c399122016 (diff)
Localize title and summary attributes; make message count display box a live area
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail_output_html.php8
1 files changed, 8 insertions, 0 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