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.
Problem/Motivation
Field Group uses Config translation to localize labels and descriptions. However, this mechanic is difficult to discover for site builders as indicated by created issues:
- #3111107: Field Group Label are not translating
- #2546212: Entity view/form mode formatter/widget settings have no translation UI
- #3173509: When a config field is a textarea. the translation field should also be a textarea.
Proposed resolution
Resolve blocking issues described above. Add documentation how to translate field group labels and descriptions.
Remaining tasks
- Solve: #2546212: Entity view/form mode formatter/widget settings have no translation UI
- Solve: #3173509: When a config field is a textarea. the translation field should also be a textarea.
- Add a documentation page to drupal.org, or include instructions in a readme file (or both).
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#20 | 3114825-20.patch | 785 bytes | smustgrave |
Comments
Comment #2
idebr CreditAttribution: idebr at iO commentedProbably the easiest way is to add a patch from #2546212: Entity view/form mode formatter/widget settings have no translation UI
You now have a 'Translate' tab available on 'Manage form display':
The translate tab allows translating the field group:
Comment #3
PieterDCThanks for hinting a patch from that other issue @idebr
Comment #4
joseph.olstadI did not see a way to add a translation to a 'description.
Comment #5
calbasiI don't think it was a good idea to disable the old method to translate the labels (even it's not the drupal way to do) while there is not a way, WITHOUT A PATCH from another module/core to translate them.
More: there is not a warning, in 3.0 version, to avoid all websites simply break their translated labels without any alternative but discover this issue and apply an external patch.
Comment #6
csedax90 CreditAttribution: csedax90 commentedSo... how can we do this?
Comment #7
Martijn de WitAdded some extra info for related tickets.
Comment #8
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedHi,
I am creating patch for adding instructions in readme file.
Please review the patch.
Thanks.
Comment #9
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedComment #10
WebbehThe patch above relies on the patch of #2546212: Entity view/form mode formatter/widget settings have no translation UI to complete.
Comment #11
Martijn de WitComment #12
Martijn de WitMaybe add a sentence explaining it is "configuration" and not "content". Many times I encounter editors that find it hard to see the difference.
Comment #13
Martijn de WitComment #14
csedax90 CreditAttribution: csedax90 commenteda way to translate it without this #2546212: Entity view/form mode formatter/widget settings have no translation UI ?
Comment #15
Martijn de WitAs far as I know; That is correct. #2546212 is adding the missing UI.
We are using the patch from #2546212 for a site. And is is working as it should be. One little bug regarding descriptions/textarea's (see other issue)
Comment #16
liquidcms CreditAttribution: liquidcms commentedTrying to summarize this... so at the moment FG labels are not translatable. The core patch listed above is required. Correct?
And I see Pooja's doc patch above; is that for after the core patch is applied - as without it, none of the things mentioned in that patch exist.
Comment #17
Martijn de WitYes, this issue / patch is only to describe how it should work if all patches are used.
Comment #18
Martijn de Wit#3173509: When a config field is a textarea. the translation field should also be a textarea. is solved.
Comment #19
alorencPatch #8 allows me to translate Content view display configuration. Thanks!
Comment #20
smustgrave CreditAttribution: smustgrave at Mobomo commentedPostponed until https://www.drupal.org/project/drupal/issues/2546212 lands.
Added a patch for how to use that once it does.
Comment #21
cestmoi CreditAttribution: cestmoi as a volunteer commentedAnd yet years later and this "simple" issue is still not officially solved. I am translating a site and knocking my head off the wall once with an "ago" instance that I cannot find where-to anywhere and now with this field_group thing, just to name a few. It seems Drupal still has a long way to go to say it's a reasonably "fully" ready multilingual CMS.
Comment #22
batigolix@cestmoi: this issue is pending a fix for drupal core which is being worked on #2546212: Entity view/form mode formatter/widget settings have no translation UI.
Yes, some issue take a long time to be fixed. But you do not need to wait because a patch is being provided in that ticket that can help you move forward.