From bcb1076dda06bb81684e49822563ad773ea45db5 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Fri, 16 Sep 2022 12:29:27 +0200 Subject: [PATCH] don't try to translate empty sentences --- src/compiler/www/js/wc.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/compiler/www/js/wc.js b/src/compiler/www/js/wc.js index bcdf49def..2c938eedb 100644 --- a/src/compiler/www/js/wc.js +++ b/src/compiler/www/js/wc.js @@ -334,9 +334,11 @@ wc.translate=function(redo) { wc.o.appendChild(o.target) } else { // text segment to be translated - o.target=span_class("placeholder",text(is[i])) - wc.o.appendChild(o.target) - translate_segment(o) + if (is[i] != "") { + o.target=span_class("placeholder",text(is[i])) + wc.o.appendChild(o.target) + translate_segment(o) + } } } }