Entity view/form mode formatter/widget settings have no translation UI

Created on 5 August 2015, almost 9 years ago
Updated 16 April 2024, 2 months ago

Problem/Motivation

Add missing configuration translation interface.

There are several pieces of information from the Entity/Field system, which may include translatable strings, but which prior to this patch are not translatable using the Config Translation UI:

a) Field settings. For instance, on a Number field, there are translatable settings for the Prefix and Suffix in the settings config. But if you go to the Translate page for the field, all you can translate is the Label and Help for the field, not the prefix/suffix.

===> This is because the schema is wrong. See #2546356: Numeric field prefix/suffix settings should be translatable . Fields are translatable along with their settings, supposedly anyway.

b) Entity view displays - field formatter settings. For instance, on 🐛 Misuse of formatPlural() in Numeric field prefix/suffix Needs work we are adding the ability to numbers to have formatPlural() type formatting, but there is no way to translate the "1 item/@count items" strings. These are stored on the entity view display config items.

c) Entity form displays - widget settings. For instance, many text fields have widget options to enter Placeholder text, and obviously this would need to be translated. These are stored on the entity form display config items.

d) Base field overrides, which seem to include labels.
==> will do this on a separate issue

The technical reason is, at least for the entity view/form display formatter/widget settings, that there is not an edit form for these things -- the config schema indicates they should be translatable, but there's no way to edit them so config translation module doesn't put up a UI for translating them either. They are settings that appear as part of the Manage Form or Manage Display pages in Field UI, but the individual fields do not have their own settings forms.

Comment #5 also looked at other config items to see if they were translatable and #8 discussed them; more issues will be open.

How to test

  1. Use core version applicable to the patch and apply the patch
  2. Configure Article node type with a boolean field, displayed in Default view mode using custom texts
  3. Enable Configuration Translation module (/admin/modules)
  4. Add at least one language (/admin/config/regional/language)
  5. Go to configuration translation page (/admin/config/regional/config-translation)
  6. Click on List button for Content view display
  7. Click on Translate button for Default view mode for Articlecontent type
  8. See what is on the configuration translation form for the ArticleDefaultview mode
  9. @todo - Add more steps for translating specific configuration

Proposed resolution

  1. Create a ConfigTranslation entity list builder extending ConfigTranslationFieldListBuilder to manage the translation of entity view and form modes and override the necessary methods to load, filter, and display entity view/form modes for translation.
  2. Extend the Config Entity Mapper in the Field UI module to handle translation mappings and titles for entity view and form modes and implement methods to set route parameters, generate overview route names, and generate titles specific to entity view/form modes.
  3. Alter translation forms. Iterate through the relevant form elements and associate translation-related details, such as titles and descriptions, for formatter and widget settings.

Remaining tasks

Review patch
Determine any follow ups
Commit

User interface changes

You'll are able to fully translate your site. Can't now.

API changes

No

Data model changes

No

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Config translation 

Last updated about 2 months ago

Created by

🇺🇸United States jhodgdon Spokane, WA, USA

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France andypost

    I think it's time to update summary with latest screenshots and ask for #ux review

  • 🇪🇸Spain Jose Reyero

    I've been giving a try to this one and I can say it works well.

    The edit/translate UI may need some improvements though. I don't think this can be considered 'usable' without adding proper field / widget names everywhere.

    Then, about the implementation, some notes:

    1. I think this should be moved, as much as possible to the field_ui namespace. The feature is dependent on field_ui being active, isn't it?

    Instead of core/modules/config_translation/src/ConfigTranslation/EntityDisplayMapper
    maybe use core/modules/field_ui/src/ConfigTranslation/EntityDisplayMapper
    just as core/modules/node/src/ConfigTranslation/NodeTypeMapper - which is the only other example I've found

    2. Bit hackish, though I understand there's no easy way of doing this - setting proper names. However, relying on the element title is a no-no IMO.

    +/**
    + * Implements hook_preprocess_HOOK() for details element templates.
    + */
    +function config_translation_preprocess_details(&$variables) {
    +  if (isset($variables['element']) && $variables['element']['#title'] == 'Field widget') {
    +    $field = ucwords(str_replace('edit-', '', $variables['attributes']['id']));
    +    $variables['title']['#markup'] = $field . ' field widget';
    +  }
    +}

    I mean, we are doing a core patch, right? So we don't really need to hack around. If we need one more hook, we add it, if we need better form element markers, we add them - in field_ui module.

    The best option I can think of, so far, instead of adding more hooks is maybe adding some ConfigMapperInterface::massageForm() to the interface... though not sure about it, I'm working on some proof of concept, not there yet...

    The other option would be maybe... but same, working on that, not yet there:

    /**
     * Implements hook_form_BASE_FORM_ID_alter().
     */
    function field_ui_form_config_translation_form_alter(&$form, FormStateInterface $form_state) {
      /** @var \Drupal\config_translation\ConfigMapperInterface $mapper **/
      $mapper = $form_state->get('config_translation_mapper');
      // This is_a(), just to avoid hard dependencies on other modules classes. We wouldn't need it if the mapper was in this module though.
      if (is_a($mapper, 'Drupal\config_translation\ConfigTranslation\EntityDisplayMapper')) { 
         // @todo Add field / widget names, etc, etc...
      }
    }
    

    As I said, working on some options ... still haven't figured it out yet... but what I see is the config_translation UI is pretty complex and limited. So anything that makes it easier/better I think will be welcomed...

  • Trying to apply #207 on Drupal 9.5.3 and constantly getting error:

    Could not apply patch! Skipping. The error was: The process "patch '-p1' --no-backup-if-mismatch -d 'web/core' < '/var/folders/r7/r0x8c0nd55b0zxmrxnxdh2wc0000gp/T/63fa32d91a4f1.patch'" exceeded the timeout of 300 seconds.

    I am desperatly trying to find a solution for Field Group translations as the labels DO NOT show up in configuration translations AND there is no interface translation either.

    It looks like every field groups translation issues are on hold for a while now.

  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands

    @jlcharette patch from #207 is for Drupal 10.1.X only.

    Maybe you can try the one from #203 for Drupal 9. Think the feature will only be made ready for Drupal 10.1.X

  • Status changed to Needs work over 1 year ago
  • The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • 🇧🇪Belgium DuneBL

    I have tried #203 on 9.5.3 but I can't find a place where to translate my group's label.
    Should I use tmgmt? If yes which source should be selected?

  • 🇵🇹Portugal guilherme-lima-almeida Lisbon

    Having the same issue as DuneBL.

  • 🇪🇸Spain Jose Reyero

    New patch. Mostly implementing own ideas outlined in #209

    Main changes:

    - Moved most of the new code - and some of the existing one - to field_ui module. It simplifies a few things, like we don't need to check whether module is enabled or not.
    - Naming Fields, Formatters and Widgets using field_ui_form_config_translation_form_alter().

    It may be a bit rough yet, may need maybe less comments (?) but this is the working example...

    Adding two screenshots, one from the view display, on from form display.

  • Status changed to Needs review about 1 year ago
  • 🇪🇸Spain Jose Reyero

    Forgot to set the status to Needs review...

  • Status changed to Needs work about 1 year ago
  • 🇫🇷France andypost

    Looks nice, just needs to fix cs

  • 🇮🇳India Akram Khan Cuttack, Odisha

    added updated patch and try to fixed CCF #215. add accessCheck() because entity queries to check access by default is deprecated so need to check it with true and false.

  • Status changed to Needs review about 1 year ago
  • 🇪🇸Spain Jose Reyero

    Thanks @Akram Khan for cleaning up most of the patch.

    This is a minor update which:

    - Updates failing test, it was not checking for the right string, since latest versions of the patch add proper field names
    - Fixes a minor naming issue. We are translating "widget settings", not "format settings" for Form displays. It also adds some better title formats - by using '%placeholders' instead.

  • Status changed to Needs work about 1 year ago
  • 🇺🇸United States smustgrave

    Still needs issue summary update for #208.

    Will ping the #ux channel.

  • 🇩🇪Germany rkoller Nürnberg, Germany

    I've applied the patch provided in #219 🐛 Entity view/form mode formatter/widget settings have no translation UI Needs review , applied it locally to 10.1.x-dev and followed the steps from the issue summary. Two observations:

    1. The most confusing detail is that the order of the true and false field differs between the boolean field widget on the manage display page for the content type and the translation page. The order should be identical if possible imho.
    2. if get onto the page to translate the article default display i only see the bool (the name i've given to the boolean field) detail element collapsed. if i expand it i see the boolean format settings detail element collapsed. so i have to click twice until i reach the fields i initially wanted to get to. i am not sure if it is a requirement from core to have those elements collapsed per default. but as a user i want to see and get to the things directly, in particular in a case where there arent tenth of detail elements like for a view, but here you only have two fields for the boolean states.
  • 🇪🇸Spain Jose Reyero

    Thanks for the review @rkoller,

    About 1, it would be really hard, to get the right order here because we are somehow blindly translating properties that have a real form somewhere else, but we cannot use that one... so not sure we can actually get that - order - information from anywhere..

    About 2. Agreed, this form sucks... just like all the other config translation forms I guess :D ... anyway the difference here is we are doing some more targetted 'form altering' - to add field names, etc.. - so I'll see about not collapsing all the fieldsets as default...

    The form being always small is not a criterium we can use though, as there may be many more fields or properties here, it will just depend on each content type configuration.. and each field type has its own story too.... I'll try with some 'count nested fields < x => do not collapse'..

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    30,330 pass
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    29,388 pass
  • Status changed to Needs review about 1 year ago
  • last update about 1 year ago
    Custom Commands Failed
  • 🇷🇺Russia ilya.no

    About first point of #221 comment, order of these elements are set directly in formatter, while in other places order is opposite. So I agree, that it's not possible to easily fix it.
    About second point I've made a patch, where simply set open state for `formatter` and `settings` form elements. Besides that I've modified logic to include case, when view display uses layout_builder.

  • Status changed to Needs work about 1 year ago
  • 🇺🇸United States smustgrave

    Did not test. Moving to NW for issue summary update

  • First commit to issue fork.
  • last update 12 months ago
    Custom Commands Failed
  • last update 12 months ago
    29,566 pass
  • Status changed to Needs review 12 months ago
  • 🇷🇴Romania vasike Ramnicu Valcea

    let's try with a MR so anyone could participate with updates

    created a MR for the 11.x branch, using the latest patch available - #224
    and make it "green" ..

  • Status changed to Needs work 12 months ago
  • The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

    This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • last update 12 months ago
    Custom Commands Failed
  • last update 12 months ago
    29,801 pass
  • Status changed to Needs review 12 months ago
  • 🇷🇴Romania vasike Ramnicu Valcea
  • Status changed to RTBC 12 months ago
  • 🇨🇦Canada joseph.olstad

    Justification for RTBC:
    merge request has tests
    merge request passing tests
    Been using a version of this patch since D8.

  • last update 12 months ago
    29,801 pass
  • last update 12 months ago
    29,802 pass
  • last update 12 months ago
    29,802 pass
  • Status changed to Needs work 12 months ago
  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    I've not done a thorough review, but I did spot a regression in help text relating to content blocks

  • last update 12 months ago
    29,804 pass
  • last update 12 months ago
    29,804 pass
  • last update 12 months ago
    29,804 pass
  • last update 12 months ago
    29,804 pass
  • First commit to issue fork.
  • last update 11 months ago
    29,912 pass
  • last update 11 months ago
    29,946 pass
  • last update 11 months ago
    29,946 pass
  • Status changed to Needs review 11 months ago
  • last update 11 months ago
    29,946 pass
  • 🇺🇸United States tim.plunkett Philadelphia

    Thanks @srishtiiee!

  • 🇺🇸United States smustgrave

    Great job everyone carrying this forward!

    Posted in #ux channel for the usability review

  • Status changed to Needs work 11 months ago
  • Status changed to Needs review 11 months ago
  • 🇧🇪Belgium LOBsTerr

    I have tested it locally and I didn't find any issues. Great job!

  • last update 11 months ago
    29,950 pass, 1 fail
  • last update 11 months ago
    29,958 pass
  • Status changed to RTBC 11 months ago
  • 🇺🇸United States hooroomoo

    Tested locally and looks like all the feedback has been addressed.

  • last update 11 months ago
    29,958 pass
  • last update 11 months ago
    29,959 pass
  • Status changed to Needs work 10 months ago
  • 🇫🇮Finland lauriii Finland

    Posted review on the MR

  • last update 10 months ago
    Custom Commands Failed
  • 🇮🇪Ireland lostcarpark

    Great to see progress being made with this issue.

    I'm working on an issue with the Smart Trim module, which adds a new field formatter. This previously used the t() function to translate configuration settings.

    Without the patch, the Smart trim settings were not showing in the Config Translation interface.

    After applying the patch, I was able to translate Smart Trim settings with the instructions in the description.

    Here's hoping this change makes it in core in the not too distant future.

  • 🇺🇸United States DamienMcKenna NH, USA

    Two patch for sites still using 9.5.x - the first is a reroll of the patch from #224, the second is a reroll of the merge request as it existed on August 18th; I'm skipping test coverage as I just wanted to share the files in case anyone needed them.

  • 🇺🇸United States DamienMcKenna NH, USA

    Here's a D9 version of the merge request; sorry for uploading the same file twice in #243.

  • Status changed to Needs review 10 months ago
  • last update 10 months ago
    Patch Failed to Apply
  • 🇨🇦Canada joseph.olstad

    Could the authors of the recent changes please summarize them?

  • last update 10 months ago
    30,044 pass, 2 fail
  • last update 10 months ago
    30,056 pass
  • 🇩🇪Germany rkoller Nürnberg, Germany

    We have discussed this issue at 📌 Drupal Usability Meeting 2023-08-11 RTBC and revisited it at 📌 Drupal Usability Meeting 2023-08-11 RTBC . Each issue will have a link to a recording of the respective meeting. For the record, the attendees at the first usability meeting were @aaronmchale, @emma-horrell, @rkoller, and @worldlinemine. The attendees at the second usability meeting were @aaronmchale, @benjifisher, @blackbamboo, @rkoller, and @worldlinemine.

    During the first meeting we've tested the boolean example from the issue summary plus the link and list (text) field type. While writing up this comment I've noticed when revisiting the example that the patch doesn't affect the link and list (text) field type, the two were already translatable without the patch.

    In the context of UX related issues we haven't found anything aside the points already mentioned in #221 🐛 Entity view/form mode formatter/widget settings have no translation UI Needs review . In regards of those:

    1. Collapsed detail element
    We've tested with the latest revision of the patch with the boolean example and all field sets were expanded. That looks great! It would only be interesting to see the behavior for a more complex example @jose-reyero mentioned in #222 🐛 Entity view/form mode formatter/widget settings have no translation UI Needs review . Which field type would be a good pick to illustrate that?

    2. Field order
    It was a lucky coincidence that the ordering issue already surfaced with the boolean field type. There was a clear consensus in both meetings that it would be desirable to have a consistent order between the fields where you add and configure the none translated version and where you add and configure the translated versions.
    One example that was articulated which illustrates some of the potential problems when a boolean field is used in a legal context for example to opt-in or out of a legally binding document. In case people would read thoroughly all the time there wouldn't be any issue but usually people just scan. A few potential scenarios:

    • The person who sets up the custom output for the boolean field and wants to translate it afterwards, doesn't read at all and just expects the same order as in the widget on the Manage display page.
    • Someone else is translating the custom output.
    • The custom output sentences for TRUE and FALSE are too similar so things could become a slippery slope.

    With more complex fields the number of unexpected ordering issues you could not think of could lead into many more problems down the road could rise . That is just for Core but there also field types added by Contrib or Custom modules.

    @jose-reyero already voiced in #222.1 🐛 Entity view/form mode formatter/widget settings have no translation UI Needs review it might be too challenging or close to impossible to fix.

    There was a clear consensus not to stall this issue any further. But the recommendation is to open a follow-up issue about the ordering issue. In the first place it would be good to learn why the ordering differs on the boolean field type, as well as does it apply to other field types as well? Based on the outcome the group will try to provide another recommendation how to handle the ordering in case the to be translated fields can't be sorted properly.

    And I remove the Needs usability review tag.

  • Status changed to Needs work 10 months ago
  • 🇺🇸United States smustgrave

    Believe this is super close!

    There appear to be a few threads on the MR.

    #246 mentions a need for a follow up if that could be opened please.

    Happy to see this one making it's way to the end.

  • 🇺🇸United States tedbow Ithaca, NY, USA

    I was starting to review this and I found a couple things

    1. If I follow the instructions for "How to test" but don't actually add new field to Article then when I am at admin/config/regional/config-translation/node_view_display then I get an "Access denied" message when I click on any of the Translate links. I am not sure if this expected but I couldn't any of the other config translation to have this behavior. I would expect there to be some page telling there is nothing to translate or better no "translate" link at all
    2. When I edited the Help text of boolean field I added for testing the translated text does not show on the node edit form after I reload it. I have to clear caches first.

    Number 1 seems wrong and I would think we need test coverage to prove that this doesn't happen if fix this.

    Number 2 I am not sure if this is related to this MR or if this is expected with config translation

  • 20:45
    18:32
    Running
  • last update 10 months ago
    30,134 pass
  • 🇮🇳India omkar.podey

    omkar.podey made their first commit to this issue’s fork.

  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    Custom Commands Failed
  • 🇮🇳India omkar.podey

    The next thing would be to create a trait end extract common code snippets from EntityViewDisplayElement and EntityFormDisplayElement

  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    30,136 pass
  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    30,136 pass
  • 🇮🇳India omkar.podey

    Just pulled what you were trying to test so the EntityViewDisplayElement class is definitely being used without it we lose the additional info.

    Without EntityViewDisplayElement


    With EntityViewDisplayElement


  • 🇮🇳India omkar.podey

    The test definitely needs to be expanded.

  • last update 10 months ago
    30,136 pass
  • last update 10 months ago
    30,146 pass
  • last update 10 months ago
    30,145 pass, 2 fail
  • last update 10 months ago
    30,146 pass
  • last update 10 months ago
    Custom Commands Failed
  • last update 10 months ago
    30,148 pass
  • 🇺🇸United States tedbow Ithaca, NY, USA

    I gave it another review. I am bit confused of how the functionality of config_translation is split into different modules. for instance we have ConfigTranslationEntityListBuilderin config_translation but EntityViewDisplayElement in field_ui.

    but this presumably both tested in \Drupal\Tests\config_translation\Functional\ConfigTranslationListUiTest::testTranslateOperationInListUi as there are no new tests in the field_ui module

    In 11.x is not clear to me either. We have very little use of the Drupal\config_translation namespace outside of the module. Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder lives in config_translation but config_translation_entity_type_alter() show it is for the "block" entity type which defined in \Drupal\block\Entity\Block in the block module but \Drupal\node\ConfigTranslation\NodeTypeMapper lives in the node module.

    I bring this up because I recommended to @omkar.podey that he should move the logic in EntityViewDisplayElement dealing with layout_builder into the layout_builder module because it does belong in field_ui. But if we could just put all the config_translation module itself it seems like it would much easier.

  • last update 9 months ago
    Custom Commands Failed
  • last update 9 months ago
    Custom Commands Failed
  • last update 9 months ago
    30,168 pass
  • last update 9 months ago
    30,156 pass, 2 fail
  • last update 9 months ago
    30,168 pass
  • 🇮🇳India omkar.podey

    Before

    After

  • Pipeline finished with Failed
    9 months ago
    Total: 1223s
    #22735
  • last update 9 months ago
    30,206 pass
  • Pipeline finished with Failed
    9 months ago
    Total: 1140s
    #23313
  • last update 9 months ago
    30,208 pass
  • Pipeline finished with Failed
    9 months ago
    #23359
  • 🇺🇸United States tedbow Ithaca, NY, USA
    1. #248.1 access problem still is happening. I was testing with user 1 after a standard install just enabling. This happens if you try to translate a view display before you add a field that has translatable setting. It makes sense that there nothing to translate but not that you see the link and get an "Access denied" message.
    2. If I enable layout builder for view mode the access problem goes away. Presumably this because there is at least 1 setting to translation
    3. The modal doesn't scroll so the view display with even a couple layout builder settings because there are nested it becomes impossible to get to the save button. This is probably a general modal problem
    4. The Layout builder settings are "Per-view-mode field layout settings" which doesn't really make sense because you are already looking at the view mode specifically. This comes from core/modules/layout_builder/config/schema/layout_builder.schema.yml. So I think updating should be another issue. But this is probably the first place that this shows up in UI made by core

    Added more comments in the MR

  • last update 9 months ago
    30,360 pass
  • Pipeline finished with Failed
    9 months ago
    #24272
  • last update 9 months ago
    Custom Commands Failed
  • Pipeline finished with Failed
    9 months ago
    #24964
  • last update 9 months ago
    Custom Commands Failed
  • Pipeline finished with Failed
    9 months ago
    Total: 171s
    #24966
  • last update 9 months ago
    30,361 pass
  • Pipeline finished with Failed
    9 months ago
    Total: 206s
    #25014
  • last update 9 months ago
    30,361 pass
  • Pipeline finished with Failed
    9 months ago
    Total: 827s
    #25015
  • 🇮🇳India omkar.podey
    1. So the access problem is just the the default behaviour and is caused by \Drupal\config_translation\Access\ConfigTranslationOverviewAccess::doCheckAccess where since we don't have any translatable elements it just denies access to the page.
    2. If we want to then we could change this to return allowed access and then down the line we need to call hasTranslatable() and just say "No translatable elements available....."
  • 🇮🇹Italy nicoschi

    It seems this patch has a big side issue and it's weird to me anyone has already discovered it (maybe I'm doing something wrong?).

    This is a case:
    - a series of custom field formatter used on a node view display which original language is english have translatable settings
    - translate them through config translation in the other language, say it is Italian
    - then visit the entity display edit form in the italian language and save it and all the original setting in english language will be overriden with translations!

  • 🇨🇭Switzerland Berdir Switzerland

    What you are describing is what 🐛 Prevent saving config entities when configuration overrides are applied Needs work is about, and the same can happen with block overviews, permissions/roles and many other cases. This neither causes nor can it fix that problem.

  • 🇮🇹Italy nicoschi

    @Bardir thanks for the the tip of the other patch to apply, it's the first time it happens to me or maybe it's a big deal in a case of an entity view display with tons of fields and configs

  • 🇫🇷France pilulu Paris

    Pilulu changed the visibility of the branch 2546212-entity-viewform-mode to hidden.

  • 🇫🇷France pilulu Paris

    Pilulu changed the visibility of the branch 2546212-entity-viewform-mode to active.

  • Pipeline finished with Failed
    7 months ago
    Total: 658s
    #62002
  • Pipeline finished with Failed
    7 months ago
    Total: 731s
    #62630
  • Pipeline finished with Canceled
    6 months ago
    Total: 29s
    #63736
  • Pipeline finished with Failed
    6 months ago
    Total: 493s
    #63737
  • Pipeline finished with Failed
    6 months ago
    Total: 545s
    #63745
  • Status changed to Needs review 6 months ago
  • 🇷🇺Russia ilya.no

    I've fixed remaining comments, except for note about new class, because I'm not sure, whether this is in scope of this task.
    I've removed LB related code from field_ui and recreated it as per first option of this note.
    I've also fixed test and locally it passes fine, but on pipeline there is an error.

  • Status changed to Needs work 6 months ago
  • 🇺🇸United States smustgrave

    Seems to have a valid test error.

    Could we make sure that new functions being added have a typehint return. Even if it's :void. Tests included.

  • 🇧🇪Belgium Jonasanne

    Patch rerolled for D10.2

  • last update 6 months ago
    Patch Failed to Apply
  • 🇮🇳India manojbisht_drupal

    Above Patch #264 is not applying, giving error. So I have created a patch based on #168 for 10.2.x, as it was working fine on D9.

    Along with it, actions patch can also be applied

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 5.3 & MySQL 5.5
    last update 6 months ago
    Composer error. Unable to continue.
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MariaDB 10.3.22
    last update 6 months ago
    Custom Commands Failed
  • 🇫🇮Finland sthomen

    The patch in #265 applies but will crash the site, there's a missing use statement for the EntityDisplayMapper in config_translation.module.

  • I have the same problem like @sthomen

  • Pipeline finished with Canceled
    6 months ago
    Total: 35s
    #68244
  • Pipeline finished with Success
    6 months ago
    Total: 571s
    #68245
  • Status changed to Needs review 6 months ago
  • 🇷🇺Russia ilya.no

    I've added typehint return to newly added functions. Also tests are ok now.

  • 🇮🇳India manojbisht_drupal

    Created new patch : added use statement.

  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands

    Martijn de Wit changed the visibility of the branch 11.x to hidden.

  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands

    Martijn de Wit changed the visibility of the branch 2546212-entity-viewform-mode to hidden.

  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands

    @manojbisht_drupal please use the merge request.

    And if you need a patch, everyone can download a diff/patch from gitlab and load it local with composer.

    (hide patches to get focus on merge request.)

  • 🇺🇦Ukraine artemboiko Lviv

    artemboiko changed the visibility of the branch 2546212-entity-viewform-mode to active.

  • 🇺🇦Ukraine artemboiko Lviv

    Hi @martijn-de-wit I guess need show this branch as a branch for 10.2.x, but also I think it will be better to rename branch with 10.2.x in name for better visibility and yep create new mr with patch 269 from @manojbisht_drupal

    What you think about this next steps?

  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands

    thank you for the help artemboiko. Renaming it to 10.2.x will make things clearer.

    Drupal V 10.3 will be branched from 11.x. I don't this will land in 10.2.x because of the size and changes.
    So I think all effort should be at the merge request for the 11.x branch.

    I think we need al lot of people testing this, maybe a sign off from a (sub)core maintainer ?

  • 🇮🇪Ireland lostcarpark

    I think this has to be seen as a new feature, not a bugfix, so targeting 10.3 makes sense.

    I'm interested in this for the Smart Trim module. Currently we have to wrap a config setting in t() because formatter config is not covered by config translation. This is clearly not best practice. Being to use config translation will be a lot cleaner.

    Happy to test this change against the Smart Trim config translation change.

  • 🇺🇦Ukraine artemboiko Lviv

    artemboiko changed the visibility of the branch 2546212-entity-viewform-mode to hidden.

  • 🇵🇹Portugal lolgm

    lolgm changed the visibility of the branch 11.x to active.

  • 🇵🇹Portugal lolgm

    lolgm changed the visibility of the branch 11.x to hidden.

  • 🇷🇺Russia sorlov

    rebased with latest changes from 11.x branch, need review

  • Pipeline finished with Success
    4 months ago
    Total: 468s
    #92766
  • Status changed to Needs work 4 months ago
  • 🇺🇸United States smustgrave

    Cleaned up I believe useful tags that were probably more used in the past.

    Ran the test-only feature which results in

    1) Drupal\Tests\config_translation\Functional\ConfigTranslationListUiTest::testTranslateOperationInListUi
    Behat\Mink\Exception\ExpectationException: No link containing href admin/config/regional/config-translation/node_form_display found.
    /builds/issue/drupal-2546212/core/tests/Drupal/Tests/WebAssert.php:575
    /builds/issue/drupal-2546212/core/tests/Drupal/Tests/WebAssert.php:389
    /builds/issue/drupal-2546212/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php:505
    /builds/issue/drupal-2546212/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php:622
    /builds/issue/drupal-2546212/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
    ERRORS!
    Tests: 1, Assertions: 55, Errors: 1.
    

    So removing tests tag

    Believe a follow up is still needed so leaving that tag

    Left a few comments on the MR should be easy to resolve. Wonder if the completed threads are able to be closed @sorlov?

    Tried testing following the steps in the issue summary but when I get to step
    ">Click on Translate button for Default view mode for Articlecontent type" at URL
    admin/structure/types/manage/article/display/default/translate?destination=/admin/config/regional/config-translation/node_view_display

    I get an access denied.

  • 🇵🇹Portugal lolgm

    Here's some help if anyone else comes across this problem.

    I have a D9.5 website where I have patch #219 installed and Feeds, Field Group modules.

    I encountered a very awkward situation when using this patch:

    1. Create a Feed type to import users. (Just create an empty one, the important thing is to add the Feeds item field)
    2. Create a tab component in the users form display.
    3. Create a translation for this previously created component (/admin/config/people/accounts/form-display/default/translate/{LANG}/edit)

    When visiting the form display in the original language I can see that the original label remains as expected and by changing the site language to my secondary language the translated element is also correct.
    So far everything is as expected, however, when I return to the form display in the original language, the tabs component label, previously translated, remains with the translated label. Exporting configs, you are able to see that it was actually replaced in the original language.

    I came to the conclusion that this is happening due to the problem of a missing widget in the Feeds item field.
    It can easily be fixed by adding the patch from the issue:
    🐛 Moving "feeds item" field in form display to non-disabled causes PHP error Active

  • 🇨🇦Canada xmacinfo Canada

    Adding last comment reference to the Related issues.

  • Pipeline finished with Success
    4 months ago
    Total: 499s
    #112079
  • Pipeline finished with Success
    4 months ago
    Total: 596s
    #112654
  • Status changed to Needs review 4 months ago
  • 🇷🇴Romania vasike Ramnicu Valcea

    Updated the MR
    - solved conflicts
    - addresses latest threads from @smustgrave - (previous) #281
    - tried to close/resolve existing threads on MR - i hope i didn't close "still open" threads

    It would be nice if the open threads could be checked again by their "initiators": @lauriii, @tedbow, @kekkis

    So Needs Review .... temporary.

  • First commit to issue fork.
  • 🇳🇴Norway svenryen

    svenryen changed the visibility of the branch 2546212-entity-viewform-mode to active.

  • 🇩🇪Germany Anybody Porta Westfalica

    Just ran into this, as there's no other way to translate (widely used) field group labels ( 📌 Document how to translate field group labels and descriptions Postponed )
    Patch from #264 and #269 apply against 10.2, but both don't seem to work correctly, I see no required translate functionality and on /admin/config/regional/config-translation/node_view_display I get an error.

    So there doesn't seem to be a working fix for 10.2 currently, which means field groups can not be translated?

    For that reason +1 on the request for a review by the maintainers as of #284. If possible it would make sense to also fix this in 10.3 if this is fine!

    I'll try the MR in a D11 dev environment myself.

  • 🇩🇪Germany Anybody Porta Westfalica

    Okay I just gave it a try in 11.x and can confirm the MR works as expected!
    I'm now able to add a translation for field groups via /admin/config/regional/config-translation/node_view_display

  • Status changed to Needs work 3 months ago
  • 🇺🇸United States smustgrave

    Appears to be some open threads from @tedbow if those could be marked.

    Is any follow ups still needed?

    Not sure if just me but following the steps in the issue summary when I go translate a view display I get access denied when logged in as admin

    Path: /admin/structure/types/manage/article/display/default/translate?destination=/admin/config/regional/config-translation/node_view_display. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 112 of /var/www/html/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

  • 🇩🇪Germany Anybody Porta Westfalica

    @smustgrave I can confirm that, I also didn't see any translate link there. Just went the other way to translate the field_group.

  • 🇺🇸United States smustgrave

    Not sure if that's correct? I don't do a lot of translations for my work so not as familiar with the system as others I'm sure.

  • 🇮🇹Italy Giuseppe87

    I also get an "access denied" error on Drupal 10.2.x if go to "it/admin/structure/types/manage/article/display/teaser/translate" with the MR patch, using an admin user.

Production build 0.69.0 2024