patches/gksu-04-g11n-trunk-string.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 15569 f5ee708e987d
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446

--- gksu-1.3.0/gksu/gksu.c.orig	2009-04-06 10:20:08.961664000 +0900
+++ gksu-1.3.0/gksu/gksu.c	2009-04-06 13:21:39.528143000 +0900
@@ -1015,6 +1018,7 @@ main (int argc, char **argv)
       if (error)
 	{
 	  gk_dialog (GTK_MESSAGE_ERROR, 
+		     /* SUN_BRANDING back port the translations. */
 		     _("Failed to run %s as user %s:\n %s"),
 		     gksu_context_get_command (context),
 		     gksu_context_get_user (context),
@@ -1029,10 +1033,14 @@ main (int argc, char **argv)
 	  if (!message_changed)
 	    {
 	      gchar *msg = 
-		g_strdup_printf (_("<b>To run the program \"%s\" you need to "
-				   "enter the %s password</b>"),
-				 gksu_context_get_command (context),
-				 gksu_context_get_user (context));
+		/* SUN_BRANDING
+		   The string is back port from libgksu 2.0.9.
+		   su_ask_password() in libgksu/libgksu/libgksu.c */
+		g_strdup_printf (_("<b>Enter the password of %s to run "
+				   "the application '%s'"
+				   "</b>"),
+				 gksu_context_get_user (context),
+				 gksu_context_get_command (context));
 	  
 	      gksuui_dialog_set_message (GKSUUI_DIALOG(dialog), msg);
 	      g_free (msg);