Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -63,15 +63,17 @@ |
64 | 64 | wfMsgHtml( 'translate-edit-goto-list' ), |
65 | 65 | "group=$id&language=$code#msg_$next" ); |
66 | 66 | |
67 | | - $text .= |
68 | | -"<hr /> |
| 67 | + $def = TranslateUtils::convertWhiteSpaceToHTML($def); |
| 68 | + |
| 69 | + $text .= <<<EOEO |
| 70 | +<hr /> |
69 | 71 | <ul> |
70 | 72 | <li>$prevLink</li> |
71 | 73 | <li>$nextLink</li> |
72 | 74 | <li>$list</li> |
73 | 75 | </ul><hr /> |
74 | | -<pre>$def</pre>"; |
75 | | - |
| 76 | +<div class="mw-translate-definition-preview">$def</div> |
| 77 | +EOEO; |
76 | 78 | return true; |
77 | 79 | } |
78 | 80 | |
Index: trunk/extensions/Translate/Translate.css |
— | — | @@ -84,4 +84,9 @@ |
85 | 85 | |
86 | 86 | .mw-translate-fuzzy { |
87 | 87 | background-color: #FDD; |
| 88 | +} |
| 89 | +.mw-translate-definition-preview { |
| 90 | + font-family: monospace; |
| 91 | + background-color: #F3F3FF; |
| 92 | + border: 1px solid black; |
88 | 93 | } |
\ No newline at end of file |