diff --git a/lang/en/lang.php b/lang/en/lang.php index fd0eab7..6acde0a 100755 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -38,7 +38,11 @@ $lang['quality_trigger'] = 'toggle page analysis'; $lang['prefix_tasks'] = 'open tasks: '; $lang['prefix_tasks_user'] = 'your open tasks: '; $lang['prefix_tasks_page'] = 'open tasks for this page: '; -$lang['tasks_page_none'] = 'no open tasks for this page'; +$lang['tasks_page_none'] = 'There are no open tasks for this page.'; +$lang['tasks_page_intime'] = 'There are %1$d open tasks on this page.'; +$lang['tasks_page_late'] = 'There are %1$d open tasks on this page, %2$d are late.'; +$lang['tasks_user_none'] = 'You have no open tasks.'; +$lang['tasks_user_intime'] = 'You have %1$d open tasks.'; $lang['discussion'] = 'Discussion'; $lang['back_to_article'] = 'Back to article'; diff --git a/tpl/nav-page-attributes.php b/tpl/nav-page-attributes.php index 6fceac4..1bacb7c 100755 --- a/tpl/nav-page-attributes.php +++ b/tpl/nav-page-attributes.php @@ -27,15 +27,15 @@ if($doPlugin !== null) { $title = tpl_getLang('tasks_page_none'); } elseif($count['undone'] == 0) { // all tasks done $class = 'do_done'; - $title = $this->getLang('title_alldone'); + $title = $doPlugin->getLang('title_alldone'); } elseif($count['late'] == 0) { // open tasks but none late $class = 'do_undone'; - $title = sprintf(tpl_getLang('title_intime'), $count['undone']); + $title = sprintf(tpl_getLang('tasks_page_intime'), $count['undone']); } else { // late tasks $class = 'do_late'; - $title = sprintf(tpl_getLang('title_late'), $count['undone'], $count['late']); + $title = sprintf(tpl_getLang('tasks_page_late'), $count['undone'], $count['late']); } - $markup = "