summaryrefslogtreecommitdiffstats
path: root/src/gettext.h
blob: 549565c41fe4a2fe3ae5e363bc7a6acd6d1785e4 (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
/*
 * gettext helpers
 *
 * Copyright (c) 2015 Ultimaker B.V.
 * Author: Olliver Schinagl <o.schinagl@ultimaker.com>
 *
 * SPDX-License-Identifier:	AGPL-3.0+
 */

#ifndef _GETTEXT_H
#define _GETTEXT_H

#include <libintl.h>

#include "libgettext.h"

#if HAVE_GETTEXT && ENABLE_NLS
#define _(string) gettext(string)
#define N_(string) gettext_noop(string)
#else
#define _(string) (string)
#define N_(string) (string)
#endif

#endif /* _GETTEXT_H */