Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0
Also enable `ky` which appears to work fine.
This commit is contained in:
parent
40bee27e56
commit
6caed7073c
@ -685,12 +685,11 @@ set(GETTEXT_BLACKLISTED_LOCALES
|
|||||||
he
|
he
|
||||||
hi
|
hi
|
||||||
kn
|
kn
|
||||||
ky
|
|
||||||
ms_Arab
|
ms_Arab
|
||||||
th
|
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)
|
if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST)
|
||||||
set(GETTEXT_USED_LOCALES "")
|
set(GETTEXT_USED_LOCALES "")
|
||||||
@ -700,6 +699,8 @@ if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST)
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
message(STATUS "Locale blacklist applied; Locales used: ${GETTEXT_USED_LOCALES}")
|
message(STATUS "Locale blacklist applied; Locales used: ${GETTEXT_USED_LOCALES}")
|
||||||
|
elseif (GETTEXTLIB_FOUND)
|
||||||
|
set(GETTEXT_USED_LOCALES ${GETTEXT_AVAILABLE_LOCALES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set some optimizations and tweaks
|
# Set some optimizations and tweaks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user