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 <[EMAIL PROTECTED]>

        * 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);
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to