summaryrefslogtreecommitdiff
path: root/libgammu/misc/locales.h
blob: 9836638bdf8d5a44913caf55dfac86dbde361f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* (c) 2007 by Michal Cihar */

/** \file locales.h
 * Gettext wrapper.
 *
 * @author Michal Cihar
 * @{
 */

#ifndef __LOCALES_H
#define __LOCALES_H

#include <gammu-config.h>

#include <locale.h>

#ifdef LIBINTL_LIB_FOUND
#include <libintl.h>
#define _(x) dgettext("libgammu", x)
#else
#define _(x) (x)
#define dgettext(d, x) (x)
#define ngettext(singular, plural, number) (number == 1 ? singular : plural)
#endif

#define N_(x) x

#endif