/* (c) 2007 by Michal Cihar */ /** \file locales.h * Gettext wrapper. * * @author Michal Cihar * @{ */ #ifndef __LOCALES_H #define __LOCALES_H #include #include #ifdef LIBINTL_LIB_FOUND #include #define _(x) gettext(x) #ifndef LIBINTL_HAS_PGETTEXT #define pgettext(context, string) gettext(context "\004" string) #endif #else #define _(x) (x) #define gettext(x) (x) #define pgettext(context, string) (string) #define ngettext(singular, plural, number) (number == 1 ? singular : plural) #endif #define N_(x) x #endif