From 839233498639cbf53b00d60f13e07db2d47f150a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 16 Jul 2021 12:22:07 +0200 Subject: Use common rules for build and install documentation and translations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Customized copy of the usual en/common directory deleted because the standard version from tdelibs is always used for TDE version. Signed-off-by: Slávek Banko --- diff_ext_for_kdiff3/translations/messages/CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'diff_ext_for_kdiff3') diff --git a/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt b/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt index 75c89f8..24e3bd8 100644 --- a/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt +++ b/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt @@ -1,14 +1 @@ -file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) -string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) - -foreach( _po ${po_files} ) - get_filename_component( _lang ${_po} NAME_WE ) - if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" ) - if( "${_po}" MATCHES "^([^/]*)/.*" ) - string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" ) - else( ) - set( _component "${PROJECT_NAME}" ) - endif( ) - tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} ) - endif( ) -endforeach( ) +tde_add_project_translations() -- cgit v1.2.1