/**C*
 *
 * Vaisala software source code file
 *
 * Copyright (c) Vaisala Oyj 2011. All rights reserved.
 *
 * The terms "Vaisala" and "Vaisala Group" are defined as
 * "Vaisala Oyj and all its subsidiaries".
 *
 **C*/

/** @file
 *
 * gettext macros for IRIS/RDA code.
 *
 * $URL: https://subversion.vaisala.com/svn/repos/sigmet/wr_iris_rda/branches/release8.13.5/base/user_lib/nlscommon.h $
 *
 * $Id: nlscommon.h 27833 2012-02-13 16:56:50Z jho $
 *
 */

#ifndef NLS_COMMON_H
#define NLS_COMMON_H

/* 
#ifdef _
#warning "_() is defined"
#endif
*/

#ifdef ENABLE_NLS 
#include <libintl.h> 
#include <locale.h> 
#  undef _
#  if defined NLS_LIB && defined GETTEXT_PACKAGE
#    define _(String) dgettext (GETTEXT_PACKAGE, String) 
#    define G_(String) gettext (String)
#  else
#    define _(String) gettext (String)
#  endif 
#  undef N_ 
#  ifdef gettext_noop
#    define N_(String) gettext_noop (String)
#  else
#    define N_(String) (String)
#  endif
#else 
#  define textdomain(String)
#  define bindtextdomain(Domain,Directory) 
#  define gettext_noop(String) String
#  define _(String) (String)
#  define G_(String) (String)
#  define N_(String) (String)
#endif 

#endif /* NLS_COMMON_H */
