* Install gettext
* get a cvs snapshot of supertux and do the usual autogen.sh, configure.
Make sure configure can find the xgettext application.
- (ie. "checking for xgettext... xgettext")
+ (ie. "checking for xgettext... xgettext"
+ and "checking if xgettext supports Lisp... yes")
* Run 'jam' and let it compile supertux and create all the messages.po files
* Go into data/locale and data/levels/*/ and in each dir do:
- In case you want to create a new translation do
AC_PROG_INSTALL
AC_CHECK_PROGS(XGETTEXT, xgettext)
+if test -n "$XGETTEXT" ; then
+ AC_MSG_CHECKING([if xgettext supports lisp])
+ if echo '(gettext "test")' | xgettext -o - -L Lisp - >& /dev/null; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ AC_MSG_WARN([It seems your gettext installation is too old, try updating it])
+ XGETTEXT=""
+ fi
+fi
dnl Checks for header files.
AC_HEADER_DIRENT