| Exiv2

Loading...
Searching...
No Matches
i18n.h
1/* **************************************************************** -*- C -*- */
2/*
3 * Copyright (C) 2004-2018 Exiv2 authors
4 * This program is part of the Exiv2 distribution.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (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
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
19 */
20/*
21 File: i18n.h
22 Brief: i18n definitions. Do not use. This is an Exiv2 internal header.
23 Author(s): Gilles Caulier (gc) <caulier.gilles@kdemail.net>
24 History: 01-Nov-06, gc: created
25 */
26#ifndef I18N_H_
27#define I18N_H_
28
29#include "config.h"
30
31/* NLS can be disabled through the configure --disable-nls option. */
32#ifdef EXV_ENABLE_NLS
33#include "types.hpp"
34
35// Definition is in types.cpp
36 const char* _exvGettext(const char* str);
37
38#define _(String) Exiv2::exvGettext(String)
39#define N_(String) String
40
41#else /* NLS is disabled */
42
43#define _(String) (String)
44#define N_(String) String
45
46#endif /* EXV_ENABLE_NLS */
47
48#endif /* I18N_H_ */