This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to import XLIFF files to their WordPress site, but some sections of the language pages are still displaying in English, despite being translated.
Solution:
If you're experiencing issues with parts of your language pages showing in English after importing XLIFF files, we recommend the following steps:
1. Send the affected page to translation.
2. Export the XLIFF file for that page.
3. Compare the original XLIFF file with the translated one.
4. Ensure that the
extradata
, including both
resname
and
package id
, are identical in both the exported and translated XLIFF files. For example:
<trans-unit extradata="fusion_title: content" resname="package-string-255-9472024" restype="string" datatype="html" id="package-string-255-9472024"></trans-unit>
5. Make any necessary changes to the translated XLIFF file, not the exported one.
6. Attempt to re-import the XLIFF file.
If this solution does not seem relevant to your issue, please open a new support ticket with us.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Exception
This topic contains 20 replies, has 2 voices.
Last updated by Laura 12 months ago.
Assisted by: Laura.
Author | Posts |
---|---|
November 17, 2023 at 2:54 pm #14864135 | |
maureenS-2 |
Tell us what you are trying to do? Import XLIFF files to my WordPress site. Some pieces of the language pages are still showing in English. The webpage I'm working on is hidden link and it's translated in 11 different languages (with English as the default language page). Is there any documentation that you are following? I've referred to some documentation that was shared with me in a WPML support chat on August 31, 2023, with Norman. Is there a similar example that we can see? Not currently. But this has happened before on other pages, which is why I had reached out on August 31, 2023, in WPML Support Chat. What is the link to your site? lionscon.lionsclubs.org/ |
November 20, 2023 at 12:35 pm #14876795 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
Hi, thanks for contacting us. I'm not able to retrieve the chat you're talking about, therefore I don't know which documentation are you referring to. You should have the chat saved in your profile, please check and provide me with the link. As the first thing, you should update WPML, the current version is 4.6.7 and check if this solves the issue. If it doesn't, please provide me with one of the translated xliff files so we can check it. |
November 20, 2023 at 6:11 pm #14880039 | |
maureenS-2 |
Hello Laura, Here's a link to the August 2023 chat pertaining to the same issue: https://wpml.org/forums/topic/wpml-chat-support-ticket-by-maureens-2-1693487955/ At the time of the chat in August 2023, we completed steps 2 and 3. In trying to troubleshoot this current issue, I completed step 4, and the issue is not resolved. I also updated our WPML to the latest 4.6.7 version. Thank you! |
November 20, 2023 at 6:17 pm #14880051 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
Did you notice if the segments not appearing as translated have something in common, for example are all titles, or a specific Avada widget? Did you try deactivating all the plugins except WPML and see if you still have the issue? |
November 21, 2023 at 4:41 pm #14889317 | |
maureenS-2 |
There are no commonalities in the segments that are not appearing as translated. It's the same segments in all 11 translations that are not appearing as translated. However, if I open the XLIFF translation files in notepad, the translations are appearing within the XLIFF file. They just don't appear on the webpage after the XLIFF files are imported in WPML. With the translation of the hidden link webpage that we have segments appearing as translated, we also translated the below four webpages at the same time. All segments in the below four webpages are appearing translated after their XLIFF files were imported. hidden link hidden link hidden link hidden link Yes, we tried deactivating all the plugins except WPML. But segments are still not appearing as translated. |
November 22, 2023 at 3:57 pm #14900545 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
Ok, there's a staging site I can test with? |
November 22, 2023 at 7:24 pm #14902223 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
I'd need to test in a minimal environment, ie deactivating all the plugins and theme, I can't do it on a live site. If you can't create a staging site I'll send instruction to create a copy. |
November 22, 2023 at 7:33 pm #14902269 | |
maureenS-2 |
I updated the credentials to provide you admin access to our dev site. Thank you! |
November 23, 2023 at 12:32 pm #14907709 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
Can you send me a translated Xliff? one is enough. Upload it somewhere and share the link with me. |
November 27, 2023 at 2:11 pm #14930907 | |
maureenS-2 |
Yes, I just added a link to a Spanish XLIFF file to the private message above. Please let me know if you need anything else. Thank you! |
November 27, 2023 at 6:08 pm #14933635 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
I guess the xliff you sent me is for hidden link but I see the page empty in the back end. How did you build it? I see a bunch of page builders in the plugin list |
November 28, 2023 at 2:16 pm #14940851 | |
maureenS-2 |
The DEV site that you're working is not the latest version so you wouldn't see the built version of the hidden link webpage. This page is built on the live site at: hidden link |
November 28, 2023 at 2:57 pm #14941115 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
If I don't have the matching original page for the xliff I can't test anything. Please recreate the page for me on the dev site or provide me another xliff with the issue but for a page that is the same on dev and prod site. |
November 28, 2023 at 9:50 pm #14944889 | |
maureenS-2 |
Hi Laura, I copied the page code from the live site to the dev site. The matching page is now setup on the dev site. Thank you and sorry for the trouble! |
November 29, 2023 at 12:22 pm #14950795 | |
Laura Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/Rome (GMT+01:00) |
Just to confirm, the page was first translated using automatic translation (if I open it in the translation editor I can see the translation completed) then you exported the xliff files for review, correct? |