plptools
Loading...
Searching...
No Matches
plpintl.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 1999-2002 Fritz Elfert <felfert@to.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * along with this program; if not, see <https://www.gnu.org/licenses/>.
18 *
19 */
20#ifndef _PLPINTL_H_
21#define _PLPINTL_H_
22
23#include "config.h"
24
25/* libintl.h includes locale.h only if optimized.
26 * however, we need LC_ALL ...
27 */
28#include <locale.h>
29
30#if defined(ENABLE_NLS)
31# include <libintl.h>
32# define _(String) gettext (String)
33# define N_(String) (String)
34#else
35# define _(String) (String)
36# define N_(String) String
37# define textdomain(Domain)
38# define bindtextdomain(Package, Directory)
39#endif
40
41#endif /* _PLPINTL_H_ */