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:

Proposed resolution

Resolve blocking issues described above. Add documentation how to translate field group labels and descriptions.

Remaining tasks

  1. Solve: #2546212: Entity view/form mode formatter/widget settings have no translation UI
  2. Solve: #3173509: When a config field is a textarea. the translation field should also be a textarea.
  3. 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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

idebr created an issue. See original summary.

idebr’s picture

Issue summary: View changes
FileSize
132.91 KB
90.97 KB

Probably 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:

PieterDC’s picture

Thanks for hinting a patch from that other issue @idebr

joseph.olstad’s picture

I did not see a way to add a translation to a 'description.

calbasi’s picture

I 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.

csedax90’s picture

So... how can we do this?

Martijn de Wit’s picture

Added some extra info for related tickets.

Pooja Ganjage’s picture

FileSize
783 bytes

Hi,

I am creating patch for adding instructions in readme file.

Please review the patch.

Thanks.

Pooja Ganjage’s picture

Status: Active » Needs review
Webbeh’s picture

Status: Needs review » Needs work
Martijn de Wit’s picture

Issue summary: View changes
Martijn de Wit’s picture

Maybe add a sentence explaining it is "configuration" and not "content". Many times I encounter editors that find it hard to see the difference.

Martijn de Wit’s picture

Issue summary: View changes
csedax90’s picture

a way to translate it without this #2546212: Entity view/form mode formatter/widget settings have no translation UI ?

Martijn de Wit’s picture

As 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)

liquidcms’s picture

Trying 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.

Martijn de Wit’s picture

Yes, this issue / patch is only to describe how it should work if all patches are used.

Martijn de Wit’s picture

alorenc’s picture

Patch #8 allows me to translate Content view display configuration. Thanks!

smustgrave’s picture

Status: Needs work » Postponed
Related issues: +#2546212: Entity view/form mode formatter/widget settings have no translation UI
FileSize
785 bytes

Postponed until https://www.drupal.org/project/drupal/issues/2546212 lands.

Added a patch for how to use that once it does.

cestmoi’s picture

And 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.

batigolix’s picture

@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.