https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112429
Revision: 112429
Author: siebrand
Date: 2012-02-26 12:51:27 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------
Remove hard coded parentheses.
Modified Paths:
--------------
trunk/extensions/Translate/specials/SpecialTranslations.php
Modified: trunk/extensions/Translate/specials/SpecialTranslations.php
===================================================================
--- trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26
12:26:16 UTC (rev 112428)
+++ trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26
12:51:27 UTC (rev 112429)
@@ -193,6 +193,8 @@
$ajaxPageList = array();
$historyText = " <sup>" . wfMsgHtml(
'translate-translations-history-short' ) . "</sup> ";
+ $separator = wfMessage( 'word-separator' )->plain();
+ $parentheses = wfMessage( 'parentheses' )->escaped();
foreach ( $res as $s ) {
$key = $s->page_title;
@@ -201,7 +203,9 @@
$code = $this->getCode( $s->page_title );
- $text = TranslateUtils::getLanguageName( $code, false,
$wgLang->getCode() ) . " ($code)";
+ $text = TranslateUtils::getLanguageName( $code, false,
$wgLang->getCode() );
+ $text .= $separator;
+ $text .= $paretheses->params( $code );
$text = htmlspecialchars( $text );
if ( $canTranslate ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs