patches/gksu-04-g11n-trunk-string.diff
author fujiwara
Mon, 06 Apr 2009 14:11:23 +0000
changeset 15569 f5ee708e987d
permissions -rw-r--r--
2009-04-06 Takao Fujiwara <[email protected]> CR 6493486 back port translatable strings from community and i18n time-admin since the modules are old. * base-specs/gksu.spec: Updated patches. * base-specs/gnome-system-tools.spec: Updated patches. * base-specs/libgksuui.spec: Updated patches. * patches/gksu-02-gksu.diff: Updated strings from trunk. * patches/gksu-04-g11n-trunk-string.diff: Added. Updated strings from community trunk to get the latest translations. * patches/gnome-system-tools-02-forkpty.diff: Updated gettext(). * patches/gnome-system-tools-06-time.diff: Updated for SUN_BRANDING. Restore "Internet" string from "internet" string from trunk. * patches/gnome-system-tools-08-services.diff: Updated. Restore strings from community trunk to get the translations. * patches/gnome-system-tools-13-g11n-i18n-ui.diff: Added. time-admin geometry names are localized. * patches/libgksuui1.0-02-GUI-update.diff: Updated for SUN_BRANDING. * patches/libgksuui1.0-03-build.diff: Added to compile .mo files. * po-sun/Makefile: Updated gksu and libgkuui. * po-sun/gksu/po-sun: Added new translations from community. * po-sun/gnome-system-tools/po-sun: Updated for time-admin & gksu. * po-sun/libgksuui/po-sun: Added new translations from community.

--- 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);