summaryrefslogtreecommitdiff
path: root/includes/gettext.h
blob: c37de7ffaea32c22297a0fe01283a4b3bf807a85 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef __GETTEXT_H__
#define __GETTEXT_H__

#ifndef gettext
# define gettext(Msgid) ((const char *) (Msgid))
#endif

#ifndef dgettext
# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
#endif

#ifndef dcgettext
# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
#endif

#ifndef ngettext
# define ngettext(Msgid1, Msgid2, N) \
    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
#endif

#ifndef dngettext
# define dngettext(Domainname, Msgid1, Msgid2, N) \
    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
#endif

#ifndef dcngettext
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
#endif

#ifndef textdomain
# define textdomain(Domainname) ((const char *) (Domainname))
#endif

#ifndef bindtextdomain
# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
#endif

#ifndef bind_text_domain_codeset
# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
#endif

#ifndef setlocale
# define setlocale(category, locale)
#endif

#ifndef LC_ALL
# define LC_ALL 0
#endif

#ifndef gettext_noop
# define gettext_noop(String) String
#endif

#define _(Text) dgettext ("bleh", Text)
#define N_(Text) Text

#endif