[gnome-shell] main: make "gnome-shell" the default gettext domain



commit 4bfc3bafcba679b54b80149cc948b005f934d99b
Author: Dan Winship <danw gnome org>
Date:   Sat Apr 30 10:34:51 2011 -0400

    main: make "gnome-shell" the default gettext domain
    
    Since libmutter uses dgettext(), we can take over the default domain
    
    https://bugzilla.gnome.org/show_bug.cgi?id=649203

 js/ui/environment.js |    2 +-
 src/main.c           |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/environment.js b/js/ui/environment.js
index 2dd9115..4a78b84 100644
--- a/js/ui/environment.js
+++ b/js/ui/environment.js
@@ -7,7 +7,7 @@ imports.gi.versions.GdkPixbuf = '2.0';
 imports.gi.versions.Gtk = '3.0';
 
 const Clutter = imports.gi.Clutter;;
-const Gettext = imports.gettext.domain('gnome-shell');
+const Gettext = imports.gettext;
 const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
 const Shell = imports.gi.Shell;
diff --git a/src/main.c b/src/main.c
index 5472953..c9c9d6e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -458,6 +458,7 @@ main (int argc, char **argv)
 
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
 
   ctx = meta_get_option_context ();
   g_option_context_add_main_entries (ctx, gnome_shell_options, GETTEXT_PACKAGE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]