wiki.techinc.nl/includes/language
Umherirrender 398fdb85b8 language: Use fallback chain to create NumberFormatter
php8.4 validates the locale and rejects invalid one.
Just use the fallback chain to find an usable language, mostly en.
Cache the created NumberFormatter instance, to avoid performance impact
for some languages due to more attempts to create a NumberFormatter.

Also C is rejected, so resolve it directly with Locale::getDefault()

Bug: T376711
Change-Id: I686f77baea33ea2852c546e30e9cc08618d44321
(cherry picked from commit 8b2cc12bd3724cd213ac581d220b50f91e282630)
2025-02-17 21:24:24 +00:00
..
converters Switch over a bunch of class_alias uses to actuals 2024-10-03 17:09:36 +00:00
dependency language: Add missing documentation to class properties 2024-09-17 18:25:25 +00:00
Hook Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
ConverterRule.php language: Add missing documentation to class properties 2024-09-17 18:25:25 +00:00
FormatterFactory.php status: Log getMessage()/getWikiText() calls on good Statuses 2024-10-04 18:32:24 +02:00
ILanguageConverter.php Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
Language.php language: Use fallback chain to create NumberFormatter 2025-02-17 21:24:24 +00:00
LanguageCode.php Language: Mark constructor of LanguageCode unstable for now 2024-10-22 01:39:37 +02:00
LanguageConverter.php Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
LanguageConverterFactory.php language: Add missing documentation to class properties 2024-09-17 18:25:25 +00:00
LanguageConverterIcu.php
LanguageConverterSpecific.php
LanguageFactory.php Language: Introduce getContentLanguageCode() service 2024-10-16 11:02:01 +02:00
LanguageFallback.php Remove unchecked exception annotations 2024-09-17 22:20:58 +02:00
LanguageNameUtils.php languages: Convert Names::$names to constant 2024-09-17 22:25:10 +00:00
LazyLocalizationContext.php
LCStore.php
LCStoreCDB.php
LCStoreDB.php rdbms: Drop IReadableDatabase::wasReadOnlyError() 2024-06-04 15:55:44 +02:00
LCStoreNull.php
LCStoreStaticArray.php
LocalisationCache.php codex: Provide i18n function and messages 2024-07-02 22:30:06 +00:00
LocalisationCacheBulkLoad.php language: Add missing documentation to class properties 2024-09-17 18:25:25 +00:00
LocalizationContext.php
MessageCache.php Use namespaced classes 2024-10-21 20:41:20 +02:00
MessageLocalizer.php Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
RawMessage.php Replace some manual checks and exceptions with type hints 2024-09-17 21:33:08 +00:00
TrivialLanguageConverter.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00