[games/chessament] src: Translate byes

Manuel Alcaraz Zambrano <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit bdd3001d7889863dd252bc32e571721346288f89 by Manuel Alcaraz Zambrano.
Committed on 16/08/2026 at 16:13.
Pushed by manuelal into branch 'master'.

Translate byes

M  +1    -1    src/controller.h
M  +3    -3    src/qml/player/PlayerPairingsPage.qml

https://invent.kde.org/games/chessament/-/commit/bdd3001d7889863dd252bc32e571721346288f89

diff --git a/src/controller.h b/src/controller.h
index afd8225..87ba95c 100644
--- a/src/controller.h
+++ b/src/controller.h
@@ -64,7 +64,7 @@ public:
     bool hasCurrentRoundFinished();
     [[nodiscard]] bool areStandingsValid() const;
 
-    Q_INVOKABLE static QString resultToString(Pairing::PartialResult whiteResult, Pairing::PartialResult blackResult);
+    Q_INVOKABLE static QString resultToString(Pairing::PartialResult whiteResult, Pairing::PartialResult blackResult = Pairing::PartialResult::Unknown);
 
     void setEvent(std::unique_ptr<Event> event);
     Q_INVOKABLE void sortPlayers();
diff --git a/src/qml/player/PlayerPairingsPage.qml b/src/qml/player/PlayerPairingsPage.qml
index 694ad70..34c18bd 100644
--- a/src/qml/player/PlayerPairingsPage.qml
+++ b/src/qml/player/PlayerPairingsPage.qml
@@ -47,15 +47,15 @@ FormCard.FormCardPage {
                     result: Pairing.PartialResult.Unknown
                 },
                 {
-                    text: "Bye (1)",
+                    text: Controller.resultToString(Pairing.PartialResult.FullBye),
                     result: Pairing.PartialResult.FullBye
                 },
                 {
-                    text: "Bye (½)",
+                    text: Controller.resultToString(Pairing.PartialResult.HalfBye),
                     result: Pairing.PartialResult.HalfBye
                 },
                 {
-                    text: "Bye (0)",
+                    text: Controller.resultToString(Pairing.PartialResult.ZeroBye),
                     result: Pairing.PartialResult.ZeroBye
                 }
             ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.