From: Rob Bradford Date: Fri, 23 Apr 2010 15:23:52 +0000 (+0100) Subject: cc-empathy-accounts-panel: Enable gettext when the panel is created X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=36cfeec5f9c5746a4b79cc36e44a96777621eaa0 cc-empathy-accounts-panel: Enable gettext when the panel is created Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=616660 --- diff --git a/src/Makefile.am b/src/Makefile.am index 9b35e9bc..41020dd1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,6 +66,7 @@ libempathy_accounts_panel_la_SOURCES = \ libempathy_accounts_panel_la_CPPFLAGS = \ $(CPPFLAGS_COMMON) \ $(CONTROL_CENTER_EMBEDDING_CFLAGS) \ + -DLOCALEDIR=\""$(datadir)/locale"\" \ $(NULL) libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)' diff --git a/src/cc-empathy-accounts-panel.c b/src/cc-empathy-accounts-panel.c index d69325b7..e22dc0c1 100644 --- a/src/cc-empathy-accounts-panel.c +++ b/src/cc-empathy-accounts-panel.c @@ -151,6 +151,10 @@ cc_empathy_accounts_panel_init (CcEmpathyAccountsPanel *panel) void cc_empathy_accounts_panel_register (GIOModule *module) { + /* Setup gettext */ + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + cc_empathy_accounts_panel_register_type (G_TYPE_MODULE (module)); g_io_extension_point_implement (CC_PANEL_EXTENSION_POINT_NAME, CC_TYPE_EMPATHY_ACCOUNTS_PANEL, "empathy-accounts", 10);