r38760 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38759‎ | r38760 | r38761 >
Date:10:06, 7 August 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Pre was causing horizontal scrolling
Modified paths:
  • /trunk/extensions/Translate/Translate.css (modified) (history)
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -63,15 +63,17 @@
6464 wfMsgHtml( 'translate-edit-goto-list' ),
6565 "group=$id&language=$code#msg_$next" );
6666
67 - $text .=
68 -"<hr />
 67+ $def = TranslateUtils::convertWhiteSpaceToHTML($def);
 68+
 69+ $text .= <<<EOEO
 70+<hr />
6971 <ul>
7072 <li>$prevLink</li>
7173 <li>$nextLink</li>
7274 <li>$list</li>
7375 </ul><hr />
74 -<pre>$def</pre>";
75 -
 76+<div class="mw-translate-definition-preview">$def</div>
 77+EOEO;
7678 return true;
7779 }
7880
Index: trunk/extensions/Translate/Translate.css
@@ -84,4 +84,9 @@
8585
8686 .mw-translate-fuzzy {
8787 background-color: #FDD;
 88+}
 89+.mw-translate-definition-preview {
 90+ font-family: monospace;
 91+ background-color: #F3F3FF;
 92+ border: 1px solid black;
8893 }
\ No newline at end of file

Status & tagging log