]> git.lizzy.rs Git - minetest.git/commitdiff
Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0
authorsfan5 <sfan5@live.de>
Tue, 20 Jul 2021 15:53:28 +0000 (17:53 +0200)
committersfan5 <sfan5@live.de>
Tue, 20 Jul 2021 15:58:47 +0000 (17:58 +0200)
Also enable `ky` which appears to work fine.

src/CMakeLists.txt

index 2a2adfaf0ec48db51d1b14bf29524554e2c1e08d..ac460883add96612dbb321b407116027e226a62e 100644 (file)
@@ -685,12 +685,11 @@ set(GETTEXT_BLACKLISTED_LOCALES
        he
        hi
        kn
-       ky
        ms_Arab
        th
 )
 
-option(APPLY_LOCALE_BLACKLIST "Use a blacklist to avoid broken locales" TRUE)
+option(APPLY_LOCALE_BLACKLIST "Use a blacklist to avoid known broken locales" TRUE)
 
 if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST)
        set(GETTEXT_USED_LOCALES "")
@@ -700,6 +699,8 @@ if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST)
                endif()
        endforeach()
        message(STATUS "Locale blacklist applied; Locales used: ${GETTEXT_USED_LOCALES}")
+elseif (GETTEXTLIB_FOUND)
+       set(GETTEXT_USED_LOCALES ${GETTEXT_AVAILABLE_LOCALES})
 endif()
 
 # Set some optimizations and tweaks