From: Liangent Date: Sat, 23 Jun 2012 08:04:58 +0000 (+0800) Subject: I18n of display of change tags X-Git-Tag: 1.31.0-rc.0~23114^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=c0f32e30be7d1aa7f89f36ff7569c66751caee95;p=lhc%2Fweb%2Fwiklou.git I18n of display of change tags Change-Id: I2d6cb27a77ea285eb71e7f046a006b79035508ef --- diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index 204df45d94..34e9eba4aa 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -35,6 +35,8 @@ class ChangeTags { * */ static function formatSummaryRow( $tags, $page ) { + global $wgLang; + if( !$tags ) return array( '', array() ); @@ -51,7 +53,7 @@ class ChangeTags { ); $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" ); } - $markers = '(' . implode( ', ', $displayTags ) . ')'; + $markers = wfMessage( 'parentheses' )->rawParams( $wgLang->commaList( $displayTags ) )->text(); $markers = Xml::tags( 'span', array( 'class' => 'mw-tag-markers' ), $markers ); return array( $markers, $classes );