changeset 25405:97ae9f8b63ab

Use the shortcut in the error message to give people more context
author Mark Doliner <mark@kingant.net>
date Sun, 25 Jan 2009 23:23:04 +0000
parents 5206fc64f226
children 6b6628f495cc
files pidgin/gtksmiley.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksmiley.c	Sun Jan 25 23:14:52 2009 +0000
+++ b/pidgin/gtksmiley.c	Sun Jan 25 23:23:04 2009 +0000
@@ -233,9 +233,12 @@
 
 	emoticon = purple_smileys_find_by_shortcut(entry);
 	if (emoticon && emoticon != s->smiley) {
+		gchar *msg;
+		msg = g_strdup_printf(_("A custom smiley for '%s' already exists.  "
+				"Please use a different shortcut."), entry);
 		purple_notify_error(s->parent, _("Custom Smiley"),
-				_("Duplicate Shortcut"),
-				_("A custom smiley for the selected shortcut already exists. Please specify a different shortcut."));
+				_("Duplicate Shortcut"), msg);
+		g_free(msg);
 		return;
 	}