[gbrainy] Fixes bugzilla #653408



commit 9d61824a56ef2d18b22a072182b3840c8f3e6b8b
Author: Jordi Mas <jmas softcatala org>
Date:   Sat Jul 2 17:13:31 2011 +0200

    Fixes bugzilla #653408

 src/Games/Logic/PuzzleTimeNow.cs |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/Games/Logic/PuzzleTimeNow.cs b/src/Games/Logic/PuzzleTimeNow.cs
index 5b0f12a..3926a78 100644
--- a/src/Games/Logic/PuzzleTimeNow.cs
+++ b/src/Games/Logic/PuzzleTimeNow.cs
@@ -41,13 +41,20 @@ namespace gbrainy.Games.Logic
 				// http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx
 				// For 12-hour clock format use {0:%h} and for 24-hour clock format use {0:%H}. The date formats {0:h} and {0:H} are invalid.
 				//
-				ServiceLocator.Instance.GetService <ITranslations> ().GetString ("{0} hours ago it was as long after {1:h tt} as it was before {2:h tt} on the same day. What is the time now? Answer using the hour (e.g.: {3:h tt})"),
+				ServiceLocator.Instance.GetService <ITranslations> ().GetPluralString (
+					"{0} hour ago it was as long after {1:h tt} as it was before {2:h tt} on the same day. What is the time now? Answer using the hour (e.g.: {3:h tt})",
+					"{0} hours ago it was as long after {1:h tt} as it was before {2:h tt} on the same day. What is the time now? Answer using the hour (e.g.: {3:h tt})",
+					after),
 				after, position_a, position_b, position_b));}
 		}
 
 		public override string Rationale {
 			get {
-				return String.Format (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Determine the hour half way between the given times, and then add {0} hours to convert it to the present time."), after);
+				return String.Format (ServiceLocator.Instance.GetService <ITranslations> ().GetPluralString (
+					"Determine the hour half way between the given times, and then add {0} hour to convert it to the present time.",
+					"Determine the hour half way between the given times, and then add {0} hours to convert it to the present time.",
+					after),
+					after);
 			}
 		}
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]