rmraya / OpenXLIFF

An open source set of Java filters for creating, merging and validating XLIFF 1.2, 2.0 and 2.1 files.
https://www.maxprograms.com/products/openxliff.html
Eclipse Public License 1.0
65 stars 17 forks source link

Renaming xliff files results in merged files without suffix #33

Closed MartinAlacam closed 2 months ago

MartinAlacam commented 2 months ago

martin@smrad ~/test> ls test_en.docx test_en.docx.skl test_en.docx.xlf martin@smrad ~/test> mv test_en.docx.xlf test_BAK.xlf martin@smrad ~/test> ~/Applications/OpenXLIFF/merge.sh -xliff test_BAK.xlf martin@smrad ~/test> ls test_BAK test_BAK.xlf test_en.docx test_en.docx.skl

test_BAK doesn't have the source file's suffix.

But I also think the merged file's name should always follow the source file name and not the XLIFF, i.e, test_en.docx should become test_en_tr.docx no matter what the xlf is named.

rmraya commented 2 months ago

Use -target option.

MartinAlacam commented 2 months ago

OK got it. Still, I think the suffix should be correct in all cases.