Skip to content

Commit

Permalink
Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0
Browse files Browse the repository at this point in the history
Also enable `ky` which appears to work fine.
  • Loading branch information
sfan5 committed Jul 20, 2021
1 parent 40bee27 commit 6caed70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -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 "")
Expand All @@ -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
Expand Down

0 comments on commit 6caed70

Please sign in to comment.