-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.4
-
Fix Version/s: None
-
Component/s: External Tool (IMS-LTI)
-
Affected Branches:MOODLE_34_STABLE
When a user's language is set to a language with 2 ids like Brazilian Portuguese (pt_br) Moodle's External tool uses an underscore in the language when passing it to the the LTI provider via the launch_presentation_locale parameter.
The LTI specification says the format for the language should follow the IETF Best Practices for Tags for identifying language (BCP-47) which requires a dash instead. Brazilian Portuguese should be passed as pt-br.