mirror of
https://github.com/System-End/Discord-MC-Chat.git
synced 2026-04-19 22:05:11 +00:00
multi_server_client也要language
This commit is contained in:
parent
e2469e1bdc
commit
cdcc61d291
2 changed files with 4 additions and 7 deletions
|
|
@ -47,13 +47,7 @@ public class I18nManager {
|
|||
* @return true if all files were loaded successfully, false otherwise.
|
||||
*/
|
||||
public static boolean load() {
|
||||
// For client-only mode, we don't need the full suite of message formatting files.
|
||||
if ("multi_server_client".equals(ModeManager.getMode())) {
|
||||
// For modes without a language config, default to "en_us" for internal messages.
|
||||
language = "en_us";
|
||||
} else {
|
||||
language = ConfigManager.getString("language");
|
||||
}
|
||||
language = ConfigManager.getString("language");
|
||||
|
||||
// Check if required resource files exist for the selected language
|
||||
if (!checkLanguageResources()) {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ mode: multi_server_client
|
|||
# https://dmcc.xujiayao.com/
|
||||
# ==================================================
|
||||
|
||||
# 语言设置
|
||||
language: en_us
|
||||
|
||||
# 多服务器功能
|
||||
multi_server:
|
||||
connection:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue