Service to import translated content

I am writing a piece of code that will take a file and write it back to the content manager.  However, in looking at the documentation, I can see a way to do that through the CLI.  Is there an equivalent service to accomplish the same thing or is CLI the only way?  My client is currently on Tridion Docs 13 SP2 but will be upgrading to 14 SP1 in the next couple of weeks.

Saul

Parents Reply Children
  • Dave:

    This is not a one-off.  We have two clients that have content that needs to be translated. The clients are willing to put the files needed for translation on to a shared folder or FTP server.  However, they want the translated files to be imported automatically back into the content manager.  They don't want to manually import.   My team is writing some Mediator code (most like in Java, but can be in C#)  that will monitor the shared folder and look for any new content.  New content will then be retrieved and sent to a workflow engine.  The workflow engine will then return a translated version of that file.  

    Is it possible to retrieve the source contents using the API?  In my code, I am calling tJobClient.GetTranslationJob(..).  From the response, I can see the target locales in the workflow list and the content IDs in the container list along with the metadata.  Is it possible to get the source content from the container list GUIDs?  I see in PublicationOutput2.5 GetNextDataObjectChunkBy IshLngRef.  Is that the right place to grab the source content?

    What I am looking for is the ability of the mediator to then import the file back into the content manager.  Is there any sample code or documentation that explains how to import content through code.  Our client has specified that they do not want us to use the CLI.

    I hope that helps.

    Saul

  • Hi Saul - To be frank, I think your questions are a bit much for a forum thread. Some basic knowledge on the content object types, publication outputs, levels, baseline within the application is required to even grasp the API. Writing down the answers would come down to doing the implementation for you... May I hint you to work with SDL as PS/Partner.