System: Work around lupdate bug causing hang

pull/3590/head
Stenzek 1 week ago
parent a49d0b665f
commit 8520e3f94d
No known key found for this signature in database

@ -1687,11 +1687,12 @@ bool System::CanPauseSystem(bool display_message)
if (display_message)
{
const float seconds = static_cast<float>(frames_until_pause_allowed) / System::GetVideoFrameRate();
const float time_until_pause_allowed = static_cast<float>(frames_until_pause_allowed) / System::GetVideoFrameRate();
const int seconds_until_pause_allowed = static_cast<int>(std::ceil(time_until_pause_allowed));
Host::AddIconOSDMessage("PauseCooldown", ICON_FA_CLOCK,
TRANSLATE_PLURAL_STR("Hotkeys", "You cannot pause until another %n second(s) have passed.",
"", static_cast<int>(std::ceil(seconds))),
std::max(seconds, Host::OSD_QUICK_DURATION));
TRANSLATE_PLURAL_STR("System", "You cannot pause until another %n second(s) have passed.",
"", seconds_until_pause_allowed),
std::max(time_until_pause_allowed, Host::OSD_QUICK_DURATION));
}
return false;

@ -16,7 +16,7 @@
<context>
<name>Achievements</name>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1360"/>
<location filename="../../core/achievements.cpp" line="1387"/>
<source>You have unlocked {} of %n achievements</source>
<comment>Achievement popup</comment>
<translation>
@ -25,7 +25,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1363"/>
<location filename="../../core/achievements.cpp" line="1390"/>
<source>and earned {} of %n points</source>
<comment>Achievement popup</comment>
<translation>
@ -34,7 +34,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1401"/>
<location filename="../../core/achievements.cpp" line="1428"/>
<source>%n achievements are not supported by DuckStation.</source>
<comment>Achievement popup</comment>
<translation>
@ -43,8 +43,8 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1476"/>
<location filename="../../core/achievements.cpp" line="1513"/>
<location filename="../../core/achievements.cpp" line="1503"/>
<location filename="../../core/achievements.cpp" line="1540"/>
<source>%n achievements</source>
<comment>Mastery popup</comment>
<translation>
@ -53,9 +53,9 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1478"/>
<location filename="../../core/achievements.cpp" line="1515"/>
<location filename="../../core/achievements.cpp" line="3083"/>
<location filename="../../core/achievements.cpp" line="1505"/>
<location filename="../../core/achievements.cpp" line="1542"/>
<location filename="../../core/achievements.cpp" line="3218"/>
<source>%n points</source>
<comment>Achievement points</comment>
<translation>
@ -64,7 +64,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2669"/>
<location filename="../../core/achievements.cpp" line="2670"/>
<source>%n unlocks have not been confirmed by the server.</source>
<comment>Pause Menu</comment>
<translation>
@ -73,7 +73,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2844"/>
<location filename="../../core/achievements.cpp" line="2978"/>
<source>You have unlocked all achievements and earned %n points!</source>
<comment>Point count</comment>
<translation>
@ -82,7 +82,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2870"/>
<location filename="../../core/achievements.cpp" line="3005"/>
<source>%n achievements are not supported by DuckStation and cannot be unlocked.</source>
<comment>Unsupported achievement count</comment>
<translation>
@ -91,7 +91,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="3331"/>
<location filename="../../core/achievements.cpp" line="3466"/>
<source>This game has %n leaderboards.</source>
<comment>Leaderboard count</comment>
<translation>
@ -103,7 +103,7 @@
<context>
<name>Cheats</name>
<message numerus="yes">
<location filename="../../core/cheats.cpp" line="1020"/>
<location filename="../../core/cheats.cpp" line="1098"/>
<source>%n game patches are active.</source>
<comment>OSD Message</comment>
<translation>
@ -112,7 +112,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/cheats.cpp" line="1027"/>
<location filename="../../core/cheats.cpp" line="1105"/>
<source>%n cheats are enabled. This may crash games.</source>
<comment>OSD Message</comment>
<translation>
@ -121,7 +121,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/cheats.cpp" line="1054"/>
<location filename="../../core/cheats.cpp" line="1133"/>
<source>%n cheats</source>
<comment>Cheats blocked by hardcore mode</comment>
<translation>
@ -130,7 +130,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/cheats.cpp" line="1056"/>
<location filename="../../core/cheats.cpp" line="1135"/>
<source>%n patches</source>
<comment>Patches blocked by hardcore mode</comment>
<translation>
@ -142,7 +142,7 @@
<context>
<name>EmulationSettingsWidget</name>
<message numerus="yes">
<location filename="../emulationsettingswidget.cpp" line="255"/>
<location filename="../emulationsettingswidget.cpp" line="261"/>
<source>Rewind for %n frame(s), lasting %1 second(s) will require up to %2MB of RAM and %3MB of VRAM.</source>
<translation>
<numerusform>Rewind for %n frame, lasting %1 second(s) will require up to %2MB of RAM and %3MB of VRAM.</numerusform>
@ -174,7 +174,7 @@
<context>
<name>GPU_HW</name>
<message numerus="yes">
<location filename="../../core/gpu_hw_texture_cache.cpp" line="3706"/>
<location filename="../../core/gpu_hw_texture_cache.cpp" line="3711"/>
<source>%n replacement textures found.</source>
<comment>Replacement texture count</comment>
<translation>
@ -186,8 +186,7 @@
<context>
<name>GameList</name>
<message numerus="yes">
<location filename="../gamelistwidget.cpp" line="1699"/>
<location filename="../../core/game_list.cpp" line="1609"/>
<location filename="../../core/game_list.cpp" line="1639"/>
<source>%n seconds</source>
<translation>
<numerusform>%n second</numerusform>
@ -195,8 +194,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../gamelistwidget.cpp" line="1701"/>
<location filename="../../core/game_list.cpp" line="1605"/>
<location filename="../../core/game_list.cpp" line="1635"/>
<source>%n hours</source>
<translation>
<numerusform>%n hour</numerusform>
@ -204,8 +202,7 @@
</translation>
</message>
<message numerus="yes">
<location filename="../gamelistwidget.cpp" line="1700"/>
<location filename="../../core/game_list.cpp" line="1607"/>
<location filename="../../core/game_list.cpp" line="1637"/>
<source>%n minutes</source>
<translation>
<numerusform>%n minute</numerusform>
@ -227,7 +224,7 @@
<context>
<name>MemoryCardEditorWindow</name>
<message numerus="yes">
<location filename="../memorycardeditorwindow.cpp" line="318"/>
<location filename="../memorycardeditorwindow.cpp" line="471"/>
<source>%n block(s) free%1</source>
<translation>
<numerusform>%n block free%1</numerusform>
@ -235,4 +232,15 @@
</translation>
</message>
</context>
<context>
<name>System</name>
<message numerus="yes">
<location filename="../../core/system.cpp" line="1693"/>
<source>You cannot pause until another %n second(s) have passed.</source>
<translation>
<numerusform>You cannot pause until another %n second has passed.</numerusform>
<numerusform>You cannot pause until another %n seconds have passed.</numerusform>
</translation>
</message>
</context>
</TS>

Loading…
Cancel
Save