diff options
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/config.h.in b/config.h.in index 5ebdc87..0cc98c6 100644 --- a/config.h.in +++ b/config.h.in @@ -25,22 +25,15 @@ #cmakedefine HAVE_SANE___RESTRICT #cmakedefine HAVE_RESTRICT -#cmakedefine HAVE_GETTEXT +#include <glib/gi18n.h> -#define Q_(s) (s) -#ifdef HAVE_GETTEXT - #include <locale.h> - #include <libintl.h> - #define _(s) gettext(s) - #define N_(s1, s2, n) ngettext(s1, s2, n) - - #define GETTEXT_DOMAIN "${PROJECT_NAME}" +#define GETTEXT_DOMAIN "${PROJECT_NAME}" +#ifdef _WIN32 + #define GETTEXT_DIRNAME "share/locale" +#else #define GETTEXT_DIRNAME "${CMAKE_INSTALL_PREFIX}/share/locale" -#else /* ! HAVE_GETTEXT */ - #define _(s) (s) - #define N_(s1, s2, n) ((n) == 1 ? (s1) : (s2)) -#endif /* ! HAVE_GETTEXT */ +#endif #ifndef HAVE_SANE___RESTRICT |