summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2010-04-23 16:23:52 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-26 16:00:28 +0200
commita25c8b705401f9d8dfd6037263780427824b4615 (patch)
treed57afb4c2ad251c51d903bfafb640f3d7bbf0c41
parente4576d4e7f1770df597c55ff356d6f52cc0c101d (diff)
downloadempathy-a25c8b705401f9d8dfd6037263780427824b4615.tar.gz
cc-empathy-accounts-panel: Enable gettext when the panel is created
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=616660
-rw-r--r--src/Makefile.am1
-rw-r--r--src/cc-empathy-accounts-panel.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a01b759a1..9c91f18a2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -67,6 +67,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 d69325b7b..e22dc0c11 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);