|
Packit |
bbfece |
/* Implementation of the dngettext(3) function.
|
|
Packit |
bbfece |
Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc.
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
This program is free software; you can redistribute it and/or modify it
|
|
Packit |
bbfece |
under the terms of the GNU Library General Public License as published
|
|
Packit |
bbfece |
by the Free Software Foundation; either version 2, or (at your option)
|
|
Packit |
bbfece |
any later version.
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
This program is distributed in the hope that it will be useful,
|
|
Packit |
bbfece |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
bbfece |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
bbfece |
Library General Public License for more details.
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
You should have received a copy of the GNU Library General Public
|
|
Packit |
bbfece |
License along with this program; if not, write to the Free Software
|
|
Packit |
bbfece |
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
|
|
Packit |
bbfece |
USA. */
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
#ifdef HAVE_CONFIG_H
|
|
Packit |
bbfece |
# include <config.h>
|
|
Packit |
bbfece |
#endif
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
#include "gettextP.h"
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
#include <locale.h>
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
#ifdef _LIBC
|
|
Packit |
bbfece |
# include <libintl.h>
|
|
Packit |
bbfece |
#else
|
|
Packit |
bbfece |
# include "libgnuintl.h"
|
|
Packit |
bbfece |
#endif
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
/* @@ end of prolog @@ */
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
/* Names for the libintl functions are a problem. They must not clash
|
|
Packit |
bbfece |
with existing names and they should follow ANSI C. But this source
|
|
Packit |
bbfece |
code is also used in GNU C Library where the names have a __
|
|
Packit |
bbfece |
prefix. So we have to make a difference here. */
|
|
Packit |
bbfece |
#ifdef _LIBC
|
|
Packit |
bbfece |
# define DNGETTEXT __dngettext
|
|
Packit |
bbfece |
# define DCNGETTEXT __dcngettext
|
|
Packit |
bbfece |
#else
|
|
Packit |
bbfece |
# define DNGETTEXT libintl_dngettext
|
|
Packit |
bbfece |
# define DCNGETTEXT libintl_dcngettext
|
|
Packit |
bbfece |
#endif
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
/* Look up MSGID in the DOMAINNAME message catalog of the current
|
|
Packit |
bbfece |
LC_MESSAGES locale and skip message according to the plural form. */
|
|
Packit |
bbfece |
char *
|
|
Packit |
bbfece |
DNGETTEXT (domainname, msgid1, msgid2, n)
|
|
Packit |
bbfece |
const char *domainname;
|
|
Packit |
bbfece |
const char *msgid1;
|
|
Packit |
bbfece |
const char *msgid2;
|
|
Packit |
bbfece |
unsigned long int n;
|
|
Packit |
bbfece |
{
|
|
Packit |
bbfece |
return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES);
|
|
Packit |
bbfece |
}
|
|
Packit |
bbfece |
|
|
Packit |
bbfece |
#ifdef _LIBC
|
|
Packit |
bbfece |
/* Alias for function name in GNU C Library. */
|
|
Packit |
bbfece |
weak_alias (__dngettext, dngettext);
|
|
Packit |
bbfece |
#endif
|