From b893b816d448b0243b355ff5f4c890a82fb11425 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 23 Apr 2024 16:48:45 +0800 Subject: [PATCH] * Optimize code. --- extension/lite/custom/ext/lang/de/lite.php | 2 +- extension/lite/custom/ext/lang/en/lite.php | 2 +- extension/lite/custom/ext/lang/fr/lite.php | 2 +- extension/lite/custom/ext/lang/zh-cn/lite.php | 2 +- module/custom/lang/de.php | 1 + module/custom/lang/en.php | 1 + module/custom/lang/fr.php | 1 + module/custom/lang/vi.php | 1 + module/custom/lang/zh-cn.php | 1 + module/custom/ui/execution.html.php | 2 +- 10 files changed, 10 insertions(+), 5 deletions(-) diff --git a/extension/lite/custom/ext/lang/de/lite.php b/extension/lite/custom/ext/lang/de/lite.php index cdc864eee0..cdb20705d0 100644 --- a/extension/lite/custom/ext/lang/de/lite.php +++ b/extension/lite/custom/ext/lang/de/lite.php @@ -19,6 +19,6 @@ $lang->custom->story->fields['reviewRules'] = 'Review Rules'; $lang->custom->story->fields['reviewResultList'] = 'Review Result'; $lang->custom->story->fields['review'] = 'Need Review'; -unset($lang->custom->execution->fields['required']); +$lang->custom->execution = new stdclass(); $lang->custom->system = array('required'); diff --git a/extension/lite/custom/ext/lang/en/lite.php b/extension/lite/custom/ext/lang/en/lite.php index cdc864eee0..cdb20705d0 100644 --- a/extension/lite/custom/ext/lang/en/lite.php +++ b/extension/lite/custom/ext/lang/en/lite.php @@ -19,6 +19,6 @@ $lang->custom->story->fields['reviewRules'] = 'Review Rules'; $lang->custom->story->fields['reviewResultList'] = 'Review Result'; $lang->custom->story->fields['review'] = 'Need Review'; -unset($lang->custom->execution->fields['required']); +$lang->custom->execution = new stdclass(); $lang->custom->system = array('required'); diff --git a/extension/lite/custom/ext/lang/fr/lite.php b/extension/lite/custom/ext/lang/fr/lite.php index cdc864eee0..cdb20705d0 100644 --- a/extension/lite/custom/ext/lang/fr/lite.php +++ b/extension/lite/custom/ext/lang/fr/lite.php @@ -19,6 +19,6 @@ $lang->custom->story->fields['reviewRules'] = 'Review Rules'; $lang->custom->story->fields['reviewResultList'] = 'Review Result'; $lang->custom->story->fields['review'] = 'Need Review'; -unset($lang->custom->execution->fields['required']); +$lang->custom->execution = new stdclass(); $lang->custom->system = array('required'); diff --git a/extension/lite/custom/ext/lang/zh-cn/lite.php b/extension/lite/custom/ext/lang/zh-cn/lite.php index 437d61b3a9..e272ecd7c6 100644 --- a/extension/lite/custom/ext/lang/zh-cn/lite.php +++ b/extension/lite/custom/ext/lang/zh-cn/lite.php @@ -19,6 +19,6 @@ $lang->custom->story->fields['reviewRules'] = '评审规则'; $lang->custom->story->fields['reviewResultList'] = '评审结果'; $lang->custom->story->fields['review'] = '评审流程'; -unset($lang->custom->execution->fields['required']); +$lang->custom->execution = new stdclass(); $lang->custom->system = array('required'); diff --git a/module/custom/lang/de.php b/module/custom/lang/de.php index 50bc7b0e21..17fa08fb33 100644 --- a/module/custom/lang/de.php +++ b/module/custom/lang/de.php @@ -63,6 +63,7 @@ $lang->custom->setPercent = "Enable or Disable {$lang->stage->percent} $lang->custom->beginAndEndDate = 'Begin & End'; $lang->custom->beginAndEndDateRange = 'The Range Of Begin & End'; $lang->custom->limitTaskDateAction = 'Set start and end date required'; +$lang->custom->closedSetting = 'Close Setting'; $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index 906fcf7911..e31d1da4ac 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -63,6 +63,7 @@ $lang->custom->setPercent = "Enable or Disable {$lang->stage->percent} $lang->custom->beginAndEndDate = 'Begin & End'; $lang->custom->beginAndEndDateRange = 'The Range Of Begin & End'; $lang->custom->limitTaskDateAction = 'Set start and end date required'; +$lang->custom->closedSetting = 'Close Setting'; $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; diff --git a/module/custom/lang/fr.php b/module/custom/lang/fr.php index 634a258671..15faf5be2e 100644 --- a/module/custom/lang/fr.php +++ b/module/custom/lang/fr.php @@ -63,6 +63,7 @@ $lang->custom->setPercent = "Enable or Disable {$lang->stage->percent} $lang->custom->beginAndEndDate = 'Begin & End'; $lang->custom->beginAndEndDateRange = 'The Range Of Begin & End'; $lang->custom->limitTaskDateAction = 'Set start and end date required'; +$lang->custom->closedSetting = 'Close Setting'; $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; diff --git a/module/custom/lang/vi.php b/module/custom/lang/vi.php index 2c65eec2fe..1adb0dfc72 100644 --- a/module/custom/lang/vi.php +++ b/module/custom/lang/vi.php @@ -47,6 +47,7 @@ $lang->custom->reviewRule = 'Review Rules'; $lang->custom->switch = "Switch"; $lang->custom->oneUnit = "One {$lang->hourCommon}"; $lang->custom->convertRelationTitle = "Please firstly set the conversion factor from {$lang->hourCommon} to %s"; +$lang->custom->closedSetting = 'Close Setting'; $lang->custom->execution = 'Execution'; $lang->custom->defaultProgram = 'Default program'; diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index f5be356858..1457012bf5 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -63,6 +63,7 @@ $lang->custom->setPercent = "是否启用{$lang->stage->percent}"; $lang->custom->beginAndEndDate = '起止日期'; $lang->custom->beginAndEndDateRange = '起止日期范围'; $lang->custom->limitTaskDateAction = '设置起止日期必填'; +$lang->custom->closedSetting = '关闭设置'; $lang->custom->unitList['efficiency'] = '工时/'; $lang->custom->unitList['manhour'] = '人时/'; diff --git a/module/custom/ui/execution.html.php b/module/custom/ui/execution.html.php index 18b8946d46..72b44a5c42 100644 --- a/module/custom/ui/execution.html.php +++ b/module/custom/ui/execution.html.php @@ -25,7 +25,7 @@ div span ( setClass('text-md font-bold'), - $lang->custom->$module->fields[$module] + $lang->custom->closedSetting ), formGroup (