r92963 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92962‎ | r92963 | r92964 >
Date:20:48, 23 July 2011
Author:robin
Status:ok (Comments)
Tags:
Comment:
Follow-up r92956: move inline css to css file, and put the direction:ltr; at the right place
Modified paths:
  • /trunk/extensions/Translate/Translate.css (modified) (history)
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.css
@@ -1,7 +1,13 @@
22 .mw-translate-fuzzy {
33 background-color: #FDD;
 4+}
 5+
 6+.mw-translate-page-info {
 7+ font-size: x-small;
 8+ text-align: center;
49 direction: ltr;
510 }
 11+
612 .mw-translate-definition-preview {
713 font-family: monospace;
814 background-color: #F3F3FF;
Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -498,7 +498,7 @@
499499 $url = $page->getTranslationUrl( $code );
500500
501501 // Output
502 - $wrap = '<div style="font-size: x-small; text-align: center">$1</div>';
 502+ $wrap = '<div class="mw-translate-page-info">$1</div>';
503503 $wgOut->wrapWikiMsg( $wrap, array( 'tpt-translation-intro', $url, $titleText, $per ) );
504504
505505 if ( floor( $per ) < 100 ) {
@@ -506,7 +506,7 @@
507507 $collection = $group->initCollection( $code );
508508 $collection->filter( 'fuzzy', false );
509509 if ( count( $collection ) ) {
510 - $wrap = '<div style="font-size: x-small; text-align: center" class="mw-translate-fuzzy">$1</div>';
 510+ $wrap = '<div class="mw-translate-page-info mw-translate-fuzzy">$1</div>';
511511 $wgOut->wrapWikiMsg( $wrap, array( 'tpt-translation-intro-fuzzy' ) );
512512 }
513513 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92956DifferenceEngine: introduce setDiffLang() to change the language in which the...robin19:03, 23 July 2011

Comments

#Comment by Nikerabbit (talk | contribs)   21:09, 23 July 2011

Nice :)

Status & tagging log