r7845 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r7844‎ | r7845 | r7846 >
Date:09:26, 24 March 2005
Author:avar
Status:old
Tags:
Comment:
Removed hardcoded messages in Special:Listusers.
Modified paths:
  • /trunk/phase3/includes/SpecialListusers.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialListusers.php
@@ -64,7 +64,7 @@
6565 // form header
6666 $out = '<form method="get" action="'.$action.'">' .
6767 '<input type="hidden" name="title" value="'.$special.'" />' .
68 - 'Group: <select name="group">';
 68+ wfMsg( 'speciallistusersgrouplabel' ) . '<select name="group">';
6969
7070 // get all group names and id
7171 $dbr = & wfGetDB( DB_SLAVE );
@@ -82,7 +82,7 @@
8383 }
8484 $out .= '</select> ';
8585
86 - $out .= 'User: <input type="text" name="username" /> ';
 86+ $out .= wfMsg( 'speciallistusersuserlabel' ) . '<input type="text" name="username" /> ';
8787
8888 // OK button, end of form.
8989 $out .= '<input type="submit" /></form>';
Index: trunk/phase3/languages/Language.php
@@ -1788,6 +1788,10 @@
17891789 'specialloguserlabel' => 'User: ',
17901790 'speciallogtitlelabel' => 'Title: ',
17911791
 1792+# labels for Group: and User: ond Special:Listusers
 1793+'speciallistusersuserlabel' => 'User: ',
 1794+'speciallistusersgrouplabel' => 'Group: ',
 1795+
17921796 'passwordtooshort' => 'Your password is too short. It must have at least $1 characters.',
17931797
17941798 );

Status & tagging log