Skip to content

Commit

Permalink
修正语言文件错误
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Nov 9, 2023
1 parent 6ace6de commit 53974d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ private static void readLanguageFile(ZipFile zipFile, String namespace) throws I
Map<String, String> newLangData = Maps.newHashMap();

String defaultLangPath = String.format("assets/%s/lang/en_us.lang", namespace);
String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language);
String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language.getCode());
getLanguageMap(zipFile, newLangData, defaultLangPath);
getLanguageMap(zipFile, newLangData, currentLangPath);
removeOldLanguageKey(newLangData);
Expand All @@ -796,7 +796,7 @@ private static void readLanguageFile(Path rootPath, String namespace) throws IOE
Map<String, String> newLangData = Maps.newHashMap();

String defaultLangPath = String.format("assets/%s/lang/en_us.lang", namespace);
String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language);
String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language.getCode());
getLanguageMap(rootPath, newLangData, defaultLangPath);
getLanguageMap(rootPath, newLangData, currentLangPath);
removeOldLanguageKey(newLangData);
Expand Down

0 comments on commit 53974d8

Please sign in to comment.