[gbrainy] Do not warn for translations not started



commit 07997e8cfe7e16fd66487b4dbb5ccf6a37d38f89
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Apr 3 14:44:22 2011 +0200

    Do not warn for translations not started

 src/Clients/Classical/gbrainy.cs |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/Clients/Classical/gbrainy.cs b/src/Clients/Classical/gbrainy.cs
index 2222508..0d16177 100644
--- a/src/Clients/Classical/gbrainy.cs
+++ b/src/Clients/Classical/gbrainy.cs
@@ -498,16 +498,15 @@ namespace gbrainy.Clients.Classical
 			if (String.Compare (Preferences.Get <string> (Preferences.EnglishVersionKey), Defines.VERSION, 0) == 0)
 				return false;
 
-			bool show;
-	
-			show = (ServiceLocator.Instance.GetService <ITranslations> ().TranslationPercentage < MIN_TRANSLATION);
-
-			if (show == true)
+			int percentage = ServiceLocator.Instance.GetService <ITranslations> ().TranslationPercentage;
+			if (percentage > 0 && percentage < MIN_TRANSLATION)
 			{
 				Preferences.Set <string> (Preferences.EnglishVersionKey, Defines.VERSION);
 				Preferences.Save ();
+				return true;
 			}
-			return show;
+
+			return false;
 		}
 
 		void Translations ()



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