wiki.techinc.nl/includes
C. Scott Ananian 0955046ca5 Ensure that ToC is converted into the proper target language
This patch exports the necessary information from the Parser into the
ParserOutput to ensure that the Table of Contents can be properly
language-converted: both ensuring that the target language is correct
(in cases where it differs from the content language) and that various
conversion-suppression mechanisms are functional.  When the
ParserCache does not (yet) have the new properties from Parser, the
behavior is unchanged from before (the content language is used, and
its "preferred variant").

This is a follow up to the "quick fix" deployed in
Ic14b3a49a8ee7ed600485d4f8a363a206035a847 to fix an UBN regression.

Parser tests have also been added to verify that ToC conversion
is correctly done (T299973).

Task T303329 has been opened to (eventually) rename the
'core:target-lang' and 'core:target-lang-variant' properties added to
the ParserOutput in this patch.

Bug: T303235
Bug: T295187
Bug: T299973
Followup-To: Ic14b3a49a8ee7ed600485d4f8a363a206035a847
Followup-To: Ib273f88531c340b561072ee9f616aa60725091e6
Change-Id: Ie0f1d7b6daffc8ff47228f6f086a257518f72717
2022-03-09 00:08:57 -05:00
..
actions Pass rcid as integer to DifferenceEngine::createDifferenceEngine 2022-03-05 19:45:57 +01:00
api Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
auth Fix indent in TemporaryPasswordPrimaryAuthenticationProvider 2021-12-09 22:42:35 +01:00
block Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
cache Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
changes Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
changetags Handle null in ChangeTags::modifyDisplayQuery 2022-03-04 11:12:14 +01:00
collation Merge "Add explicit casts between scalar types" 2022-03-08 17:32:26 +00:00
CommentFormatter Add explicit casts between scalar types 2022-03-01 18:19:33 +01:00
composer Pass link in a map 2021-12-23 17:54:05 +00:00
config Merge "Simplify DnsSrvDiscoverer interface" 2022-02-17 15:16:44 +00:00
content ContentHandler: Use ParserOutputAccess for accessing ParserOutput 2022-02-25 20:08:55 +01:00
context Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
dao rdbms: remove deprecated DBAccessBase class 2022-01-26 17:08:14 -08:00
db Add validation for abstract schema 2022-02-22 17:41:08 +00:00
debug Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
deferred Merge "Add configuration for write both on templatelinks table" 2022-03-08 16:15:57 +00:00
diff Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
edit Introduced PreparedUpdate to replace PreparedEdit 2021-12-20 21:19:52 +01:00
editpage Move property initialisation out of the constructor 2022-01-27 18:50:58 +00:00
exception Use HTTP 404 for BadTitleErrors instead of HTTP 400 2022-02-27 00:08:58 -08:00
export export: Cast File::getSize to string on dump 2022-03-03 14:09:27 +00:00
externalstore Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
filebackend LockManager: distinguish conflicts from other kinds of lock errors 2021-11-09 21:58:20 +00:00
filerepo file: Use File::getName instead of class property 2022-03-07 21:30:26 +01:00
gallery Merge "Treat interwiki titles in <gallery> as broken" 2022-02-15 20:17:06 +00:00
historyblob Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
Hook Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
HookContainer Add hook UserEditCountUpdate 2022-01-31 17:00:49 +11:00
htmlform Merge "Add explicit casts between scalar types" 2022-03-08 17:32:26 +00:00
http http: Fix return types in MwHttpRequestToResponseInterfaceAdapter 2022-02-26 09:07:55 +01:00
import Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
installer Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
interwiki Avoid references to DefaultSettings. 2022-02-22 19:43:50 +01:00
jobqueue Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
json FormatJson: Optimize encode() for supported PHP versions 2021-08-20 08:03:11 -04:00
language Merge "Hard deprecate Sanitizer::removeHTMLtags()" 2022-03-08 19:29:55 +00:00
languages Merge "Add explicit casts between scalar types" 2022-03-08 17:32:26 +00:00
libs Fix type of value directly passed to php internal functions 2022-03-07 20:41:55 +01:00
linkeddata
linker linker: Start of LinkTargetStore 2022-03-02 14:56:30 +00:00
logging Merge "changetags: Fix management of a '0' tag" 2022-03-03 22:40:54 +00:00
mail Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
media Fix type of value directly passed to php internal functions 2022-03-07 20:41:55 +01:00
Message Add Message/MessageValue user group member parameter type 2021-11-16 11:24:35 -05:00
Navigation
objectcache Fix various documentation related to false 2022-03-03 21:33:31 +01:00
page Wikipage: Inline single-use private function 2022-03-08 17:56:07 +01:00
pager ReverseChronologicalPager: Group by dates in the user's timezone 2022-02-28 21:25:08 +00:00
ParamValidator/TypeDef UserDef: creating from id 0 should be unknown user, not context ip 2021-09-14 03:25:40 +00:00
parser Ensure that ToC is converted into the proper target language 2022-03-09 00:08:57 -05:00
password Fix typos in comments (N-R) 2022-01-09 23:14:44 +05:30
Permissions Merge "Make some generic array type hints in PHPDocs more specific" 2021-12-18 16:10:42 +00:00
poolcounter Add explicit casts between scalar types 2022-03-01 18:19:33 +01:00
preferences Merge "Revert "preferences: Use a faster and simpler form descriptor when validating"" 2022-03-01 19:53:21 +00:00
profiler profiler: Remove deprecated profileIn/profileOut 2022-01-02 22:25:38 +01:00
rcfeed rcfeed: Allow easy mocking of RCFeed::factory objects 2022-03-03 18:26:26 +00:00
registration ExtensionRegistry: Add process cache for lazy attributes 2022-02-01 21:01:44 +11:00
resourceloader resourceloader: Document optimisation in WikiModule::isKnownEmpty 2022-02-23 21:46:28 +00:00
Rest Fix type of value directly passed to php internal functions 2022-03-07 20:41:55 +01:00
Revision RevisionStore: Inline one-use condition in ::getPage 2022-02-18 22:14:59 +01:00
revisiondelete Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
revisionlist revisionlist: Allow subclasses of RevisionItemBase::getId to use string 2022-03-01 21:15:08 +01:00
search search: Use NS_MAIN instead of hard coded 0 2022-03-07 21:09:46 +01:00
session Add explicit casts between scalar types 2022-03-01 18:19:33 +01:00
Settings Fix edge cases in schema validation. 2022-03-08 13:59:19 +01:00
shell Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
site Merge "Implement __serialize/__unserialize for PHP 8.1 support" 2022-02-07 05:10:04 +00:00
skins [Skin] Remove legacy fallbacks in menu labels 2022-03-08 08:03:40 -08:00
sparql Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
specialpage Merge "Add explicit casts between scalar types" 2022-03-08 17:32:26 +00:00
specials Merge "Add explicit casts between scalar types" 2022-03-08 17:32:26 +00:00
Storage Use local variable for null checks 2022-03-05 19:59:38 +01:00
templates Remove errorbox class 2022-02-11 22:22:23 +00:00
tidy Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
title title: Remove dated comment about inNamespace(), overall doc cleanup 2022-01-18 22:25:09 +00:00
upload Fix various documentation related to false 2022-03-03 21:33:31 +01:00
user ActorStore: Document wikiId as string|false 2022-03-05 22:38:47 +01:00
utils Add explicit casts between scalar types 2022-03-01 18:19:33 +01:00
watcheditem Merge "watcheditem: Try getting the cached version in resetNotificationTimestamp" 2022-01-17 13:51:50 +00:00
watchlist build: Updating dependencies 2021-07-22 03:36:05 +00:00
widget Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
xml Fix type of value directly passed to php internal functions 2022-03-07 20:41:55 +01:00
.htaccess
ActorMigration.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
ActorMigrationBase.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
AutoLoader.php Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
BadFileLookup.php Use getWithSetCallback() instead of get() + set() 2021-11-18 18:58:13 +00:00
BootstrapHelperFunctions.php installer: Simplify wfDetectLocalSettingsFile and document gotchass 2022-03-01 17:43:15 +00:00
CategoriesRdf.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
Category.php Category: Add return type to count methods 2022-02-07 06:30:47 +00:00
CategoryViewer.php Merge "Try not to discard Excimer timeout exceptions" 2022-02-03 00:28:16 +00:00
CommentStore.php Fix various typos in documentation 2021-08-23 09:03:44 +00:00
CommentStoreComment.php
config-merge-strategies.php SettingsBuilder: fix merging into globals 2022-01-24 17:35:15 +01:00
config-schema.php Merge "Fix edge cases in schema validation." 2022-03-08 17:48:26 +00:00
config-schema.yaml Merge "Fix edge cases in schema validation." 2022-03-08 17:48:26 +00:00
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php Fix typos in comments (C-D) 2021-12-30 18:00:02 +05:30
DefaultSettings.php Merge "Define MW_INSTALL_PATH constant and BaseDirectory config." 2022-03-08 17:44:09 +00:00
Defines.php Avoid references to DefaultSettings. 2022-02-22 19:43:50 +01:00
DeprecatedGlobal.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
DerivativeRequest.php build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
DevelopmentSettings.php DeferredUpdates: Introduce $wgForceDeferredUpdatesPreSend 2022-02-15 19:49:14 +01:00
DummyLinker.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
EditPage.php EditPage: Deprecate using getCopyrightWarning() without passing context 2022-03-01 00:26:17 +00:00
Emptiable.php
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
FauxRequestUpload.php
FauxResponse.php remove access to config globals from FauxResponse 2022-01-28 22:45:36 +01:00
FeedUtils.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
FileDeleteForm.php filerepo: make FileDeleteForm use cancelAtomic() instead of rollbackPrimaryChanges 2022-02-21 13:15:36 +00:00
ForeignResourceManager.php
ForkController.php Unbreak ForkController 2021-07-14 14:08:22 +02:00
FormOptions.php
GitInfo.php Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
GlobalFunctions.php Use Message::newFromSpecifier() in wfMessage() 2022-03-08 02:49:51 +01:00
HeaderCallback.php
Hooks.php Mark Hooks::runner() as @internal 2021-07-28 23:49:27 +00:00
Html.php Untie Wikimedia message boxes from on-wiki messageboxes 2022-01-27 01:37:35 +00:00
Linker.php Fix various documentation related to false 2022-03-03 21:33:31 +01:00
LinkFilter.php
ListToggle.php
MagicWord.php Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
MagicWordArray.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
MagicWordFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MediaWiki.php Fix type of value directly passed to php internal functions 2022-03-07 20:41:55 +01:00
MediaWikiServices.php linker: Start of LinkTargetStore 2022-03-02 14:56:30 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Convert various callers to LoadBalancer::getConnectionRef() 2022-01-27 01:02:44 +00:00
MovePage.php Merge "MovePage: Simplify data retrieval using selectFieldValues" 2022-03-06 19:12:38 +00:00
MWGrants.php Reapply "GrantsInfo service to replace MWGrants" 2021-09-18 08:52:22 +00:00
MWNamespace.php Emit correct version in deprecation warnings for MWNamespace 2021-12-27 12:37:36 +00:00
MWTimestamp.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
NoLocalSettings.php NoLocalSettings: Pass an EmptyBagOStuff to TemplateParser 2021-11-03 17:23:26 +00:00
OrderedStreamingForkController.php Stop using is_resource() where possible 2022-01-26 10:03:23 +11:00
OutputHandler.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
OutputPage.php Merge "Define MW_INSTALL_PATH constant and BaseDirectory config." 2022-03-08 17:44:09 +00:00
PageProps.php Soft deprecate PageProps::getInstance() 2021-09-26 00:22:26 +00:00
PathRouter.php
PHPVersionCheck.php Tweak error message for missing composer dependencies 2021-11-17 09:53:57 -08:00
Pingback.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ProtectionForm.php ProtectionForm: Don't set wpEditToken twice 2022-02-10 17:00:24 +00:00
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php
ServiceWiring.php Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
Setup.php Merge "Define MW_INSTALL_PATH constant and BaseDirectory config." 2022-03-08 17:44:09 +00:00
SiteConfiguration.php Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
SiteStats.php Replace deprecated JobQueueGroup::singleton() 2022-01-27 21:37:50 +01:00
SiteStatsInit.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
Status.php Status: Ensure MessageLocalizer is used if provided 2022-03-08 01:50:37 +00:00
StreamFile.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
StubGlobalUser.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
StubObject.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
StubUserLang.php
TemplateParser.php TemplateParser: Only hash unique files 2022-02-09 14:12:24 +00:00
TemplatesOnThisPageFormatter.php
Title.php Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
TitleArray.php docs: Declare UserArray/TitleArray as Iterator<User>/Iterator<Title> 2021-08-30 22:37:54 +02:00
TitleArrayFromResult.php docs: Declare UserArray/TitleArray as Iterator<User>/Iterator<Title> 2021-08-30 22:37:54 +02:00
TitleFactory.php Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs 2021-11-29 14:23:26 -05:00
TrackingCategories.php Change return value of ParserOutput::getPageProperty() when property is missing 2022-02-18 21:15:58 +00:00
WebRequest.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00
WebRequestUpload.php
WebResponse.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
WebStart.php Define MW_INSTALL_PATH constant and BaseDirectory config. 2022-03-04 14:18:27 +01:00
WikiMap.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
WikiReference.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00