comparison src/xmms-sid.h @ 434:b79d319e3054

gettext fixes
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 01 Jan 2007 08:34:01 +0000
parents 2ea3005a4b7f
children f277dad3180f
comparison
equal deleted inserted replaced
433:a0c3d277dc0e 434:b79d319e3054
37 #include <pthread.h> 37 #include <pthread.h>
38 38
39 #ifdef __cplusplus 39 #ifdef __cplusplus
40 extern "C" { 40 extern "C" {
41 #endif 41 #endif
42
43 /*
44 * Standard gettext macros.
45 */
46 #ifdef ENABLE_NLS
47 # include <libintl.h>
48 # undef _
49 # define _(String) dgettext (PACKAGE, String)
50 # ifdef gettext_noop
51 # define N_(String) gettext_noop (String)
52 # else
53 # define N_(String) (String)
54 # endif
55 #else
56 # define textdomain(String) (String)
57 # define gettext(String) (String)
58 # define dgettext(Domain,Message) (Message)
59 # define dcgettext(Domain,Message,Type) (Message)
60 # define bindtextdomain(Domain,Directory) (Domain)
61 # define _(String) (String)
62 # define N_(String) (String)
63 #endif
64
42 65
43 #include <xmms/plugin.h> 66 #include <xmms/plugin.h>
44 67
45 /* 68 /*
46 * Some constants and defines 69 * Some constants and defines
216 void xs_tuneinfo_free(t_xs_tuneinfo *); 239 void xs_tuneinfo_free(t_xs_tuneinfo *);
217 240
218 void xs_error(const char *, ...); 241 void xs_error(const char *, ...);
219 242
220 243
221 /* For possible i18n support
222 */
223 #ifndef _
224 #define _(x) x
225 #endif
226
227 /* Debugging 244 /* Debugging
228 */ 245 */
229 #ifndef DEBUG_NP 246 #ifndef DEBUG_NP
230 void XSDEBUG(const char *, ...); 247 void XSDEBUG(const char *, ...);
231 #else 248 #else