Blame src/i18n.h

Packit Service 21b5d1
/* **************************************************************** -*- C -*- */
Packit Service 21b5d1
/*
Packit Service 21b5d1
 * Copyright (C) 2004-2018 Exiv2 authors
Packit Service 21b5d1
 * This program is part of the Exiv2 distribution.
Packit Service 21b5d1
 *
Packit Service 21b5d1
 * This program is free software; you can redistribute it and/or
Packit Service 21b5d1
 * modify it under the terms of the GNU General Public License
Packit Service 21b5d1
 * as published by the Free Software Foundation; either version 2
Packit Service 21b5d1
 * of the License, or (at your option) any later version.
Packit Service 21b5d1
 *
Packit Service 21b5d1
 * This program is distributed in the hope that it will be useful,
Packit Service 21b5d1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 21b5d1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 21b5d1
 * GNU General Public License for more details.
Packit Service 21b5d1
 *
Packit Service 21b5d1
 * You should have received a copy of the GNU General Public License
Packit Service 21b5d1
 * along with this program; if not, write to the Free Software
Packit Service 21b5d1
 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
Packit Service 21b5d1
 */
Packit Service 21b5d1
/*
Packit Service 21b5d1
  File:      i18n.h
Packit Service 21b5d1
  Brief:     i18n definitions. Do not use. This is an Exiv2 internal header.
Packit Service 21b5d1
  Author(s): Gilles Caulier (gc) <caulier.gilles@kdemail.net>
Packit Service 21b5d1
  History:   01-Nov-06, gc: created
Packit Service 21b5d1
 */
Packit Service 21b5d1
#ifndef I18N_H_
Packit Service 21b5d1
#define I18N_H_
Packit Service 21b5d1
Packit Service 21b5d1
#include "config.h"
Packit Service 21b5d1
Packit Service 21b5d1
/* NLS can be disabled through the configure --disable-nls option. */
Packit Service 21b5d1
#ifdef EXV_ENABLE_NLS
Packit Service 21b5d1
# include <libintl.h>
Packit Service 21b5d1
Packit Service 21b5d1
// Definition is in types.cpp
Packit Service 21b5d1
EXIV2API const char* _exvGettext(const char* str);
Packit Service 21b5d1
Packit Service 21b5d1
# define _(String) _exvGettext(String)
Packit Service 21b5d1
# define N_(String) String
Packit Service 21b5d1
Packit Service 21b5d1
#else /* NLS is disabled */
Packit Service 21b5d1
Packit Service 21b5d1
# define _(String) (String)
Packit Service 21b5d1
# define N_(String) String
Packit Service 21b5d1
Packit Service 21b5d1
#endif /* EXV_ENABLE_NLS */
Packit Service 21b5d1
Packit Service 21b5d1
#endif /* I18N_H_ */