FullscreenUI: Use plural formatting for binding timeout

This commit is contained in:
Stenzek committed 2026-10-31 15:20:30 +10:00
1 parent 1de9df3d5c
commit 4d2f64d42e
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -552,8 +552,11 @@ void FullscreenUI::InputBindingDialog::Draw()
ImGui::Dummy(LayoutScale(0.0f, 10.0f));
ImGui::PushFont(nullptr, UIStyle.MediumLargeFontSize, -1.0f);
ImGui::TextAligned(0.5f, width,
SmallString::from_format(FSUI_FSTR("Timing out in {:.0f} seconds..."), m_time_remaining));
ImGui::TextAligned(
0.5f, width, "%s",
TinyString::from_format(FSUI_FSTR("Timing out in {}..."),
Host::FormatTimespan(std::max(static_cast<int>(std::ceil(m_time_remaining)), 1), true))
.c_str());
ImGui::PopFont();
EndRender();
+1 -1
View File
@@ -875,7 +875,7 @@ TRANSLATE_NOOP("FullscreenUI", "Theme");
TRANSLATE_NOOP("FullscreenUI", "This game was not scanned by DuckStation. Some functionality is not available.");
TRANSLATE_NOOP("FullscreenUI", "Threaded Rendering");
TRANSLATE_NOOP("FullscreenUI", "Time Played: ");
TRANSLATE_NOOP("FullscreenUI", "Timing out in {:.0f} seconds...");
TRANSLATE_NOOP("FullscreenUI", "Timing out in {}...");
TRANSLATE_NOOP("FullscreenUI", "Title");
TRANSLATE_NOOP("FullscreenUI", "Title (*)");
TRANSLATE_NOOP("FullscreenUI", "Title:");