Skip to content

LangSpam: let users choose from all detectable languages with presets #737

Description

@2ndkauboy

Extracted from a code TODO at src/Rules/LangSpam.php:179.

The language spam rule can currently detect a limited set of languages. We should let users select from all ~82 languages the library can detect, offered through presets:

  • the site language
  • the site language + English
  • if more than two languages are installed, use those
  • a custom option (could reuse the Preferred Languages UI for selection, also exposing the ISO codes)

Originating TODO is in src/Rules/LangSpam.php. Note src/Rules/LangSpam.php:188 also flags that the old filters should be deprecated as part of this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv3This issue is for the new version (v3) of the plugin

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions