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