Add test of BUILD_TRANSLATIONS for setting _translations

Signed-off-by: Ray-V <ray-v@inbox.lv>
pull/73/head
Ray-V 3 years ago
parent 6d6ad623c4
commit 73277a4d75

@ -2023,9 +2023,9 @@ macro( tde_create_translated_desktop )
file( MAKE_DIRECTORY "${_out_dir}" )
endif( )
# are there any translations available?
# are there any translations available, and required?
unset( _translations )
if( EXISTS "${_po_dir}" AND IS_DIRECTORY "${_po_dir}" )
if( EXISTS "${_po_dir}" AND IS_DIRECTORY "${_po_dir}" AND BUILD_TRANSLATIONS )
file( GLOB _translations RELATIVE "${_po_dir}" "${_po_dir}/*.po" )
endif( )

Loading…
Cancel
Save