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:
parent
f097304f3b
commit
a418558b73
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS = data js src
|
SUBDIRS = data js src po
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
.project \
|
.project \
|
||||||
|
28
autogen.sh
28
autogen.sh
@ -1,8 +1,22 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
# Run this to generate all the initial makefiles, etc.
|
||||||
|
|
||||||
(cd `dirname $0`;
|
srcdir=`dirname $0`
|
||||||
touch ChangeLog NEWS &&
|
test -z "$srcdir" && srcdir=.
|
||||||
autoreconf --install --symlink &&
|
|
||||||
autoreconf &&
|
PKG_NAME="gnome-shell"
|
||||||
./configure --enable-maintainer-mode $@
|
REQUIRED_AUTOMAKE_VERSION=1.10
|
||||||
)
|
|
||||||
|
(test -f $srcdir/configure.ac \
|
||||||
|
&& test -d $srcdir/src) || {
|
||||||
|
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
|
||||||
|
echo " top-level gnome-shell directory"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
which gnome-autogen.sh || {
|
||||||
|
echo "You need to install gnome-common from GNOME Subversion (or from"
|
||||||
|
echo "your OS vendor's package manager)."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
|
||||||
|
@ -22,6 +22,9 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|||||||
|
|
||||||
PKG_PROG_PKG_CONFIG(0.16)
|
PKG_PROG_PKG_CONFIG(0.16)
|
||||||
|
|
||||||
|
IT_PROG_INTLTOOL(0.26)
|
||||||
|
AM_GLIB_GNU_GETTEXT
|
||||||
|
|
||||||
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
||||||
AM_GCONF_SOURCE_2
|
AM_GCONF_SOURCE_2
|
||||||
|
|
||||||
@ -120,4 +123,5 @@ AC_OUTPUT([
|
|||||||
js/misc/Makefile
|
js/misc/Makefile
|
||||||
js/ui/Makefile
|
js/ui/Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
po/Makefile.in
|
||||||
])
|
])
|
||||||
|
0
po/LINGUAS
Normal file
0
po/LINGUAS
Normal file
5
po/POTFILES.in
Normal file
5
po/POTFILES.in
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
js/ui/panel.js
|
||||||
|
js/ui/overlay.js
|
||||||
|
src/gdmuser/gdm-user.c
|
||||||
|
src/shell-global.c
|
||||||
|
src/shell-status-menu.c
|
@ -28,7 +28,8 @@ gnome_shell_cflags = \
|
|||||||
$(MUTTER_PLUGIN_CFLAGS) \
|
$(MUTTER_PLUGIN_CFLAGS) \
|
||||||
$(LIBGNOMEUI_CFLAGS) \
|
$(LIBGNOMEUI_CFLAGS) \
|
||||||
-I$(srcdir)/tray \
|
-I$(srcdir)/tray \
|
||||||
-DGETTEXT_PACKAGE=gnome-shell \
|
-DGETTEXT_PACKAGE=\"gnome-shell\" \
|
||||||
|
-DLOCALEDIR=\"$(datadir)/locale\" \
|
||||||
-DGNOME_SHELL_DATADIR=\"$(pkgdatadir)\" \
|
-DGNOME_SHELL_DATADIR=\"$(pkgdatadir)\" \
|
||||||
-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
|
-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
|
||||||
-DJSDIR=\"$(pkgdatadir)/js\"
|
-DJSDIR=\"$(pkgdatadir)/js\"
|
||||||
|
@ -153,6 +153,9 @@ gnome_shell_plugin_constructed (GObject *object)
|
|||||||
ClutterBackend *backend;
|
ClutterBackend *backend;
|
||||||
cairo_font_options_t *font_options;
|
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
|
/* Disable text mipmapping; it causes problems on pre-GEM Intel
|
||||||
* drivers and we should just be rendering text at the right
|
* drivers and we should just be rendering text at the right
|
||||||
* size rather than scaling it. If we do effects where we dynamically
|
* size rather than scaling it. If we do effects where we dynamically
|
||||||
|
Loading…
Reference in New Issue
Block a user