XLF - Random sentences not imported

Hi,

I'm facing a weird issue with XLF files:

Some sentences are randomly ignored and not imported in the editor.
There's nothing particular in the XLF and I can’t locate the source of that behaviour.

For instance, in the below TU, the sentence "Let me explain…" is not extracted and does not appear in the editor:

<trans-unit approved="no" id="cmpid570645230259159c1764654f_xlfid570645230259159c17646550" xml:space="preserve">
<source xml:lang="en"><g ctype="x-html-p" id="0">Lou calls Jane to report on his findings. “Hi Jane, I checked out our policy on <g ctype="x-html-a" id="1" target='_blank' style='color:black;' href='randomlink.com'><g ctype="underlined" id="2">UConnect</g></g> on sharing information with third parties, and there are different rules for different third parties. Let me explain…”</g><g ctype="x-html-p" id="3"> </g><g ctype="x-html-p" id="4" class='cbinstructiontext'>Connect the matching boxes, by clicking to draw a line between them</g></source>
</trans-unit>

Likewise, in the below TU, the sentence "There must be something we can do." is not extracted and does not appear in the editor:

<trans-unit approved="no" id="cmpid570516dd025915e595303c8f_xlfid570516dd025915e595303c90" xml:space="preserve">
<source xml:lang="en"><g ctype="x-html-p" id="0">But it’s an emergency! There must be something we can do.</g><g ctype="x-html-p" id="1">I’ll look into it and I’ll let you know what I find out.</g></source>
</trans-unit>

And I've imported the XLF using these settings:

  

Any idea?

Thanks

Parents Reply
  • Hi Sorin,

    That's interesting.  Based on your example I created the file and tested:

    Failed in memoQ:

    It does work in DVX which is cool and perhaps you should prepare your files in there if you have it, would be faster than a search & replace with an editor if you have lots of them since you could do them all in one go.  Once I ran it through DVX and copied source to target then the translated file export opened fine in Studio.

    However,  if you want to use regex you could do something like this for example (back up your original files before you do this. I don't have your exact files!):

    Search for:

    <source(.*?)>(.*?)</source>

    Replace with:

    <source$1>$2</source><target$1>$2</target>

    I have also sent this over to development for their comment as I've been wrong before.

    Regards

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children