-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathlocalize.h
More file actions
27 lines (25 loc) · 762 Bytes
/
localize.h
File metadata and controls
27 lines (25 loc) · 762 Bytes
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
/*
* Localization using gettext.
*
* Copyright (C) 2010-2013 Serge Vakulenko
*
* This file is part of PIC32PROG project, which is distributed
* under the terms of the GNU General Public License (GPL).
* See the accompanying file "COPYING" for more details.
*/
#ifndef _LOCALIZE_H
#define _LOCALIZE_H
#if 1
/* No localization. */
#define _(str) (str)
#define N_(str) str
#define textdomain(name) /* empty */
#define bindtextdomain(name,dir) /* empty */
#else
/* Use gettext(). */
#include <libintl.h>
#define _(str) gettext(str)
#define gettext_noop(str) str
#define N_(str) gettext_noop(str)
#endif
#endif