This implements the additional Bcp47Code interface method required by
wikimedia/bcp-47-code 2.0.0.
Bug: T331887
Change-Id: If3abc8a55eda8879ca904b25e9e3e5d40c1b0bab
Just methods where adding "static" to the declaration was enough, I
didn't do anything with providers that used $this.
Initially by search and replace. There were many mistakes which I
found mostly by running the PHPStorm inspection which searches for
$this usage in a static method. Later I used the PHPStorm "make static"
action which avoids the more obvious mistakes.
Bug: T332865
Change-Id: I47ed6692945607dfa5c139d42edbd934fa4f3a36
This implements Language::toBcp47Code(), an interface defined in the
wikimedia/bcp-47-code library, in order to facilitate interacting with
the parsoid library (which shouldn't know anything about
mediawiki-internal language codes).
Change-Id: Id09218ae97fd8167866064c0a3f6142696d66a8d
This was moved out of the top-level languages/ directory some time ago
into includes/language; the unit test should do the same.
Change-Id: Id1ce8e494463f77ba17e778c456bf40eab6c4a93
2023-01-27 18:38:10 -05:00
Renamed from tests/phpunit/unit/languages/LanguageTest.php (Browse further)