Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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:
- enable flags, flags widgets, select icons & languagefield module
- create a language field
- go to form display and change the field to "Language select option with flags"
- try create a content with that field.... BANG "The website encountered an unexpected error. Please try again later."
- 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.
Comment | File | Size | Author |
---|---|---|---|
#14 | make-flags-for-languagefield-works-2798239-14.patch | 14.42 KB | vlad.dancer |
#3 | Screenshot from 2016-09-15 00-16-49.png | 119.41 KB | matsbla |
#3 | Screenshot from 2016-05-20 00-04-34.png | 4.34 KB | matsbla |
Screenshot from 2016-09-10 22-29-22.png | 19.42 KB | matsbla |
Comments
Comment #2
matsbla CreditAttribution: matsbla commentedComment #3
matsbla CreditAttribution: matsbla commentedComment #4
vlad.dancerWe should split this issue into two separate. One for fixing the field widget & formatter, another is for discussion about block setting.
Comment #5
vlad.dancer@matsbla. What a drupal version do you use and what module are you using for language field?
Comment #6
vlad.dancerComment #7
vlad.dancerComment #8
vlad.dancerMoved second question into separate issue #2804567: Make "flag icons for the language switcher block" integration optionally.
Comment #9
vlad.dancerBetter issue description.
Comment #11
vlad.dancerCreated 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.
Comment #13
vlad.dancerLets test a patch before commit.
Comment #14
vlad.dancerComment #15
vlad.dancerShould be fixed in this issue #2811427: Restructure module: Submodules for each integration