Details
Description
The whole story behind this simple patch started at https://moodle.org/mod/forum/discuss.php?d=244787 which led to MDLSITE-2580 being reported.
While I was working on the issue and have learnt how the collator class deals with locales defined in Moodle language packs, I realized that the debugging message printed by ensure_collator_available() method are kind of misleading, or better they do not fully describe what's going on.
In our case, the debugging message reads
Invalid locale: "bg_BG.UTF-8", with warning (not fatal) "U_USING_FALLBACK_WARNING", falling back to "bg"
|
The patch I'm submitting improves the debugging message so that it reads
Locale warning (not fatal) "U_USING_FALLBACK_WARNING": Requested locale "bg_BG.UTF-8" not found, locale "ru" used instead. The most specific locale supported by ICU relatively to the requested locale is "bg".
|
Attachments
Issue Links
- will help resolve
-
MDLSITE-2580 Locale bg_BG.UTF-8 seems not to be present on qa.moodle.net
-
- Open
-