* $wgEnablePartialBlocks – This enables the Partial Blocks feature, which gives
accounts with block permissions the ability to block users, IPs, and IP ranges
from editing specific pages, while allowing them to edit the rest of the wiki.
-* $wgMediaInTargetLanguage – whether multilingual images should be dispalyed in
- the current parse language where available.
==== Changed configuration ====
* Some external link searches will not work correctly until update.php (or
(requires PHP 7.2+) and GPU hacking (7.3+).
* Special:CreateAccount now warns the user if their chosen username has to be
normalized.
+* (T205040) Multilingual images are now be displayed in the current parse
+ language where available.
=== External library changes in 1.33 ===
# * bottom
# * text-bottom
- global $wgMediaInTargetLanguage;
-
# Protect LanguageConverter markup when splitting into parts
$parts = StringUtils::delimiterExplode(
'-{', '}-', '|', $options, true /* allow nesting */
# Use the "caption" for the tooltip text
$params['frame']['title'] = $this->stripAltText( $caption, $holders );
}
- if ( $wgMediaInTargetLanguage ) {
- $params['handler']['targetlang'] = $this->getTargetLanguage()->getCode();
- }
+ $params['handler']['targetlang'] = $this->getTargetLanguage()->getCode();
Hooks::run( 'ParserMakeImageParams', [ $title, $file, &$params, $this ] );
$setup['wgHtml5'] = true;
$setup['wgDisableLangConversion'] = false;
$setup['wgDisableTitleConversion'] = false;
- $setup['wgMediaInTargetLanguage'] = false;
// "extra language links"
// see https://gerrit.wikimedia.org/r/111390
+ [ 'ISBN' => true, 'PMID' => true, 'RFC' => true ],
// Test with legacy encoding by default until HTML5 is very stable and default
'wgFragmentMode' => [ 'legacy' ],
- 'wgMediaInTargetLanguage' => self::getOptionValue( 'wgMediaInTargetLanguage', $opts, false ),
];
$nonIncludable = self::getOptionValue( 'wgNonincludableNamespaces', $opts, false );
# You can also set the following parser properties via test options:
# wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
# wgLinkHolderBatchSize, wgRawHtml, wgInterwikiMagic,
-# wgEnableMagicLinks, wgMediaInTargetLanguage
+# wgEnableMagicLinks
#
# For testing purposes, temporary articles can created:
# !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
SVG thumbnails in page language
!! options
language=ru
-wgMediaInTargetLanguage = true
!! wikitext
[[File:Foobar.svg]] [[File:Foobar.svg|lang=en]]
!! html/php
SVG thumbnails in page language not present in the file
!! options
language=de
-wgMediaInTargetLanguage = true
!! wikitext
[[File:Foobar.svg]] [[File:Foobar.svg|lang=ru]]
!! html/php