This module is integrated with the "languagefield" module:
https://www.drupal.org/project/languagefield

However it's not entirely working yet...

1. Field widget issue:
The option in form display "Language select options with flags" is displayed before the sub-module "Flags for languages". If this option is selected with the sub-module enabled it breaks the form.

Steps to reproduce:

  1. enable flags, flags widgets, select icons & languagefield module
  2. create a language field
  3. go to form display and change the field to "Language select option with flags"
  4. try create a content with that field.... BANG "The website encountered an unexpected error. Please try again later."
  5. enable the "flags for languages" module. Now everything is working.

2. Field formatter issue:
There is no any flag formatter for language_field field type after enabling of the flags_languages module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

matsbla created an issue. See original summary.

matsbla’s picture

Project: Select Icons » Flags
matsbla’s picture

vlad.dancer’s picture

We should split this issue into two separate. One for fixing the field widget & formatter, another is for discussion about block setting.

vlad.dancer’s picture

@matsbla. What a drupal version do you use and what module are you using for language field?

vlad.dancer’s picture

Issue summary: View changes
vlad.dancer’s picture

Title: Make flags for language field work » Make flags for "languagefield" work
vlad.dancer’s picture

vlad.dancer’s picture

Issue summary: View changes

Better issue description.

  • vlad.dancer committed 2c561c3 on 8.x-1.x
    Issue #2798239 by matsbla,vlad.dancer: make flags for 'languagefield'...
vlad.dancer’s picture

Status: Active » Fixed

Created a new module flags_languagefield module.
Widget was moved from flags_languages, a new formatter was created based on Languagefield formatter.

The flags.language_helper service moved into flags module. Also changed this service: added soft dependency on language module instead of required.

  • vlad.dancer committed ce23542 on 8.x-1.x
    Revert "Issue #2798239 by matsbla,vlad.dancer: make flags for '...
vlad.dancer’s picture

Status: Fixed » Needs work

Lets test a patch before commit.

vlad.dancer’s picture

Status: Needs work » Needs review
FileSize
14.42 KB
vlad.dancer’s picture

Status: Needs review » Closed (duplicate)