Moodle plugins directory: Restriction by language: Versions: 3.3+ | Moodle.org
Restriction by language
Restriction by language 3.3+
moodle-availability_language
Restrict module and section access based on user language.
Language filters are great, but sometimes they can make your resources and activities very complex. This availability condition makes it easy to show an English resource only to English users and an activity in French only to French speaking students.
This plugin only pops up when 1. There is more than 1 language installed in the system (obvious, we need a least 2 languages installed to restrict) 2. When the language of the course is NOT forced. (Course - Edit settings - Appearance - Force language). When a course has a forced language, everything will be shown in this language and we are certain no user will ever arrive with another language enabled. On that moment there is no need to show the restriction, as it would only create the illusion that people could be restricted.
WARNING: The Moodle Mobile app relies on the user profile language and/or course language to show or hide a resource: the language selected in the app does NOT prevail.
Check the global documentation about conditional availability conditions: https://docs.moodle.org/en/Conditional_activities_settings
Installation:
- Unpack the zip file into the availability/condition/ directory. A new directory will be created called language.
- Go to Site administration > Notifications to complete the plugin installation.
TODO: * Mobile app. * grabthelot functionality
DONE: * Standard hidden for participants * Behat testing * Unit testing * userid bug
Version information
- Version build number
- 2018030400
- Version release name
- 3.3+
- Can be updated from
- 2.7 (2014092000), 3.1 (2017050600), 2.7 (2017050600), 3.2+ (2017080300), 3.3+
- Can be updated to
- 3.4+, 3.4+, 3.4+ (2018090300), 3.5+ (2019022800), 3.5+ (2019051200), 3.5+ (2019100200), 3.7+ (2020050801), 3.7+ (2020062600), 3.8+ (2020102300), 3.8+ (2020112700), 3.9+ (2021060600)
- Maturity
- Stable version
- MD5 Sum
- bd6ee4d8d9f4a3710241fe3711d2eb95
- Supported software
- PHP 5.6, PHP 7.0, Moodle 3.3, PHP 7.1, Moodle 3.4, PHP 7.2
- Latest release for Moodle 3.3
- The more recent release 3.4+ (2018090300) exists for Moodle 3.4
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL