diff --git a/module/custom/control.php b/module/custom/control.php index c3ce006d2f..00b5a84737 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -19,7 +19,11 @@ class custom extends control */ public function index() { - if(common::hasPriv('custom', 'set')) die(js::locate(inlink('set', "module=project&field=" . key($this->lang->custom->project->fields)))); + if(($this->config->systemMode == 'new') and common::hasPriv('custom', 'set')) + { + die(js::locate(inlink('set', "module=project&field=" . key($this->lang->custom->project->fields)))); + } + if(common::hasPriv('custom', 'product')) die(js::locate(inlink('product'))); if(common::hasPriv('custom', 'execution')) die(js::locate(inlink('execution'))); diff --git a/module/custom/lang/de.php b/module/custom/lang/de.php index cb2bfc9838..408511bd8b 100644 --- a/module/custom/lang/de.php +++ b/module/custom/lang/de.php @@ -1,4 +1,6 @@ custom->common = 'Custom'; $lang->custom->index = 'Home'; $lang->custom->set = 'Customize'; @@ -19,7 +21,6 @@ $lang->custom->score = 'Score'; $lang->custom->timezone = 'Timezone'; $lang->custom->scoreReset = 'Reset Score'; $lang->custom->scoreTitle = 'Point Feature'; -$lang->custom->execution = 'Execution'; $lang->custom->product = $lang->productCommon; $lang->custom->convertFactor = 'Convert factor'; $lang->custom->region = 'Interval'; @@ -46,6 +47,9 @@ $lang->custom->switch = "Switch"; $lang->custom->oneUnit = "One {$lang->hourCommon}"; $lang->custom->convertRelationTitle = "Please set the conversion factor of {$lang->hourCommon} to %s first"; +if($config->systemMode == 'new') $lang->custom->execution = 'Execution'; +if($config->systemMode == 'classic') $lang->custom->execution = $lang->executionCommon; + $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; $lang->custom->unitList['cost'] = 'Yuan/Hour'; @@ -71,12 +75,12 @@ $lang->custom->saveTips = 'After clicking save, the current %s will b $lang->custom->numberError = 'The interval must be greater than zero!'; -$lang->custom->closedExecution = 'Closed Executions'; +$lang->custom->closedExecution = 'Closed ' . $lang->executionCommon; $lang->custom->closedProduct = 'Closed ' . $lang->productCommon; -$lang->custom->object['project'] = 'Project'; +if($config->systemMode == 'new') $lang->custom->object['project'] = 'Project'; $lang->custom->object['product'] = $lang->productCommon; -$lang->custom->object['execution'] = 'Execution'; +$lang->custom->object['execution'] = $lang->custom->execution; $lang->custom->object['story'] = 'Story'; $lang->custom->object['task'] = 'Task'; $lang->custom->object['bug'] = 'Bug'; @@ -164,7 +168,7 @@ $lang->custom->notice->required = 'The selected field is required.'; $lang->custom->notice->conceptResult = 'According to your preference, %s-%s is set for you. Use %s + %s。'; $lang->custom->notice->conceptPath = 'Go to Admin -> Custom -> Concept to set it.'; $lang->custom->notice->readOnlyOfProduct = 'If Change Forbidden, any change on stories, bugs, cases, efforts, releases and plans of the closed product is also forbidden.'; -$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed execution is also forbidden."; +$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed {$lang->executionCommon} is also forbidden."; $lang->custom->notice->URSREmpty = 'Custom requirement name can not be empty!'; $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it?'; @@ -221,7 +225,7 @@ $lang->custom->CRExecution[0] = 'Change Forbidden'; $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Plan'; -$lang->custom->moduleName['execution'] = 'Execution'; +$lang->custom->moduleName['execution'] = $lang->custom->execution; $lang->custom->conceptQuestions['overview'] = "1. Which combination of management fits your company?"; $lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index 6a1c8fbce9..c503045d1c 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -1,4 +1,6 @@ custom->common = 'Custom'; $lang->custom->index = 'Home'; $lang->custom->set = 'Customize'; @@ -19,7 +21,6 @@ $lang->custom->score = 'Point'; $lang->custom->timezone = 'Timezone'; $lang->custom->scoreReset = 'Reset Points'; $lang->custom->scoreTitle = 'Point Feature'; -$lang->custom->execution = 'Execution'; $lang->custom->product = $lang->productCommon; $lang->custom->convertFactor = 'Convert factor'; $lang->custom->region = 'Interval'; @@ -46,6 +47,9 @@ $lang->custom->switch = "Switch"; $lang->custom->oneUnit = "One {$lang->hourCommon}"; $lang->custom->convertRelationTitle = "Please set the conversion factor of {$lang->hourCommon} to %s first"; +if($config->systemMode == 'new') $lang->custom->execution = 'Execution'; +if($config->systemMode == 'classic') $lang->custom->execution = $lang->executionCommon; + $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; $lang->custom->unitList['cost'] = 'Yuan/Hour'; @@ -71,12 +75,12 @@ $lang->custom->saveTips = 'After clicking save, the current %s will b $lang->custom->numberError = 'The interval must be greater than zero!'; -$lang->custom->closedExecution = 'Closed Executions'; +$lang->custom->closedExecution = 'Closed ' . $lang->executionCommon; $lang->custom->closedProduct = 'Closed ' . $lang->productCommon; -$lang->custom->object['project'] = 'Project'; +if($config->systemMode == 'new') $lang->custom->object['project'] = 'Project'; $lang->custom->object['product'] = $lang->productCommon; -$lang->custom->object['execution'] = 'Execution'; +$lang->custom->object['execution'] = $lang->custom->execution; $lang->custom->object['story'] = 'Story'; $lang->custom->object['task'] = 'Task'; $lang->custom->object['bug'] = 'Bug'; @@ -164,7 +168,7 @@ $lang->custom->notice->required = 'The selected field is required.'; $lang->custom->notice->conceptResult = 'According to your preference, %s-%s is set for you. Use %s + %s.'; $lang->custom->notice->conceptPath = 'Go to Admin -> Custom -> Concept to set it.'; $lang->custom->notice->readOnlyOfProduct = 'If Change Forbidden, any change on stories, bugs, cases, efforts, releases and plans of the closed product is also forbidden.'; -$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed execution is also forbidden."; +$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed {$lang->executionCommon} is also forbidden."; $lang->custom->notice->URSREmpty = 'Custom requirement name can not be empty!'; $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it?'; @@ -221,7 +225,7 @@ $lang->custom->CRExecution[0] = 'Change Forbidden'; $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Plan'; -$lang->custom->moduleName['execution'] = 'Execution'; +$lang->custom->moduleName['execution'] = $lang->custom->execution; $lang->custom->conceptQuestions['overview'] = "1. Which combination of management fits your company?"; $lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; diff --git a/module/custom/lang/fr.php b/module/custom/lang/fr.php index 8f403c1fb6..6f7ef9f418 100644 --- a/module/custom/lang/fr.php +++ b/module/custom/lang/fr.php @@ -1,4 +1,6 @@ custom->common = 'Personnalisation'; $lang->custom->index = 'Accueil'; $lang->custom->set = 'Personnaliser'; @@ -19,7 +21,6 @@ $lang->custom->score = 'Point'; $lang->custom->timezone = 'Timezone'; $lang->custom->scoreReset = 'Réinit Points'; $lang->custom->scoreTitle = 'Fonctionnalité des Points'; -$lang->custom->execution = 'Execution'; $lang->custom->product = $lang->productCommon; $lang->custom->convertFactor = 'Convert factor'; $lang->custom->region = 'Interval'; @@ -46,6 +47,9 @@ $lang->custom->switch = "Switch"; $lang->custom->oneUnit = "One {$lang->hourCommon}"; $lang->custom->convertRelationTitle = "Please set the conversion factor of {$lang->hourCommon} to %s first"; +if($config->systemMode == 'new') $lang->custom->execution = 'Execution'; +if($config->systemMode == 'classic') $lang->custom->execution = $lang->executionCommon; + $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; $lang->custom->unitList['cost'] = 'Yuan/Hour'; @@ -71,12 +75,12 @@ $lang->custom->saveTips = 'After clicking save, the current %s will b $lang->custom->numberError = 'The interval must be greater than zero!'; -$lang->custom->closedExecution = 'Closed Executions'; +$lang->custom->closedExecution = 'Closed ' . $lang->executionCommon; $lang->custom->closedProduct = 'Closed ' . $lang->productCommon; -$lang->custom->object['project'] = 'Project'; +if($config->systemMode == 'new') $lang->custom->object['project'] = 'Project'; $lang->custom->object['product'] = $lang->productCommon; -$lang->custom->object['execution'] = 'Execution'; +$lang->custom->object['execution'] = $lang->custom->execution; $lang->custom->object['story'] = 'Story'; $lang->custom->object['task'] = 'Tâche'; $lang->custom->object['bug'] = 'Bug'; @@ -164,7 +168,7 @@ $lang->custom->notice->required = 'Le champ sélectionné est obligat $lang->custom->notice->conceptResult = 'Selon votre préférence, %s-%s peut être fixé pour vous. Utilisez %s + %s。'; $lang->custom->notice->conceptPath = 'Allez à Admin -> Custom -> Concept pour le paramétrer.'; $lang->custom->notice->readOnlyOfProduct = 'If Change Forbidden, any change on stories, bugs, cases, efforts, releases and plans of the closed product is also forbidden.'; -$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed execution is also forbidden."; +$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed {$lang->executionCommon} is also forbidden."; $lang->custom->notice->URSREmpty = 'Custom requirement name can not be empty!'; $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it?'; @@ -221,7 +225,7 @@ $lang->custom->CRExecution[0] = 'Change Forbidden'; $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Plan'; -$lang->custom->moduleName['execution'] = 'Execution'; +$lang->custom->moduleName['execution'] = $lang->custom->execution; $lang->custom->conceptQuestions['overview'] = "1. Quelle combinaison de gestion convient le mieux à votre entreprise ?"; $lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; diff --git a/module/custom/lang/vi.php b/module/custom/lang/vi.php index 01f807d6a5..cf9b0cbf18 100644 --- a/module/custom/lang/vi.php +++ b/module/custom/lang/vi.php @@ -1,4 +1,6 @@ custom->common = 'Tùy biến'; $lang->custom->index = 'Trang chủ'; $lang->custom->set = 'Tùy biến'; @@ -19,7 +21,6 @@ $lang->custom->score = 'Điểm'; $lang->custom->timezone = 'Timezone'; $lang->custom->scoreReset = 'Thiết lập lại điểm'; $lang->custom->scoreTitle = 'Tính năng điểm'; -$lang->custom->execution = 'Execution'; $lang->custom->product = $lang->productCommon; $lang->custom->convertFactor = 'Convert factor'; $lang->custom->region = 'Interval'; @@ -46,6 +47,9 @@ $lang->custom->switch = "Switch"; $lang->custom->oneUnit = "One {$lang->hourCommon}"; $lang->custom->convertRelationTitle = "Please set the conversion factor of {$lang->hourCommon} to %s first"; +if($config->systemMode == 'new') $lang->custom->execution = 'Execution'; +if($config->systemMode == 'classic') $lang->custom->execution = $lang->executionCommon; + $lang->custom->unitList['efficiency'] = 'Working Hours/'; $lang->custom->unitList['manhour'] = 'Man-hour/'; $lang->custom->unitList['cost'] = 'Yuan/Hour'; @@ -71,12 +75,12 @@ $lang->custom->saveTips = 'After clicking save, the current %s will b $lang->custom->numberError = 'The interval must be greater than zero!'; -$lang->custom->closedExecution = 'Closed Executions'; +$lang->custom->closedExecution = 'Closed ' . $lang->executionCommon; $lang->custom->closedProduct = 'Closed ' . $lang->productCommon; -$lang->custom->object['project'] = 'Project'; +if($config->systemMode == 'new') $lang->custom->object['project'] = 'Project'; $lang->custom->object['product'] = $lang->productCommon; -$lang->custom->object['execution'] = 'Execution'; +$lang->custom->object['execution'] = $lang->custom->execution; $lang->custom->object['story'] = 'Câu chuyện'; $lang->custom->object['task'] = 'Nhiệm vụ'; $lang->custom->object['bug'] = 'Bug'; @@ -164,7 +168,7 @@ $lang->custom->notice->required = 'Trường được chọn là bắ $lang->custom->notice->conceptResult = 'According to your preference, %s-%s is set for you. Sử dụng %s + %s.'; $lang->custom->notice->conceptPath = 'Vào Quản trị -> Tùy biến -> Mô hình để thiết lập nó.'; $lang->custom->notice->readOnlyOfProduct = 'If Change Forbidden, any change on stories, bugs, cases, efforts, releases and plans of the closed product is also forbidden.'; -$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed execution is also forbidden."; +$lang->custom->notice->readOnlyOfExecution = "If Change Forbidden, any change on tasks, builds, efforts and stories of the closed {$lang->executionCommon} is also forbidden."; $lang->custom->notice->URSREmpty = 'Custom requirement name can not be empty!'; $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it?'; @@ -221,7 +225,7 @@ $lang->custom->CRExecution[0] = 'Change Forbidden'; $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Kế hoạch'; -$lang->custom->moduleName['execution'] = 'Execution'; +$lang->custom->moduleName['execution'] = $lang->custom->execution; $lang->custom->conceptQuestions['overview'] = "1. Sự kết hợp quản lý nào phù hợp với công ty của bạn?"; $lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index d02db166d0..aa40fc9a08 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -1,4 +1,6 @@ custom->common = '自定义'; $lang->custom->index = '首页'; $lang->custom->set = '自定义配置'; @@ -19,7 +21,6 @@ $lang->custom->score = '积分'; $lang->custom->timezone = '时区'; $lang->custom->scoreReset = '重置积分'; $lang->custom->scoreTitle = '积分功能'; -$lang->custom->execution = '执行'; $lang->custom->product = $lang->productCommon; $lang->custom->convertFactor = '换算系数'; $lang->custom->region = '区间'; @@ -46,6 +47,9 @@ $lang->custom->switch = "切换"; $lang->custom->oneUnit = "一个{$lang->hourCommon}"; $lang->custom->convertRelationTitle = "请先设置{$lang->hourCommon}转换为%s的换算系数"; +if($config->systemMode == 'new') $lang->custom->execution = '执行'; +if($config->systemMode == 'classic') $lang->custom->execution = $lang->executionCommon; + $lang->custom->unitList['efficiency'] = '工时/'; $lang->custom->unitList['manhour'] = '人时/'; $lang->custom->unitList['cost'] = '元/小时'; @@ -71,12 +75,12 @@ $lang->custom->saveTips = '点击保存后,则以当前%s为默认 $lang->custom->numberError = '区间必须大于零'; -$lang->custom->closedExecution = '已关闭执行'; +$lang->custom->closedExecution = '已关闭' . $lang->custom->execution; $lang->custom->closedProduct = '已关闭' . $lang->productCommon; -$lang->custom->object['project'] = '项目'; +if($config->systemMode == 'new') $lang->custom->object['project'] = '项目'; $lang->custom->object['product'] = $lang->productCommon; -$lang->custom->object['execution'] = '执行'; +$lang->custom->object['execution'] = $lang->custom->execution; $lang->custom->object['story'] = $lang->SRCommon; $lang->custom->object['task'] = '任务'; $lang->custom->object['bug'] = 'Bug'; @@ -151,26 +155,26 @@ $lang->custom->allLang = '适用所有语言'; $lang->custom->confirmRestore = '是否要恢复默认配置?'; $lang->custom->notice = new stdclass(); -$lang->custom->notice->userFieldNotice = '控制以上字段在用户相关页面是否显示,留空则全部显示'; -$lang->custom->notice->canNotAdd = '该项参与运算,不提供自定义添加功能'; -$lang->custom->notice->forceReview = "指定人提交的%s必须评审。"; -$lang->custom->notice->forceNotReview = "指定人提交的%s不需要评审。"; -$lang->custom->notice->longlife = 'Bug列表页面的久未处理标签中,列出设置天数之前未处理的Bug。'; -$lang->custom->notice->invalidNumberKey = '键值应为不大于255的数字'; -$lang->custom->notice->invalidStringKey = '键值应当为小写英文字母、数字或下划线的组合'; -$lang->custom->notice->cannotSetTimezone = 'date_default_timezone_set方法不存在或禁用,不能设置时区。'; -$lang->custom->notice->noClosedBlock = '没有永久关闭的区块'; -$lang->custom->notice->required = '页面提交时,选中的字段必填'; -$lang->custom->notice->conceptResult = '我们已经根据您的选择为您设置了 %s-%s 模式,使用%s + %s。'; -$lang->custom->notice->conceptPath = '您可以在:后台 -> 自定义 -> 流程页面修改。'; -$lang->custom->notice->readOnlyOfProduct = '禁止修改后,已关闭' . $lang->productCommon . '下的' . $lang->SRCommon . '、Bug、用例、日志、发布、计划都禁止修改。'; -$lang->custom->notice->readOnlyOfExecution = '禁止修改后,已关闭执行下的任务、版本、日志以及关联需求都禁止修改。'; -$lang->custom->notice->URSREmpty = '自定义需求名称不能为空!'; -$lang->custom->notice->confirmDelete = '您确定要删除吗?'; +$lang->custom->notice->userFieldNotice = '控制以上字段在用户相关页面是否显示,留空则全部显示'; +$lang->custom->notice->canNotAdd = '该项参与运算,不提供自定义添加功能'; +$lang->custom->notice->forceReview = "指定人提交的%s必须评审。"; +$lang->custom->notice->forceNotReview = "指定人提交的%s不需要评审。"; +$lang->custom->notice->longlife = 'Bug列表页面的久未处理标签中,列出设置天数之前未处理的Bug。'; +$lang->custom->notice->invalidNumberKey = '键值应为不大于255的数字'; +$lang->custom->notice->invalidStringKey = '键值应当为小写英文字母、数字或下划线的组合'; +$lang->custom->notice->cannotSetTimezone = 'date_default_timezone_set方法不存在或禁用,不能设置时区。'; +$lang->custom->notice->noClosedBlock = '没有永久关闭的区块'; +$lang->custom->notice->required = '页面提交时,选中的字段必填'; +$lang->custom->notice->conceptResult = '我们已经根据您的选择为您设置了 %s-%s 模式,使用%s + %s。'; +$lang->custom->notice->conceptPath = '您可以在:后台 -> 自定义 -> 流程页面修改。'; +$lang->custom->notice->readOnlyOfProduct = '禁止修改后,已关闭' . $lang->productCommon . '下的' . $lang->SRCommon . '、Bug、用例、日志、发布、计划都禁止修改。'; +$lang->custom->notice->readOnlyOfExecution = "禁止修改后,已关闭{$lang->custom->execution}下的任务、版本、日志以及关联需求都禁止修改。"; +$lang->custom->notice->URSREmpty = '自定义需求名称不能为空!'; +$lang->custom->notice->confirmDelete = '您确定要删除吗?'; -$lang->custom->notice->indexPage['product'] = "从8.2版本起增加了产品主页视图,是否默认进入产品主页?"; -$lang->custom->notice->indexPage['project'] = "从8.2版本起增加了项目主页视图,是否默认进入项目主页?"; -$lang->custom->notice->indexPage['qa'] = "从8.2版本起增加了测试主页视图,是否默认进入测试主页?"; +$lang->custom->notice->indexPage['product'] = "从8.2版本起增加了产品主页视图,是否默认进入产品主页?"; +$lang->custom->notice->indexPage['project'] = "从8.2版本起增加了项目主页视图,是否默认进入项目主页?"; +$lang->custom->notice->indexPage['qa'] = "从8.2版本起增加了测试主页视图,是否默认进入测试主页?"; $lang->custom->notice->invalidStrlen['ten'] = '键的长度必须小于10个字符!'; $lang->custom->notice->invalidStrlen['twenty'] = '键的长度必须小于20个字符!'; @@ -221,7 +225,7 @@ $lang->custom->CRExecution[0] = '禁止修改'; $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = '计划'; -$lang->custom->moduleName['execution'] = '执行'; +$lang->custom->moduleName['execution'] = $lang->custom->execution; $lang->custom->conceptQuestions['overview'] = "1. 下述哪种组合方式更适合您公司的管理现状?"; $lang->custom->conceptQuestions['URAndSR'] = "2. 是否启用{$lang->URCommon}和{$lang->SRCommon}概念?";