Error messages moved to locale file
This commit is contained in:
parent
5dc9c22972
commit
f48d6cdecd
|
|
@ -742,6 +742,8 @@ issues.dependency.issue_closing_blockedby = Closing this pull request is blocked
|
|||
issues.dependency.pr_closing_blockedby = Closing this issue is blocked by the following issues.
|
||||
issues.dependency.issue_close_blocks = This issue blocks closing of the following issues.
|
||||
issues.dependency.pr_close_blocks = This pull request blocks closing of the following issues.
|
||||
issues.dependency.issue_close_blocked = You need to close all issues blocking this issue before you can close it!
|
||||
issues.dependency.pr_close_blocked = You need to close all issues blocking this pull request before you can merge it!
|
||||
issues.dependency.blocks_short = Blocks
|
||||
issues.dependency.blocked_by_short = Blocked by
|
||||
issues.dependency.remove_header = Remove Dependency
|
||||
|
|
|
|||
|
|
@ -975,10 +975,10 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
|
|||
|
||||
if form.Status == "close" && !noDeps {
|
||||
if issue.IsPull {
|
||||
ctx.Flash.Error("You need to close all issues blocking this pull request before you can merge it!")
|
||||
ctx.Flash.Error(ctx.Tr("issues.dependency.pr_close_blocked"))
|
||||
ctx.Redirect(fmt.Sprintf("%s/pulls/%d", ctx.Repo.RepoLink, issue.Index))
|
||||
} else {
|
||||
ctx.Flash.Error("You need to close all issues blocking this issue before you can close it!")
|
||||
ctx.Flash.Error(ctx.Tr("issues.dependency.issue_close_blocked"))
|
||||
ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, issue.Index))
|
||||
}
|
||||
return
|
||||
|
|
|
|||
|
|
@ -527,7 +527,7 @@ func MergePullRequest(ctx *context.Context) {
|
|||
}
|
||||
|
||||
if !noDeps {
|
||||
ctx.Flash.Error("You need to close all issues blocking this pull request before you can merge it!")
|
||||
ctx.Flash.Error(ctx.Tr("issues.dependency.pr_close_blocked"))
|
||||
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pr.Index))
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user