- Issue created by @abaudoin
- 🇭🇷Croatia abaudoin
After additional research I came up with a patch that seems to work in my particular situation, but to be honest I'm not quite sure why exactly and where the error lies. Still needs review. Patch attached.
- 🇭🇷Croatia abaudoin
Last patch (orphaned-paragraphs-09012024.patch) is only if you've already had some paragraphs that were created before the issue was patched. In that case the untranslated paragraphs were always displayed because they actually have a translation but it just isn't displayed on the node. The patch omits the check if the paragraph has a translations, and just translates is again, overriding it.
- 🇵🇹Portugal kallado
Sorry we've been very busy will change the status and review wenever possible.
- Status changed to Needs review
12 months ago 5:08pm 10 January 2024 - 🇵🇹Portugal jmauricio
@abaudoin
If you translate the node manually do the paragraphs translate?
Have you made this configuration?
https://www.drupal.org/docs/contributed-modules/paragraphs/multilingual-... → - 🇨🇴Colombia WilliBautista
I have the same problem, but I have noticed that the translation of the content and paragraphs is effectively executed only in the first language selected; for the other languages, the paragraphs are not translated.
- 🇭🇷Croatia abaudoin
@jmauricio
Yeah, the configuration is correct, paragraph translations work except in the scenario I've written in the opening ticket.
- Status changed to Needs work
11 months ago 10:51am 22 January 2024 - Status changed to Needs review
11 months ago 1:07pm 22 January 2024 - 🇵🇹Portugal jmauricio
@abaudoin @WilliBautista can you please test this patch. I think it solves this problem.
- 🇭🇷Croatia abaudoin
Hey @jmauricio, thanks for the patch. I'll test it a bit tomorrow.
- 🇭🇷Croatia abaudoin
Patch #14 works in all cases except when a piece of content was affected with the bug before.
Example: I don't have the patch applied yet. I translate an article in German, French and Spanish and get the bug in question - Spanish not translated. I apply the patch, try to retranslate all languages again - Spanish remains unchanged and in original language. I try to retranslate only Spanish - it works.
For newly created content patch works as expected.
- Status changed to RTBC
11 months ago 9:05am 23 January 2024 - 🇵🇹Portugal jmauricio
Yes, it it because the code was creating a new paragraph instead of translating it in those cases, don't really know how to fix that, maybe just delete the translations and run the auto translation again.
I'll commit the patch, run some more tests and release a new version.
Thanks
-
jmauricio →
committed f3c6cda8 on 1.0.x
Issue #3412616 by abaudoin, jmauricio, kallado, WilliBautista: Paragraph...
-
jmauricio →
committed f3c6cda8 on 1.0.x
- Status changed to Fixed
11 months ago 5:31pm 23 January 2024 - Status changed to Fixed
11 months ago 5:31pm 23 January 2024