diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-07-27 23:53:55 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-07-27 23:53:55 +0000 |
commit | a1b83c86fbea6291e41a72791f1163d7e9683ff6 (patch) | |
tree | 6ba1bdcaff0cd9a6753ad1575c777aace9c1e029 | |
parent | be7d5c40822438f0ff2fefbd9254c65b7382163e (diff) | |
download | xine-lib-a1b83c86fbea6291e41a72791f1163d7e9683ff6.tar.gz xine-lib-a1b83c86fbea6291e41a72791f1163d7e9683ff6.tar.bz2 |
Fix ngettext usage.
CVS patchset: 2358
CVS date: 2002/07/27 23:53:55
-rw-r--r-- | m4/gettext.m4 | 3 | ||||
-rw-r--r-- | src/xine-engine/xineintl.h | 5 |
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) |