To convert a xliff file to ts, you can use the lconvert
utility with a command line like this:
lconvert -o converted.ts -i original.xlf
Here is the output of lconvert -help
:
Usage:
lconvert [options] [...]
lconvert is part of Qt's Linguist tool chain. It can be used as a
stand-alone tool to convert and filter translation data files. The
following file formats are supported:
qm - Compiled Qt translations
pot - GNU Gettext localization template files
ts11 - Qt translation sources (format 1.1)
ts20 - Qt translation sources (format 2.0)
qph - Qt Linguist 'Phrase Book'
ts - Qt translation sources (latest format)
po - GNU Gettext localization files
xlf - XLIFF localization files
If multiple input files are specified, they are merged with
translations from later files taking precedence.
Options:
-h
--help Display this information and exit.
-i <infile>
--input-file <infile>
Specify input file. Use if <infile> might start with a dash.
This option can be used several times to merge inputs.
May be '-' (standard input) for use in a pipe.
-o <outfile>
--output-file <outfile>
More info here about this Qt tool