im.pidgin.pidgin: f30db84d0b905aeecbbe516037ffdd572852b313
sadrul at pidgin.im
sadrul at pidgin.im
Sun Mar 2 11:48:49 EST 2008
-----------------------------------------------------------------
Revision: f30db84d0b905aeecbbe516037ffdd572852b313
Ancestor: c63a4c55b97760fdff56cbf2e3c3530618fef208
Author: sadrul at pidgin.im
Date: 2008-03-02T16:43:22
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f30db84d0b905aeecbbe516037ffdd572852b313
Modified files:
libpurple/plugin.c pidgin/gtkplugin.c
ChangeLog:
Allow translation/transliteration foo in the plugin window tooltip.
-------------- next part --------------
============================================================
--- libpurple/plugin.c 8362e0e249fe6836ef1153028729894cecdb5b38
+++ libpurple/plugin.c 779b3b2ebeaa720bf3205f39826e1464bd22c22a
@@ -924,7 +924,7 @@ purple_plugin_get_name(const PurplePlugi
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 @@ purple_plugin_get_summary(const PurplePl
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 @@ purple_plugin_get_description(const Purp
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 @@ purple_plugin_get_author(const PurplePlu
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 *
============================================================
--- pidgin/gtkplugin.c e85b1fc6a511e98d638c261205dc43268cb43e57
+++ pidgin/gtkplugin.c b476115ba863dd5e50da53d6905604633d4fec74
@@ -559,10 +559,10 @@ pidgin_plugins_create_tooltip(GtkWidget
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);
More information about the Commits
mailing list