Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -240,10 +240,12 @@ |
241 | 241 | $_title = Title::makeTitle( $title->getNamespace(), $title->getDBkey() . $suffix ); |
242 | 242 | |
243 | 243 | if ( $parser->getTitle()->getText() === $_title->getText() ) { |
244 | | - $languages[] = Html::rawElement( 'b', null, "*$name* $percent" ); |
245 | | - } elseif ( $code === $userLangCode ) { |
246 | | - $languages[] = $linker->linkKnown( $_title, Html::rawElement( 'b', null, "$name $percent" ) ); |
| 244 | + $name = Html::rawElement( 'span', array( 'class' => 'mw-pt-languages-selected' ), $name ); |
| 245 | + $languages[] = "$name $percent"; |
247 | 246 | } else { |
| 247 | + if ( $code === $userLangCode ) { |
| 248 | + $name = Html::rawElement( 'span', array( 'class' => 'mw-pt-languages-ui' ), $name ); |
| 249 | + } |
248 | 250 | $languages[] = $linker->linkKnown( $_title, "$name $percent" ); |
249 | 251 | } |
250 | 252 | } |
Index: trunk/extensions/Translate/resources/ext.translate.css |
— | — | @@ -32,3 +32,12 @@ |
33 | 33 | font-size: x-small; |
34 | 34 | text-align: center; |
35 | 35 | } |
| 36 | + |
| 37 | +/* The *stars* should be replaceable with bunnies */ |
| 38 | +.mw-pt-languages-selected:before, .mw-pt-languages-selected:after { |
| 39 | + content: '*'; |
| 40 | +} |
| 41 | + |
| 42 | +.mw-pt-languages-selected, .mw-pt-languages-ui { |
| 43 | + font-weight: bold; |
| 44 | +} |