|
@@ 193-197 (lines=5) @@
|
| 190 |
|
} |
| 191 |
|
if ( count( $rawErrors ) == 1 ) { |
| 192 |
|
$s = $this->getErrorMessage( $rawErrors[0], $lang )->plain(); |
| 193 |
|
if ( $shortContext ) { |
| 194 |
|
$s = wfMessage( $shortContext, $s )->inLanguage( $lang )->plain(); |
| 195 |
|
} elseif ( $longContext ) { |
| 196 |
|
$s = wfMessage( $longContext, "* $s\n" )->inLanguage( $lang )->plain(); |
| 197 |
|
} |
| 198 |
|
} else { |
| 199 |
|
$errors = $this->getErrorMessageArray( $rawErrors, $lang ); |
| 200 |
|
foreach ( $errors as &$error ) { |
|
@@ 204-208 (lines=5) @@
|
| 201 |
|
$error = $error->plain(); |
| 202 |
|
} |
| 203 |
|
$s = '* ' . implode( "\n* ", $errors ) . "\n"; |
| 204 |
|
if ( $longContext ) { |
| 205 |
|
$s = wfMessage( $longContext, $s )->inLanguage( $lang )->plain(); |
| 206 |
|
} elseif ( $shortContext ) { |
| 207 |
|
$s = wfMessage( $shortContext, "\n$s\n" )->inLanguage( $lang )->plain(); |
| 208 |
|
} |
| 209 |
|
} |
| 210 |
|
return $s; |
| 211 |
|
} |