From 24a853e31a911389e4963728a7ca1761d751339f Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 6 Jun 2023 11:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/config/localization/localization_global_const.lua | 1 + lua/app/config/strings/cn/global.lua | 1 + lua/app/ui/main_city/component/chapter_comp.lua | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/app/config/localization/localization_global_const.lua b/lua/app/config/localization/localization_global_const.lua index 9ed00191..f46b3d28 100644 --- a/lua/app/config/localization/localization_global_const.lua +++ b/lua/app/config/localization/localization_global_const.lua @@ -215,6 +215,7 @@ local LocalizationGlobalConst = BIND_TIPS_DESC = "BIND_TIPS_DESC", GET_SEVER_ERROR = "GET_SEVER_ERROR", PAY_FAILED_DESC_1 = "PAY_FAILED_DESC_1", + CHAPTER_DESC_2 = "CHAPTER_DESC_2", } return LocalizationGlobalConst \ No newline at end of file diff --git a/lua/app/config/strings/cn/global.lua b/lua/app/config/strings/cn/global.lua index 6b63695b..5772a4af 100644 --- a/lua/app/config/strings/cn/global.lua +++ b/lua/app/config/strings/cn/global.lua @@ -215,6 +215,7 @@ local localization_global = ["BIND_TIPS_DESC"] = "为了您的帐户安全,请绑定账号", ["GET_SEVER_ERROR"] = "请求服务器失败,请重试", ["PAY_FAILED_DESC_1"] = "订单异常,请联系客服处理", + ["CHAPTER_DESC_2"] = "神秘宝箱{0}/{1}", } return localization_global \ No newline at end of file diff --git a/lua/app/ui/main_city/component/chapter_comp.lua b/lua/app/ui/main_city/component/chapter_comp.lua index c8616269..833d1b68 100644 --- a/lua/app/ui/main_city/component/chapter_comp.lua +++ b/lua/app/ui/main_city/component/chapter_comp.lua @@ -103,7 +103,8 @@ function ChapterComp:refreshChapter(force) mysteryBoxIcon:setVisible(mysteryBoxCount > 0) if mysteryBoxCount > 0 then local gotCount = DataManager.ChapterData:getChapterMysteryBoxGotCount(chapterId) - self.uiMap["chapter.img.mystery_box_icon.desc"]:setText(gotCount .. "/" .. mysteryBoxCount) + local desc = I18N:getGlobalText(I18N.GlobalConst.CHAPTER_DESC_2, gotCount, mysteryBoxCount) + self.uiMap["chapter.img.mystery_box_icon.desc"]:setText(desc) end local rewardChapterId = DataManager.ChapterData:getIsHaveRewardsMinId()