Commit graph

2 commits

Author SHA1 Message Date
C. Scott Ananian
d87ea27fb3 Implement Bcp47Code in Language class
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
2023-01-27 22:56:11 -05:00
C. Scott Ananian
a2465a53d0 Move LanguageTest unit test to proper subdirectory
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)