]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Dont search for locale folders if gettext is disabled (#6133)
authoradrido <robots_only_adrido@gmx.com>
Fri, 14 Jul 2017 15:31:18 +0000 (17:31 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Fri, 14 Jul 2017 15:31:18 +0000 (17:31 +0200)
If gettext is disabled, it is defined as 0.

src/porting.cpp

index 51b36459be808752ad5683422b8e5780af688336..b453b7f76d0dbf02338a7d2c926814046bbd758f 100644 (file)
@@ -556,7 +556,7 @@ void initializePaths()
        infostream << "Detected user path: " << path_user << std::endl;
        infostream << "Detected cache path: " << path_cache << std::endl;
 
-#ifdef USE_GETTEXT
+#if USE_GETTEXT
        bool found_localedir = false;
 #  ifdef STATIC_LOCALEDIR
        if (STATIC_LOCALEDIR[0] && fs::PathExists(STATIC_LOCALEDIR)) {