Merge branch 'master' of disposed.de:scattport

This commit is contained in:
Eike Foken
2011-09-16 15:02:11 +02:00

View File

@@ -51,30 +51,37 @@ class Dashboard extends MY_Controller {
$tpl['recent_buttons'] = array( $tpl['recent_buttons'] = array(
array( array(
'count' => $this->job->countUnseenResults(), 'count' => $this->job->countUnseenResults(),
'text' => _('Jobs finished'), 'text' => sprintf(ngettext('%d Job finished', '%d Jobs finished',
$this->job->countUnseenResults()), $this->job->countUnseenResults()),
'id' => 'jobs_finished', 'id' => 'jobs_finished',
'title' => sprintf(_('%d jobs finished recently'), 3), 'title' => sprintf(ngettext('%d job finished recently', '%d jobs finished recently',
$this->job->countUnseenResults()), $this->job->countUnseenResults()),
'target' => '#', 'target' => '#',
), ),
array( array(
'count' => 0, 'count' => 0,
'text' => _('Newly shared projects'), 'text' => sprintf(ngettext('Newly shared project', 'Newly shared projects', 0), 0),
'id' => 'shared_projects', 'id' => 'shared_projects',
'title' => sprintf(_('You were invited to join %d projects'), 2), 'title' => sprintf(ngettext('You were invited to join %d project',
'You were invited to join %d projects', 0), 0),
'target' => '#', 'target' => '#',
), ),
array( array(
'count' => $this->job->countRunning(), 'count' => $this->job->countRunning(),
'text' => _('Job running'), 'text' => sprintf(ngettext('Job running', 'Jobs running',
$this->job->countRunning()), $this->job->countRunning()),
'id' => 'jobs_running', 'id' => 'jobs_running',
'title' => sprintf(_('There is %d job currently running'), 1), 'title' => sprintf(ngettext('There is %d job currently running', 'There are %d jobs currently running',
$this->job->countRunning()), $this->job->countRunning()),
'target' => '#', 'target' => '#',
), ),
array( array(
'count' => $this->job->countPending(), 'count' => $this->job->countPending(),
'text' => _('Jobs pending'), 'text' => sprintf(ngettext('Job pending', 'Jobs pending',
$this->job->countPending()), $this->job->countPending()),
'id' => 'jobs_pending', 'id' => 'jobs_pending',
'title' => sprintf(_('There are %2 job currently pending'), 1), 'title' => sprintf(ngettext('There is %d job currently pending', 'There are %d jobs currently pending',
$this->job->countPending()), $this->job->countPending()),
'target' => '#', 'target' => '#',
), ),
); );