mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
721a360707
We are no longer C++, we no longer support xcode Note: This will remove a warning "DO NOT EDIT" comment from __fish_build_paths.fish, but that's unnecessary. The file is typically in /usr or another package-manager-owned location, so people don't typically edit it. And if it did we don't actually *care*, it'll work fine.
22 lines
723 B
CMake
22 lines
723 B
CMake
set(languages de en fr pl pt_BR sv zh_CN)
|
|
|
|
include(FeatureSummary)
|
|
|
|
option(WITH_GETTEXT "translate messages if gettext is available" ON)
|
|
if(WITH_GETTEXT)
|
|
find_package(Gettext)
|
|
endif()
|
|
add_feature_info(gettext GETTEXT_FOUND "translate messages with gettext")
|
|
|
|
# Define translations
|
|
if(GETTEXT_FOUND)
|
|
# Group pofile targets into their own folder, as there's a lot of them.
|
|
set(CMAKE_FOLDER pofiles)
|
|
foreach(lang ${languages})
|
|
# Our translations aren't set up entirely as CMake expects, so installation is done in
|
|
# cmake/Install.cmake instead of using INSTALL_DESTINATION
|
|
gettext_process_po_files(${lang} ALL
|
|
PO_FILES po/${lang}.po)
|
|
endforeach()
|
|
set(CMAKE_FOLDER)
|
|
endif()
|