diff options
author | sfan5 <sfan5@live.de> | 2021-07-20 17:53:28 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-07-20 17:58:47 +0200 |
commit | 6caed7073c5b50b5502edcb10f072adc3d59f84b (patch) | |
tree | 5a128114092eccd89ebc2950c845c01025f75b8f /src | |
parent | 40bee27e5603a2ed1aff3646fa62661aef55c08a (diff) | |
download | minetest-6caed7073c5b50b5502edcb10f072adc3d59f84b.tar.gz minetest-6caed7073c5b50b5502edcb10f072adc3d59f84b.tar.bz2 minetest-6caed7073c5b50b5502edcb10f072adc3d59f84b.zip |
Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0
Also enable `ky` which appears to work fine.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2a2adfaf0..ac460883a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 |