diff --git a/lib/xlifffilters.jar b/lib/xlifffilters.jar index 14d35576..d5ec0d25 100644 Binary files a/lib/xlifffilters.jar and b/lib/xlifffilters.jar differ diff --git a/src/com/maxprograms/converters/Constants.java b/src/com/maxprograms/converters/Constants.java index bf88e621..688697c8 100644 --- a/src/com/maxprograms/converters/Constants.java +++ b/src/com/maxprograms/converters/Constants.java @@ -19,7 +19,7 @@ private Constants() { public static final String TOOLID = "OpenXLIFF"; public static final String TOOLNAME = "Open XLIFF Filters"; - public static final String VERSION = "1.3.1"; - public static final String BUILD = "20190519_1225"; + public static final String VERSION = "1.3.2"; + public static final String BUILD = "20190630_1138"; } diff --git a/src/com/maxprograms/converters/javaproperties/Properties2Xliff.java b/src/com/maxprograms/converters/javaproperties/Properties2Xliff.java index f4553780..e14780cb 100644 --- a/src/com/maxprograms/converters/javaproperties/Properties2Xliff.java +++ b/src/com/maxprograms/converters/javaproperties/Properties2Xliff.java @@ -182,17 +182,18 @@ private static void writeSegment() throws IOException { source = ""; } - private static String fixChars(String line) { - int start = line.indexOf("\\u"); + private static String fixChars(String string) { + String result = string; + int start = result.indexOf("\\u"); while (start != -1) { - if (line.substring(start + 2, start + 6).toLowerCase() + if (result.substring(start + 2, start + 6).toLowerCase() .matches("[\\dabcdef][\\dabcdef][\\dabcdef][\\dabcdef]")) { - line = line.substring(0, start) + toChar(line.substring(start + 2, start + 6)) - + line.substring(start + 6); + result = result.substring(0, start) + toChar(result.substring(start + 2, start + 6)) + + result.substring(start + 6); } - start = line.indexOf("\\u", start + 1); + start = result.indexOf("\\u", start + 1); } - return line; + return result; } private static String toChar(String string) { diff --git a/src/com/maxprograms/converters/rc/Rc2Xliff.java b/src/com/maxprograms/converters/rc/Rc2Xliff.java index 821f404f..00101ffc 100644 --- a/src/com/maxprograms/converters/rc/Rc2Xliff.java +++ b/src/com/maxprograms/converters/rc/Rc2Xliff.java @@ -43,7 +43,7 @@ private Rc2Xliff() { } public static Vector run(Hashtable params) { - Vector result = new Vector(); + Vector result = new Vector<>(); segId = 0; String inputFile = params.get("source"); String xliffFile = params.get("xliff");