Gammu internals  1.38.0
locales.h
Go to the documentation of this file.
1 /* (c) 2007 by Michal Cihar */
2 
10 #ifndef __LOCALES_H
11 #define __LOCALES_H
12 
13 #include <gammu-config.h>
14 
15 #include <locale.h>
16 
17 #ifdef LIBINTL_LIB_FOUND
18 #include <libintl.h>
19 #define _(x) dgettext("libgammu", x)
20 #else
21 #define _(x) (x)
22 #define dgettext(d, x) (x)
23 #define ngettext(singular, plural, number) (number == 1 ? singular : plural)
24 #endif
25 
26 #define N_(x) x
27 
28 #endif