Index: trunk/extensions/ImportUsers/SpecialImportUsers_body.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | foreach ($filedata as $line=>$newuserstr) { |
68 | 68 | $newuserarray=explode(',', trim( $newuserstr ) ); |
69 | 69 | if (count($newuserarray)<2) { |
70 | | - $output.=sprintf(wfMsg( 'importusers-user-invalid-format' ) ,$line+1 ).'<br />'; |
| 70 | + $output.= wfMsg( 'importusers-user-invalid-format', $line+1 ) . '<br />'; |
71 | 71 | continue; |
72 | 72 | } |
73 | 73 | if (!IsSet($newuserarray[2])) $newuserarray[2]=''; |
— | — | @@ -79,16 +79,16 @@ |
80 | 80 | $NextUser->addToDatabase(); |
81 | 81 | $NextUser->setPassword( $newuserarray[1] ); |
82 | 82 | $NextUser->saveSettings(); |
83 | | - $output.=sprintf(wfMsg( 'importusers-user-added' ) ,$newuserarray[0] ).'<br />'; |
| 83 | + $output.= wfMsg( 'importusers-user-added', $newuserarray[0] ) . '<br />'; |
84 | 84 | $summary['added']++; |
85 | 85 | } else { |
86 | 86 | if ($replace_present) { |
87 | 87 | $NextUser->setPassword( $newuserarray[1] ); |
88 | 88 | $NextUser->saveSettings(); |
89 | | - $output.=sprintf( wfMsg( 'importusers-user-present-update' ) ,$newuserarray[0] ).'<br />'; |
| 89 | + $output.= wfMsg( 'importusers-user-present-update', $newuserarray[0] ).'<br />'; |
90 | 90 | $summary['updated']++; |
91 | 91 | } else { |
92 | | - $output .= sprintf( wfMsg( 'importusers-user-present-no-update' ) ,$newuserarray[0] ) . '<br />'; |
| 92 | + $output .= wfMsg( 'importusers-user-present-no-update', $newuserarray[0] ) . '<br />'; |
93 | 93 | } |
94 | 94 | } |
95 | 95 | $summary['all']++; |
Index: trunk/extensions/ImportUsers/SpecialImportUsers.i18n.php |
— | — | @@ -14,11 +14,14 @@ |
15 | 15 | 'importusers-form-file' => 'User file format (CSV):', |
16 | 16 | 'importusers-form-replace-present' => 'Replace existing users', |
17 | 17 | 'importusers-form-button' => 'Import', |
18 | | - 'importusers-user-added' => 'User <b>%s</b> has been added.', |
19 | | - 'importusers-user-present-update' => 'User <b>%s</b> already exists. Updated.', |
20 | | - 'importusers-user-present-not-update' => 'User <b>%s</b> already exists. Did not update.', |
21 | | - 'importusers-user-invalid-format' => 'User data in the line #%s has invalid format or is blank. Skipped.', |
22 | | - 'importusers-log' => 'Import users log', |
| 18 | + 'importusers-user-added' => 'User \'\'\'$1\'\'\' has been added.', |
| 19 | + 'importusers-user-present-update' => 'User \'\'\'$1\'\'\' already exists. |
| 20 | +Updated.', |
| 21 | + 'importusers-user-present-not-update' => 'User \'\'\'$1\'\'\' already exists. |
| 22 | +Did not update.', |
| 23 | + 'importusers-user-invalid-format' => 'User data in the line #$1 has invalid format or is blank. |
| 24 | +Skipped.', |
| 25 | + 'importusers-log' => 'Import log', |
23 | 26 | 'importusers-log-summary' => 'Summary', |
24 | 27 | 'importusers-log-summary-all' => 'All', |
25 | 28 | 'importusers-log-summary-added' => 'Added', |