Added a menu title font size adjustment for the Japanese translations

This commit is contained in:
Leon Styhre 2024-07-25 13:13:00 +02:00
parent f48689a427
commit 0d41632352

View file

@ -51,7 +51,7 @@ namespace Utils
// would be the logical thing to do. // would be the logical thing to do.
std::string lookup; std::string lookup;
lookup.append(msgctxt).append("\004").append(msgid); 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()) if (translation == lookup.c_str())
return msgid; return msgid;
else else
@ -65,7 +65,7 @@ namespace Utils
{ {
std::string lookup; std::string lookup;
lookup.append(msgctxt).append("\004").append(msgid1); 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()) if (translation == lookup.c_str())
return msgid1; return msgid1;
else else
@ -188,6 +188,8 @@ namespace Utils
sMenuTitleScaleFactor = 0.90f; sMenuTitleScaleFactor = 0.90f;
else if (localePair.first == "zh") else if (localePair.first == "zh")
sMenuTitleScaleFactor = 0.94f; sMenuTitleScaleFactor = 0.94f;
else if (localePair.first == "ja")
sMenuTitleScaleFactor = 0.94f;
std::string localePath; std::string localePath;
localePath.append("/") localePath.append("/")