mirror of https://github.com/PCSX2/pcsx2.git
Achievements: Tag a few missing strings for translation
This commit is contained in:
parent
9d07ee43eb
commit
56b706f25e
|
@ -553,7 +553,10 @@ void Achievements::UpdateSettings(const Pcsx2Config::AchievementsOptions& old_co
|
||||||
else if (!s_challenge_mode && EmuConfig.Achievements.ChallengeMode)
|
else if (!s_challenge_mode && EmuConfig.Achievements.ChallengeMode)
|
||||||
{
|
{
|
||||||
if (HasActiveGame())
|
if (HasActiveGame())
|
||||||
ImGuiFullscreen::ShowToast(std::string(), "Hardcore mode will be enabled on system reset.", 10.0f);
|
{
|
||||||
|
ImGuiFullscreen::ShowToast(std::string(),
|
||||||
|
TRANSLATE_STR("Achievements", "Hardcore mode will be enabled on system reset."), 10.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -586,10 +589,10 @@ bool Achievements::ConfirmChallengeModeDisable(const char* trigger)
|
||||||
return (RA_WarnDisableHardcore(trigger) != 0);
|
return (RA_WarnDisableHardcore(trigger) != 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const bool confirmed =
|
const bool confirmed = Host::ConfirmMessage("Confirm Hardcore Mode",
|
||||||
Host::ConfirmMessage("Confirm Hardcore Mode", fmt::format("{0} cannot be performed while hardcore mode is active. Do you want to "
|
fmt::format(TRANSLATE_FS("Achievements", "{0} cannot be performed while hardcore mode is active. Do you want "
|
||||||
"disable hardcore mode? {0} will be cancelled if you select No.",
|
"to disable hardcore mode? {0} will be cancelled if you select No."),
|
||||||
trigger));
|
trigger));
|
||||||
if (!confirmed)
|
if (!confirmed)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -639,7 +642,12 @@ void Achievements::SetChallengeMode(bool enabled)
|
||||||
s_challenge_mode = enabled;
|
s_challenge_mode = enabled;
|
||||||
|
|
||||||
if (HasActiveGame())
|
if (HasActiveGame())
|
||||||
ImGuiFullscreen::ShowToast(std::string(), enabled ? TRANSLATE("Achievements", "Hardcore mode is now enabled.") : TRANSLATE("Achievements", "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())
|
if (HasActiveGame() && !IsTestModeActive())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue