At present it is possible to disable a language pack that the admin has selected as the forum's default language. This can result in the translator attempting to fall back to resources that are no longer valid.
Flarum needs to do the following whenever an admin disables an extension:
- Check whether the extension is a language pack.
- If yes: check whether that language pack has been selected as the forum's default language.
- If yes: fail to disable the extension and warn the user to change the default language first.
Or it could present the user with a list of installed language packs other than the one the user is trying to disable, allowing the user to selected a new default language right there ... upon which the extension can be disabled.
At present it is possible to disable a language pack that the admin has selected as the forum's default language. This can result in the translator attempting to fall back to resources that are no longer valid.
Flarum needs to do the following whenever an admin disables an extension:
Or it could present the user with a list of installed language packs other than the one the user is trying to disable, allowing the user to selected a new default language right there ... upon which the extension can be disabled.