getDefaultSettings() as $key => $value) {
$translater->$key = $_POST[$key] ?? '';
}
$translater->writeSettings();
dcPage::addSuccessNotice(
__('Configuration successfully updated.')
);
$core->adminurl->redirect(
'admin.plugins',
['module' => 'translater', 'conf' => 1, 'redir' => $list->getRedir()]
);
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
echo '
' . __('Translation') . '
' .
form::field('parse_userinfo', 65, 255, $translater->parse_userinfo) . '
' . sprintf(
__('Following informations can be used: %s'),
implode(', ', $translater::$allowed_user_informations)
) . '
' . __('Import/Export') . '
' .
form::field('export_filename', 65, 255, $translater->export_filename) . '
' . __('Backups') . '
' .
form::combo('backup_folder', $translater::$allowed_backup_folders, $translater->backup_folder) . '
' . __('Behaviors') . '
' .
form::combo('start_page', [
__('Plugins') => 'plugin',
__('Themes') => 'theme',
__('Home') => '-'
], $translater->start_page) . '
';
dcPage::helpBlock('translater.config');