Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation issue with Matecat for XLIFF 2.0 #3106

Open
Chrystll opened this issue Jan 18, 2024 · 3 comments
Open

Translation issue with Matecat for XLIFF 2.0 #3106

Chrystll opened this issue Jan 18, 2024 · 3 comments

Comments

@Chrystll
Copy link

Description:
I noticed an issue regarding the categories of my post when importing my XLIFF 2.0 file in Matecat. Let's try to explain, I have a post in English with a category "News," translated into French as "Nouvelles" thanks to Polylang Pro (WordPress multilingual plugin).

For XLIFF 2.0, this French translation is properly recognized in the Poedit tool. However, it is not recognized in Matecat as translation. I have to manually create the French translation in Matecat.
This issue does not occur in Matecat when using XLIFF 1.2.

Here are the data in XLIFF 2.0 regarding the terms:

<group id="4" type="x:term" name="354">
  <unit id="6" type="x:name">
    <segment>
      <source><![CDATA[News]]></source>
      <target><![CDATA[Nouvelles]]></target>
    </segment>
  </unit>
</group>

And here are the data in XLIFF 1.2 regarding the same terms:

<group restype="x-term" resname="354">
  <trans-unit id="6" restype="x-name">
    <source><![CDATA[News]]></source>
    <target><![CDATA[Nouvelles]]></target>
  </trans-unit>
</group>

Are you aware of this kind of issue on your side?

Steps to reproduce the issue:
Here is how I encountered the issue:

  1. Using Polylang Pro, export an English post with the category term translated into French, for example, translate the English category "News" to French as "Nouvelles."
  2. Export this post in French, choosing the file format 2.0.
  3. Drop the generated file into Matecat.
  4. Navigate to the translation table => The term "Nouvelles" is missing from the French suggestion field.
    screenshot-github com-2024 01 18-11_03_23
@leonardotaddeitranslated

Hello! Thanks for flagging this.
Two questions:

  1. Is this happening on the version hosted on www.matecat.com?
  2. Would you be able to send us the file that this is happening on for troubleshooting purposes?

Thanks!

@Chrystll
Copy link
Author

  1. Yes.
  2. Yes, I am attaching it to my comment
    pll_export_1705588328.zip

@leonardotaddeitranslated

Hello,

I have run a test and it looks like the issue is being caused by the presence of CDATA tags in the target section of the Xliff file: https://www.matecat.com/translate/cdata-test-xliff/en-US-fr-FR/8564590-cafe4f449279#3529200262
We will try to understand why this is happening and solve it. We will keep you posted.

Thanks,
Leo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants