48 if ( !isset( $this->
json[
'core'] ) ) {
49 $components[
'core'] = [
50 'repo' =>
'mediawiki',
51 'orig' =>
"file://{$this->core}/languages/messages/Messages*.php",
52 'path' =>
'languages/messages/i18n/*.json',
58 unset( $this->php[$key] );
63 if ( preg_match(
'~/(?P<path>(?:includes|languages|resources)/.*)$~', $subvalue,
$matches ) ) {
64 $components[
"$key-$subkey"] = [
65 'repo' =>
'mediawiki',
66 'orig' =>
"file://$value/*.json",
67 'path' =>
"{$matches['path']}/*.json",
72 $item = $this->getItem(
'extensions', $subvalue );
73 if ( $item !==
null ) {
74 $item[
'repo'] =
'extension';
75 $components[
"$key-$subkey"] = $item;
79 $item = $this->getItem(
'skins', $subvalue );
80 if ( $item !==
null ) {
81 $item[
'repo'] =
'skin';
82 $components[
"$key-$subkey"] = $item;
88 foreach ( $this->php as $key =>
$value ) {
90 $ok = preg_match(
'~/extensions/(?P<name>[^/]+)/(?P<path>.*\.i18n\.php)$~',
$value,
$matches );
96 'repo' =>
'extension',
98 'orig' =>
"file://$value",
114 if ( !preg_match(
"~/$dir/(?P<name>[^/]+)/(?P<path>.*)$~", $subvalue,
$matches ) ) {
120 'orig' =>
"file://$subvalue/*.json",
121 'path' =>
"{$matches['path']}/*.json",
Interface for classes which provide list of components, which should be included for l10n updates.
__construct( $php, $json, $core)
getItem( $dir, $subvalue)
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output included in core
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))