Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
August 5, 2024 at 8:08 pm #16041800

johnM-108

Background of the issue:
I'm using a third party to translate the XLIFF files I've exported from my site hidden link. The third party returned files to me with the extension of .xlf, so I changed the extension to .xliff.

Symptoms:
When I try importing this renamed file, I get the error: 'Import failed! The uploaded xliff file does not seem to be properly formed.'

Questions:
Is there anything you can tell me about the process of importing XLIFF files in WPML?
What could be causing the error 'Import failed! The uploaded xliff file does not seem to be properly formed'?
Are there specific requirements for the structure of XLIFF files that WPML can import?

August 6, 2024 at 6:51 am #16042577

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi John,

Thank you for contacting WPML support, I’m happy to help you with this issue.

I suspect the structure of the content in the translation XLIFF file is modified and not identical to the original XLIFF file which is sent to the third party.

Please share with me two XLIFF files:
- original file.
- translation file which is received from the third party and you see the error when importing it to your site.
I will help you investigate the issue. You can upload the file to Google Drive or Dropbox and add the URL in your next reply.

Refer to some tickets
https://wpml.org/forums/topic/import-failed-the-uploaded-xliff-file-does-not-seem-to-be-properly-formed/#post-14371289
https://wpml.org/forums/topic/the-uploaded-xliff-file-does-not-seem-to-be-properly-formed-7/#post-13074773

Looking forward to your reply.
Thanks

August 6, 2024 at 1:13 pm #16044073

johnM-108

Long,

This directory contains two files:
hidden link

The .xliff file is the original file sent to the third-party for translating. The .xlf file is the one that was returned to us.

I think it's clear that it's not correctly formatted. What I was hoping you could help me with is any opinion on what you think happened or what the third-party has done wrong?

Like I said, I don't know anything about .xliff files. I don't know if there's an app that allows a person to input them, make their translations and then re-export them, for example, as opposed to editing these text files in a text editor.

If there were suggested parameters for export I could pass along to this third-party, it would be helpful.

Thanks.

August 7, 2024 at 2:01 am #16045968

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I can see that the third-party changed the structure of the XLIFF file completely, all tags in the file, specifically the file ID
- Original:

<file original="339-aba05e9ba7fdfe0164049eb9bfd495cf" source-language="en" target-language="de" datatype="plaintext">

- Translation:

<file bwx:wu-id="c2ae16f5-8973-469d-a387-7b48aef0ce28" original="Europe-translation-job-339.xliff" source-language="en-US" target-language="de-DE" datatype="x-undefined">

please notice that, the file ID must be identical to the one in the original file. If not, the translation won't be imported or corrected.

Refer documentation https://wpml.org/faq/the-uploaded-xliff-file-doesnt-belong-to-this-system/

I suggest you contact the third-party and ask them to keep the same structure as in the original file, ONLY add their translation to the "target" tag. For example:

<source><![CDATA[MarshBerry Europe]]></source>
<target><![CDATA[MarshBerry Europa]]></target>

If they don't know how to do that, please try to use a translation service or automatic translation of WPML.
https://wpml.org/documentation/translating-your-contents/professional-translation-via-wpml/
https://wpml.org/documentation/automatic-translation/

Looking forward to your reply.
Thanks

Europe-translation-job-339_en_us_de_de.xlf — wpml 2024-08-07 08-51-09.png
Europe-translation-job-339.xliff — wpml 2024-08-07 08-50-37.png
August 7, 2024 at 1:21 pm #16048229

johnM-108

Long,

Thank you for the detailed response! This is what I was looking for. I'll be passing this information along to our third-party. Please, let me keep this thread alive until we successfully get through our process. Once we get the workflow ironed-out and I know we won't have any further questions, I will close it out. Thanks again.

August 8, 2024 at 1:27 am #16050242

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

This ticket will be open for two weeks, you can post your reply here if it still isn't solved. I'm waiting for your feedback.

Thanks.

The topic ‘[Closed] XLIFF Import: Import failed, file doese not seem to be properly formed’ is closed to new replies.