metadata missing after importing DGT tmx into sdltm

Hello everyone,

I'm writing here because of a problem with the import of DGT tmx (available here https://ec.europa.eu/jrc/en/language-technologies/dgt-translation-memory) into a sdltm. I can import segments but not fields related to them.

I would need the final sdltm to display the fields I can see in the TMX file which show the type of text the translation unit was taken from.

I have tried to perform the import using both "the imported data will be primarily used in mixed scenarios" and "the imported data will be primarily used with presegmented legacy SDL Trados ITD or TTX files" but the result was the same: no TMX field was imported into the sdltm.

Have you got any suggestion/idea on how to import translation units fields from tmx files into sdltm?

Davide

Parents Reply
  • How can I do the same thing via the API?

    the props in the original DGT .tmx are like:

    <prop type="Txt::Doc. No.">800580100</prop>

    and in my code I have:

    var tm = new FileBasedTranslationMemory(newTMpath);

    var docNo = new FieldDefinition();
    docNo.Name = "Doc. No.";
    docNo.ValueType = FieldValueType.SingleString;

    tm.FieldDefinitions.Add(docNo);

    tm.Save();

    Then I import the .tmx into a Trados TM, which I then export into .tmx:

    TMupdater tmupdater = new TMupdater();
    tmupdater.UpdateTMwithBilingualFile(newTMpath, tmxpath);

    var tmExporter = new TmExporter();
    tmExporter.Export(newTMpath);

    But it does not seem to preserve the original <prop type="Txt::Doc. No.">800580100</prop> attribute for the TUs of the final tmx. I also tried to modify the original .tmx and change the type attribute from "Txt::Doc. No." into "x-Doc. No.:SingleString", also without any success. Any help?

    emoji
Children
No Data