From 2280fc98061d01f454ed31e5929324996a3b41cb Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 7 Mar 2021 22:12:19 +0100 Subject: [PATCH] Fixup plurality in QtHostInterface::OnAchievementsRefreshed --- src/duckstation-qt/qthostinterface.cpp | 4 ++-- src/duckstation-qt/translations/duckstation-qt_en.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index ea0b798e1..0b9e7d959 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -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()) diff --git a/src/duckstation-qt/translations/duckstation-qt_en.ts b/src/duckstation-qt/translations/duckstation-qt_en.ts index 115a55cc3..0df202fdc 100644 --- a/src/duckstation-qt/translations/duckstation-qt_en.ts +++ b/src/duckstation-qt/translations/duckstation-qt_en.ts @@ -41,4 +41,14 @@ + + QtHostInterface + + %n points + + %n point + %n points + + +