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
This commit is contained in:
Dan Winship 2011-04-30 10:34:51 -04:00
parent 898b2b903d
commit 4bfc3bafcb
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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);