Revert "Use corrent plural sentences in dashboard"

This reverts commit e80db2c3c7.
This commit is contained in:
Karsten Heiken
2011-09-16 16:38:18 +02:00
parent 1fcd8794be
commit f3f4625bbf

View File

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