From 8f3b50336f8ec4b62d2a4c27eddaa743b243220f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 16 Dec 2018 16:34:20 +0100 Subject: Update TDEL10n module + Fix tde_l10n_prepare_xml when processing a line that contains only word "no". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- modules/TDEL10n.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/TDEL10n.cmake') diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake index acad61b..9b769d9 100644 --- a/modules/TDEL10n.cmake +++ b/modules/TDEL10n.cmake @@ -775,12 +775,12 @@ function( tde_l10n_prepare_xml ) # drop empty tag on single line if( _xml_line_prefix AND _xml_line_suffix AND _xml_tag_empty ) - set( _xml_l10n "${_xml_l10n}" ) + # skip empty string for translation # add current tag to output else( ) set( _xml_l10n "${_xml_l10n}${_xml_line_prefix}" ) - if( _xml_line OR ( _xml_line_suffix AND _xml_tag_empty ) ) + if( NOT "${_xml_line}" STREQUAL "" OR ( _xml_line_suffix AND _xml_tag_empty ) ) set( _xml_l10n "${_xml_l10n}\"${_xml_line}\"" ) endif( ) set( _xml_l10n "${_xml_l10n}${_xml_line_suffix}" ) -- cgit v1.2.1