Fix Special:Listusers i18n issues
authorRohan <rohan1395@yahoo.com>
Tue, 29 Jul 2014 12:38:29 +0000 (18:08 +0530)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 14 Sep 2014 18:28:20 +0000 (18:28 +0000)
* Changed hard coded brackets to use message 'brackets'
* Changed hard coded space to use message 'word-separator'

Bug: 39845
Change-Id: If117e8f1b2436ed1d259add92fc8f6925403afc3

includes/specials/SpecialListusers.php

index cc3226d..dad9074 100644 (file)
@@ -194,10 +194,8 @@ class UsersPager extends AlphabeticPager {
 
                $edits = '';
                if ( !$this->including && $this->getConfig()->get( 'Edititis' ) ) {
-                       // @todo fixme i18n issue: Hardcoded square brackets.
-                       $edits = ' [' .
-                               $this->msg( 'usereditcount' )->numParams( $row->edits )->escaped() .
-                               ']';
+                       $count = $this->msg( 'usereditcount' )->numParams( $row->edits )->escaped();
+                       $edits = $this->msg( 'word-separator' )->escaped() . $this->msg( 'brackets', $count )->escaped();
                }
 
                $created = '';