]> git.0d.be Git - empathy.git/blobdiff - src/empathy-accounts.c
Add missing textdomain() call
[empathy.git] / src / empathy-accounts.c
index 88923681bfdc56bb5cf3d2cda303f24eb4e19c1a..9788e11d599847083788f6b2ab4bb0f78c080b1e 100644 (file)
 #include "empathy-accounts.h"
 
 #include <glib/gi18n.h>
+#include <telepathy-glib/telepathy-glib-dbus.h>
 
 #ifdef HAVE_CHEESE
 #include <cheese-gtk.h>
 #endif
 
 #include "empathy-accounts-common.h"
+#include "empathy-bus-names.h"
 #include "empathy-ui-utils.h"
 #include "empathy-utils.h"
 
 #define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
 #include "empathy-debug.h"
 
-#define EMPATHY_ACCOUNTS_DBUS_NAME "org.gnome.EmpathyAccounts"
-
 static gboolean only_if_needed = FALSE;
 static gboolean hidden = FALSE;
 static gchar *selected_account_name = NULL;
@@ -209,7 +209,7 @@ local_cmdline (GApplication *app,
         }
       else
         {
-          g_warning("Impossible to register empathy-application: %s", error->message);
+          g_warning ("Impossible to register empathy-application: %s", error->message);
           g_clear_error (&error);
           *exit_status = EXIT_FAILURE;
         }
@@ -236,13 +236,14 @@ main (int argc, char *argv[])
 
   empathy_init ();
 
+  textdomain (GETTEXT_PACKAGE);
   g_set_application_name (_("Empathy Accounts"));
 
   /* Make empathy and empathy-accounts appear as the same app in gnome-shell */
   gdk_set_program_class ("Empathy");
   gtk_window_set_default_icon_name ("empathy");
 
-  app = gtk_application_new (EMPATHY_ACCOUNTS_DBUS_NAME, G_APPLICATION_FLAGS_NONE);
+  app = gtk_application_new (EMPATHY_ACCOUNTS_BUS_NAME, G_APPLICATION_FLAGS_NONE);
   app_class = G_OBJECT_GET_CLASS (app);
   G_APPLICATION_CLASS (app_class)->local_command_line = local_cmdline;
   G_APPLICATION_CLASS (app_class)->activate = app_activate;