Now we support both uppercase and lowercase lang tags, and the separator can be both the hypen and the underscore characters. Everything is converted to Moodle's (lowercase with hypen) langs.
Now we support both uppercase and lowercase lang tags, and the separator
can be both the hypen and the underscore characters.
Everything is converted to Moodle's (lowercase with hypen) langs.

And the filter returns the full text if some exception happens (bad build
lang tags). Actually it was returning an empty string on error.

Should we be a stricter allowing only the correct langs????

dilawar/moodle