From 7fd5c4352d90fa9c31d18f6e64f769d4cc5ba52c Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 17 Aug 2022 09:03:38 +0800 Subject: [PATCH] * Modify svae draft sauccess lang. --- module/story/control.php | 2 +- module/story/lang/de.php | 13 +++++++------ module/story/lang/en.php | 13 +++++++------ module/story/lang/fr.php | 13 +++++++------ module/story/lang/vi.php | 12 +++++++----- module/story/lang/zh-cn.php | 13 +++++++------ 6 files changed, 36 insertions(+), 30 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 7cfa34ee84..5f050e5691 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -189,7 +189,7 @@ class story extends control $message = $this->executeHooks($storyID); if($message) $this->lang->saveSuccess = $message; - $response['message'] = $this->lang->saveSuccess; + $response['message'] = $this->post->status == 'draft' ? $this->lang->story->saveDraftSuccess : $this->lang->saveSuccess; if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $storyID)); diff --git a/module/story/lang/de.php b/module/story/lang/de.php index 0f573eaad9..8986c547a1 100644 --- a/module/story/lang/de.php +++ b/module/story/lang/de.php @@ -86,12 +86,13 @@ $lang->story->deleteAction = "Delete Story"; $lang->story->exportAction = "Export Story"; $lang->story->reportAction = "Story Report"; -$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; -$lang->story->closedStory = 'Story %s is closed and will not be closed.'; -$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks."; -$lang->story->successToTask = "Converted to task."; -$lang->story->storyRound = '%s time estimation'; -$lang->story->float = "『%s』should be positive number, decimals included."; +$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; +$lang->story->closedStory = 'Story %s is closed and will not be closed.'; +$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks."; +$lang->story->successToTask = "Converted to task."; +$lang->story->storyRound = '%s time estimation'; +$lang->story->float = "『%s』should be positive number, decimals included."; +$lang->story->saveDraftSuccess = 'Save as draft succeeded.'; $lang->story->id = 'ID'; $lang->story->parent = 'Parent'; diff --git a/module/story/lang/en.php b/module/story/lang/en.php index e13eaaacee..46b4c090c8 100644 --- a/module/story/lang/en.php +++ b/module/story/lang/en.php @@ -86,12 +86,13 @@ $lang->story->deleteAction = "Delete {$lang->SRCommon}"; $lang->story->exportAction = "Export {$lang->SRCommon}"; $lang->story->reportAction = "Report"; -$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; -$lang->story->closedStory = 'Story %s is closed and will not be closed.'; -$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks."; -$lang->story->successToTask = "Converted to task."; -$lang->story->storyRound = '%s time estimation'; -$lang->story->float = "『%s』should have positive number, or decimals."; +$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; +$lang->story->closedStory = 'Story %s is closed and will not be closed.'; +$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks."; +$lang->story->successToTask = "Converted to task."; +$lang->story->storyRound = '%s time estimation'; +$lang->story->float = "『%s』should have positive number, or decimals."; +$lang->story->saveDraftSuccess = 'Save as draft succeeded.'; $lang->story->id = 'ID'; $lang->story->parent = 'Parent'; diff --git a/module/story/lang/fr.php b/module/story/lang/fr.php index 3aeb9a9ed4..a0fba9d794 100644 --- a/module/story/lang/fr.php +++ b/module/story/lang/fr.php @@ -86,12 +86,13 @@ $lang->story->deleteAction = "Supprimer Story"; $lang->story->exportAction = "Exporter Story"; $lang->story->reportAction = "Rapport de Story"; -$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; -$lang->story->closedStory = 'Story %s is closed and will not be closed.'; -$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks."; -$lang->story->successToTask = "Converted to task."; -$lang->story->storyRound = '%s time estimation'; -$lang->story->float = "『 %s 』doit avoir des nombres positifs ou décimaux."; +$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; +$lang->story->closedStory = 'Story %s is closed and will not be closed.'; +$lang->story->batchToTaskTips = "The closed {$lang->SRCommon} will not be converted into tasks."; +$lang->story->successToTask = "Converted to task."; +$lang->story->storyRound = '%s time estimation'; +$lang->story->float = "『 %s 』doit avoir des nombres positifs ou décimaux."; +$lang->story->saveDraftSuccess = 'Save as draft succeeded.'; $lang->story->id = 'ID'; $lang->story->parent = 'Parent'; diff --git a/module/story/lang/vi.php b/module/story/lang/vi.php index cd3fc1aeff..e57339ed30 100644 --- a/module/story/lang/vi.php +++ b/module/story/lang/vi.php @@ -84,11 +84,13 @@ $lang->story->deleteAction = "Delete {$lang->SRCommon}"; $lang->story->exportAction = "Export {$lang->SRCommon}"; $lang->story->reportAction = "Report"; -$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; -$lang->story->closedStory = 'Story %s is closed and will not be closed.'; -$lang->story->batchToTaskTips = "This action will create a task with the same name as the selected {$lang->SRCommon} and link {$lang->SRCommon} to the task. The closed {$lang->SRCommon} will not be converted into tasks."; -$lang->story->successToTask = "Converted to task."; -$lang->story->storyRound = '%s time estimation'; +$lang->story->skipStory = '%s is a parent story. It cannot be closed.'; +$lang->story->closedStory = 'Story %s is closed and will not be closed.'; +$lang->story->batchToTaskTips = "This action will create a task with the same name as the selected {$lang->SRCommon} and link {$lang->SRCommon} to the task. The closed {$lang->SRCommon} will not be converted into tasks."; +$lang->story->successToTask = "Converted to task."; +$lang->story->storyRound = '%s time estimation'; +$lang->story->float = "『%s』should be positive number, decimals included."; +$lang->story->saveDraftSuccess = 'Save as draft succeeded.'; $lang->story->id = 'ID'; $lang->story->parent = 'Mẹ'; diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php index 00a7f66502..ddcc91e248 100644 --- a/module/story/lang/zh-cn.php +++ b/module/story/lang/zh-cn.php @@ -87,12 +87,13 @@ $lang->story->deleteAction = "删除{$lang->SRCommon}"; $lang->story->exportAction = "导出{$lang->SRCommon}"; $lang->story->reportAction = "统计报表"; -$lang->story->skipStory = '需求:%s 为父需求,将不会被关闭。'; -$lang->story->closedStory = '需求:%s 已关闭,将不会被关闭。'; -$lang->story->batchToTaskTips = "已关闭的需求不会转为任务。"; -$lang->story->successToTask = '批量转任务成功'; -$lang->story->storyRound = '第 %s 轮估算'; -$lang->story->float = "『%s』应当是正数,可以是小数。"; +$lang->story->skipStory = '需求:%s 为父需求,将不会被关闭。'; +$lang->story->closedStory = '需求:%s 已关闭,将不会被关闭。'; +$lang->story->batchToTaskTips = "已关闭的需求不会转为任务。"; +$lang->story->successToTask = '批量转任务成功'; +$lang->story->storyRound = '第 %s 轮估算'; +$lang->story->float = "『%s』应当是正数,可以是小数。"; +$lang->story->saveDraftSuccess = '存为草稿成功'; $lang->story->id = '编号'; $lang->story->parent = '父需求';