Dashboard: Update descriptions

refs #7751
This commit is contained in:
Marius Hein 2014-11-20 11:36:04 +01:00
parent 28e406565b
commit 2c4b730887
6 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -2,6 +2,6 @@
<?= $this->tabs ?>
</div>
<div class="content">
<h1><?= t('Add Component To Dashboard'); ?></h1>
<h1><?= t('Add Dashlet To Dashboard'); ?></h1>
<?= $this->form; ?>
</div>

View File

@ -3,7 +3,7 @@
</div>
<div class="content">
<h1><?= t('Remove Component From Dashboard'); ?></h1>
<h1><?= t('Remove Dashlet From Dashboard'); ?></h1>
<p>
<?= $this->translate('Please confirm the removal'); ?>:

View File

@ -3,7 +3,7 @@
</div>
<div class="content">
<h1><?= t('Remove Pane'); ?></h1>
<h1><?= t('Remove Dashboard'); ?></h1>
<p>
<?= $this->translate('Please confirm the removal of'); ?>:

View File

@ -10,7 +10,7 @@
<thead>
<tr>
<th>
<strong><?= t('Component Name') ?></strong>
<strong><?= t('Dashlet Name') ?></strong>
</th>
<th>
<strong><?= t('Url') ?></strong>
@ -33,7 +33,7 @@
<?php if(empty($components)): ?>
<tr>
<td colspan="3">
<?= $this->translate('No compoments added to dashboard') ?>.
<?= $this->translate('No dashlets added to dashboard') ?>.
</td>
</tr>
<?php else: ?>

View File

@ -3,6 +3,6 @@
</div>
<div class="content">
<h1><?= t('Edit Component'); ?></h1>
<h1><?= t('Edit Dashlet'); ?></h1>
<?= $this->form; ?>
</div>