shell: ensure translations are enabled

Make sure gettext is initialised correctly and make sure strings in the
GtkBuilder file are marked for translation.
This commit is contained in:
Thomas Wood 2010-05-24 22:48:34 +01:00
parent 8aedeff4ca
commit 8a9c632975
2 changed files with 9 additions and 1 deletions

View file

@ -21,6 +21,8 @@
#include "config.h"
#include <glib/gi18n.h>
#include "gnome-control-center.h"
#include <gtk/gtk.h>
@ -75,9 +77,15 @@ main (int argc, char **argv)
GnomeControlCenter *shell;
UniqueApp *unique;
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
g_thread_init (NULL);
gtk_init (&argc, &argv);
/* use Unique to enforce single instance of this application */
unique = unique_app_new_with_commands ("org.gnome.ControlCenter",
NULL,