summaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/utils/helpers
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2011-08-19 17:00:02 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2011-08-19 17:00:02 +0200
commit47c336307a3680cfdf4adbe718d79f3fe66702ea (patch)
treeb055f6a2d5eba78db7fc91a605dd48ce9f0de2fc /tools/power/cpupower/utils/helpers
parentcpupower: fix Makefile typo (diff)
downloadlinux-47c336307a3680cfdf4adbe718d79f3fe66702ea.tar.xz
linux-47c336307a3680cfdf4adbe718d79f3fe66702ea.zip
cpupower: make NLS truly optional
Loosely based on a patch for cpufrequtils, submittted by Sergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com> and signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'tools/power/cpupower/utils/helpers')
-rw-r--r--tools/power/cpupower/utils/helpers/helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/power/cpupower/utils/helpers/helpers.h b/tools/power/cpupower/utils/helpers/helpers.h
index 7a83022733b2..2747e738efb0 100644
--- a/tools/power/cpupower/utils/helpers/helpers.h
+++ b/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;