Add localization
Infrastructure for localization; hook up intltool, create po/ and po/POTFILES.in. We need to call bindtextdomain/bind_textdomain_codeset. Switch to gnome-autogen.sh to call intltool.
This commit is contained in:
@ -28,7 +28,8 @@ gnome_shell_cflags = \
|
||||
$(MUTTER_PLUGIN_CFLAGS) \
|
||||
$(LIBGNOMEUI_CFLAGS) \
|
||||
-I$(srcdir)/tray \
|
||||
-DGETTEXT_PACKAGE=gnome-shell \
|
||||
-DGETTEXT_PACKAGE=\"gnome-shell\" \
|
||||
-DLOCALEDIR=\"$(datadir)/locale\" \
|
||||
-DGNOME_SHELL_DATADIR=\"$(pkgdatadir)\" \
|
||||
-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
|
||||
-DJSDIR=\"$(pkgdatadir)/js\"
|
||||
|
@ -153,6 +153,9 @@ gnome_shell_plugin_constructed (GObject *object)
|
||||
ClutterBackend *backend;
|
||||
cairo_font_options_t *font_options;
|
||||
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
|
||||
/* Disable text mipmapping; it causes problems on pre-GEM Intel
|
||||
* drivers and we should just be rendering text at the right
|
||||
* size rather than scaling it. If we do effects where we dynamically
|
||||
|
Reference in New Issue
Block a user