πŸ‡¨πŸ‡¦Canada @circuscowboy

Account created on 30 May 2010, over 14 years ago
#

Recent comments

πŸ‡¨πŸ‡¦Canada circuscowboy

Yes comment #2 works - I have made a patch against 7.x-3.x-dev.

πŸ‡¨πŸ‡¦Canada circuscowboy

Patch on #4 is not working for me on php 8.2

I will attach a new patch that is working.

πŸ‡¨πŸ‡¦Canada circuscowboy

I am trying to solve the layout builder translation issues for the first time and I am running into difficulties.

If I use patch 75 on its own I get the following error message:

Error: Interface "Drupal\layout_builder\TranslatableSectionStorageInterface" not found in /var/www/pwnhc/web/core/modules/layout_builder/src/DefaultsSectionStorageInterface.php on line 12 #0 /var/www/pwnhc/vendor/composer/ClassLoader.php(571): include()

If I apply the patch in this issue, https://www.drupal.org/project/drupal/issues/2946333 πŸ“Œ Allow synced Layout override Translations: translating labels and inline blocks Needs work based off this merge request https://git.drupalcode.org/project/drupal/-/merge_requests/5956#note_259636 then that error goes away and I get a button called "Translate Layout".

The old merge request listed above (https://git.drupalcode.org/project/drupal/-/merge_requests/1504#note_194458) no longer applies to 10.2 - If this new patch would have fully worked I would replace it in the description.

I am having 2 issues with the 2 patches. Firstly I am using a path based URL and the path is duplicated in the Translate Layout button link so it goes to a page not found.

Details

Secondly with the corrected link I gotten 2 different outputs

  1. An access denied error on the page. This was on an existing content type
  2. On a new content type I go this: Error: Call to a member function get() on null in Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage->getTranslatedComponentConfiguration() (line 481 of /var/www/pwnhc/web/core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php).

If anyone can guide me to get better results I would appreciate it.

πŸ‡¨πŸ‡¦Canada circuscowboy

I add a new commit to the merge request to update the dependencies that are in the composer.json. With out this it doesn't seem possible to update with the patch.

I unfortunately couldn't test this directly because it seems composer searches for dependencies before applying patches. I have tried with no success to use the merge request branch as my source. I am not sure of the syntax to put in my composer.json. I have tested this by creating my own repo of this and using that package.

πŸ‡¨πŸ‡¦Canada circuscowboy

circuscowboy β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡¦Canada circuscowboy

Fixed the patch to work with 3.3.x branch

πŸ‡¨πŸ‡¦Canada circuscowboy

Patch on #73 πŸ› Menu item edit translation permission Needs work is missing the new files and doesn't apply. Neither did #71 so I have recreated a patch from these that applies to current 3.0.x-dev

πŸ‡¨πŸ‡¦Canada circuscowboy

Here is a patch that works for me

πŸ‡¨πŸ‡¦Canada circuscowboy

Oops - the first errors were the ones that stopped the site from bootstrapping but there are a number of others included in this patch

πŸ‡¨πŸ‡¦Canada circuscowboy

Per sthomen's comment on comment #97 β†’ I have adapted the patch to only add the new #theme_wrapper if one doesn't already exist. This allows the patch to work with paragraphs enabled.

πŸ‡¨πŸ‡¦Canada circuscowboy

If I am not mistaken the process is that drupal 8 will be patched and then the patch will get back ported to D7 and all can be done in the same issue. That is what I have seen in the past.

I have been bringing this patch along for months so it would be good to get committed. (D7 - haven't used on D8 so can't review)

Production build 0.71.5 2024