Add some text to language file

This commit is contained in:
方块君 2022-05-04 11:37:36 +08:00 committed by Melledy
parent b8f5299995
commit e297a29adb
2 changed files with 5 additions and 3 deletions

View File

@ -36,6 +36,8 @@ public final class Language {
public String Client_login = "[Dispatch] Client {ip} logged in as {uid}";
public String Username_not_found = "Username not found.";
public String Username_not_found_create_failed = "Username not found, create failed.";
public String Create_resources_folder = "Creating resources folder...";
public String Place_copy = "Place a copy of 'BinOutput' and 'ExcelBinOutput' in the resources folder.";
// Command
public String No_command_specified = "No command specified.";

View File

@ -176,15 +176,15 @@ public final class Utils {
// Check for resources folder.
if(!fileExists(resourcesFolder)) {
logger.info("Creating resources folder...");
logger.info("Place a copy of 'BinOutput' and 'ExcelBinOutput' in the resources folder.");
logger.info(Grasscutter.getLanguage().Create_resources_folder);
logger.info(Grasscutter.getLanguage().Place_copy);
createFolder(resourcesFolder); exit = true;
}
// Check for BinOutput + ExcelBinOuput.
if(!fileExists(resourcesFolder + "BinOutput") ||
!fileExists(resourcesFolder + "ExcelBinOutput")) {
logger.info("Place a copy of 'BinOutput' and 'ExcelBinOutput' in the resources folder.");
logger.info(Grasscutter.getLanguage().Place_copy);
exit = true;
}