Add the evil gettext hack
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5785 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -61,6 +61,18 @@ dnl ---------------------------------------------------------------------------
|
||||
dnl i18n support
|
||||
dnl ---------------------------------------------------------------------------
|
||||
ALL_LINGUAS="da de fr es it ja no ru sl sv uk zh_CN"
|
||||
# EVIL HACKS
|
||||
AC_MSG_CHECKING([for po/Makevars requiring evil hack])
|
||||
GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_CURRENT}"
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext domain we're using])
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
if test -f po/Makevars.template
|
||||
then
|
||||
sed -e "s/^DOMAIN.*/DOMAIN = ${GETTEXT_PACKAGE}/" < po/Makevars.template > po/Makevars
|
||||
AC_MSG_RESULT([yes. done.])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
AM_GNU_GETTEXT
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user