Importing sdlxliff

Hi, Im trying to expand a import tool we have so it also handles sdlxliff but Im having problems with something should be simple.

The SDK states that the TranslationMemoryImporter.FileTypeManager  must be set when importing bilingual documents, im trying to use:

importer.GetDefaultFileTypeManager() to set the importer.FileTypeManager (hoping it would grab all default filetypes and select the correct one based on the sdlxliff), but that throws "The context name passed to the GetContext method cannot be null or empty.".

Im thinking maybe GetDefaultFileTypeManager() does not do what I think (a description is missing in the docs) so I should maybe start implementing IFileTypeManager but before I continue with that Id like to know if im missing something obvious as this should just be setting the fieldtype I want to use.

Parents
  • Hi Daniel,

    Thank you for raising this as further research by a senior SDL architect has disclosed an actual bug in the API code where the mechanisms for plugins have changed, but the GetDefaultFileTypeManager() function was accidentally omitted.

    He has provided a workaround (Studio 2011 only) until SDL can fix this in a future release :

    - add: using Sdl.FileTypeSupport.Framework.Integration;

    - change: importer.FileTypeManager = importer.GetDefaultFileTypeManager()

    to: importer.FileTypeManager = new PocoFilterManager(true)

    Regards, Ian

    Ian Davies  |  Senior Product Manager | SDL | Language Technologies Division |  +44 7826843819

    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

Reply
  • Hi Daniel,

    Thank you for raising this as further research by a senior SDL architect has disclosed an actual bug in the API code where the mechanisms for plugins have changed, but the GetDefaultFileTypeManager() function was accidentally omitted.

    He has provided a workaround (Studio 2011 only) until SDL can fix this in a future release :

    - add: using Sdl.FileTypeSupport.Framework.Integration;

    - change: importer.FileTypeManager = importer.GetDefaultFileTypeManager()

    to: importer.FileTypeManager = new PocoFilterManager(true)

    Regards, Ian

    Ian Davies  |  Senior Product Manager | SDL | Language Technologies Division |  +44 7826843819

    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