/* Message catalogs for internationalization. Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Because on some systems (e.g. Solaris) we sometimes have to include the systems libintl.h as well as this file we have more complex include protection above. But the systems header might perhaps also
define _LIBINTL_H and therefore we have to protect the definition here. */
#if !HAVE_LC_MESSAGES /* This value determines the behaviour of the gettext() and dgettext() function. But some system does not have this defined. Define it
to a default value. */ # define LC_MESSAGES (-1) #endif
/* Declarations for gettext-using-catgets interface. Derived from
Jim Meyering's libintl.h. */ struct _msg_ent
{ constchar *_msg; int _msg_number;
};
#if HAVE_CATGETS /* These two variables are defined in the automatically by po-to-tbl.sed
generated file `cat-id-tbl.c'. */ externconststruct _msg_ent _msg_tbl[]; externint _msg_tbl_length; #endif
/* For automatical extraction of messages sometimes no real
translation is needed. Instead the string itself is the result. */ #define gettext_noop(Str) (Str)
/* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default
text). */ externchar *gettext PARAMS ((constchar *__msgid)); externchar *gettext__ PARAMS ((constchar *__msgid));
/* Look up MSGID in the DOMAINNAME message catalog for the current
LC_MESSAGES locale. */ externchar *dgettext PARAMS ((constchar *__domainname, constchar *__msgid)); externchar *dgettext__ PARAMS ((constchar *__domainname, constchar *__msgid));
/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
locale. */ externchar *dcgettext PARAMS ((constchar *__domainname, constchar *__msgid, int __category)); externchar *dcgettext__ PARAMS ((constchar *__domainname, constchar *__msgid, int __category));
/* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default.
If DOMAINNAME is "", reset to the default of "messages". */ externchar *textdomain PARAMS ((constchar *__domainname)); externchar *textdomain__ PARAMS ((constchar *__domainname));
/* Specify that the DOMAINNAME message catalog will be found
in DIRNAME rather than in the system locale data base. */ externchar *bindtextdomain PARAMS ((constchar *__domainname, constchar *__dirname)); externchar *bindtextdomain__ PARAMS ((constchar *__domainname, constchar *__dirname));
#if ENABLE_NLS
/* Solaris 2.3 has the gettext function but dcgettext is missing. So we omit this optimization for Solaris 2.3. BTW, Solaris 2.4
has dcgettext. */ # if !HAVE_CATGETS && (!HAVE_GETTEXT || HAVE_DCGETTEXT)
# ifdefined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ >= 7 /* This global variable is defined in loadmsgcat.c. We need a sign, whether a new catalog was loaded, which can be associated with all
translations. */ externint _nl_msg_cat_cntr;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.