* autogen.sh: Check for, and run glib-gettextize.
* configure.ac: Set up the localization support.
* clutter/clutter-main.c: Do not define the GETTEXT_PACKAGE,
but use the one from the configure script.
* po/POTFILES.in: Template for the translatable files.
+2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
+
+ * autogen.sh: Check for, and run glib-gettextize.
+
+ * configure.ac: Set up the localization support.
+
+ * clutter/clutter-main.c: Do not define the GETTEXT_PACKAGE,
+ but use the one from the configure script.
+
+ * po/POTFILES.in: Template for the translatable files.
+
2008-06-10 Chris Lord <chris@openedhand.com>
* clutter/clutter-main.c: (pre_parse_hook):
gtkdocize || exit $?
fi
+GLIB_GETTEXTIZE=`which glib-gettextize`
+if test -z $GLIB_GETTEXTIZE; then
+ echo "*** No glib-gettextize ***"
+ exit 1
+else
+ glib-gettextize || exit $?
+fi
+
autoreconf -v --install || exit $?
./configure "$@" && echo "Now type 'make' to compile $PROJECT."
#endif
#include <stdlib.h>
-#define GETTEXT_PACKAGE "clutter"
#include <glib/gi18n-lib.h>
#include "clutter-event.h"
AC_SUBST(CLUTTER_CFLAGS)
AC_SUBST(CLUTTER_LIBS)
+GETTEXT_PACKAGE="clutter-$CLUTTER_API_VERSION"
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
+ [The prefix for our gettext translation domains.])
+
+ALL_LINGUAS=""
+AM_GLIB_GNU_GETTEXT
+
AC_CONFIG_FILES([
Makefile
clutter/Makefile
doc/reference/cogl/Makefile
doc/manual/clutter-manual.xml
doc/manual/Makefile
+ po/Makefile.in
clutter.pc
])