Skip to content
Browse files

Add localized titles for message header toggles

  • Loading branch information...
1 parent 765ecb9 commit 7257040ca27e02020752d76a4b80e9d3a18c60fb @thomascube thomascube committed Oct 2, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 program/localization/en_US/labels.inc
  2. +1 −1 program/steps/mail/func.inc
View
2 program/localization/en_US/labels.inc
@@ -237,6 +237,8 @@ $labels['showimages'] = 'Display images';
$labels['alwaysshow'] = 'Always show images from $sender';
$labels['isdraft'] = 'This is a draft message.';
$labels['andnmore'] = '$nr more...';
+$labels['togglemoreheaders'] = 'Show more message headers';
+$labels['togglefullheaders'] = 'Toggle raw message headers';
$labels['htmltoggle'] = 'HTML';
$labels['plaintoggle'] = 'Plain text';
View
2 program/steps/mail/func.inc
@@ -1068,7 +1068,7 @@ function rcmail_message_full_headers($attrib, $headers=NULL)
global $OUTPUT;
$html = html::div(array('id' => "all-headers", 'class' => "all", 'style' => 'display:none'), html::div(array('id' => 'headers-source'), ''));
- $html .= html::div(array('class' => "more-headers show-headers", 'onclick' => "return ".JS_OBJECT_NAME.".command('show-headers','',this)"), '');
+ $html .= html::div(array('class' => "more-headers show-headers", 'onclick' => "return ".JS_OBJECT_NAME.".command('show-headers','',this)", 'title' => rcube_label('togglefullheaders')), '');
$OUTPUT->add_gui_object('all_headers_row', 'all-headers');
$OUTPUT->add_gui_object('all_headers_box', 'headers-source');

0 comments on commit 7257040

Please sign in to comment.
Something went wrong with that request. Please try again.