| 1 |
/*************************************************************************** |
| 2 |
internat.h - description |
| 3 |
------------------- |
| 4 |
begin : Thu Sep 21 2000 |
| 5 |
copyright : (C) 2000 by Olivier Langella |
| 6 |
email : [email protected] |
| 7 |
***************************************************************************/ |
| 8 |
|
| 9 |
/*************************************************************************** |
| 10 |
* * |
| 11 |
* This program is free software; you can redistribute it and/or modify * |
| 12 |
* it under the terms of the GNU General Public License as published by * |
| 13 |
* the Free Software Foundation; either version 2 of the License, or * |
| 14 |
* (at your option) any later version. * |
| 15 |
* * |
| 16 |
***************************************************************************/ |
| 17 |
|
| 18 |
//internationalisation |
| 19 |
#ifndef INTERNAT_H |
| 20 |
# define INTERNAT_H |
| 21 |
# ifdef MINGW32 |
| 22 |
# define OLIV_INTERNAT 0 |
| 23 |
# endif |
| 24 |
# ifdef OLIV_INTERNAT |
| 25 |
# include <locale.h> |
| 26 |
//# include <libintl.h> |
| 27 |
# define _(String) (String) |
| 28 |
# define gettext(String) (String) |
| 29 |
# define textdomain(String) (String) |
| 30 |
# define setlocale(String1, String2) (String1, String2) |
| 31 |
# define bindtextdomain(String1, String2) (String1, String2) |
| 32 |
# define LOCALEDIR "" |
| 33 |
//# define LC_ALL "" |
| 34 |
//# define LC_NUMERIC "" |
| 35 |
# define PACKAGE "" |
| 36 |
# else |
| 37 |
# ifndef _LOCALE_H |
| 38 |
# include <locale.h> |
| 39 |
# ifndef LOCALEDIR |
| 40 |
# define LOCALEDIR "/usr/share/locale" |
| 41 |
# endif |
| 42 |
# endif |
| 43 |
# ifndef _LIBINTL_H |
| 44 |
# include <libintl.h> |
| 45 |
# ifndef _ |
| 46 |
# define _(String) gettext (String) |
| 47 |
# endif |
| 48 |
# endif |
| 49 |
# endif |
| 50 |
#endif |
| 51 |
|
| 52 |
|