From e255e5deadc9e3a295fac518568808b39eb932ee Mon Sep 17 00:00:00 2001 From: Snaipe Date: Fri, 10 Apr 2015 00:30:34 +0200 Subject: [PATCH] Switched to ENABLE_NLS macro instead of rolling our own --- src/i18n.c | 2 +- src/i18n.h | 2 +- src/main.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/i18n.c b/src/i18n.c index 9507789..5b9899b 100644 --- a/src/i18n.c +++ b/src/i18n.c @@ -1,6 +1,6 @@ #include "i18n.h" -#ifdef I18N +#if ENABLE_NLS __attribute__ ((constructor)) void init_i18n(void) { bindtextdomain (PACKAGE, LOCALEDIR); diff --git a/src/i18n.h b/src/i18n.h index 83a62f2..260c788 100644 --- a/src/i18n.h +++ b/src/i18n.h @@ -3,7 +3,7 @@ # include "config.h" -# ifndef I18N +# if !ENABLE_NLS # define _(String) String # define _s(String, Plural, Quantity) ((Quantity) == 1 ? String : Plural) # else diff --git a/src/main.c b/src/main.c index eaaeaa8..19c7fcd 100644 --- a/src/main.c +++ b/src/main.c @@ -32,7 +32,7 @@ #include "runner.h" #include "config.h" -#ifdef I18N +#if ENABLE_NLS # include #endif @@ -136,7 +136,7 @@ int main(int argc, char *argv[]) { || !strcmp("dumb", getenv("TERM") ?: "dumb"); setlocale(LC_ALL, ""); -#ifdef I18N +#if ENABLE_NLS textdomain (PACKAGE "-test"); #endif