From 7eb16a47be32b139dec6347a8ff50e0f93b3a73d Mon Sep 17 00:00:00 2001 From: JcDenis Date: Thu, 19 Aug 2021 00:51:40 +0200 Subject: [PATCH] add _config file (not working) --- _config.php | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 _config.php diff --git a/_config.php b/_config.php new file mode 100644 index 0000000..9a086f8 --- /dev/null +++ b/_config.php @@ -0,0 +1,138 @@ +getURL() . '#plugins' : $_REQUEST['redir']; + +# -- Get settings -- +$core->blog->settings->addNamespace('translater'); +$s = $core->blog->settings->translater; + +$translater = new dcTranslater($core); + +$combo_backup_limit = [ + 5 => 5, + 10 => 10, + 15 => 15, + 20 => 20, + 40 => 40, + 60 => 60 +]; + +$combo_backup_folder = [ + 'module' => __('locales folders of each module'), + 'plugin' => __('plugins folder root'), + 'public' => __('public folder root'), + 'cache' => __('cache folder of Dotclear'), + 'translater' =>__('locales folder of translater') +]; + +$combo_start_page = [ + 'setting' => __('Settings'), + 'modules_plugin' => __('Plugins'), + 'modules_theme' => __('Themes'), + 'pack' => __('Import/Export') +]; + +# -- Display form -- +echo ' +
+

' . __('Translation') . '

+

+

+

+

+

+

+


+' . form::field('translater_parse_userinfo', 65, 255, $translater->parse_userinfo) . '

+
+ +
+

' . __('Tools') . '

+

+ +

' . __('Select and configure the tool to use to translate strings:') . '

'; + +foreach($translater->proposal->getTools() AS $k => $v) { + $form = $v->form(); + + echo ' +
+
' . + (empty($form) ? + '

' . sprintf(__('Nothing to configure for %s tool . '), $v->getName()) . '

' : + $form + ) . '
'; +} + +echo ' +
+ +
+

' . __('Import/Export') . '

+

+

+
+ +
+

' . __('Backups') . '

+

+

+

+
+ +
+

' . __('Behaviors') . '

+

+

+

+
+'; \ No newline at end of file