added to $wgExtraLanguageCodes instead.
=== New features in 1.29 ===
-* (T137376) New language support: Atikamekw (atj)
* (T5233) A cookie can now be set when a user is autoblocked, to track that user
if they move to a new IP address. This is disabled by default.
* Added ILocalizedException interface to standardize the use of localized
The new or reinstated language fallbacks are (after cs ↔ sk in 1.28):
ca ↔ oc; hsb ↔ dsb; io → eo; mdf → ru; pnt → el; roa-tara → it; rup → ro;
sh → bs, sr-el, hr.
+* (T137376) New language support: Atikamekw (atj).
* (T155957) Talk Namespaces for Javanese language (jv) have been updated.
==== No fallback for Ukrainian ====
$this->parserTitle = Title::newFromText( 'Installer' );
$this->parserOptions = new ParserOptions( $wgUser ); // language will be wrong :(
$this->parserOptions->setEditSection( false );
+ // Don't try to access DB before user language is initialised
+ $this->setParserLanguage( Language::factory( 'en' ) );
}
/**
try {
$out = $wgParser->parse( $text, $this->parserTitle, $this->parserOptions, $lineStart );
$html = $out->getText();
- } catch ( DBAccessError $e ) {
+ } catch ( MediaWiki\Services\ServiceDisabledException $e ) {
$html = '<!--DB access attempted during parse--> ' . htmlspecialchars( $text );
if ( !empty( $this->debug ) ) {
}
public static function provideApiErrorFormatterCreation() {
- global $wgContLang;
-
return [
'Default (BC)' => [ [], [
'uselang' => 'ru',
'uselang=content' => [
[ 'uselang' => 'content', 'errorformat' => 'plaintext' ],
[
- 'uselang' => $wgContLang->getCode(),
+ 'uselang' => 'en',
'class' => ApiErrorFormatter::class,
- 'lang' => $wgContLang->getCode(),
+ 'lang' => 'en',
'format' => 'plaintext',
'usedb' => false,
]
[
'uselang' => 'ru',
'class' => ApiErrorFormatter::class,
- 'lang' => $wgContLang->getCode(),
+ 'lang' => 'en',
'format' => 'plaintext',
'usedb' => false,
]