diff --git a/Makefile b/Makefile index 0023128b24..399e35d52f 100644 --- a/Makefile +++ b/Makefile @@ -155,7 +155,7 @@ zentaoxx: sed -i "s/\$$this->im->userGetChangedPassword()/array()/" zentaoxx/extension/xuan/im/control.php sed -i "/.*->getAllDepts();/d" zentaoxx/extension/xuan/im/ext/bot/default.bot.php sed -i "s/lang->user->status/lang->user->clientStatus/" zentaoxx/extension/xuan/im/ext/bot/default.bot.php - sed -i "s/.*->getRoleList();/"s/.*->getRoleList();/\$$depts = \$$this->im->loadModel('dept')->getDeptPairs();\n\$$deptList = array_map(function(\$$k, \$$v) {return (object)array('id' => \$$k, 'name' => \$$v);}, array_keys(\$$depts), \$$depts);\n\$$roleList = \$$this->im->lang->user->roleList;/"/" zentaoxx/extension/xuan/im/ext/bot/default.bot.php + sed -i "s/.*->getRoleList();/\$$depts = \$$this->im->loadModel('dept')->getDeptPairs();\n\$$deptList = array_map(function(\$$k, \$$v) {return (object)array('id' => \$$k, 'name' => \$$v);}, array_keys(\$$depts), \$$depts);\n\$$roleList = \$$this->im->lang->user->roleList;/" zentaoxx/extension/xuan/im/ext/bot/default.bot.php echo "ALTER TABLE \`zt_user\` ADD \`pinyin\` varchar(255) NOT NULL DEFAULT '' AFTER \`realname\`;" >> zentaoxx/db/xuanxuan.sql mkdir zentaoxx/tools; cp tools/cn2tw.php zentaoxx/tools; cd zentaoxx/tools; php cn2tw.php cp tools/en2other.php zentaoxx/tools; cd zentaoxx/tools; php en2other.php ../ diff --git a/framework/base/control.class.php b/framework/base/control.class.php index ab6415af38..25dc9fc83d 100644 --- a/framework/base/control.class.php +++ b/framework/base/control.class.php @@ -375,7 +375,7 @@ class baseControl /** * 如果客户端是手机的话,视图文件增加m.前缀。 - * If the clent is mobile, add m. as prefix for view file. + * If the client is mobile, add m. as prefix for view file. * * @access public * @return void diff --git a/framework/base/router.class.php b/framework/base/router.class.php index e1a87cf014..5c51cbe7ef 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1081,7 +1081,7 @@ class baseRouter } /** - * 从HTTP_ACCEPT_LANGUAGE中提出去支持的语言。 + * 从HTTP_ACCEPT_LANGUAGE中剔除去支持的语言。 * Parse the lang str from HTTP_ACCEPT_LANGUAGE header. * * @access public diff --git a/module/block/control.php b/module/block/control.php index b0be807a3c..1e2350c1d3 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -2005,6 +2005,9 @@ class block extends control */ public function guide() { + $this->app->loadLang('custom'); + $this->view->programs = $this->loadModel('program')->getTopPairs('', 'noclosed', true); + $this->view->programID = isset($this->config->global->defaultProgram) ? $this->config->global->defaultProgram : 0; $this->display(); } diff --git a/module/block/lang/de.php b/module/block/lang/de.php index f7042583c6..a193b17daf 100644 --- a/module/block/lang/de.php +++ b/module/block/lang/de.php @@ -632,3 +632,10 @@ $lang->block->visions['lite'] = new stdclass(); $lang->block->visions['lite']->key = 'lite'; $lang->block->visions['lite']->title = 'Operation Management Interface'; $lang->block->visions['lite']->text = 'Specially designed for Non-R&D teams, mainly based on the intuitive and visual Kanban project management model.'; +$lang->block->customModes['light'] = 'Light Mode'; +$lang->block->customModes['ALM'] = 'ALM Mode'; + +$lang->block->customModeTip = new stdClass(); +$lang->block->customModeTip->common = 'ZenTao Road operation mode is divided into [Light mode] and [ALM mode].'; +$lang->block->customModeTip->ALM = 'The concept is more complete and rigorous, and the function is more abundant. It is suitable for medium and large R&D teams.'; +$lang->block->customModeTip->light = 'Provides the core function of project management, suitable for small R&D teams.'; diff --git a/module/block/lang/en.php b/module/block/lang/en.php index 5927f38399..745b6af68b 100644 --- a/module/block/lang/en.php +++ b/module/block/lang/en.php @@ -632,3 +632,10 @@ $lang->block->visions['lite'] = new stdclass(); $lang->block->visions['lite']->key = 'lite'; $lang->block->visions['lite']->title = 'Operation Management Interface'; $lang->block->visions['lite']->text = 'Specially designed for Non-R&D teams, mainly based on the intuitive and visual Kanban project management model.'; +$lang->block->customModes['light'] = 'Light Mode'; +$lang->block->customModes['ALM'] = 'ALM Mode'; + +$lang->block->customModeTip = new stdClass(); +$lang->block->customModeTip->common = 'ZenTao Road operation mode is divided into [Light mode] and [ALM mode].'; +$lang->block->customModeTip->ALM = 'The concept is more complete and rigorous, and the function is more abundant. It is suitable for medium and large R&D teams.'; +$lang->block->customModeTip->light = 'Provides the core function of project management, suitable for small R&D teams.'; diff --git a/module/block/lang/fr.php b/module/block/lang/fr.php index 1814b10382..103e27710a 100644 --- a/module/block/lang/fr.php +++ b/module/block/lang/fr.php @@ -632,3 +632,10 @@ $lang->block->visions['lite'] = new stdclass(); $lang->block->visions['lite']->key = 'lite'; $lang->block->visions['lite']->title = 'Operation Management Interface'; $lang->block->visions['lite']->text = 'Specially designed for Non-R&D teams, mainly based on the intuitive and visual Kanban project management model.'; +$lang->block->customModes['light'] = 'Light Mode'; +$lang->block->customModes['ALM'] = 'ALM Mode'; + +$lang->block->customModeTip = new stdClass(); +$lang->block->customModeTip->common = 'ZenTao Road operation mode is divided into [Light mode] and [ALM mode].'; +$lang->block->customModeTip->ALM = 'The concept is more complete and rigorous, and the function is more abundant. It is suitable for medium and large R&D teams.'; +$lang->block->customModeTip->light = 'Provides the core function of project management, suitable for small R&D teams.'; diff --git a/module/block/lang/zh-cn.php b/module/block/lang/zh-cn.php index a77cced22b..02a60a8ab4 100644 --- a/module/block/lang/zh-cn.php +++ b/module/block/lang/zh-cn.php @@ -632,3 +632,10 @@ $lang->block->visions['lite'] = new stdclass(); $lang->block->visions['lite']->key = 'lite'; $lang->block->visions['lite']->title = '运营管理界面'; $lang->block->visions['lite']->text = '专为非研发团队打造,主要以直观、可视化的看板项目管理模型为主。'; +$lang->block->customModes['light'] = '轻量管理模式'; +$lang->block->customModes['ALM'] = '全生命周期管理模式'; + +$lang->block->customModeTip = new stdClass(); +$lang->block->customModeTip->common = '禅道运行模式分为【轻量级管理模式】和【全生命周期管理模式】。'; +$lang->block->customModeTip->ALM = '适用于中大型团队的管理模式,概念更加完整、严谨,功能更丰富。'; +$lang->block->customModeTip->light = '适用于小型研发团队的管理模式,提供项目管理的核心功能。'; diff --git a/module/block/view/guide.html.php b/module/block/view/guide.html.php index a0c9eb69f5..d16652d22d 100644 --- a/module/block/view/guide.html.php +++ b/module/block/view/guide.html.php @@ -15,6 +15,8 @@ .block-guide .nav-secondary > li > a > span.btn-view {position: absolute; top: 0; right: 0; bottom: 0; padding: 8px; width: 36px; text-align: center; opacity: 0;} .block-guide .nav-secondary > li:hover > a > span.btn-view {opacity: 1;} .block-guide .nav-secondary > li.switch-icon {display: none;} +.block-guide .tab-pane h4 {color: #0B0F18;} +.block-guide .tab-pane .dataTitle {font-size: 12px; color: #5E626D;} .block-guide .tab-pane .app-client .menu, .block-guide .tab-pane .app-client .tree-menu li {padding-left: 0;} .block-guide .tab-pane .app-client .tree-menu li {line-height: 56px; border-bottom: 1px solid #EDEEF2;} @@ -44,7 +46,7 @@ $(function() else $nav.children('li:not(.switch-icon)')[isPrev ? 'last' : 'first']().find('a[data-toggle="tab"]').trigger('click'); e.preventDefault(); }); - + $nav.find('li').click(function() { if($(this).attr('id') == 'flowchart') @@ -103,7 +105,9 @@ $(function()
- + diff --git a/module/block/view/systemmodeswitch.html.php b/module/block/view/systemmodeswitch.html.php new file mode 100644 index 0000000000..b971084eae --- /dev/null +++ b/module/block/view/systemmodeswitch.html.php @@ -0,0 +1,87 @@ + +config->global, 'mode', 'light');?> + + +custom->changeModeTips, $lang->custom->modeList[$usedMode == 'light' ? 'ALM' : 'light']));?> +