Task #31035
closed
English XLIFF files should not contain target element
Added by Xavier Perseguers about 13 years ago.
Updated about 7 years ago.
Description
Currently the XLIFF files provided with the Core are "en" -> "en" translation files,
and this is a wrong design.
English localization files should only contain the source attribute to become templates for the different localizations.
The command use to process all the file, is xmlstarlet:
xmlstarlet ed -u "/xliff/file[@date]/@date" -v $(date -u +"%Y-%m-%dT%H:%M:%SZ") file.xlf | \
xmlstarlet ed -d "/xliff/file/body/trans-unit/target" | \
xmlstarlet ed -d "/xliff/file[@target-language]/@target-language" | \
xmlstarlet ed -d "/xliff/file/body/trans-unit[@approved]/@approved" | \
xmlstarlet ed -u "/xliff/file[@source-language]/@source-language" -v en |
xmlindent -t
- Subject changed from Use English XLIFF files as templates to English XLIFF files should not contain target element
- Status changed from Accepted to Under Review
Patch set 3 of change I84f4534f5ed595868c88f05816a73464a76f3f25 has been pushed to the review server.
It is available at http://review.typo3.org/5916
Patch set 4 of change I84f4534f5ed595868c88f05816a73464a76f3f25 has been pushed to the review server.
It is available at http://review.typo3.org/5916
Patch set 5 of change I84f4534f5ed595868c88f05816a73464a76f3f25 has been pushed to the review server.
It is available at http://review.typo3.org/5916
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF