From 990c0c11324b0c011b66593866a683e35f7ce546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 8 Dec 2018 18:49:21 +0100 Subject: [PATCH] Update TDEL10n module + Changed the concept of naming functions and macros. + Now all the functions and macros begin with "tde_l10n_". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- modules/TDEL10n.cmake | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake index cb5464d..58a4313 100644 --- a/modules/TDEL10n.cmake +++ b/modules/TDEL10n.cmake @@ -88,13 +88,13 @@ endif( ) ################################################# ##### -##### tde_add_l10n_subdirectory +##### tde_l10n_add_subdirectory ##### ##### The function simulates the add_subdirectory() behavior, but ##### the CMakeL10n.txt file is used instead of CMakeLists.txt. ##### -function( tde_add_l10n_subdirectory _dir ) +function( tde_l10n_add_subdirectory _dir ) set( CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${_dir}" ) set( CMAKE_CURRENT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/${_dir}" ) include( ${CMAKE_CURRENT_SOURCE_DIR}/CMakeL10n.txt ) @@ -103,19 +103,19 @@ endfunction( ) ################################################# ##### -##### tde_auto_add_l10n_subdirectories +##### tde_l10n_auto_add_subdirectories ##### ##### The function is equivalent to tde_auto_add_subdirectories, but ##### the CMakeL10n.txt file is used instead of CMakeLists.txt. ##### -function( tde_auto_add_l10n_subdirectories ) +function( tde_l10n_auto_add_subdirectories ) file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/*" ) foreach( _dir ${_dirs} ) if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} AND NOT ${_dir} STREQUAL ".svn" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeL10n.txt ) - tde_add_l10n_subdirectory( ${_dir} ) + tde_l10n_add_subdirectory( ${_dir} ) endif( ) endforeach( ) endfunction( ) @@ -123,12 +123,12 @@ endfunction( ) ################################################# ##### -##### tde_create_l10n_template +##### tde_l10n_create_template ##### ##### Macro is used to generate a translation template - POT file. ##### ##### Syntax: -##### tde_create_l10n_template( +##### tde_l10n_create_template( ##### CATALOG file_name ##### [SOURCES source_spec [source_spec]] ##### [EXCLUDES regex [regex]] @@ -156,7 +156,7 @@ endfunction( ) ##### DESTINATION determines directory to save translation template. ##### -macro( tde_create_l10n_template ) +macro( tde_l10n_create_template ) unset( _catalog ) unset( _sources )