Fixed localization

This commit is contained in:
kolaente 2018-01-01 14:39:33 +01:00 committed by Konrad
parent 9eedb3fcf8
commit b7ed097a8f
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -975,10 +975,10 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
if form.Status == "close" && !noDeps {
if issue.IsPull {
ctx.Flash.Error(ctx.Tr("issues.dependency.pr_close_blocked"))
ctx.Flash.Error(ctx.Tr("repo.issues.dependency.pr_close_blocked"))
ctx.Redirect(fmt.Sprintf("%s/pulls/%d", ctx.Repo.RepoLink, issue.Index))
} else {
ctx.Flash.Error(ctx.Tr("issues.dependency.issue_close_blocked"))
ctx.Flash.Error(ctx.Tr("repo.issues.dependency.issue_close_blocked"))
ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, issue.Index))
}
return

View File

@ -527,7 +527,7 @@ func MergePullRequest(ctx *context.Context) {
}
if !noDeps {
ctx.Flash.Error(ctx.Tr("issues.dependency.pr_close_blocked"))
ctx.Flash.Error(ctx.Tr("repo.issues.dependency.pr_close_blocked"))
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(pr.Index))
return
}