diff --git a/extension/lite/my/ext/lang/de/lite.php b/extension/lite/my/ext/lang/de/lite.php new file mode 100644 index 0000000000..7364652099 --- /dev/null +++ b/extension/lite/my/ext/lang/de/lite.php @@ -0,0 +1,7 @@ +my->featureBar['contribute']['task'] = array(); +$lang->my->featureBar['contribute']['task']['assignedTo'] = 'AssignedToMe'; +$lang->my->featureBar['contribute']['task']['openedBy'] = 'CreatedByMe'; +$lang->my->featureBar['contribute']['task']['finishedBy'] = 'FinishedByMe'; +$lang->my->featureBar['contribute']['task']['closedBy'] = 'ClosedByMe'; +$lang->my->featureBar['contribute']['task']['canceledBy'] = 'CancelledByMe'; diff --git a/extension/lite/my/ext/lang/en/lite.php b/extension/lite/my/ext/lang/en/lite.php new file mode 100644 index 0000000000..7364652099 --- /dev/null +++ b/extension/lite/my/ext/lang/en/lite.php @@ -0,0 +1,7 @@ +my->featureBar['contribute']['task'] = array(); +$lang->my->featureBar['contribute']['task']['assignedTo'] = 'AssignedToMe'; +$lang->my->featureBar['contribute']['task']['openedBy'] = 'CreatedByMe'; +$lang->my->featureBar['contribute']['task']['finishedBy'] = 'FinishedByMe'; +$lang->my->featureBar['contribute']['task']['closedBy'] = 'ClosedByMe'; +$lang->my->featureBar['contribute']['task']['canceledBy'] = 'CancelledByMe'; diff --git a/extension/lite/my/ext/lang/fr/lite.php b/extension/lite/my/ext/lang/fr/lite.php new file mode 100644 index 0000000000..7364652099 --- /dev/null +++ b/extension/lite/my/ext/lang/fr/lite.php @@ -0,0 +1,7 @@ +my->featureBar['contribute']['task'] = array(); +$lang->my->featureBar['contribute']['task']['assignedTo'] = 'AssignedToMe'; +$lang->my->featureBar['contribute']['task']['openedBy'] = 'CreatedByMe'; +$lang->my->featureBar['contribute']['task']['finishedBy'] = 'FinishedByMe'; +$lang->my->featureBar['contribute']['task']['closedBy'] = 'ClosedByMe'; +$lang->my->featureBar['contribute']['task']['canceledBy'] = 'CancelledByMe'; diff --git a/extension/lite/my/ext/lang/zh-cn/lite.php b/extension/lite/my/ext/lang/zh-cn/lite.php new file mode 100644 index 0000000000..f3116c38e5 --- /dev/null +++ b/extension/lite/my/ext/lang/zh-cn/lite.php @@ -0,0 +1,7 @@ +my->featureBar['contribute']['task'] = array(); +$lang->my->featureBar['contribute']['task']['assignedTo'] = '指派给我'; +$lang->my->featureBar['contribute']['task']['openedBy'] = '由我创建'; +$lang->my->featureBar['contribute']['task']['finishedBy'] = '由我完成'; +$lang->my->featureBar['contribute']['task']['closedBy'] = '由我关闭'; +$lang->my->featureBar['contribute']['task']['canceledBy'] = '由我取消'; diff --git a/extension/lite/my/ext/view/task.html.php b/extension/lite/my/ext/view/task.html.php index ae4eb268fc..2742bd5f3a 100644 --- a/extension/lite/my/ext/view/task.html.php +++ b/extension/lite/my/ext/view/task.html.php @@ -19,11 +19,10 @@ {$pager->recTotal}"; ?> rawMethod == 'contribute'):?> rawMethod, "mode=$mode&type=assignedTo"), "{$lang->my->taskMenu->assignedToMe}" . ($type == 'assignedTo' ? $recTotalLabel : ''), '', "class='btn btn-link" . ($type == 'assignedTo' ? ' btn-active-text' : '') . "'"); - echo html::a(inlink($app->rawMethod, "mode=$mode&type=openedBy"), "{$lang->my->taskMenu->openedByMe}" . ($type == 'openedBy' ? $recTotalLabel : ''), '', "class='btn btn-link" . ($type == 'openedBy' ? ' btn-active-text' : '') . "'"); - echo html::a(inlink($app->rawMethod, "mode=$mode&type=finishedBy"), "{$lang->my->taskMenu->finishedByMe}" . ($type == 'finishedBy' ? $recTotalLabel : ''), '', "class='btn btn-link" . ($type == 'finishedBy' ? ' btn-active-text' : '') . "'"); - echo html::a(inlink($app->rawMethod, "mode=$mode&type=closedBy"), "{$lang->my->taskMenu->closedByMe}" . ($type == 'closedBy' ? $recTotalLabel : ''), '', "class='btn btn-link" . ($type == 'closedBy' ? ' btn-active-text' : '') . "'"); - echo html::a(inlink($app->rawMethod, "mode=$mode&type=canceledBy"), "{$lang->my->taskMenu->canceledByMe}" . ($type == 'canceledBy' ? $recTotalLabel : ''), '', "class='btn btn-link" . ($type == 'canceledBy' ? ' btn-active-text' : '') . "'"); + foreach($lang->my->featureBar[$app->rawMethod]['task'] as $key => $name) + { + echo html::a(inlink($app->rawMethod, "mode=$mode&type=$key"), "{$name}" . ($type == $key ? $recTotalLabel : ''), '', "class='btn btn-link" . ($type == $key ? ' btn-active-text' : '') . "'"); + } ?> diff --git a/module/my/lang/de.php b/module/my/lang/de.php index 4e211d9168..1951a53acd 100644 --- a/module/my/lang/de.php +++ b/module/my/lang/de.php @@ -90,13 +90,6 @@ $lang->my->auditField->oaTitle['makeup'] = '%s application for makeup:%s'; $lang->my->auditField->oaTitle['overtime'] = '%s application for overtime: %s'; $lang->my->auditField->oaTitle['lieu'] = '%s application for lieu: %s'; -$lang->my->projectMenu = new stdclass(); -$lang->my->projectMenu->doing = 'Doing'; -$lang->my->projectMenu->wait = 'Waiting'; -$lang->my->projectMenu->suspended = 'Suspended'; -$lang->my->projectMenu->closed = 'Closed'; -$lang->my->projectMenu->openedbyme = 'CreatedByMe'; - $lang->my->form = new stdclass(); $lang->my->form->lblBasic = 'Basic Info'; $lang->my->form->lblContact = 'Contact Info'; diff --git a/module/my/lang/en.php b/module/my/lang/en.php index 4e211d9168..1951a53acd 100644 --- a/module/my/lang/en.php +++ b/module/my/lang/en.php @@ -90,13 +90,6 @@ $lang->my->auditField->oaTitle['makeup'] = '%s application for makeup:%s'; $lang->my->auditField->oaTitle['overtime'] = '%s application for overtime: %s'; $lang->my->auditField->oaTitle['lieu'] = '%s application for lieu: %s'; -$lang->my->projectMenu = new stdclass(); -$lang->my->projectMenu->doing = 'Doing'; -$lang->my->projectMenu->wait = 'Waiting'; -$lang->my->projectMenu->suspended = 'Suspended'; -$lang->my->projectMenu->closed = 'Closed'; -$lang->my->projectMenu->openedbyme = 'CreatedByMe'; - $lang->my->form = new stdclass(); $lang->my->form->lblBasic = 'Basic Info'; $lang->my->form->lblContact = 'Contact Info'; diff --git a/module/my/lang/fr.php b/module/my/lang/fr.php index 0812bf99d1..a3685d640f 100644 --- a/module/my/lang/fr.php +++ b/module/my/lang/fr.php @@ -90,13 +90,6 @@ $lang->my->auditField->oaTitle['makeup'] = '%s application for makeup:%s'; $lang->my->auditField->oaTitle['overtime'] = '%s application for overtime: %s'; $lang->my->auditField->oaTitle['lieu'] = '%s application for lieu: %s'; -$lang->my->projectMenu = new stdclass(); -$lang->my->projectMenu->doing = 'Doing'; -$lang->my->projectMenu->wait = 'Waiting'; -$lang->my->projectMenu->suspended = 'Suspended'; -$lang->my->projectMenu->closed = 'Closed'; -$lang->my->projectMenu->openedbyme = 'CreatedByMe'; - $lang->my->form = new stdclass(); $lang->my->form->lblBasic = 'Basic Info'; $lang->my->form->lblContact = 'Contact Info'; diff --git a/module/my/lang/vi.php b/module/my/lang/vi.php index cf7fbc2db3..be9042bc1b 100644 --- a/module/my/lang/vi.php +++ b/module/my/lang/vi.php @@ -61,13 +61,6 @@ $lang->my->storyMenu->openedByMe = 'CreatedByMe'; $lang->my->storyMenu->reviewedByMe = 'ReviewedByMe'; $lang->my->storyMenu->closedByMe = 'ClosedByMe'; -$lang->my->projectMenu = new stdclass(); -$lang->my->projectMenu->doing = 'Doing'; -$lang->my->projectMenu->wait = 'Waiting'; -$lang->my->projectMenu->suspended = 'Suspended'; -$lang->my->projectMenu->closed = 'Closed'; -$lang->my->projectMenu->openedbyme = 'CreatedByMe'; - $lang->my->form = new stdclass(); $lang->my->form->lblBasic = 'Basic Info'; $lang->my->form->lblContact = 'Contact Info'; diff --git a/module/my/lang/zh-cn.php b/module/my/lang/zh-cn.php index 0e176b58d1..22e1bd8eb5 100644 --- a/module/my/lang/zh-cn.php +++ b/module/my/lang/zh-cn.php @@ -90,13 +90,6 @@ $lang->my->auditField->oaTitle['makeup'] = '%s的补班申请:%s'; $lang->my->auditField->oaTitle['overtime'] = '%s的加班申请:%s'; $lang->my->auditField->oaTitle['lieu'] = '%s的调休申请:%s'; -$lang->my->projectMenu = new stdclass(); -$lang->my->projectMenu->doing = '进行中'; -$lang->my->projectMenu->wait = '未开始'; -$lang->my->projectMenu->suspended = '已挂起'; -$lang->my->projectMenu->closed = '已关闭'; -$lang->my->projectMenu->openedbyme = '由我创建'; - $lang->my->form = new stdclass(); $lang->my->form->lblBasic = '基本信息'; $lang->my->form->lblContact = '联系信息';