From 0d416323526949dce8ad144378b82811e762a2f4 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 25 Jul 2024 13:13:00 +0200 Subject: [PATCH] Added a menu title font size adjustment for the Japanese translations --- es-core/src/utils/LocalizationUtil.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/es-core/src/utils/LocalizationUtil.cpp b/es-core/src/utils/LocalizationUtil.cpp index a80061847..3e46643d1 100644 --- a/es-core/src/utils/LocalizationUtil.cpp +++ b/es-core/src/utils/LocalizationUtil.cpp @@ -51,7 +51,7 @@ namespace Utils // would be the logical thing to do. std::string lookup; lookup.append(msgctxt).append("\004").append(msgid); - const char* translation = gettext(lookup.c_str()); + const char* translation {gettext(lookup.c_str())}; if (translation == lookup.c_str()) return msgid; else @@ -65,7 +65,7 @@ namespace Utils { std::string lookup; lookup.append(msgctxt).append("\004").append(msgid1); - const char* translation = ngettext(lookup.c_str(), msgid2, n); + const char* translation {ngettext(lookup.c_str(), msgid2, n)}; if (translation == lookup.c_str()) return msgid1; else @@ -188,6 +188,8 @@ namespace Utils sMenuTitleScaleFactor = 0.90f; else if (localePair.first == "zh") sMenuTitleScaleFactor = 0.94f; + else if (localePair.first == "ja") + sMenuTitleScaleFactor = 0.94f; std::string localePath; localePath.append("/")