From 2c4b73088706fe55e89b19de56b00eb1bdc219c5 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Thu, 20 Nov 2014 11:36:04 +0100 Subject: [PATCH] Dashboard: Update descriptions refs #7751 --- application/controllers/DashboardController.php | 8 ++++---- application/views/scripts/dashboard/new-component.phtml | 2 +- .../views/scripts/dashboard/remove-component.phtml | 2 +- application/views/scripts/dashboard/remove-pane.phtml | 2 +- application/views/scripts/dashboard/settings.phtml | 4 ++-- .../views/scripts/dashboard/update-component.phtml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/application/controllers/DashboardController.php b/application/controllers/DashboardController.php index 94a6b383c..d987a69b1 100644 --- a/application/controllers/DashboardController.php +++ b/application/controllers/DashboardController.php @@ -78,7 +78,7 @@ class DashboardController extends ActionController $dashboard = $this->dashboard; $form = new ComponentForm(); $form->setDashboard($dashboard); - $form->setSubmitLabel(t('Update Component')); + $form->setSubmitLabel(t('Update Dashlet')); if (! $this->_request->getParam('pane')) { throw new Zend_Controller_Action_Exception( 'Missing parameter "pane"', @@ -125,7 +125,7 @@ class DashboardController extends ActionController $action->render('error'); return false; } - Notification::success(t('Component updated')); + Notification::success(t('Dashlet updated')); return true; }); $form->setRedirectUrl('dashboard/settings'); @@ -162,7 +162,7 @@ class DashboardController extends ActionController $pane = $dashboard->getPane($pane); $pane->removeComponent($component); $dashboard->write(); - Notification::success(t('Component has been removed from') . ' ' . $pane->getTitle()); + Notification::success(t('Dashlet has been removed from') . ' ' . $pane->getTitle()); return true; } catch (\Zend_Config_Exception $e) { $action->view->error = $e; @@ -200,7 +200,7 @@ class DashboardController extends ActionController $pane = $dashboard->getPane($pane); $dashboard->removePane($pane->getTitle()); $dashboard->write(); - Notification::success(t('Pane has been removed') . ': ' . $pane->getTitle()); + Notification::success(t('Dashboard has been removed') . ': ' . $pane->getTitle()); return true; } catch (\Zend_Config_Exception $e) { $action->view->error = $e; diff --git a/application/views/scripts/dashboard/new-component.phtml b/application/views/scripts/dashboard/new-component.phtml index 46c8b2255..98b055414 100644 --- a/application/views/scripts/dashboard/new-component.phtml +++ b/application/views/scripts/dashboard/new-component.phtml @@ -2,6 +2,6 @@ tabs ?>
-

+

form; ?>
\ No newline at end of file diff --git a/application/views/scripts/dashboard/remove-component.phtml b/application/views/scripts/dashboard/remove-component.phtml index c39472771..c0097d498 100644 --- a/application/views/scripts/dashboard/remove-component.phtml +++ b/application/views/scripts/dashboard/remove-component.phtml @@ -3,7 +3,7 @@
-

+

translate('Please confirm the removal'); ?>: diff --git a/application/views/scripts/dashboard/remove-pane.phtml b/application/views/scripts/dashboard/remove-pane.phtml index 637774cab..45455d37d 100644 --- a/application/views/scripts/dashboard/remove-pane.phtml +++ b/application/views/scripts/dashboard/remove-pane.phtml @@ -3,7 +3,7 @@

-

+

translate('Please confirm the removal of'); ?>: diff --git a/application/views/scripts/dashboard/settings.phtml b/application/views/scripts/dashboard/settings.phtml index 83fba6588..97f7740cb 100644 --- a/application/views/scripts/dashboard/settings.phtml +++ b/application/views/scripts/dashboard/settings.phtml @@ -10,7 +10,7 @@ - + @@ -33,7 +33,7 @@ - translate('No compoments added to dashboard') ?>. + translate('No dashlets added to dashboard') ?>. diff --git a/application/views/scripts/dashboard/update-component.phtml b/application/views/scripts/dashboard/update-component.phtml index 0493f5613..e83c8b6c3 100644 --- a/application/views/scripts/dashboard/update-component.phtml +++ b/application/views/scripts/dashboard/update-component.phtml @@ -3,6 +3,6 @@

-

+

form; ?>
\ No newline at end of file