gbrainy r182 - trunk/src



Author: jmas
Date: Sat Jan 26 17:49:04 2008
New Revision: 182
URL: http://svn.gnome.org/viewvc/gbrainy?rev=182&view=rev

Log:
2008-01-26 Jordi Mas <jmas softcatala org>

	* GameDrawingArea.cs: Make some messages more I18N friendly



Modified:
   trunk/src/ChangeLog
   trunk/src/GameDrawingArea.cs

Modified: trunk/src/GameDrawingArea.cs
==============================================================================
--- trunk/src/GameDrawingArea.cs	(original)
+++ trunk/src/GameDrawingArea.cs	Sat Jan 26 17:49:04 2008
@@ -212,21 +212,33 @@
 
 		y += space_small;	
 		gr.MoveTo (x, y);
-		str = Catalog.GetString ("Logic puzzle score is {0}%");
-		if (session.LogicGamesPlayed == 0)  str += " " + Catalog.GetString ("(no games played)");
-		gr.ShowText (String.Format (str, session.LogicScore));
+
+		if (session.LogicGamesPlayed == 0)
+			str = Catalog.GetString ("No logic puzzle games played");
+		else
+			str = String.Format (Catalog.GetString ("Logic puzzle score is {0}%"), session.LogicScore);
+
+		gr.ShowText (str);
 
 		y += space_small;
 		gr.MoveTo (x, y);
-		str = Catalog.GetString ("Mental calculation score is {0}%");
-		if (session.MathGamesPlayed == 0)  str += " " + Catalog.GetString ("(no games played)");
-		gr.ShowText (String.Format (str, session.MathScore));
+
+		if (session.MathGamesPlayed == 0)
+			str = Catalog.GetString ("No mental calculation games played");
+		else
+			str = String.Format (Catalog.GetString ("Mental calculation score is {0}%"), session.MathScore);
+
+		gr.ShowText (str);
 
 		y += space_small;
 		gr.MoveTo (x, y);
-		str = Catalog.GetString ("Memory score is {0}%");
-		if (session.MemoryGamesPlayed == 0)  str += " " + Catalog.GetString ("(no games played)");
-		gr.ShowText (String.Format (str, session.MemoryScore));
+
+		if (session.MemoryGamesPlayed == 0)
+			str = Catalog.GetString ("No memory games played");
+		else
+			str = String.Format (Catalog.GetString ("Memory score is {0}%"),  session.MemoryScore);
+
+		gr.ShowText (str);
 
 		y += 0.08;
 		gr.SetFontSize (0.03);



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