Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -86,8 +86,7 @@ |
87 | 87 | static function intFunction( $parser, $part1 = '' /*, ... */ ) { |
88 | 88 | if ( strval( $part1 ) !== '' ) { |
89 | 89 | $args = array_slice( func_get_args(), 2 ); |
90 | | - $message = wfMsgGetKey( $part1, true, $parser->getOptions()->getUserLang(), false ); |
91 | | - $message = wfMsgReplaceArgs( $message, $args ); |
| 90 | + $message = wfMessage( $part1, $args )->inLanguage( $parser->getOptions()->getUserLang() )->plain(); |
92 | 91 | $message = $parser->replaceVariables( $message ); // like MessageCache::transform() |
93 | 92 | return $message; |
94 | 93 | } else { |
Index: trunk/phase3/includes/media/MediaTransformOutput.php |
— | — | @@ -212,8 +212,8 @@ |
213 | 213 | $htmlArgs = array_map( 'htmlspecialchars', $args ); |
214 | 214 | $htmlArgs = array_map( 'nl2br', $htmlArgs ); |
215 | 215 | |
216 | | - $this->htmlMsg = wfMsgReplaceArgs( htmlspecialchars( wfMsgGetKey( $msg, true ) ), $htmlArgs ); |
217 | | - $this->textMsg = wfMsgReal( $msg, $args ); |
| 216 | + $this->htmlMsg = wfMessage( $msg )->rawParams( $htmlArgs )->escaped(); |
| 217 | + $this->textMsg = wfMessage( $msg )->rawParams( $htmlArgs )->text(); |
218 | 218 | $this->width = intval( $width ); |
219 | 219 | $this->height = intval( $height ); |
220 | 220 | $this->url = false; |
Index: trunk/phase3/includes/specials/SpecialAllmessages.php |
— | — | @@ -265,10 +265,12 @@ |
266 | 266 | ( $descending && ( $key < $offset || !$offset ) || !$descending && $key > $offset ) && |
267 | 267 | ( ( $this->prefix && preg_match( $this->prefix, $key ) ) || $this->prefix === false ) |
268 | 268 | ){ |
| 269 | + $actual = wfMessage( $key )->inLanguage( $this->langcode )->plain(); |
| 270 | + $default = wfMessage( $key )->inLanguage( $this->langcode )->useDatabase( false )->plain(); |
269 | 271 | $result->result[] = array( |
270 | 272 | 'am_title' => $key, |
271 | | - 'am_actual' => wfMsgGetKey( $key, /*useDB*/true, $this->langcode, false ), |
272 | | - 'am_default' => wfMsgGetKey( $key, /*useDB*/false, $this->langcode, false ), |
| 273 | + 'am_actual' => $actual, |
| 274 | + 'am_default' => $default, |
273 | 275 | 'am_customised' => $customised, |
274 | 276 | 'am_talk_exists' => isset( $statuses['talks'][$key] ) |
275 | 277 | ); |