How To / General

Map User's language preference from Joomla to Moodle

  • 3by400, Inc.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 3 months ago #1 by 3by400, Inc.
In Moodle user preferences there's the language preference. Is there a way to pass the preferred language of a Joomla user to their Moodle preferences?

Please Log in or Create an account to join the conversation.

  • 3by400, Inc.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 3 months ago #2 by 3by400, Inc.
Replied by 3by400, Inc. on topic Map User's language preference from Joomla to Moodle
I've found a way that is working in my tests.

If I set the option values of a CB language custom field to the language codes (eg. en, es, fr, it) and then map that to the Moodle lang field it correctly updates the user's preferences in Moodle. The key was to use the language codes as the values.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Map User's language preference from Joomla to Moodle
Hi. Glad to know that you got it working.

> If I set the option values of a CB language custom field to the language codes (eg. en, es, fr, it) and then map that to the Moodle lang field it correctly updates the user's preferences in Moodle.

That's correct. You would need to do the same for Country for example, if you want it to map correctly to Moodle.

Please Log in or Create an account to join the conversation.