diff --git a/lib/openxliff.jar b/lib/openxliff.jar index 81427bb..2f3d1bb 100644 Binary files a/lib/openxliff.jar and b/lib/openxliff.jar differ diff --git a/src/com/maxprograms/converters/Constants.java b/src/com/maxprograms/converters/Constants.java index 33c2875..d081357 100644 --- a/src/com/maxprograms/converters/Constants.java +++ b/src/com/maxprograms/converters/Constants.java @@ -20,7 +20,7 @@ private Constants() { public static final String TOOLID = "OpenXLIFF"; public static final String TOOLNAME = "OpenXLIFF Filters"; public static final String VERSION = "2.9.0"; - public static final String BUILD = "20221021_0853"; + public static final String BUILD = "20221022_0824"; public static final String SUCCESS = "0"; public static final String ERROR = "1"; diff --git a/src/com/maxprograms/converters/Join.java b/src/com/maxprograms/converters/Join.java index ff0da09..18a33c5 100644 --- a/src/com/maxprograms/converters/Join.java +++ b/src/com/maxprograms/converters/Join.java @@ -168,6 +168,7 @@ public static void join(List xliffs, String out) writeString(output, ">\n"); Iterator it = xliffs.iterator(); + int count = 0; while (it.hasNext()) { String xliff = it.next(); Document doc = builder.build(xliff); @@ -178,6 +179,9 @@ public static void join(List xliffs, String out) Element file = files1.get(i); String original = file.getAttributeValue("original"); file.setAttribute("original", Utils.makeRelativePath(treeRoot, original)); + if (version.startsWith("2")) { + file.setAttribute("id", "" + count++); + } Indenter.indent(file, 2, 2); writeString(output, " "); file.writeBytes(output, StandardCharsets.UTF_8);