mirror of https://github.com/MidnightCommander/mc
27 lines
725 B
C
27 lines
725 B
C
#ifndef _MC_I18N_H_
|
|
#define _MC_I18N_H_
|
|
|
|
#ifdef VFS_STANDALONE /* We do not want vfs code to depend on internationalization, do we? */
|
|
#undef ENABLE_NLS
|
|
#endif
|
|
|
|
#ifdef ENABLE_NLS
|
|
# include <libintl.h>
|
|
# define _(String) gettext (String)
|
|
# ifdef gettext_noop
|
|
# define N_(String) gettext_noop (String)
|
|
# else
|
|
# define N_(String) (String)
|
|
# endif
|
|
#else /* Stubs that do something close enough. */
|
|
# define textdomain(String)
|
|
# define gettext(String) (String)
|
|
# define dgettext(Domain,Message) (Message)
|
|
# define dcgettext(Domain,Message,Type) (Message)
|
|
# define bindtextdomain(Domain,Directory)
|
|
# define _(String) (String)
|
|
# define N_(String) (String)
|
|
#endif /* !ENABLE_NLS */
|
|
|
|
#endif /* _MC_I18N_H_ */
|