summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/gettext.m43
-rw-r--r--src/xine-engine/xineintl.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index bbb0e9c71..2f9825f2d 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -116,7 +116,8 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
gt_save_LIBS="$LIBS"
LIBS="$LIBS $INTLLIBS"
- AC_CHECK_FUNCS(dcgettext)
+ dnl Xine need ngettext.
+ AC_CHECK_FUNCS(dcgettext ngettext)
LIBS="$gt_save_LIBS"
dnl Search for GNU msgfmt in the PATH.
diff --git a/src/xine-engine/xineintl.h b/src/xine-engine/xineintl.h
index a2b1fcdd7..11cfd6928 100644
--- a/src/xine-engine/xineintl.h
+++ b/src/xine-engine/xineintl.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xineintl.h,v 1.1 2001/12/27 14:30:30 f1rmb Exp $
+ * $Id: xineintl.h,v 1.2 2002/07/27 23:53:55 f1rmb Exp $
*
*/
@@ -38,6 +38,9 @@ extern "C" {
# else
# define N_(String) (String)
# endif
+# ifndef HAVE_NGETTEXT
+# define ngettext(Singular, Plural, IsPlural) (Singular)
+# endif
#else
/* Stubs that do something close enough. */
# define textdomain(String) (String)