[gbrainy] Make game won string plural friendly
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Make game won string plural friendly
- Date: Thu, 17 Nov 2011 19:36:34 +0000 (UTC)
commit 45a11ebcbf4a72d655cde84b3cdd668f73d00885
Author: Jordi Mas <jmas softcatala org>
Date: Thu Nov 17 20:36:48 2011 +0100
Make game won string plural friendly
src/Core/Views/FinishView.cs | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Views/FinishView.cs b/src/Core/Views/FinishView.cs
index 1dd63a4..34f7870 100644
--- a/src/Core/Views/FinishView.cs
+++ b/src/Core/Views/FinishView.cs
@@ -148,10 +148,16 @@ namespace gbrainy.Core.Views
gr.MoveTo (x, y);
s = session.History.GetResult (translations);
- if (s == string.Empty)
- gr.ShowPangoText (String.Format (translations.GetString ("Games won: {0} ({1} played)"), session.History.GamesWon, session.History.GamesPlayed));
- else
- gr.ShowPangoText (String.Format (translations.GetString ("{0}. Games won: {1} ({2} played)"), s, session.History.GamesWon, session.History.GamesPlayed));
+ if (s == string.Empty) {
+ gr.ShowPangoText (String.Format (translations.GetPluralString ("Games won: {0} ({1} played)",
+ "Games won: {0} ({1} played)", session.History.GamesPlayed),
+ session.History.GamesWon, session.History.GamesPlayed));
+ }
+ else {
+ gr.ShowPangoText (String.Format (translations.GetPluralString ("{0}. Games won: {1} ({2} played)",
+ "{0}. Games won: {1} ({2} played)", session.History.GamesPlayed),
+ s, session.History.GamesWon, session.History.GamesPlayed));
+ }
y += 0.06;
gr.MoveTo (x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]