Update TDEL10n module

+ Changed the concept of naming functions and macros.
+ Now all the functions and macros begin with "tde_l10n_".

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/7/head
Slávek Banko 5 years ago
parent 97ab4f494c
commit 990c0c1132
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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 )

Loading…
Cancel
Save