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:
parent
8aedeff4ca
commit
8a9c632975
2 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue