@ -88,13 +88,13 @@ endif( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # t d e _ ad d _ l 1 0 n _ s u b d i r e c t o r y
# # # # # t d e _ l1 0 n _ a d d _ s u b d i r e c t o r y
# # # # #
# # # # # T h e f u n c t i o n s i m u l a t e s t h e add_subdirectory ( ) b e h a v i o r , b u t
# # # # # t h e C M a k e L 1 0 n . t x t f i l e i s u s e d i n s t e a d o f C M a k e L i s t s . t x t .
# # # # #
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( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # t d e _ au t o _ a d d _ l 1 0 n _ s u b d i r e c t o r i e s
# # # # # t d e _ l1 0 n _ au t o _ a d d _ s u b d i r e c t o r i e s
# # # # #
# # # # # T h e f u n c t i o n i s e q u i v a l e n t t o t d e _ a u t o _ a d d _ s u b d i r e c t o r i e s , b u t
# # # # # t h e C M a k e L 1 0 n . t x t f i l e i s u s e d i n s t e a d o f C M a k e L i s t s . t x t .
# # # # #
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 }
A N D N O T $ { _ d i r } S T R E Q U A L " . s v n "
A N D E X I S T S $ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / $ { _ d i r } / C M a k e L 1 0 n . t x t )
tde_ add_ l10n_subdirectory( ${ _dir } )
tde_ l10n_add _subdirectory( ${ _dir } )
endif ( )
endforeach ( )
endfunction ( )
@ -123,12 +123,12 @@ endfunction( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # t d e _ cr e a t e _ l 1 0 n _ t e m p l a t e
# # # # # t d e _ l1 0 n _ cr e a t e _ t e m p l a t e
# # # # #
# # # # # M a c r o i s u s e d t o g e n e r a t e a t r a n s l a t i o n t e m p l a t e - P O T f i l e .
# # # # #
# # # # # S y n t a x :
# # # # # tde_ create_l10n _template(
# # # # # tde_ l10n_ create_template(
# # # # # C A T A L O G f i l e _ n a m e
# # # # # [ S O U R C E S s o u r c e _ s p e c [ s o u r c e _ s p e c ] ]
# # # # # [ E X C L U D E S r e g e x [ r e g e x ] ]
@ -156,7 +156,7 @@ endfunction( )
# # # # # D E S T I N A T I O N d e t e r m i n e s d i r e c t o r y t o s a v e t r a n s l a t i o n t e m p l a t e .
# # # # #
macro ( tde_ create_l10n _template )
macro ( tde_ l10n_ create_template )
unset ( _catalog )
unset ( _sources )