Great feature to allow defining language groups! (field > field settings)

I'm trying to find out whether there is wildcard support. We want to use the Group as follows:

Frequently chosen|en,de,es,fr
Further languages|*

It seems to me that it wouldn't make sense to add a positive list of all other languages because that's basically what you'd use the language field for: give me all available languages so that the list is complete and can be updated.

Maybe I just didn't find the information. In that case, please add a hint to the Language groups help text.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hexabinaer created an issue. See original summary.

johnv’s picture

Indeed, a wildcard is not supported.

kuzyawkk’s picture

Assigned: Unassigned » kuzyawkk

kuzyawkk’s picture

Assigned: kuzyawkk » Unassigned
Status: Active » Needs review

  • johnv committed bcadae69 on 8.x-1.x
    Issue #3296820 by hexabinaer: Add wildcard support for language groups
    
johnv’s picture

Version: 8.x-1.8 » 8.x-1.9
Status: Needs review » Fixed

@kuzyawkk, sorry for not crediting you in the commit. I did in the issue.

johnv’s picture

Status: Fixed » Needs work
Issue tags: +Needs manual testing

This needs testing for all types of widgets, when entering a language in the '*' group:
- Autocomplete --> error "An unexpected language is entered."
- Autocomplete (tags style)
- Select list
- Checkbox/Radiobutton

johnv’s picture

The fix should be done in class LanguageItem implements OptionsProviderInterface .

johnv’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.