moodle/admin/tool/langimport
Eloy Lafuente (stronk7) 9a6701c572 MDL-76666 local_langimport: Better handling of long locales
Under some linux versions, and depending of the configured
locale categories, it's possible to get a current locally
which length > 255 when calling to setlocale(LC_ALL, 0).

Later, if that long locale is tried to be restored, there
is a "setlocale(): Specified locale name is too long" warning
error.

When that happens we need to split the long locale into
individual chunks and set all the (six) locale categories
supported one by one.

Covered with tests, note that, in practice, this only
happens with linux because it supports 12 locale categories
@ OS level. Both BSD (6) and Windows (5) hardly can reach the limit.

No matter of that, the tests have been designed to ensure that
they pass on all OSs, just the new code only will be executed
on linux.
2022-12-14 12:24:15 +01:00
..
amd MDL-73915 js: Drop support for IE and android 2022-02-23 08:55:20 +08:00
classes MDL-76666 local_langimport: Better handling of long locales 2022-12-14 12:24:15 +01:00
db MDL-46210 langimport: task for updating langpacks 2014-10-05 14:25:45 +01:00
lang/en MDL-70608 lang: Recommend running the scheduled task to update packs 2021-02-19 16:02:02 +01:00
templates MDL-70608 lang: Recommend running the scheduled task to update packs 2021-02-19 16:02:02 +01:00
tests MDL-76666 local_langimport: Better handling of long locales 2022-12-14 12:24:15 +01:00
index.php MDL-73848 administration: Fix the breadcrumbs and nav highlights 2022-03-25 17:44:47 +08:00
lib.php
settings.php
styles.css MDL-70632 tool_langimport: search for available language packs. 2021-02-03 10:03:37 +00:00
version.php MDL-76403 versions: bump all versions and requires near release 2022-11-23 09:45:23 +08:00