diff pidgin/gtkprefs.c @ 17476:92821180bded

A somewhat-Warmenhoved patch from tfujiwara to allow for the smiley theme description data to be translated. I haven't tested my last set of changes to make sure you can actually still see a translated name, but he's going to check it for me, I hope. Closes #1342
author Richard Laager <rlaager@wiktel.com>
date Wed, 30 May 2007 09:02:05 +0000
parents f7f4d11d4826
children fcf61e3be189 747e5fd970e6
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Wed May 30 08:43:34 2007 +0000
+++ b/pidgin/gtkprefs.c	Wed May 30 09:02:05 2007 +0000
@@ -382,7 +382,7 @@
 	new_theme = current_smiley_theme;
 	description = g_strdup_printf("<span size='larger' weight='bold'>%s</span> - %s\n"
 								"<span size='smaller' foreground='white'>%s</span>",
-								new_theme->name, new_theme->author, new_theme->desc);
+								_(new_theme->name), _(new_theme->author), _(new_theme->desc));
 	gtk_list_store_set(smiley_theme_store, &iter, 1, description, -1);
 	g_free(description);
 
@@ -391,7 +391,7 @@
 		if (gtk_tree_model_get_iter(model, &iter, oldpath)) {
 			description = g_strdup_printf("<span size='larger' weight='bold'>%s</span> - %s\n"
 								"<span size='smaller' foreground='dim grey'>%s</span>",
-								old_theme->name, old_theme->author, old_theme->desc);
+								_(old_theme->name), _(old_theme->author), _(old_theme->desc));
 			gtk_list_store_set(smiley_theme_store, &iter, 1,
 				description, -1);
 			g_free(description);
@@ -426,7 +426,7 @@
 		struct smiley_theme *theme = themes->data;
 		char *description = g_strdup_printf("<span size='larger' weight='bold'>%s</span> - %s\n"
 						    "<span size='smaller' foreground='dim grey'>%s</span>",
-						    theme->name, theme->author, theme->desc);
+						    _(theme->name), _(theme->author), _(theme->desc));
 		gtk_list_store_append (smiley_theme_store, &iter);
 
 		/*