@@ -451,38 +451,32 @@ public function listTranslationsHandlers(): array
451451 $ key = sprintf ('%s_%d ' , self ::getType (), $ this ->getID ());
452452 $ category_name = __ ('Form properties ' );
453453 $ handlers = [];
454- if (!empty ($ this ->fields ['name ' ])) {
455- $ handlers [$ key ][] = new TranslationHandler (
456- item: $ this ,
457- key: self ::TRANSLATION_KEY_NAME ,
458- name: __ ('Form title ' ),
459- value: $ this ->fields ['name ' ],
460- is_rich_text: false ,
461- category: $ category_name
462- );
463- }
454+ $ handlers [$ key ][] = new TranslationHandler (
455+ item: $ this ,
456+ key: self ::TRANSLATION_KEY_NAME ,
457+ name: __ ('Form title ' ),
458+ value: $ this ->fields ['name ' ],
459+ is_rich_text: false ,
460+ category: $ category_name
461+ );
464462
465- if (!empty ($ this ->fields ['header ' ])) {
466- $ handlers [$ key ][] = new TranslationHandler (
467- item: $ this ,
468- key: self ::TRANSLATION_KEY_HEADER ,
469- name: __ ('Form description ' ),
470- value: $ this ->fields ['header ' ],
471- is_rich_text: true ,
472- category: $ category_name
473- );
474- }
463+ $ handlers [$ key ][] = new TranslationHandler (
464+ item: $ this ,
465+ key: self ::TRANSLATION_KEY_HEADER ,
466+ name: __ ('Form description ' ),
467+ value: $ this ->fields ['header ' ],
468+ is_rich_text: true ,
469+ category: $ category_name
470+ );
475471
476- if (!empty ($ this ->fields ['description ' ])) {
477- $ handlers [$ key ][] = new TranslationHandler (
478- item: $ this ,
479- key: self ::TRANSLATION_KEY_DESCRIPTION ,
480- name: __ ('Service catalog description ' ),
481- value: $ this ->fields ['description ' ],
482- is_rich_text: true ,
483- category: $ category_name
484- );
485- }
472+ $ handlers [$ key ][] = new TranslationHandler (
473+ item: $ this ,
474+ key: self ::TRANSLATION_KEY_DESCRIPTION ,
475+ name: __ ('Service catalog description ' ),
476+ value: $ this ->fields ['description ' ],
477+ is_rich_text: true ,
478+ category: $ category_name
479+ );
486480
487481 $ sections_handlers = array_map (
488482 fn ($ section ) => $ section ->listTranslationsHandlers (),
0 commit comments