summaryrefslogtreecommitdiffstats
path: root/modules/TDEL10n.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-16 16:34:20 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-09 01:44:15 +0100
commit8f3b50336f8ec4b62d2a4c27eddaa743b243220f (patch)
tree3d8ba1f95b358cf149511837337025ef82cfd581 /modules/TDEL10n.cmake
parentc1f45d8f90f6c156b2d8db584337189436c1fe42 (diff)
downloadtde-cmake-8f3b50336f8ec4b62d2a4c27eddaa743b243220f.tar.gz
tde-cmake-8f3b50336f8ec4b62d2a4c27eddaa743b243220f.zip
Update TDEL10n module
+ Fix tde_l10n_prepare_xml when processing a line that contains only word "no". Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'modules/TDEL10n.cmake')
-rw-r--r--modules/TDEL10n.cmake4
1 files changed, 2 insertions, 2 deletions
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}" )