1998-09-07 01:45:24 +02:00
|
|
|
#ifndef _LIBINTL_H
|
1995-11-10 21:38:31 +01:00
|
|
|
#include <intl/libintl.h>
|
2000-08-29 01:52:21 +02:00
|
|
|
#include <locale.h>
|
1998-08-09 19:39:48 +02:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
1999-11-23 18:22:17 +01:00
|
|
|
extern char *__gettext (__const char *__msgid);
|
1999-10-19 15:53:34 +02:00
|
|
|
extern char *__dgettext (__const char *__domainname,
|
1999-11-23 18:22:17 +01:00
|
|
|
__const char *__msgid);
|
1999-10-19 15:53:34 +02:00
|
|
|
extern char *__dcgettext (__const char *__domainname,
|
1999-11-23 18:22:17 +01:00
|
|
|
__const char *__msgid, int __category);
|
|
|
|
extern char *__textdomain (__const char *__domainname);
|
1999-10-19 15:53:34 +02:00
|
|
|
extern char *__bindtextdomain (__const char *__domainname,
|
1999-11-23 18:22:17 +01:00
|
|
|
__const char *__dirname);
|
2000-05-08 17:57:36 +02:00
|
|
|
extern char *__bind_textdomain_codeset (__const char *__domainname,
|
|
|
|
__const char *__codeset);
|
1999-06-19 11:58:37 +02:00
|
|
|
extern const char _libc_intl_domainname[];
|
|
|
|
|
|
|
|
/* Define the macros `_' and `N_' for conveniently marking translatable
|
1999-07-24 01:10:36 +02:00
|
|
|
strings in the libc source code. We have to make sure we get the
|
|
|
|
correct definitions so we undefine the macros first. */
|
1999-06-19 11:58:37 +02:00
|
|
|
|
1999-07-24 01:10:36 +02:00
|
|
|
# undef N_
|
1999-06-19 11:58:37 +02:00
|
|
|
# define N_(msgid) msgid
|
|
|
|
|
1999-07-24 01:10:36 +02:00
|
|
|
# undef _
|
1999-06-19 11:58:37 +02:00
|
|
|
/* This is defined as an optimizing macro, so use it. */
|
2000-08-21 06:18:25 +02:00
|
|
|
# define _(msgid) __dcgettext (_libc_intl_domainname, (msgid), LC_MESSAGES)
|
1999-06-19 11:58:37 +02:00
|
|
|
|
1998-09-07 01:45:24 +02:00
|
|
|
#endif
|