xhtml_style: fix form_dialog using a different condition for <legend>

form_dialog was different from form_render (that is used in form_view
and form_list) regarding the <legend> element for form groups:

 - the element was unconditionally present, unlike form_render where it
 is only displayed if non empty
 - the text was not translated
6 jobs for feat/form-group-legent
in 0 seconds, using 0 compute credits, and was queued for 0 seconds