There seems to be one project, translate-toolkit - which basically is a set of Python command line utilitites - that does parts of the job.
Merging xliff files works like this:
pretranslate -t translation.xml source.xml translation-merged.xml
though I haven't tested it how well it actually copes with removed / changed strings. At least existing trans-unit
's in translation.xml
have to carry an approved="yes"
attribute so that these particular units are not marked as "needs-translation" in translation-merged.xml
.
Theoretically, translate-toolkit also comes with some PHP support, but I stumbled upon the same problems as mentioned here, i.e. didn't got it working.