[gnome-control-center] Catch yet another new error message from passwd



commit b754e8f6573264abb405b4da11a33801bf541119
Author: Bin Li <libin charles gmail com>
Date:   Mon May 31 21:28:20 2010 +0200

    Catch yet another new error message from passwd
    
    Also deal with "it is too simplistic/systematic". Closes bug

 capplets/about-me/gnome-about-me-password.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me-password.c b/capplets/about-me/gnome-about-me-password.c
index e951b12..f683be2 100644
--- a/capplets/about-me/gnome-about-me-password.c
+++ b/capplets/about-me/gnome-about-me-password.c
@@ -504,7 +504,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
 							  "longer",
 							  "palindrome",
 							  "dictionary",
-							  "simple",
+							  "simpl", /* catches both simple and simplistic */
 							  "similar",
 							  "different",
 							  "case",
@@ -539,7 +539,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
 						   g_strrstr (str->str, "longer") != NULL) {
 						msg = g_strdup (_("The password is too short."));
 					} else if (g_strrstr (str->str, "palindrome") != NULL ||
-						   g_strrstr (str->str, "simple") != NULL ||
+						   g_strrstr (str->str, "simpl") != NULL ||
 						   g_strrstr (str->str, "dictionary") != NULL) {
 						msg = g_strdup (_("The password is too simple."));
 					} else if (g_strrstr (str->str, "similar") != NULL ||



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