[iagno] Show end score back.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Show end score back.
- Date: Sat, 3 Aug 2019 09:05:17 +0000 (UTC)
commit 00f0043c1090d83f4e7d2851227659d22310aafd
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Aug 2 16:22:39 2019 +0200
Show end score back.
src/iagno.vala | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index ea3f921..be3a7e6 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -562,20 +562,16 @@ private class Iagno : Gtk.Application, BaseApplication
window.finish_game ();
if (game.n_light_tiles > game.n_dark_tiles)
- {
- /* Translators: during a game, notification to display when Light has won the game */
- window.show_notification (_("Light wins!"));
- }
+ /* Translators: during a game, notification to display when Light has won the game; the %u are
replaced with the Light and Dark number of tiles */
+ window.show_notification (_("Light wins! (%u-%u)").printf (game.n_light_tiles,
game.n_dark_tiles));
+
else if (game.n_dark_tiles > game.n_light_tiles)
- {
- /* Translators: during a game, notification to display when Dark has won the game */
- window.show_notification (_("Dark wins!"));
- }
+ /* Translators: during a game, notification to display when Dark has won the game; the %u are
replaced with the Dark and Light number of tiles */
+ window.show_notification (_("Dark wins! (%u-%u)").printf (game.n_light_tiles,
game.n_dark_tiles));
+
else
- {
/* Translators: during a game, notification to display when the game is a draw */
window.show_notification (_("The game is draw."));
- }
if (play_gameover_sound)
play_sound (Sound.GAMEOVER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]