repo.or.cz
/
gammu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
wrong character in the GSM 03.38 table (ç for Ç)
[gammu.git]
/
helper
/
locales.h
blob
b483625429981bd841e47a493019e14815ef7012
1
/* (c) 2007 by Michal Cihar */
2
3
/** \file locales.h
4
* Gettext wrapper.
5
*
6
* @author Michal Cihar
7
* @{
8
*/
9
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) gettext(x)
20
#else
21
#define _(x) (x)
22
#define gettext(x) (x)
23
#define ngettext(singular, plural, number) (number == 1 ? singular : plural)
24
#endif
25
26
#define N_(x) x
27
28
#endif