mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
parent
00323e8fce
commit
3f275d799c
@ -62,7 +62,7 @@ set(USE_GETTEXT FALSE)
|
|||||||
|
|
||||||
if(ENABLE_GETTEXT)
|
if(ENABLE_GETTEXT)
|
||||||
find_package(GettextLib)
|
find_package(GettextLib)
|
||||||
if(GETTEXT_FOUND)
|
if(GETTEXTLIB_FOUND)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
message(STATUS "GetText library: ${GETTEXT_LIBRARY}")
|
message(STATUS "GetText library: ${GETTEXT_LIBRARY}")
|
||||||
message(STATUS "GetText DLL: ${GETTEXT_DLL}")
|
message(STATUS "GetText DLL: ${GETTEXT_DLL}")
|
||||||
@ -70,7 +70,7 @@ if(ENABLE_GETTEXT)
|
|||||||
endif()
|
endif()
|
||||||
set(USE_GETTEXT TRUE)
|
set(USE_GETTEXT TRUE)
|
||||||
message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
|
message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
|
||||||
endif(GETTEXT_FOUND)
|
endif(GETTEXTLIB_FOUND)
|
||||||
else()
|
else()
|
||||||
mark_as_advanced(GETTEXT_ICONV_DLL GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY GETTEXT_MSGFMT)
|
mark_as_advanced(GETTEXT_ICONV_DLL GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY GETTEXT_MSGFMT)
|
||||||
message(STATUS "GetText disabled.")
|
message(STATUS "GetText disabled.")
|
||||||
@ -680,7 +680,7 @@ set(GETTEXT_BLACKLISTED_LOCALES
|
|||||||
|
|
||||||
option(APPLY_LOCALE_BLACKLIST "Use a blacklist to avoid broken locales" TRUE)
|
option(APPLY_LOCALE_BLACKLIST "Use a blacklist to avoid broken locales" TRUE)
|
||||||
|
|
||||||
if (GETTEXT_FOUND AND APPLY_LOCALE_BLACKLIST)
|
if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST)
|
||||||
set(GETTEXT_USED_LOCALES "")
|
set(GETTEXT_USED_LOCALES "")
|
||||||
foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES})
|
foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES})
|
||||||
if (NOT ";${GETTEXT_BLACKLISTED_LOCALES};" MATCHES ";${LOCALE};")
|
if (NOT ";${GETTEXT_BLACKLISTED_LOCALES};" MATCHES ";${LOCALE};")
|
||||||
|
Loading…
Reference in New Issue
Block a user