Qt: Fix translation of %n hours

This commit is contained in:
Stenzek
2024-05-17 13:07:23 +10:00
parent e444eb713a
commit a59a42f35b
3 changed files with 15 additions and 2 deletions

View File

@ -1065,7 +1065,7 @@ TinyString GameList::FormatTimespan(std::time_t timespan, bool long_format)
else
{
if (hours > 0)
ret.format(TRANSLATE_FS("GameList", "{} hours"), hours);
ret.assign(TRANSLATE_PLURAL_STR("GameList", "%n hours", "", hours));
else
ret.assign(TRANSLATE_PLURAL_STR("GameList", "%n minutes", "", minutes));
}