AcclaroInc / craft-translations

Easily manage your Craft CMS website translations and drive global growth with simplified translation workflows.
https://plugins.craftcms.com/translations
Other
9 stars 11 forks source link

Body text disappears when a new translation is applied #452

Closed olga-kondra closed 3 months ago

olga-kondra commented 1 year ago

Version of craft plugin:v3.2.3 Version of craft Craft: CMS 4.3.6.1

Dear Acclaro team,

I have tried to apply some translated pages which have been returned from Acclaro. The order number is [#206422]

I was able to see all of the the translated text in the preview. As soon as I had applied the text, only the translated headline appeared on the page. The body text had vanished. I tested it with several languages and the same issue appeared in all languages. This seems to be an old bug that hasn't been resolved. We were experiencing the same issue in the past.

You can look at the applied translations in this translation folder. You will see that the text body is missing altogether. Unfortunately I am not able to upload screenshots over Github. I have sent some screenshots to Erin, who is our project manager.

Kind regards, Olga

blafferty commented 1 year ago

Reference screenshots for this ticket

The 'Review changes' pane shows the full translation

After applying the translation, text fields are empty

bhupeshappfoster commented 1 year ago

@blafferty @olga-kondra

We tried to debug the issue being seen unfortunately these details are not sufficient for moving ahead to find a cause of this. Like the above two images first image shows some field has got the translations before applying but the second file does not shows in which field is that translated content is supposed to be seen after applying (or we can not see the fields for which the translated content is visible in first image).

Also we tried looking in for order in stage site and we found this order and believe is the same order for which the ticket is created if we found the right order, then in this case we can't see the entry field content data shown in first image even when we checkout the entry in source language.

It would be great if we can get some more insight on the details.

olga-kondra commented 1 year ago

@blafferty @bhupeshappfoster I believe that I have sufficiently described and documented the issue. I am happy to describe it again. When I apply a translations all of the text except for the headline is gone. There is simply no body text. I do understand what you are saying. You can't see all the fields, because I only took a screenshot of my screen, not of the whole page. I assure you that all fields were empty, I checked twice. I am not a developer, therefore I can only share with you what I see on the frontend.

I think we don't even need screenshots to describe this bug.

Here is the bug in a nutshell: When a translation is applied the whole text disappears from the page, only the headline is left. In addition to that the text on the original (English page), that was the source of the translations, disappeared. That English page only had a headline left and I had to fix it. The WYSIWYG/Main Text field was gone after the translation was applied, even from the main English page.

The full translations was however still visible in the preview, before a translation is applied. @blafferty Could you kindly look into this issue yourself? Many thanks in advance for your help.

I suggest that you delete the broken pages from this order and redeliver this oder [#206422]. Then we can start from the beginning and check again.

eperry-acclaro commented 1 year ago

Hi @bhupeshappfoster and @blafferty, Blue Prism has logged this same issue in 2022. In case it is helpful, these are 2 orders where the issue has occurred and was resolved: https://bp-stage-s.builtbymasonry.com/admin/translations/orders/detail/3999019 https://bp-stage-s.builtbymasonry.com/admin/translations/orders/detail/3876000

Thanks, Erin

eperry-acclaro commented 1 year ago

Hi @bhupeshappfoster, Olga shared this screenshot with me via email. Please review and let us know if it helps to clarify the issue. ⚙-Intelligente-Automatisierung-eröffnet-Mitarbeitern-neue-Möglichkeiten-Blue-Prism (1)

Thanks, Erin

blafferty commented 1 year ago

@olga-kondra

Thank you for the additional details and your patience.

Our team went back to the data from 2022 and the relevant sections. We cloned it to our local installation and then ran a roundtrip test. It worked for us. The fields were populated with the translations.

Next step: Could we create an order on your stage site to see if we can reproduce the issue there as well?

olga-kondra commented 1 year ago

@blafferty

I suggested to reupload the exact same order once again to see if the error appears again. Please feel free to create an order on our stage site. Please name the order "Test oder" and add the date. Many thanks for your support.

blafferty commented 1 year ago

@olga-kondra

Thanks for confirming! The team will perform a few tests on stage and we'll update you here tomorrow / Wednesday.

blafferty commented 1 year ago

@olga-kondra We ran a test on the staging site and we were able to return and apply the translated fields. We are looking at one more thing internally - the structure of the xml files we delivered.

If the xmls are properly formed, then I would like to schedule a call with yourself and our developers. I should know about the xmls by later today or tomorrow. Stay tuned! @eperry-acclaro

eperry-acclaro commented 1 year ago

Hi! I am checking in to see if there was any further resolution or investigation of the xml structure. Blue Prism has update their plugin to v3.2.7 to fix the issue causing translations to display in Spanish. They have submitted 4 new orders today, so I want to keep an eye on the issue reported in #452 before we deliver them.