[gbrainy/gbrainy_16x] Remove unnecessary String.Format calls



commit 8d261be3de3c9e58506a467a7551ffc6f8969122
Author: Jordi Mas <jmas softcatala org>
Date:   Fri Sep 24 11:06:23 2010 +0200

    Remove unnecessary String.Format calls

 src/Core/Main/GameSession.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Core/Main/GameSession.cs b/src/Core/Main/GameSession.cs
index 3af4c18..a3322fe 100644
--- a/src/Core/Main/GameSession.cs
+++ b/src/Core/Main/GameSession.cs
@@ -191,14 +191,14 @@ namespace gbrainy.Core.Main
 				if (history.GamesPlayed >= 10) {
 					int percentage_won = (int) (100 * history.GamesWon / history.GamesPlayed);
 					if (percentage_won >= 90)
-						s = String.Format (Catalog.GetString ("Outstanding results"));
+						s = Catalog.GetString ("Outstanding results");
 					else if (percentage_won >= 70)
-						s = String.Format (Catalog.GetString ("Excellent results"));
+						s = Catalog.GetString ("Excellent results");
 					else if (percentage_won >= 50)
-						s = String.Format (Catalog.GetString ("Good results"));
+						s = Catalog.GetString ("Good results");
 					else if (percentage_won >= 30)
-						s = String.Format (Catalog.GetString ("Poor results"));
-					else s = String.Format (Catalog.GetString ("Disappointing results"));
+						s = Catalog.GetString ("Poor results");
+					else s = Catalog.GetString ("Disappointing results");
 				} else
 					s = string.Empty;
 	



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