pidgin/purple-plugin-pack

Tweak the template plugins so that the N_() macro is used, making init_plugin()
less important.
--- a/common/gtk_template.c Fri Dec 03 21:30:18 2010 -0500
+++ b/common/gtk_template.c Fri Dec 03 21:45:15 2010 -0500
@@ -52,10 +52,10 @@
PURPLE_PRIORITY_DEFAULT, /* priority */
PLUGIN_ID, /* plugin id */
- NULL, /* name */
+ N_("unnamed"), /* name */
PP_VERSION, /* version */
- NULL, /* summary */
- NULL, /* description */
+ N_("summary"), /* summary */
+ N_("description"), /* description */
PLUGIN_AUTHOR, /* author */
PP_WEBSITE, /* website */
@@ -80,10 +80,6 @@
bindtextdomain(GETTEXT_PACKAGE, PP_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
-
- info.name = _("unnamed");
- info.summary = _("summary");
- info.description = _("description");
}
PURPLE_INIT_PLUGIN(PLUGIN_STATIC_NAME, init_plugin, info)
--- a/common/purple_template.c Fri Dec 03 21:30:18 2010 -0500
+++ b/common/purple_template.c Fri Dec 03 21:45:15 2010 -0500
@@ -48,10 +48,10 @@
PURPLE_PRIORITY_DEFAULT, /* priority */
PLUGIN_ID, /* plugin id */
- NULL, /* name */
+ N_("unnamed"), /* name */
PP_VERSION, /* version */
- NULL, /* summary */
- NULL, /* description */
+ N_("summary"), /* summary */
+ N_("description"), /* description */
PLUGIN_AUTHOR, /* author */
PP_WEBSITE, /* website */
@@ -75,10 +75,6 @@
bindtextdomain(GETTEXT_PACKAGE, PP_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
-
- info.name = _("unnamed");
- info.summary = _("summary");
- info.description = _("description");
}
PURPLE_INIT_PLUGIN(PLUGIN_STATIC_NAME, init_plugin, info)