-
Improvement
-
Resolution: Fixed
-
Minor
-
4.2.0
-
-
MOODLE_402_STABLE
-
MOODLE_403_STABLE
-
Moodle Apps - 2023 Sprint i3.2, Moodle Apps - 2023 Sprint i3.3
We use two different endpoints:
lib/ajax/service.php and lib/ajax/service.php and lib/ajax/service_nologin.php, we need to ensure that we always pass as a parameter the current app language
For example:
curl 'https://localhost/lib/ajax/service.php?info=auth_email_get_signup_settings&lang=en' --data-raw '\\{"index":0,"methodname": "tool_mobile_get_public_config","args":{}}' --compressed | python -m "json.tool"
This will ensure we receive language strings in the proper language when using multi-lang filters, (for example, the sitename for the previous request)
To test this you can use the master site, using English/Spanish to see a different site name (the word EN or ES will be append)