From c0f32e30be7d1aa7f89f36ff7569c66751caee95 Mon Sep 17 00:00:00 2001 From: Liangent Date: Sat, 23 Jun 2012 16:04:58 +0800 Subject: [PATCH] I18n of display of change tags Change-Id: I2d6cb27a77ea285eb71e7f046a006b79035508ef --- includes/ChangeTags.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.20.1