Just for the sake of it, I modified LANGUAGE_CODE in /edx/etc/lms.yml from en to fr.
My site and my error logs are in French as expected. Nonetheless, it still complains about ‘en’ not being a valid preference for pref-lang for the user id 17 that it is trying to create as a result of accessing the ressource via LTI.
openedx.core.djangoapps.user_api.errors.PreferenceValidationError: {‘pref-lang’: {‘user_message’: “La valeur ‘en’ n’est pas valide pour la préférence utilisateur’pref-lang’.”, ‘developer_message’: 'Value ‘en’ not valid for preference ‘pref-lang’: {‘user’: ['Clé primaire “17” non valide - l\‘objet n\‘existe pas.’]}’}}
I am still unsure why it tries to validate the language preference of an anonymized user created for LTI purposes. Any idea?
I also created a Community Reported Issue as https://openedx.atlassian.net/browse/CRI-179