Page MenuHomePhabricator

Replace and hard-deprecate Language::getFallbackFor/getFallbacksFor/getFallbacksIncludingSiteLanguage/MESSAGES_FALLBACKS/STRICT_FALLBACKS (and remove in 1.41)
Closed, ResolvedPublic

Description

The functions

  • Language::getFallbackFor
  • Language::getFallbacksFor
  • Language::getFallbacksIncludingSiteLanguage

Constant:

  • Language::MESSAGES_FALLBACKS
  • Language::STRICT_FALLBACKS

are deprecated. The usage should be replaced, the function hard-deprecated and removed

CodeSearch: https://codesearch.wmcloud.org/search/?q=%5CbLanguage%5Cs*%3A%3A%5Cs*(getFallbacks%3F(For%7CIncludingSiteLanguage)%3F%7C(STRICT%7CMESSAGES)_FALLBACKS)%5Cb&i=nope&files=&excludeFiles=&repos=

Event Timeline

Change 872996 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/Babel@master] Replace deprecated Language::getFallbackFor

https://gerrit.wikimedia.org/r/872996

Change 872997 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/CentralAuth@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/872997

Change 872998 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/cldr@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/872998

Change 872999 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/CommonsMetadata@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/872999

Change 873000 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/DonationInterface@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873000

Change 873001 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/MachineVision@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873001

Change 873002 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/Scribunto@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873002

Change 873003 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/UniversalLanguageSelector@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873003

Change 873004 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/Translate@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873004

Change 873005 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/LandingCheck@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873005

Change 872997 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/872997

Change 873002 merged by jenkins-bot:

[mediawiki/extensions/Scribunto@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873002

Change 873005 merged by jenkins-bot:

[mediawiki/extensions/LandingCheck@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873005

Change 873004 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873004

Change 873003 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873003

Change 873001 merged by jenkins-bot:

[mediawiki/extensions/MachineVision@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873001

Change 873000 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873000

Change 872999 merged by jenkins-bot:

[mediawiki/extensions/CommonsMetadata@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/872999

Change 872996 merged by jenkins-bot:

[mediawiki/extensions/Babel@master] Replace deprecated Language::getFallbackFor

https://gerrit.wikimedia.org/r/872996

Change 873744 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/HelpPages@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873744

Change 873745 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/TinyMCE@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873745

Change 873744 merged by jenkins-bot:

[mediawiki/extensions/HelpPages@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873744

Change 873745 merged by Umherirrender:

[mediawiki/extensions/TinyMCE@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/873745

Change 872998 merged by jenkins-bot:

[mediawiki/extensions/cldr@master] Replace deprecated Language::getFallbacksFor

https://gerrit.wikimedia.org/r/872998

Change 880994 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] Hard-deprecate Language::getFallbackFor/getFallbacksFor

https://gerrit.wikimedia.org/r/880994

Change 880994 merged by jenkins-bot:

[mediawiki/core@master] Hard-deprecate Language::getFallbackFor/getFallbacksFor

https://gerrit.wikimedia.org/r/880994

Umherirrender renamed this task from Replace and hard-deprecate Language::getFallbackFor/getFallbacksFor/getFallbacksIncludingSiteLanguage/MESSAGES_FALLBACKS/STRICT_FALLBACKS (and remove a release later) to Replace and hard-deprecate Language::getFallbackFor/getFallbacksFor/getFallbacksIncludingSiteLanguage/MESSAGES_FALLBACKS/STRICT_FALLBACKS (and remove in 1.41).Jan 28 2023, 4:54 PM
Umherirrender changed the task status from Open to Stalled.
Umherirrender changed the task status from Stalled to Open.Mar 14 2023, 9:35 PM

Change 936685 had a related patch set uploaded (by Fomafix; author: Fomafix):

[mediawiki/core@master] Language: Remove deprecated functions and constants

https://gerrit.wikimedia.org/r/936685

Change 936685 merged by jenkins-bot:

[mediawiki/core@master] Language: Remove deprecated functions and constants

https://gerrit.wikimedia.org/r/936685