changeset 22395:19f26913fe71

Allow translation/transliteration foo in the plugin window tooltip.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 02 Mar 2008 16:43:22 +0000
parents 85fbff54425e
children b3dbd42c228c
files libpurple/plugin.c pidgin/gtkplugin.c
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugin.c	Fri Feb 29 21:11:47 2008 +0000
+++ b/libpurple/plugin.c	Sun Mar 02 16:43:22 2008 +0000
@@ -924,7 +924,7 @@
 	g_return_val_if_fail(plugin, NULL);
 	g_return_val_if_fail(plugin->info, NULL);
 
-	return plugin->info->name;
+	return _(plugin->info->name);
 }
 
 const gchar *
@@ -940,7 +940,7 @@
 	g_return_val_if_fail(plugin, NULL);
 	g_return_val_if_fail(plugin->info, NULL);
 
-	return plugin->info->summary;
+	return _(plugin->info->summary);
 }
 
 const gchar *
@@ -948,7 +948,7 @@
 	g_return_val_if_fail(plugin, NULL);
 	g_return_val_if_fail(plugin->info, NULL);
 
-	return plugin->info->description;
+	return _(plugin->info->description);
 }
 
 const gchar *
@@ -956,7 +956,7 @@
 	g_return_val_if_fail(plugin, NULL);
 	g_return_val_if_fail(plugin->info, NULL);
 
-	return plugin->info->author;
+	return _(plugin->info->author);
 }
 
 const gchar *
--- a/pidgin/gtkplugin.c	Fri Feb 29 21:11:47 2008 +0000
+++ b/pidgin/gtkplugin.c	Sun Mar 02 16:43:22 2008 +0000
@@ -559,10 +559,10 @@
 
 	gtk_tree_model_get(model, &iter, 2, &plugin, -1);
 
-	markup = g_strdup_printf("<span size='x-large' weight='bold'>%s</span>\n<b>Description:</b> %s\n<b>Author:</b> %s",
+	markup = g_strdup_printf("<span size='x-large' weight='bold'>%s</span>\n<b>%s:</b> %s\n<b>%s:</b> %s",
 			name = g_markup_escape_text(purple_plugin_get_name(plugin), -1),
-			desc = g_markup_escape_text(purple_plugin_get_description(plugin), -1),
-			author = g_markup_escape_text(purple_plugin_get_author(plugin), -1));
+			_("Description"), desc = g_markup_escape_text(purple_plugin_get_description(plugin), -1),
+			_("Author"), author = g_markup_escape_text(purple_plugin_get_author(plugin), -1));
 
 	layout = gtk_widget_create_pango_layout(tipwindow, NULL);
 	pango_layout_set_markup(layout, markup, -1);