mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Make it clearer how to enable localisation.
This commit is contained in:
+2
-2
@@ -43,12 +43,12 @@ endif()
|
|||||||
# Find gettext
|
# Find gettext
|
||||||
find_package(Gettext)
|
find_package(Gettext)
|
||||||
find_package(Intl)
|
find_package(Intl)
|
||||||
if(GETTEXT_FOUND AND Intl_FOUND)
|
if(Gettext_FOUND AND Intl_FOUND)
|
||||||
set(HAVE_LOCALIZATION ON)
|
set(HAVE_LOCALIZATION ON)
|
||||||
include_directories(${Intl_INCLUDE_DIRS})
|
include_directories(${Intl_INCLUDE_DIRS})
|
||||||
link_libraries(${Intl_LIBRARIES})
|
link_libraries(${Intl_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
message("Unable to find gettext and libintl; disabling localization")
|
message(STATUS "Unable to find gettext and/or libintl -- read docs/LANGUAGE for how to enable localization")
|
||||||
set(HAVE_LOCALIZATION OFF)
|
set(HAVE_LOCALIZATION OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ void Language::InitLanguages()
|
|||||||
Languages.push_back(language);
|
Languages.push_back(language);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
Log() << "Unable to initialize languages, gettext is not installed";
|
Log() << "Unable to initialize languages, gettext and/or libintl were not installed at build time";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user