From 1cff63bc019556e510de3c34725f4c03c11c089d Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Wed, 26 Jul 2023 10:50:50 +0100 Subject: [PATCH] UI: Add some missing string translations --- pcsx2/Achievements.cpp | 2 +- pcsx2/SIO/Pad/PadDualshock2.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pcsx2/Achievements.cpp b/pcsx2/Achievements.cpp index b0715f5e1a..ce1a992acd 100644 --- a/pcsx2/Achievements.cpp +++ b/pcsx2/Achievements.cpp @@ -640,7 +640,7 @@ void Achievements::SetChallengeMode(bool enabled) s_challenge_mode = enabled; if (HasActiveGame()) - ImGuiFullscreen::ShowToast(std::string(), enabled ? "Hardcore mode is now enabled." : "Hardcore mode is now disabled.", 10.0f); + ImGuiFullscreen::ShowToast(std::string(), enabled ? TRANSLATE("Achievements", "Hardcore mode is now enabled.") : TRANSLATE("Achievements", "Hardcore mode is now disabled."), 10.0f); if (HasActiveGame() && !IsTestModeActive()) { diff --git a/pcsx2/SIO/Pad/PadDualshock2.cpp b/pcsx2/SIO/Pad/PadDualshock2.cpp index bc834570eb..7c8089aec4 100644 --- a/pcsx2/SIO/Pad/PadDualshock2.cpp +++ b/pcsx2/SIO/Pad/PadDualshock2.cpp @@ -655,10 +655,8 @@ void PadDualshock2::Set(u32 index, float value) const auto [port, slot] = sioConvertPadToPortAndSlot(unifiedSlot); Host::AddKeyedOSDMessage(fmt::format("PadAnalogButtonChange{}{}", port, slot), - fmt::format(TRANSLATE_FS("Pad", "Analog light is now {} for port {} / slot {}"), - (this->analogLight ? "On" : "Off"), - port + 1, - slot + 1), + this->analogLight ? fmt::format(TRANSLATE_FS("Pad", "Analog light is now on for port {} / slot {}"), port + 1, slot + 1) : + fmt::format(TRANSLATE_FS("Pad", "Analog light is now off for port {} / slot {}"), port + 1, slot + 1), Host::OSD_INFO_DURATION); } }