From 5c52d06844779efbf4034663f5e68db10619b367 Mon Sep 17 00:00:00 2001 From: svncommit <devs@roundcube.net> Date: Sun, 22 Oct 2006 02:45:54 -0400 Subject: [PATCH] Updated Russian localization --- program/steps/mail/compose.inc | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 5077d5c..51ae619 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -787,8 +787,8 @@ global $CONFIG, $MESSAGE, $compose_mode; $choices = array( - 'html' => 'HTML', - 'plain' => 'Plain text' + 'html' => 'htmltoggle', + 'plain' => 'plaintoggle' ); // determine whether HTML or plain text should be checked @@ -806,15 +806,24 @@ } $selector = ''; + + $attrib['name'] = '_editorSelect'; + $attrib['onclick'] = 'return rcmail_toggle_editor(this)'; foreach ($choices as $value => $text) { $checked = ''; - if ((($text == 'HTML') && $useHtml) || - (($text != 'HTML') && !$useHtml)) - $checked = 'checked'; + if ((($value == 'html') && $useHtml) || + (($value != 'html') && !$useHtml)) + $attrib['checked'] = 'true'; + else + unset($attrib['checked']); - $selector .= sprintf("<input type='radio' name='_editorSelect' value='%s' %s onclick='return rcmail_toggle_editor(this)'>%s</input>\n", - $value, $checked, $text); + $attrib['id'] = '_' . $value; + $rb = new radiobutton($attrib); + $selector .= sprintf("<td>%s</td><td class=\"title\"><label for=\"%s\">%s</label></td>", + $rb->show($value), + $attrib['id'], + rcube_label($text)); } return $selector; -- Gitblit v1.9.1