mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-25 16:43:17 -06:00
don't try to translate empty sentences
This commit is contained in:
1 parent
1219b365a9
commit
bcb1076dda
1 file changed
+5
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user