diff --git a/assets/plugins/evocollection/functions.php b/assets/plugins/evocollection/functions.php index 977b6ee..c69d219 100644 --- a/assets/plugins/evocollection/functions.php +++ b/assets/plugins/evocollection/functions.php @@ -195,7 +195,7 @@ function get_output($config) switch ($type) { case 'date': - $startdate = date($value." 12:00:00"); + $startdate = date($value.date("H:i:s")); return strtotime($startdate); break; diff --git a/assets/plugins/evocollection/lang/english.php b/assets/plugins/evocollection/lang/english.php new file mode 100644 index 0000000..5a9b6d4 --- /dev/null +++ b/assets/plugins/evocollection/lang/english.php @@ -0,0 +1,62 @@ + 'evoCollection configuration editor Module', + 'list_collection' => 'list of collections', + 'default' => 'default', + 'user' => 'User', + 'number' => 'Numeric', + 'date' => 'date', + 'image' => 'Picture', + 'file' => 'File', + 'textarea' => 'Text field', + 'text_editor' => 'Text editor', + 'select' => ' Single select (TV)', + 'checkbox' => 'Single checkbox', + 'not_category' => 'not categorized', + 'config_save_success' => ' Configuration successfully saved!', + 'edit_collection' => 'edit collection', + 'new_collection' => 'New collection', + 'cancel' => 'Cancel', + 'save' => 'Save', + 'general' => 'General', + 'name_config' => 'configuration Name', + 'description' => 'Description', + 'to_apply_to'=> 'Apply to', + 'template' => 'Template', + 'documents' => 'Documents', + 'value' => 'Value', + 'not_selected' =>'not selected', + 'show_doc_on_tree' => 'Show documents in tree', + 'no' => 'no', + 'yes' => 'Yes', + 'location' => 'Location of new documents', + 'down' => 'Below', + 'up' => 'Top', + 'setting_tab' => 'tab Settings', + 'title_tab' => 'tab Title', + 'default_name_doc' => 'default: resource name', + 'columns_used' => 'used columns', + 'titl'=>'Title', + 'enter' => 'Output', + 'handler' => 'Handler', + 'width' => 'Width', + 'choose_from' => 'choose from', + 'document_a' => 'document', + 'tvs' => 'TV parameters', + 'another' => 'Other', + 'sort_col' => 'Sort by column', + 'sort_dir' => 'sort Direction', + 'asc' =>'ascending', + 'desc' =>'descending', + 'show_by' => 'Show by', + 'default_template' => 'default Template', + 'for_new_doc' => 'for newly created resources', + 'editing_method'=>'editing', + 'dblclick' => 'double click', + 'rclick' => 'Right click', + 'create_new_config' => 'Create new configuration', + 'name' => 'Name', + 'not_config' => ' you don\'t have one configuration yet. ', + 'click_here' => 'Click here', + 'create_new_config'=> ' to create the first configuration.' + ); diff --git a/assets/plugins/evocollection/lang/russian-UTF8.php b/assets/plugins/evocollection/lang/russian-UTF8.php new file mode 100644 index 0000000..d6dbd7c --- /dev/null +++ b/assets/plugins/evocollection/lang/russian-UTF8.php @@ -0,0 +1,62 @@ +'Модуль редактирования конфигурации evoCollection', + 'list_collection'=>'Список коллекций', + 'default'=>'По умолчанию', + 'user'=>'Пользовательский', + 'number'=>'Числовой', + 'date'=>'Дата', + 'image'=>'Картинка', + 'file'=>'Файл', + 'textarea'=>'Текстовое поле', + 'text_editor'=>'Текстовый редактор', + 'select'=>'Одиночный выбор (TV)', + 'checkbox'=>'Одиночный чекбокс', + 'not_category'=>'Без категории', + 'config_save_success'=>'Конфигурация успешно сохранена!', + 'edit_collection'=>'Редактирование коллекции', + 'new_collection'=>'Новая коллекция', + 'cancel'=>'Отмена', + 'save'=>'Сохранить', + 'general'=>'Общее', + 'name_config'=>'Название конфигурации', + 'description'=>'Описание', + 'to_apply_to'=>'Применять к', + 'template'=>'Шаблону', + 'documents'=>'Документам', + 'value'=>'Значение', + 'not_selected'=>'не выбрано', + 'show_doc_on_tree'=>'Показывать документы в древе', + 'no'=>'нет', + 'yes'=>'да', + 'location'=>'Расположение новых документов', + 'down'=>'Внизу', + 'up'=>'Вверху', + 'setting_tab'=>'Настройки вкладки', + 'title_tab'=>'Заголовок вкладки', + 'default_name_doc'=>'по умолчанию: название ресурса', + 'columns_used'=>'Используемые столбцы', + 'titl'=>'Заголовок', + 'enter'=>'Вывод', + 'handler'=>'Обработчик', + 'width'=>'Ширина', + 'choose_from'=>'выбрать из', + 'document_a'=>'документа', + 'tvs'=>'ТВ-параметров', + 'another'=>'Прочее', + 'sort_col'=>'Сортировать по столбцу', + 'sort_dir'=>'Направление сортировки', + 'asc'=>'По возрстанию', + 'desc'=>'По убыванию', + 'show_by'=>'Показывать по', + 'default_template'=>'Шаблон по умолчанию', + 'for_new_doc'=>'для вновь созданных ресурсов', + 'editing_method'=>'Способ редактирования', + 'dblclick'=>'По двойному клику', + 'rclick'=>'Правой кнопкой', + 'create_new_config'=>'Создать новую конфигурацию', + 'name'=>'Название', + 'not_config'=>'У вас пока нет не одной конфигурации. ', + 'click_here'=>'Нажмите здесь', + 'create_new_config'=>'чтобы создать первую конфигурацию.' + ); diff --git a/assets/plugins/evocollection/module.ec.php b/assets/plugins/evocollection/module.ec.php index 43643b7..dc9a7b7 100644 --- a/assets/plugins/evocollection/module.ec.php +++ b/assets/plugins/evocollection/module.ec.php @@ -1,27 +1,30 @@ config['manager_language'].".php")) require_once(MODX_BASE_PATH."assets/plugins/evocollection/lang/".$modx->config['manager_language'].".php"); + else require_once(MODX_BASE_PATH."assets/plugins/evocollection/lang/russian-UTF8.php"); + $page = '
-