Best practice forum (Archived)
This forum discussion has been removed
Hi Jim
There is a group enrolment key that can be added to a course. When an non enrolled user enters the key they are added to the group.
To limit the visibility of activities to a particular group you can create a grouping.
You need to allow Groupings - Site admin > Misc > Experimental > allow groupings.
Create a French grouping and an English Grouping for the course and add the appropriate group to this.
Then create the activities for each language and then in the Common module settings for the activity select the following.
I have set this up on https://demo.totaralms.com/course/view.php?id=15 for you to have a look at the settings. I have created a group enrolment key of fr for the french content and en for English.
If you enrol with the fr key you should be added to the French group and only see the French quiz. (Jason Cochrane is a test french enrolee)
It is also possible for users to select a preferred language so menus are in that language.
Craig
I looked on the Moodle site and there is a feature in Moodle 2 called multi language content filter http://docs.moodle.org/20/en/Multi-language_content_filter that enables you to tag your multi language content and the appropriate tagged content is displayed according to the users language setting. This would be available when Totara 2 is released.
This doesn't add the users to groups so a group enrolment key would still be required but groupings wouldn't be required.
Craig
I agree with Amir that the multi-language filter is a bit clunky, another option is to create separate courses in the different languages and only use the multi-language filter to link to the different courses.
We do have people using it fairly heavily though, so it should work pretty much everywhere (you may need to check "Filter all strings" in Plugins > Filters > Manage Filters) - and if you find somewhere where it doesn't work we accept bug reports!
Simon