Commit 3d7c2e0a 3d7c2e0a84584aab19abda287de3492413f51b64 by Wojciech Polak

NLS main header file

1 parent 61f82083
...@@ -28,6 +28,7 @@ pkginclude_HEADERS = \ ...@@ -28,6 +28,7 @@ pkginclude_HEADERS = \
28 monitor.h \ 28 monitor.h \
29 mu_auth.h \ 29 mu_auth.h \
30 mutil.h \ 30 mutil.h \
31 nls.h \
31 observer.h \ 32 observer.h \
32 parse822.h \ 33 parse822.h \
33 property.h \ 34 property.h \
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by 5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details. 12 GNU Library General Public License for more details.
13 13
14 You should have received a copy of the GNU Library General Public License 14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include <mailutils/address.h> 18 #include <mailutils/address.h>
...@@ -42,4 +42,5 @@ ...@@ -42,4 +42,5 @@
42 #include <mailutils/registrar.h> 42 #include <mailutils/registrar.h>
43 #include <mailutils/stream.h> 43 #include <mailutils/stream.h>
44 #include <mailutils/url.h> 44 #include <mailutils/url.h>
45 #include <mailutils/nls.h>
45 46
......
1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18 #ifndef _MAILUTILS_NLS_H
19 #define _MAILUTILS_NLS_H
20
21 #include <mailutils/types.h>
22
23 /*
24 Native Language Support
25 */
26
27 #ifdef ENABLE_NLS
28 # include <libintl.h>
29 # define _(String) gettext(String)
30 # define N_(String) String
31 #ifdef HAVE_LOCALE_H
32 # include <locale.h>
33 #endif /* HAVE_LOCALE_H */
34 #else
35 # define _(String) (String)
36 # define N_(String) String
37 # define textdomain(Domain)
38 # define bindtextdomain(Package, Directory)
39 #endif /* ENABLE_NLS */
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void mu_init_nls __P((void));
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif