From 97d490f008a05d2fcc7ba471f8ecd23cd08f731d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 10 Nov 2017 15:49:48 +0800 Subject: [PATCH] * change for zh-tw lang. --- lib/base/dao/dao.class.php | 2 +- module/admin/lang/zh-tw.php | 8 ++++++++ module/common/lang/zh-tw.php | 6 +++--- module/entry/lang/zh-tw.php | 1 + module/product/lang/zh-tw.php | 2 +- module/score/lang/zh-tw.php | 6 +++--- module/webhook/lang/zh-tw.php | 1 + 7 files changed, 18 insertions(+), 8 deletions(-) diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index 4fb58ffc51..18af7a83cf 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -1054,7 +1054,7 @@ class baseDAO global $lang, $config, $app; if(isset($config->db->prefix)) { - $table = strtolower(str_replace(array($config->db->prefix, '`'), '', $this->table)); + $table = strtolower(str_replace(array($config->db->prefix, '`'), '', $this->table)); } elseif(strpos($this->table, '_') !== false) { diff --git a/module/admin/lang/zh-tw.php b/module/admin/lang/zh-tw.php index e4ba2a5dce..349eaa845f 100644 --- a/module/admin/lang/zh-tw.php +++ b/module/admin/lang/zh-tw.php @@ -21,14 +21,22 @@ $lang->admin->ztCompany = '認證公司'; $lang->admin->captcha = '驗證碼'; $lang->admin->getCaptcha = '獲取驗證碼'; +$lang->admin->api = '介面'; +$lang->admin->log = '日誌'; +$lang->admin->setting = '設置'; +$lang->admin->days = '日誌保存天數'; +$lang->admin->saveSuccess = '保存成功'; + $lang->admin->info = new stdclass(); $lang->admin->info->version = '當前系統的版本是%s,'; $lang->admin->info->links = '您可以訪問以下連結:'; $lang->admin->info->account = "您的禪道社區賬戶為%s。"; +$lang->admin->info->log = '超出保存天數的日誌會被刪除。'; $lang->admin->notice = new stdclass(); $lang->admin->notice->register = "友情提示:您還未在禪道社區(www.zentao.net)登記,%s進行登記,以及時獲得禪道最新信息。"; $lang->admin->notice->ignore = "不再提示"; +$lang->admin->notice->int = "『%s』應當是正整數。"; $lang->admin->register = new stdclass(); $lang->admin->register->common = '註冊新帳號綁定'; diff --git a/module/common/lang/zh-tw.php b/module/common/lang/zh-tw.php index 2e82870d20..ccfe77ec45 100644 --- a/module/common/lang/zh-tw.php +++ b/module/common/lang/zh-tw.php @@ -124,7 +124,7 @@ $lang->searchObjects['release'] = '發佈'; $lang->searchObjects['productplan'] = $lang->productCommon . '計劃'; $lang->searchObjects['testtask'] = '測試單'; $lang->searchObjects['doc'] = '文檔'; -$lang->searchObjects['testcase'] = '用例庫'; +$lang->searchObjects['testsuite'] = '用例庫'; $lang->searchObjects['testreport'] = '測試報告'; $lang->searchTips = '編號(ctrl+g)'; @@ -610,7 +610,7 @@ if(isset($config->global->flow) and $config->global->flow == 'onlyStory') unset($lang->product->menu->doc); /* Rename product module. */ - $lang->menu->product = '產品|product|index'; + $lang->menu->product = "{$lang->productCommon}|product|index"; /* Adjust search items. */ unset($lang->searchObjects['bug']); @@ -674,7 +674,7 @@ if(isset($config->global->flow) and $config->global->flow == 'onlyTest') unset($lang->menuOrder[30]); /* Rename product module. */ - $lang->menu->product = '產品|product|index'; + $lang->menu->product = "{$lang->productCommon}|product|index"; /* Adjust sub menu of my dashboard. */ unset($lang->my->menu->task); diff --git a/module/entry/lang/zh-tw.php b/module/entry/lang/zh-tw.php index e0968266e5..910ad1d643 100644 --- a/module/entry/lang/zh-tw.php +++ b/module/entry/lang/zh-tw.php @@ -4,6 +4,7 @@ $lang->entry->list = '應用列表'; $lang->entry->api = '介面'; $lang->entry->webhook = 'Webhook'; $lang->entry->log = '日誌'; +$lang->entry->setting = '設置'; $lang->entry->browse = '瀏覽應用'; $lang->entry->create = '添加應用'; diff --git a/module/product/lang/zh-tw.php b/module/product/lang/zh-tw.php index ef66eaaa3f..6e59b146bc 100644 --- a/module/product/lang/zh-tw.php +++ b/module/product/lang/zh-tw.php @@ -11,7 +11,7 @@ */ $lang->product->common = $lang->productCommon . '視圖'; $lang->product->index = $lang->productCommon . "首頁"; -$lang->product->browse = "瀏覽{$lang->productCommon}"; +$lang->product->browse = "需求列表"; $lang->product->dynamic = "動態"; $lang->product->view = "{$lang->productCommon}概況"; $lang->product->edit = "編輯{$lang->productCommon}"; diff --git a/module/score/lang/zh-tw.php b/module/score/lang/zh-tw.php index 0b4ae1a824..dfa066f1aa 100644 --- a/module/score/lang/zh-tw.php +++ b/module/score/lang/zh-tw.php @@ -80,9 +80,9 @@ $lang->score->methods['block']['set'] = '區塊自定義設置'; $lang->score->methods['search']['saveQuery'] = '保存搜索條件'; $lang->score->methods['search']['saveQueryAdvanced'] = '使用高級搜索'; -$lang->score->extended['user']['changePassword'] = '密碼強度中的,額外獲得##strength,1##個積分,強的,額外獲得##strength,2##個積分。'; +$lang->score->extended['user']['changePassword'] = '密碼強度為中,額外獲得##strength,1##個積分;為強,額外獲得##strength,2##個積分。'; $lang->score->extended['project']['close'] = '項目經理增加##manager,close##個積分,項目成員增加##member,close##個積分。按期或者提前完成,項目經理額外增加##manager,in##個積分,項目成員額外增加##member,in##個積分。'; $lang->score->extended['bug']['resolve'] = 'Bug解決後,額外增加嚴重程度積分:s1 + ##severity,3##, s2 + ##severity,2##, s3 + ##severity,1##。'; $lang->score->extended['bug']['confirmBug'] = 'Bug確認後,額外增加嚴重程度積分:s1 + ##severity,3##, s2 + ##severity,2##, s3 + ##severity,1##。'; -$lang->score->extended['task']['finish'] = '額外增加工時積分 round(工時 /10 * 預計 / 消耗) + 優先順序積分(p1 ##pri,1##, p2, ##pri,2##)。'; -$lang->score->extended['story']['close'] = '需求的創建者額外增加##createID##分'; \ No newline at end of file +$lang->score->extended['task']['finish'] = '額外增加工時積分 round(工時 / 10 * 預計 / 消耗) + 優先順序積分(p1 ##pri,1##, p2 ##pri,2##)。'; +$lang->score->extended['story']['close'] = '需求的創建者額外增加##createID##分'; diff --git a/module/webhook/lang/zh-tw.php b/module/webhook/lang/zh-tw.php index b7128942e4..447d3c0769 100644 --- a/module/webhook/lang/zh-tw.php +++ b/module/webhook/lang/zh-tw.php @@ -5,6 +5,7 @@ $lang->webhook->api = '介面'; $lang->webhook->entry = '應用'; $lang->webhook->log = '日誌'; $lang->webhook->assigned = '指派給'; +$lang->webhook->setting = '設置'; $lang->webhook->browse = '瀏覽Webhook'; $lang->webhook->create = '添加Webhook';