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
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner1

01:44:12

failed ERP5.PerformanceTest-TestRunner1

00:40:54

passed ERP5.UnitTest-TestRunner1

03:53:55

failed ERP5.UnitTest-TestRunner1

03:53:42

passed ERP5.UnitTest-TestRunner1

12:50:10

failed ERP5.UnitTest-TestRunner1

02:36:41