From e297a29adbe26e931d254adc328cc9cb151b6b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E5=9D=97=E5=90=9B?= Date: Wed, 4 May 2022 11:37:36 +0800 Subject: [PATCH] Add some text to language file --- src/main/java/emu/grasscutter/Language.java | 2 ++ src/main/java/emu/grasscutter/utils/Utils.java | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/emu/grasscutter/Language.java b/src/main/java/emu/grasscutter/Language.java index 2ae9a30a9..6a3bd939a 100644 --- a/src/main/java/emu/grasscutter/Language.java +++ b/src/main/java/emu/grasscutter/Language.java @@ -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."; diff --git a/src/main/java/emu/grasscutter/utils/Utils.java b/src/main/java/emu/grasscutter/utils/Utils.java index e76556f1e..1b4a00b90 100644 --- a/src/main/java/emu/grasscutter/utils/Utils.java +++ b/src/main/java/emu/grasscutter/utils/Utils.java @@ -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; }