From ed1bffcc602244f7a8e5ac3e61f12c9fc8800026 Mon Sep 17 00:00:00 2001 From: Alberto Villa Date: Wed, 9 Nov 2011 15:36:47 +0100 Subject: [PATCH] Remove old l10n scripts KDE Git infrastructure automates all the tasks needed for localisation. The next step will be removing po/ (actually, its sub directories), which will have to be populated when creating tarballs, but I'll wait for translators to move the *.po files. --- CMakeLists.txt | 7 --- cmake/modules/FindMSGFMT.cmake | 50 --------------------- cmake/modules/KdenlivePackageMessages.cmake | 22 --------- 3 files changed, 79 deletions(-) delete mode 100644 cmake/modules/FindMSGFMT.cmake delete mode 100644 cmake/modules/KdenlivePackageMessages.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 20b31562..eb2a6ac4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,17 +39,10 @@ include(CheckIncludeFiles) check_include_files(malloc.h HAVE_MALLOC_H) check_include_files(pthread.h HAVE_PTHREAD_H) -find_package(MSGFMT REQUIRED) -find_program(EXTRACTRC_EXECUTABLE extractrc) -find_program(MSGFMT_EXECUTABLE msgfmt) -find_program(MSGMERGE_EXECUTABLE msgmerge) -find_program(XGETTEXT_EXECUTABLE xgettext) - # Search KDE and dependent packages. find_package(KDE4 ${KDE_MIN_VERSION} REQUIRED) include(KDE4Defaults) include(MacroLibrary) -include(FindGettext) macro_log_feature(KDE4_FOUND "KDELibs" "KDE core libraries" diff --git a/cmake/modules/FindMSGFMT.cmake b/cmake/modules/FindMSGFMT.cmake deleted file mode 100644 index c7cbd577..00000000 --- a/cmake/modules/FindMSGFMT.cmake +++ /dev/null @@ -1,50 +0,0 @@ -# -# Find the msgfmt program -# -# Modified from Rosegarden project -# -# Defined variables: -# MSGFMT_FOUND -# MSGFMT_EXECUTABLE -# -# Macro: -# ADD_TRANSLATIONS -# - -IF(MSGFMT_EXECUTABLE) - SET(MSGFMT_FOUND TRUE) -ELSE(MSGFMT_EXECUTABLE) - FIND_PROGRAM(MSGFMT_EXECUTABLE - NAMES msgfmt gmsgfmt - PATHS /bin /usr/bin /usr/local/bin ) - IF(MSGFMT_EXECUTABLE) - SET(MSGFMT_FOUND TRUE) - ELSE(MSGFMT_EXECUTABLE) - IF(NOT MSGFMT_FIND_QUIETLY) - IF(MSGFMT_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "msgfmt program couldn't be found") - ENDIF(MSGFMT_FIND_REQUIRED) - ENDIF(NOT MSGFMT_FIND_QUIETLY) - ENDIF(MSGFMT_EXECUTABLE) - MARK_AS_ADVANCED(MSGFMT_EXECUTABLE) -ENDIF (MSGFMT_EXECUTABLE) -IF(MSGFMT_FOUND) - MESSAGE(STATUS "Found msgfmt: ${MSGFMT_EXECUTABLE}") -ENDIF(MSGFMT_FOUND) - -MACRO(ADD_TRANSLATIONS _lang) - SET(_outputs) - FOREACH(_file ${ARGN}) - GET_FILENAME_COMPONENT(_file_we ${_file} NAME_WE) - SET(_out "${CMAKE_CURRENT_BINARY_DIR}/${_file_we}.mo") - SET(_in "${CMAKE_CURRENT_SOURCE_DIR}/${_file_we}.po") - ADD_CUSTOM_COMMAND( - OUTPUT ${_out} - COMMAND ${MSGFMT_EXECUTABLE} -o ${_out} ${_in} - DEPENDS ${_in} ) - INSTALL(FILES ${_out} - DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES ) - SET(_outputs ${_outputs} ${_out}) - ENDFOREACH(_file) - ADD_CUSTOM_TARGET(translations ALL DEPENDS ${_outputs}) -ENDMACRO(ADD_TRANSLATIONS) \ No newline at end of file diff --git a/cmake/modules/KdenlivePackageMessages.cmake b/cmake/modules/KdenlivePackageMessages.cmake deleted file mode 100644 index 2bf7280c..00000000 --- a/cmake/modules/KdenlivePackageMessages.cmake +++ /dev/null @@ -1,22 +0,0 @@ - - FIND_PROGRAM(XGETTEXT_EXECUTABLE xgettext) - FIND_PROGRAM(FIND_EXECUTABLE find) - FIND_PROGRAM(RM_EXECUTABLE rm) - FIND_PROGRAM(XTRACTRC_EXECUTABLE extractrc) - - SET(KDE_POT_FILE ${KDE3_INCLUDE_DIR}/kde.pot) - - ADD_CUSTOM_TARGET(package-messages - COMMAND $(MAKE) all # first make sure all generated source exists - COMMAND ${RM_EXECUTABLE} -f po/*.gmo - #COMMAND ${XTRACTRC_EXECUTABLE} ${CMAKE_SOURCE_DIR}/kdenlive/*.rc >> ${CMAKE_SOURCE_DIR}/rc.cpp - COMMAND ${XTRACTRC_EXECUTABLE} --tag=name --tag=description --tag=label --context=effectNames ${CMAKE_SOURCE_DIR}/effects/*.xml >> ${CMAKE_SOURCE_DIR}/rc.cpp - COMMAND ${XGETTEXT_EXECUTABLE} -C - -ki18n -ktr2i18n -kI18N_NOOP - -x ${KDE_POT_FILE} - `${FIND_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} -name \\*.ui -o -name \\*.cpp` - `${FIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} -name \\*.ui -o -name \\*.cpp` - -o ${CMAKE_SOURCE_DIR}/po/kdenlive.pot - COMMAND $(MAKE) translations - # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kwave/menus.config - ) -- 2.39.2