Skip to content

Commit

Permalink
Fixup plurality in QtHostInterface::OnAchievementsRefreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePLMonster committed Mar 8, 2021
1 parent 4e2ee86 commit 2280fc9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duckstation-qt/qthostinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
10 changes: 10 additions & 0 deletions src/duckstation-qt/translations/duckstation-qt_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 2280fc9

Please sign in to comment.