getInfo(); $trans = array( 'title' => $form->getTranslateTag('title'), 'instructions' => $form->getTranslateTag('instructions'), ); $newcount=2; $translations = CustomDataTranslation::allTranslations($trans, 'phrase'); $_keys = array_flip($trans); foreach ($translations as $t) { if (!Internationalization::isLanguageEnabled($t->lang)) continue; // Create keys of [trans][de_DE][title] for instance $info['trans'][$t->lang][$_keys[$t->object_hash]] = Format::viewableImages($t->text); } } else { $title = __('Add new custom form section'); $action = 'add'; $url = '?a=add'; $submit_text=__('Add Form'); $newcount=4; } $info=Format::htmlchars(($errors && $_POST)?$_POST:$info, true); ?>