i18n: pick up the translations CMake module just once

This commit is contained in:
Adriaan de Groot 2020-08-27 13:54:08 +02:00
parent 8b4ae1d687
commit 23bfcb755e
3 changed files with 4 additions and 5 deletions

View File

@ -3,11 +3,12 @@
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org> # SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
# SPDX-License-Identifier: BSD-2-Clause # SPDX-License-Identifier: BSD-2-Clause
# #
include( CalamaresAddPlugin )
include( CalamaresAddModuleSubdirectory )
include( CalamaresAddLibrary )
include( CalamaresAddBrandingSubdirectory ) include( CalamaresAddBrandingSubdirectory )
include( CalamaresAddLibrary )
include( CalamaresAddModuleSubdirectory )
include( CalamaresAddPlugin )
include( CalamaresAddTest ) include( CalamaresAddTest )
include( CalamaresAddTranslations )
# library # library
add_subdirectory( libcalamares ) add_subdirectory( libcalamares )

View File

@ -37,7 +37,6 @@ include_directories(
) )
# Translations # Translations
include( CalamaresAddTranslations )
add_calamares_translations( ${CALAMARES_TRANSLATION_LANGUAGES} ) add_calamares_translations( ${CALAMARES_TRANSLATION_LANGUAGES} )
add_executable( calamares_bin ${calamaresSources} calamares.qrc ${trans_outfile} ) add_executable( calamares_bin ${calamaresSources} calamares.qrc ${trans_outfile} )

View File

@ -73,7 +73,6 @@ foreach( _category ${_use_categories} )
endif() endif()
endforeach() endforeach()
include( CalamaresAddTranslations )
add_calamares_python_translations( ${CALAMARES_TRANSLATION_LANGUAGES} ) add_calamares_python_translations( ${CALAMARES_TRANSLATION_LANGUAGES} )
# TODO:3.3: Use FindPython3 # TODO:3.3: Use FindPython3