PHPackages                             ewallah/moodle-availability\_language - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ewallah/moodle-availability\_language

ActiveMoodle-availability[Authentication &amp; Authorization](/categories/authentication)

ewallah/moodle-availability\_language
=====================================

Restrict module and section access based on user language

507PHPCI passing

Since Jun 30Pushed today4 watchersCompare

[ Source](https://github.com/ewallah/moodle-availability_language)[ Packagist](https://packagist.org/packages/ewallah/moodle-availability_language)[ RSS](/packages/ewallah-moodle-availability-language/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Availability language
=====================

[](#availability-language)

Restrict module and section access based on user language.

Idea
----

[](#idea)

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.

Conditional availability conditions
-----------------------------------

[](#conditional-availability-conditions)

Check the global documentation about conditional availability conditions: [https://docs.moodle.org/en/Conditional\_activities\_settings](https://docs.moodle.org/en/Conditional_activities_settings)

Warning
-------

[](#warning)

- This plugin is 100% open source and has NOT been tested in Moodle Workplace, Totara, or any other proprietary software system. As long as the latter do not reward plugin developers, you can use this plugin only in 100% open source environments.
- 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.

Requirements
------------

[](#requirements)

This plugin requires Moodle 5.1 or later.

Installation
------------

[](#installation)

Install the plugin like any other plugin to folder /availability/condition/language See [http://docs.moodle.org/en/Installing\_plugins](http://docs.moodle.org/en/Installing_plugins) for details on installing Moodle plugins

Initial Configuration
---------------------

[](#initial-configuration)

This plugin does not need configuration after installation.

Theme support
-------------

[](#theme-support)

This plugin is developed and tested on Moodle Core's Boost theme and Boost child themes, including Moodle Core's Classic theme.

Plugin repositories
-------------------

[](#plugin-repositories)

This plugin will be published and regularly updated on Github: [https://github.com/ewallah/moodle-availability\_language](https://github.com/ewallah/moodle-availability_language)

Bug and problem reports / Support requests
------------------------------------------

[](#bug-and-problem-reports--support-requests)

This plugin is carefully developed and thoroughly tested, but bugs and problems can always appear. Please report bugs and problems on Github: [https://github.com/ewallah/moodle-availability\_language/issues](https://github.com/ewallah/moodle-availability_language/issues)We will do our best to solve your problems, but please note that due to limited resources we can't always provide per-case support.

Feature proposals
-----------------

[](#feature-proposals)

Please issue feature proposals on Github: [https://github.com/ewallah/moodle-availability\_language/issues](https://github.com/ewallah/moodle-availability_language/issues)Please create pull requests on Github: [https://github.com/ewallah/moodle-availability\_language/pulls](https://github.com/ewallah/moodle-availability_language/pulls)We are always interested to read about your feature proposals or even get a pull request from you, but please accept that we can handle your issues only as feature proposals and not as feature requests.

Moodle release support
----------------------

[](#moodle-release-support)

This plugin is maintained for the latest major releases of Moodle.

Status
------

[](#status)

[![Build Status](https://github.com/ewallah/moodle-availability_language/workflows/Tests/badge.svg)](https://github.com/ewallah/moodle-availability_language/actions)[![Coverage Status](https://camo.githubusercontent.com/1280bc490656ccd9340d839e82838df5ce4cd90f41aac9d16a039c5592aeede5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6577616c6c61682f6d6f6f646c652d617661696c6162696c6974795f6c616e67756167652f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/ewallah/moodle-availability_language?branch=main)[![Mutation score](https://camo.githubusercontent.com/1fc463ade387d274984ddc54bd9b9096da50b433ebc9e2bb25b391c720652633/68747470733a2f2f62616467656e2e6e65742f62616467652f4d75746174696f6e25323053636f7265253230496e64696361746f722f3130303f636f6c6f723d6f72616e6765)](https://camo.githubusercontent.com/1fc463ade387d274984ddc54bd9b9096da50b433ebc9e2bb25b391c720652633/68747470733a2f2f62616467656e2e6e65742f62616467652f4d75746174696f6e25323053636f7265253230496e64696361746f722f3130303f636f6c6f723d6f72616e6765)[![MDL Shield](https://camo.githubusercontent.com/18cf10ff09048603c85f6a054e459d5a5d2015627ce837a02f7b9567cc552ebe/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466d646c736869656c642e636f6d2532466170692532466261646765253246617661696c6162696c6974795f6c616e6775616765)](https://mdlshield.com/plugins/availability_language)

Copyright
---------

[](#copyright)

eWallah.net

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see .

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance65

Regular maintenance activity

Popularity8

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/32a7f778e4118d57ef3f2ee1338743b9933fa7337ae054a83a73452819cd0e27?d=identicon)[ewallah](/maintainers/ewallah)

---

Top Contributors

[![ewallah](https://avatars.githubusercontent.com/u/1324161?v=4)](https://github.com/ewallah "ewallah (290 commits)")[![rdebleu](https://avatars.githubusercontent.com/u/1669833?v=4)](https://github.com/rdebleu "rdebleu (147 commits)")

---

Tags

moodlemoodle-availabilitymoodle-availability-languagemoodle-pluginphp

### Embed Badge

![Health badge](/badges/ewallah-moodle-availability-language/health.svg)

```
[![Health](https://phpackages.com/badges/ewallah-moodle-availability-language/health.svg)](https://phpackages.com/packages/ewallah-moodle-availability-language)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
