mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 01:22:51 -06:00
don't try to translate empty sentences
This commit is contained in:
@@ -334,12 +334,14 @@ 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
|
||||||
|
if (is[i] != "") {
|
||||||
o.target=span_class("placeholder",text(is[i]))
|
o.target=span_class("placeholder",text(is[i]))
|
||||||
wc.o.appendChild(o.target)
|
wc.o.appendChild(o.target)
|
||||||
translate_segment(o)
|
translate_segment(o)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wc.save()
|
wc.save()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user