1283625Sdim/* Implementation of the dngettext(3) function. 2283625Sdim Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. 3283625Sdim 4283625Sdim This program is free software; you can redistribute it and/or modify it 5283625Sdim under the terms of the GNU Library General Public License as published 6283625Sdim by the Free Software Foundation; either version 2, or (at your option) 7283625Sdim any later version. 8283625Sdim 9283625Sdim This program is distributed in the hope that it will be useful, 10283625Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 11296417Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12283625Sdim Library General Public License for more details. 13283625Sdim 14283625Sdim You should have received a copy of the GNU Library General Public 15283625Sdim License along with this program; if not, write to the Free Software 16283625Sdim Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 17283625Sdim USA. */ 18283625Sdim 19283625Sdim#ifdef HAVE_CONFIG_H 20283625Sdim# include <config.h> 21283625Sdim#endif 22283625Sdim 23283625Sdim#include "gettextP.h" 24283625Sdim 25283625Sdim#include <locale.h> 26283625Sdim 27283625Sdim#ifdef _LIBC 28283625Sdim# include <libintl.h> 29283625Sdim#else 30283625Sdim# include "libgnuintl.h" 31283625Sdim#endif 32283625Sdim 33283625Sdim/* @@ end of prolog @@ */ 34283625Sdim 35283625Sdim/* Names for the libintl functions are a problem. They must not clash 36283625Sdim with existing names and they should follow ANSI C. But this source 37283625Sdim code is also used in GNU C Library where the names have a __ 38283625Sdim prefix. So we have to make a difference here. */ 39283625Sdim#ifdef _LIBC 40283625Sdim# define DNGETTEXT __dngettext 41296417Sdim# define DCNGETTEXT __dcngettext 42296417Sdim#else 43296417Sdim# define DNGETTEXT libintl_dngettext 44296417Sdim# define DCNGETTEXT libintl_dcngettext 45296417Sdim#endif 46296417Sdim 47283625Sdim/* Look up MSGID in the DOMAINNAME message catalog of the current 48283625Sdim LC_MESSAGES locale and skip message according to the plural form. */ 49296417Sdimchar * 50296417SdimDNGETTEXT (const char *domainname, 51283625Sdim const char *msgid1, const char *msgid2, unsigned long int n) 52283625Sdim{ 53283625Sdim return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES); 54283625Sdim} 55296417Sdim 56296417Sdim#ifdef _LIBC 57283625Sdim/* Alias for function name in GNU C Library. */ 58283625Sdimweak_alias (__dngettext, dngettext); 59283625Sdim#endif 60283625Sdim