jason-fox / fox.jason.translate.xliff

DITA-OT plug-in to create, auto-translate and re-merge XLIFF files, generating translated documentation in a targeted foreign language.
https://jason-fox.github.io/dita-ot-plugins/translate.xliff
Apache License 2.0
10 stars 4 forks source link

translate.xlf does not contain contents since DITA-OT 4.1 #7

Closed pflotscher closed 8 months ago

pflotscher commented 8 months ago

It looks like the plugin isn't working anymore since DITA-OT 4.1. With DITA-OT 4.0.2 the result looks as expected.
The skl files are created correctly but the translate.xlf file contains nothing more than

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0"
        xmlns:fs="urn:oasis:names:tc:xliff:fs:2.0"
        srcLang="en"
        trgLang="de"
        version="2.0"/>

For now thats all I found out. I'll update on this when I know more about it.

jason-fox commented 8 months ago

This is due to changing merge functionality . Could you see if the XSLT update 5a4c6af fixes it.

dita uninstall fox.jason.translate.xliff
dita install https://github.com/jason-fox/fox.jason.translate.xliff/archive/master.zip

It looks like the id attributes in XLIFF 1.2 have changed with the fix, but if this works I'll just amend the test expectations.

pflotscher commented 8 months ago

It works again. I was able to create a valid translate.xlf and a valid translated document.
Thank you so much!!
May I also ask you to extend ReinsertDoctypeTask.java with the doctypes glossgroup and troubleshooting ?

"PUBLIC \"-//OASIS//DTD DITA Glossary Group//EN\" \"glossgroup.dtd\""
"PUBLIC \"-//OASIS//DTD DITA Troubleshooting//EN\" \"troubleshooting.dtd\""

Currently it throws a Unknown Doctype message

jason-fox commented 8 months ago

Added the doctypes - please pull latest.

pflotscher commented 8 months ago

Also works, thank you :)