SpecialEditWatchlist: Use 'parentheses' message instead of hard-coded ()
authorGlaisher <glaisher.wiki@gmail.com>
Tue, 6 Oct 2015 16:35:54 +0000 (21:35 +0500)
committerGlaisher <glaisher.wiki@gmail.com>
Tue, 6 Oct 2015 16:47:01 +0000 (21:47 +0500)
Change-Id: I09e71d57668787ece609b39c9c7511c2aef28730

includes/specials/SpecialEditWatchlist.php

index 64a93a0..952ae0e 100644 (file)
@@ -282,10 +282,12 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                        }
 
                        if ( $title instanceof Title ) {
-                               $output .= "<li>"
-                                       . Linker::link( $title )
-                                       . ' (' . Linker::link( $title->getTalkPage(), $talk )
-                                       . ")</li>\n";
+                               $output .= '<li>' .
+                                       Linker::link( $title ) . ' ' .
+                                       $this->msg( 'parentheses' )->rawParams(
+                                               Linker::link( $title->getTalkPage(), $talk )
+                                       )->escaped() .
+                                       "</li>\n";
                        }
                }
 
@@ -659,7 +661,8 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                        $link = '<span class="watchlistredir">' . $link . '</span>';
                }
 
-               return $link . " (" . $this->getLanguage()->pipeList( $tools ) . ")";
+               return $link . ' ' .
+                       $this->msg( 'parentheses' )->rawParams( $this->getLanguage()->pipeList( $tools ) )->escaped();
        }
 
        /**