修复颠倒英语中括号显示错误的问题 (#4631)

This commit is contained in:
Glavo
2025-10-09 15:19:12 +08:00
committed by GitHub
parent 35e63fc8c8
commit 08f6f973c0
2 changed files with 9 additions and 5 deletions

View File

@@ -69,3 +69,9 @@ _‾
//
\\
',
()
)(
[]
][
{}
}{

View File

@@ -23,6 +23,7 @@ import org.gradle.api.file.RegularFileProperty;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.OutputFile;
import org.gradle.api.tasks.TaskAction;
import org.jackhuang.hmcl.gradle.utils.PropertiesUtils;
import java.io.IOException;
import java.io.InputStream;
@@ -53,10 +54,7 @@ public abstract class UpsideDownTranslate extends DefaultTask {
Path inputFile = getInputFile().get().getAsFile().toPath();
Path outputFile = getOutputFile().get().getAsFile().toPath();
Properties english = new Properties();
try (var reader = Files.newBufferedReader(inputFile)) {
english.load(reader);
}
Properties english = PropertiesUtils.load(inputFile);
Properties output = new Properties();
Translator translator = new Translator();