Skip to content

Commit

Permalink
Updated for release 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Jun 30, 2019
1 parent 0a8d685 commit 5f9ab98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Binary file modified lib/xlifffilters.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions src/com/maxprograms/converters/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";

}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/com/maxprograms/converters/rc/Rc2Xliff.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private Rc2Xliff() {
}

public static Vector<String> run(Hashtable<String, String> params) {
Vector<String> result = new Vector<String>();
Vector<String> result = new Vector<>();
segId = 0;
String inputFile = params.get("source");
String xliffFile = params.get("xliff");
Expand Down

0 comments on commit 5f9ab98

Please sign in to comment.