Permalink
Browse files

Set the locale path and character set for the translation domain

Aside from the configure/make changes, the plugin is now brought up to speed on
supporting translations.  I will make those additions another day--if/when a
user requests a translation--so that configure doesn't demand xgettext, etc.
  • Loading branch information...
1 parent 535a1e7 commit cf1dba5ff3b1006552a7a779b3bf9acfd56e9e82 @dm0- committed Apr 19, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugin.c
View
4 plugin.c
@@ -325,6 +325,10 @@ static PurplePluginUiInfo prefs_info = {
static void
plugin_init(PurplePlugin *plugin)
{
+#ifdef ENABLE_NLS
+ bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+#endif
plugin->info->name = _(plugin->info->name);
plugin->info->summary = _(plugin->info->summary);
plugin->info->description = _(plugin->info->description);

0 comments on commit cf1dba5

Please sign in to comment.