wiki.techinc.nl/tests/phpunit/data
Lucas Werkmeister 368881a277 LocalisationCache: Add CORE_ONLY_KEYS, ALL_EXCEPT_CORE_ONLY_KEYS
Previously, it was technically possible to set some keys in extension
messages files that didn’t make much sense (e.g. $rtl['en'] = true;).
This prevents optimizing language creation, so going forward, we will no
longer support that; ALL_KEYS is now split into CORE_ONLY_KEYS and
ALL_EXCEPT_CORE_ONLY_KEYS (with a test verifying that no key is missing
or overlapping or anything), and ALL_EXCEPT_CORE_ONLY_KEYS are silently
skipped when loading extension messages files.

To demonstrate that it’s okay to silently skip these keys, patch set 1
of this change on Gerrit instead raised a deprecation warning; CI
indicated that this warning was never hit. Codesearch [1] also suggests
that no known extension was actually using any of these keys. (The
DonationInterface [2] and LandingCheck [3] codesearch results can be
ignored: both of these define es-419 as a new language, using the
Language::getMessagesFileName hook to register their MessagesEs_419.php
as a “core” message file, not an extension message file.)

[1]: https://codesearch.wmcloud.org/search/?q=^\%24(fallback|rtl|(digit|separator)TransformTable|fallback8bitEncoding|link(PrefixExtension|Trail|PrefixCharset)|date(Formats|Preferences|PreferenceMigrationMap)|defaultDateFormat|digitGroupingPattern).*%3D&files=\.php%24
[2]: f8b5fe95f7/gateway_common/messages/MessagesEs_419.php (11)
[3]: 2537439aee/messages/MessagesEs_419.php (11)

Bug: T342418
Change-Id: Ia3dffea390d4efdfa3a3cea549d079507718ef48
2023-07-28 16:32:59 +02:00
..
autoloader AutoLoader: Drop support for $wgAutoloadAttemptLowercase 2022-12-04 02:38:57 -05:00
categoriesrdf
composer tests: Remove unused composer.json sample data 2021-06-08 23:56:01 +00:00
css CSSJanus: Update from version 1.3.0 to version 2.0.0 2021-08-16 18:39:41 +00:00
db Add 1.40 snapshot to sqlite db tests 2023-05-26 11:34:55 +02:00
dumps
exception build: Updating dependencies 2021-07-22 03:36:05 +00:00
filecontentshasher
filerepo
GhostFieldAccess
gitinfo
import
languageConverter tests: Move all language converter tests into /includes/ 2023-02-01 20:10:56 +01:00
less Merge "ResourceLoader: Descriptive error for Less imports from codex-design-tokens" 2023-04-11 02:04:01 +00:00
localisationcache LocalisationCache: Add CORE_ONLY_KEYS, ALL_EXCEPT_CORE_ONLY_KEYS 2023-07-28 16:32:59 +02:00
media SVG Language selector should default to page language 2022-06-13 21:17:25 +00:00
messages Fix some PHPStorm inspections (#1) 2023-03-25 00:19:33 +00:00
MSCompoundFileReader Remove the executable flag from test files 2021-10-16 11:23:02 +00:00
parser
ParserCache Use real section metadata in tests 2022-11-23 12:45:27 -05:00
preprocess Auto-discover core parser test files 2022-10-13 10:41:15 -04:00
registration
resourceloader build: Update eslint-config-wikimedia to 0.21.0 2021-11-09 21:08:55 +00:00
resourceloader-b resourceloader: Tweak RL\FilePath handling in packageFiles 2022-05-27 22:40:41 +01:00
rlfilepath
templates
upload upload: Allow attributes starting with "on" in inkscape SVG namespace 2023-02-13 00:41:22 +00:00
zip
.eslintrc.json eslint: Only apply client rules to client files 2022-02-09 02:40:11 +00:00