GS2017 TMX export through API returns 0 TUs

Hi,

I try to export TUs from a GS2017 TM like this:

var exp = new TranslationMemoryExporter(tmld);
exp.BatchExported += ((sender, e) =>
{
OnCurrentTuChanged(e.TotalProcessed);
});

exp.Export(tmxPath, true);

But the result TMX file contains 0 TUs, though, the TM language direction contains ~ 6k TUs.

The same code with a GS2015 server works (Same Studio 2017 instance). If I export the TM in the Studio GUI, then I receive TUs in the TMX.

 

Probably related:

var ri = new RegularIterator( );
ri.MaxScan = 1000;
var tus = tmld.GetTranslationUnits(ref ri);

=> after this call, ri.ScannedTranslationUnits equals to 0, though, tus contains items.

(Repeating this on GS2015 results ScannedTranslationUnits=1000)

Do you have an idea how to fix / workaround this problem?

(GS version: 14.0.5094.4)

Thanks,

Tamas

 

 

Parents
  • Hi,

    We have a small .Net library which facilitates the interaction with GS 2017 API. You can find the library on Nuget the name is: GroupShareKit. 

    The library is open source, you can find the source code here .  In the solution you can see a project with unit test which shows examples on how you can consume the library. 

     

    Also we have a demo project which consumes the library. The project is open source you can find it here.

     

    The method which  Exports the TUs is:  GetTranslationUnitForTm(...) . You can see a example in unit test solution -> TranslationMemoryClientTest.cs -> GetTusForTm(string tmId) method.

     

     

    I hope this will help you. If you have any question do not hesitate to ask.

     

    Kind regards,

    Andrea Ghisa.

Reply
  • Hi,

    We have a small .Net library which facilitates the interaction with GS 2017 API. You can find the library on Nuget the name is: GroupShareKit. 

    The library is open source, you can find the source code here .  In the solution you can see a project with unit test which shows examples on how you can consume the library. 

     

    Also we have a demo project which consumes the library. The project is open source you can find it here.

     

    The method which  Exports the TUs is:  GetTranslationUnitForTm(...) . You can see a example in unit test solution -> TranslationMemoryClientTest.cs -> GetTusForTm(string tmId) method.

     

     

    I hope this will help you. If you have any question do not hesitate to ask.

     

    Kind regards,

    Andrea Ghisa.

Children