Skip to content

[FEATURE] Add support for XLIFF 2.0 format - #92

Open
bmgrieger wants to merge 2 commits into
rrrapha:mainfrom
bmgrieger:main
Open

[FEATURE] Add support for XLIFF 2.0 format#92
bmgrieger wants to merge 2 commits into
rrrapha:mainfrom
bmgrieger:main

Conversation

@bmgrieger

Copy link
Copy Markdown

TYPO3 14 encourages to use XLIFF 2.0 for new projects. This PR adds support for the new format while still preserving support for XLIFF 1.2

@rrrapha

rrrapha commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Hi @bmgrieger
Thanks a lot fot this! It seems to work fine at first glance.

Here are some questions:

Would you mind making version 2.0 the default? I would prefer something like this for this option:

# cat=Basic; type=options[2.0 (default)=default,1.2=1.2]; label=XLIFF version for saving files (both versions are read)
xliffVersion = default

Similarly, I would use the following names for the template files:
For 2.0: Empty.xlf and Xliff.html
For 1.2: Empty1.2.xlf and Xliff1.2.html

Multiple segment tags per unit are not supported at the moment. Is this a problem or does Typo3 not support this?

@bmgrieger

Copy link
Copy Markdown
Author

@rrrapha I switched to XLIFF 2.0 as default. I can't answer your question regarding multiple segments. I just ignored it for now for simplicity reasons and used the example files from TYPO3 documentation for orientation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants