Upload XLIFF

trans_pdf.upload_xliff2( xlf_text=None, xlf_filename=None )

Upload translated XLIFF. The translation does not need to be 100% complete. The ID of the target PDF is embedded within the XLIFF so this command may be executed at any time once logged-in i.e. you don't need to upload a PDF in order to set the notion of a 'current pdf' before using this.

xlf_text

A string containing all of the XLIFF to be uploaded. If used, the xlf_filename parameter must be None.

xlf_filename

The name of the file containing the XLIFF to be uploaded. If used, the xlf_text parameter must be None.

Returns

Nothing. Raises UploadFailed exception.