Interface TranslationXLIFFService


@ConsumerType public interface TranslationXLIFFService
This service enables the translation platform to convert translation object XML to XLIFF and vice-versa
  • Method Details

    • convertXMLDocumentToXLIFFString

      String convertXMLDocumentToXLIFFString(Document xmlDocument, String id, String sourceLanguage, String xliffVersion) throws TranslationXLIFFServiceException
      Converts an XML document, corresponding to a translation object, to an equivalent XLIFF string
      Parameters:
      xmlDocument - XML document containing the content to be translated
      id - Unique id corresponding to the translation object from which the xmlDocument was created
      sourceLanguage - Source language of the translatable content inside xmlDocument
      xliffVersion - Version of the output XLIFF
      Returns:
      String containing the complete XLIFF
      Throws:
      TranslationXLIFFServiceException - Exception
    • convertXLIFFStreamToXMLDocument

      Document convertXLIFFStreamToXMLDocument(InputStream xliffInputStream, String sourceLanguage, String destinationLanguage) throws TranslationXLIFFServiceException
      Converts an XLIFF InputStream to an equivalent XML
      Parameters:
      xliffInputStream - Input XLIFF stream
      sourceLanguage - Source language
      destinationLanguage - Target language
      Returns:
      XML Document
      Throws:
      TranslationXLIFFServiceException - Exception