Qt: Fix OSD messages not rendering in Japanese translation

This commit is contained in:
Connor McLaughlin 2020-12-17 12:02:19 +10:00
parent ea996a0305
commit c1f802c397
2 changed files with 3 additions and 3 deletions

View File

@ -1414,7 +1414,7 @@ static bool AddImGuiFont(const std::string& language, float size, float framebuf
std::string path; std::string path;
const ImWchar* range = nullptr; const ImWchar* range = nullptr;
#ifdef WIN32 #ifdef WIN32
if (language == "jp") if (language == "ja")
{ {
path = GetFontPath("msgothic.ttc"); path = GetFontPath("msgothic.ttc");
range = ImGui::GetIO().Fonts->GetGlyphRangesJapanese(); range = ImGui::GetIO().Fonts->GetGlyphRangesJapanese();

View File

@ -4144,7 +4144,7 @@ This will download approximately 4 megabytes over your current internet connecti
</message> </message>
<message> <message>
<source>Loading state from &apos;%s&apos;...</source> <source>Loading state from &apos;%s&apos;...</source>
<translation>&apos;s&apos;...</translation> <translation>&apos;%s&apos;...</translation>
</message> </message>
<message> <message>
<source>Saved %u cheats to &apos;%s&apos;.</source> <source>Saved %u cheats to &apos;%s&apos;.</source>
@ -4619,7 +4619,7 @@ The saves will not be recoverable.</source>
</message> </message>
<message> <message>
<source>Failed to open CD image from save state: &apos;%s&apos;.</source> <source>Failed to open CD image from save state: &apos;%s&apos;.</source>
<translation>CDイメージを開くことができませんでした: &apos;s&apos;</translation> <translation>CDイメージを開くことができませんでした: &apos;%s&apos;</translation>
</message> </message>
<message> <message>
<source>Changing current media from playlist, replacing current media.</source> <source>Changing current media from playlist, replacing current media.</source>