From df7ccd00dc699ab33657c2d37868fef808c79241 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Sun, 26 May 2024 19:38:24 +0800 Subject: [PATCH] fix: add missing language --- src/Config.h | 2 +- src/Entry.cpp | 1 + src/Language.h | 10 +++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Config.h b/src/Config.h index b180332..e4f1158 100644 --- a/src/Config.h +++ b/src/Config.h @@ -17,6 +17,6 @@ struct Config { struct serverSideTranslation { bool Enabled = false; - std::string Language = "en_US"; + std::string Language = "zh_CN"; } ServerSideTranslation; }; \ No newline at end of file diff --git a/src/Entry.cpp b/src/Entry.cpp index 5a3ad78..62b76e3 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -54,6 +54,7 @@ void Entry::loadI18n() { mI18n->updateOrCreateLanguage("en_US", en_US); mI18n->updateOrCreateLanguage("zh_CN", zh_CN); mI18n->loadAllLanguages(); + mI18n->setDefaultLanguage("zh_CN"); } void Entry::loadResourcePack() { diff --git a/src/Language.h b/src/Language.h index 3019b14..687ccfb 100644 --- a/src/Language.h +++ b/src/Language.h @@ -104,7 +104,11 @@ death.attack.dryout.player=%1$s died of dehydration while trying to escape from death.attack.outsideBorder=%1$s left this world death.attack.outsideBorder.player=%1$s left this world while battling %2$s death.fell.accident.generic=%1$s fell from a high place -death.fell.assist=%1$s was destined to fall to their death because of %2$s +death.fell.assist=%1$s was doomed to fall by %2$s +death.fell.assist.item=%1$s was doomed to fall by %2$s using %3$s +death.fell.finish=%1$s fell too far and was finished by %2$s +death.fell.finish.item=%1$s fell too far and was finished by %2$s using %3$s +death.fell.killer=%1$s was doomed to fall entity.area_effect_cloud.name=Area Effect Cloud entity.armor_stand.name=Armor Stand entity.arrow.name=Arrow @@ -486,6 +490,10 @@ entity.warden.name=监守者 entity.allay.name=悦灵 entity.camel.name=骆驼 entity.chest_raft.name=带宝箱的的竹筏 +entity.bogged.name=沼骸 +entity.wind_charge_projectile.name=风弹 +entity.breeze_wind_charge_projectile.name=风弹 +entity.breeze.name=旋风人 multiplayer.player.joined=%s加入了游戏 multiplayer.player.left=%s退出了游戏 )"; \ No newline at end of file