forked from GitHub/gf-core
don't try to translate empty sentences
This commit is contained in:
@@ -334,9 +334,11 @@ wc.translate=function(redo) {
|
|||||||
wc.o.appendChild(o.target)
|
wc.o.appendChild(o.target)
|
||||||
}
|
}
|
||||||
else { // text segment to be translated
|
else { // text segment to be translated
|
||||||
o.target=span_class("placeholder",text(is[i]))
|
if (is[i] != "") {
|
||||||
wc.o.appendChild(o.target)
|
o.target=span_class("placeholder",text(is[i]))
|
||||||
translate_segment(o)
|
wc.o.appendChild(o.target)
|
||||||
|
translate_segment(o)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user