JoomlaPolska / jezyk-J4

Język polski dla Joomla 4
GNU General Public License v2.0
3 stars 5 forks source link

[4.1] Scheduled Tasks Help #140

Closed joomlapl-bot closed 2 years ago

joomlapl-bot commented 2 years ago

PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/36714 Poniżej zmiany w oryginale:

Click to expand the diff! ```diff diff --git a/administrator/components/com_scheduler/src/View/Select/HtmlView.php b/administrator/components/com_scheduler/src/View/Select/HtmlView.php index 260b4bdbfada..c2d35d3a44b1 100644 --- a/administrator/components/com_scheduler/src/View/Select/HtmlView.php +++ b/administrator/components/com_scheduler/src/View/Select/HtmlView.php @@ -14,7 +14,6 @@ use Joomla\CMS\Application\AdministratorApplication; use Joomla\CMS\Factory; -use Joomla\CMS\Helper\ContentHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\GenericDataException; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; @@ -118,8 +117,6 @@ public function display($tpl = null): void */ protected function addToolbar(): void { - $canDo = ContentHelper::getActions('com_scheduler'); - /* * Get the global Toolbar instance * @todo : Replace usage with ToolbarFactoryInterface. but how? @@ -135,14 +132,5 @@ protected function addToolbar(): void ->buttonClass('btn btn-danger') ->icon('icon-times') ->text(Text::_('JCANCEL')); - - // Add preferences button if user has privileges - if ($canDo->get('core.admin') || $canDo->get('core.options')) - { - $toolbar->preferences('com_scheduler'); - } - - // Add help button - $toolbar->help('JHELP_COMPONENTS_SCHEDULED_TASKS_MANAGER'); } } diff --git a/administrator/components/com_scheduler/src/View/Task/HtmlView.php b/administrator/components/com_scheduler/src/View/Task/HtmlView.php index 6e4b77e019ba..ae60b7ce46f5 100644 --- a/administrator/components/com_scheduler/src/View/Task/HtmlView.php +++ b/administrator/components/com_scheduler/src/View/Task/HtmlView.php @@ -145,6 +145,6 @@ protected function addToolbar(): void // @todo | ? : Do we need save2new, save2copy? $toolbar->cancel('task.cancel', $isNew ? 'JTOOLBAR_CANCEL' : 'JTOOLBAR_CLOSE'); - $toolbar->help('JHELP_COMPONENTS_SCHEDULED_TASKS_MANAGER'); + $toolbar->help('Scheduled_Tasks:_Edit'); } } diff --git a/administrator/components/com_scheduler/src/View/Tasks/HtmlView.php b/administrator/components/com_scheduler/src/View/Tasks/HtmlView.php index c422e7262660..1c8e8795b1ec 100644 --- a/administrator/components/com_scheduler/src/View/Tasks/HtmlView.php +++ b/administrator/components/com_scheduler/src/View/Tasks/HtmlView.php @@ -190,6 +190,6 @@ protected function addToolbar(): void $toolbar->preferences('com_scheduler'); } - $toolbar->help('JHELP_COMPONENTS_SCHEDULED_TASKS_MANAGER'); + $toolbar->help('Scheduled_Tasks'); } } diff --git a/administrator/language/en-GB/com_admin.ini b/administrator/language/en-GB/com_admin.ini index 2c59850a6e74..0b8e16f6cc51 100644 --- a/administrator/language/en-GB/com_admin.ini +++ b/administrator/language/en-GB/com_admin.ini @@ -95,6 +95,8 @@ COM_ADMIN_HELP_PRIVATE_MESSAGES:_WRITE="Private Messages: Write" COM_ADMIN_HELP_PRIVATE_MESSAGES="Private Messages: Inbox" COM_ADMIN_HELP_REDIRECTS:_LINKS="Redirect: Links" COM_ADMIN_HELP_REDIRECTS:_NEW_OR_EDIT="Redirect: Links - New/Edit" +COM_ADMIN_HELP_SCHEDULED_TASKS="Scheduled Tasks" +COM_ADMIN_HELP_SCHEDULED_TASKS:_EDIT="Scheduled Tasks: New/Edit" COM_ADMIN_HELP_SITE_GLOBAL_CONFIGURATION="Global Configuration" COM_ADMIN_HELP_SITE_SYSTEM_INFORMATION="System Information" COM_ADMIN_HELP_SMART_SEARCH:_CONTENT_MAPS="Smart Search: Content Maps" ```