diff --git a/[refs] b/[refs] index 00351c473ac2..84b0bdf489cb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 63b37de12889b7b96463b7d6de6d3f3704486b91 +refs/heads/master: 47c336307a3680cfdf4adbe718d79f3fe66702ea diff --git a/trunk/tools/power/cpupower/Makefile b/trunk/tools/power/cpupower/Makefile index edb021c5f8cd..e8a03aceceb1 100644 --- a/trunk/tools/power/cpupower/Makefile +++ b/trunk/tools/power/cpupower/Makefile @@ -137,6 +137,7 @@ CFLAGS += -pipe ifeq ($(strip $(NLS)),true) INSTALL_NLS += install-gmo COMPILE_NLS += create-gmo + CFLAGS += -DNLS endif ifeq ($(strip $(CPUFREQ_BENCH)),true) diff --git a/trunk/tools/power/cpupower/utils/helpers/helpers.h b/trunk/tools/power/cpupower/utils/helpers/helpers.h index 7a83022733b2..2747e738efb0 100644 --- a/trunk/tools/power/cpupower/utils/helpers/helpers.h +++ b/trunk/tools/power/cpupower/utils/helpers/helpers.h @@ -16,11 +16,20 @@ #include "helpers/bitmask.h" /* Internationalization ****************************/ +#ifdef NLS + #define _(String) gettext(String) #ifndef gettext_noop #define gettext_noop(String) String #endif #define N_(String) gettext_noop(String) + +#else /* !NLS */ + +#define _(String) String +#define N_(String) String + +#endif /* Internationalization ****************************/ extern int run_as_root;