Skip to content

Check whether langpack is the default language before disabling #623

Description

@dcsjapan

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:

  1. Check whether the extension is a language pack.
  2. If yes: check whether that language pack has been selected as the forum's default language.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions