]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Really enable translations 874/head
authornirgal <nirgal@users.noreply.github.com>
Fri, 9 Feb 2018 23:39:55 +0000 (00:39 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2018 23:39:55 +0000 (00:39 +0100)
Fix for issue #872.

src/rrd_tool.c

index 1cb84c8c180cfc4b090863be6ea6dfa02ae9b13f..e6831b88e9fd0810e4b48a9642e973238c4be9df 100644 (file)
@@ -455,9 +455,9 @@ int main(
 #endif
 
 
-#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
-    bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
-    textdomain(GETTEXT_PACKAGE);
+#if ENABLE_NLS
+    bindtextdomain(PACKAGE, LOCALEDIR);
+    textdomain(PACKAGE);
 #endif
     if (argc == 1) {
         PrintUsage("");