MDL-69788 lang: fallback to all translations if misconfigured.
commitc4c328565da84f65ee870a842315179e79645991
authorPaul Holden <paulh@moodle.com>
Thu, 15 Oct 2020 22:31:31 +0000 (15 23:31 +0100)
committerPaul Holden <paulh@moodle.com>
Fri, 16 Oct 2020 13:38:07 +0000 (16 14:38 +0100)
tree3399b649aadf21c2fa50c10a2fd3f033ad566bf9
parenteda7eb44b368d4a29c0a36443ed0d9aa654d7a6f
MDL-69788 lang: fallback to all translations if misconfigured.

If given translation list contains only invalid entries, fallback
to returning the complete list of available language translations.
lib/classes/string_manager_standard.php
lib/tests/string_manager_standard_test.php