Fixup plurality in QtHostInterface::OnAchievementsRefreshed

This commit is contained in:
Silent 2021-03-07 22:12:19 +01:00
parent 4e2ee86c1a
commit 2280fc9806
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
2 changed files with 12 additions and 2 deletions

View File

@ -1375,13 +1375,13 @@ void QtHostInterface::OnAchievementsRefreshed()
"Game Title: %2\n"
"Game Developer: %3\n"
"Game Publisher: %4\n"
"Achievements: %5 (%6 points)\n\n")
"Achievements: %5 (%6)\n\n")
.arg(Cheevos::GetGameID())
.arg(QString::fromStdString(Cheevos::GetGameTitle()))
.arg(QString::fromStdString(Cheevos::GetGameDeveloper()))
.arg(QString::fromStdString(Cheevos::GetGamePublisher()))
.arg(Cheevos::GetAchievementCount())
.arg(Cheevos::GetMaximumPointsForGame());
.arg(tr("%n points", "", Cheevos::GetMaximumPointsForGame()));
const std::string& rich_presence_string = Cheevos::GetRichPresenceString();
if (!rich_presence_string.empty())

View File

@ -41,4 +41,14 @@
</translation>
</message>
</context>
<context>
<name>QtHostInterface</name>
<message numerus="yes">
<source>%n points</source>
<translation>
<numerusform>%n point</numerusform>
<numerusform>%n points</numerusform>
</translation>
</message>
</context>
</TS>