*/
private static function reencodeBlob( $blob, $key, $lang ) {
$decoded = FormatJson::decode( $blob, true );
- $decoded[$key] = wfMessage( $key )->inLanguage( $lang )->text();
+ $decoded[$key] = wfMessage( $key )->inLanguage( $lang )->plain();
return FormatJson::encode( (object)$decoded );
}
$messages = array();
foreach ( $module->getMessages() as $key ) {
- $messages[$key] = wfMessage( $key )->inLanguage( $lang )->text();
+ $messages[$key] = wfMessage( $key )->inLanguage( $lang )->plain();
}
return FormatJson::encode( (object)$messages );