mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 20:12:15 +02:00
While working on the issue, I noticed that the current implementation of the method filter_mathjaxloader::map_language_code() is suboptimal and does not work well for many Moodle language packs such as pt_br or de_du and other variants. It did not give particularly wrong results. It just fell back to the default English too early without trying more hard. This patch improves the mapping logic and adds a unit test for the method.