Fixed displaying of error messages in language
Signed-off-by: Konrad <konrad@kola-entertainments.de>
This commit is contained in:
parent
7f30180875
commit
ace8f616b3
|
|
@ -745,6 +745,7 @@ issues.dependency.setting = Issues can have dependencies
|
|||
issues.dependency.add_error_same_issue = You cannot make an issue depend on itself!
|
||||
issues.dependency.add_error_dep_not_exist = Dependend issue does not exist!
|
||||
issues.dependency.add_error_dep_exists = Dependency already exists!
|
||||
issues.dependency.add_error_dep_not_same_repo = Both issues must be in the same repo!
|
||||
issues.tracker = Time tracker
|
||||
issues.start_tracking_short = Start
|
||||
issues.start_tracking = Start time tracking
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ func AddDependency(c *context.Context) {
|
|||
// Dependency
|
||||
dep, err := models.GetIssueByID(depID)
|
||||
if err != nil {
|
||||
c.Flash.Error(c.Tr("add_error_dep_not_exist"))
|
||||
c.Flash.Error(c.Tr("repo.issues.dependency.add_error_dep_not_exist"))
|
||||
url := fmt.Sprintf("%s/issues/%d", c.Repo.RepoLink, issueIndex)
|
||||
c.Redirect(url, http.StatusSeeOther)
|
||||
return
|
||||
|
|
@ -48,7 +48,7 @@ func AddDependency(c *context.Context) {
|
|||
|
||||
// Check if both issues are in the same repo
|
||||
if issue.RepoID != dep.RepoID {
|
||||
c.Flash.Error(c.Tr("add_error_dep_not_same_repo"))
|
||||
c.Flash.Error(c.Tr("repo.issues.dependency.add_error_dep_not_same_repo"))
|
||||
url := fmt.Sprintf("%s/issues/%d", c.Repo.RepoLink, issueIndex)
|
||||
c.Redirect(url, http.StatusSeeOther)
|
||||
return
|
||||
|
|
@ -56,7 +56,7 @@ func AddDependency(c *context.Context) {
|
|||
|
||||
// Check if issue and dependency is the same
|
||||
if dep.Index == issueIndex {
|
||||
c.Flash.Error(c.Tr("issues.dependency.add_error_same_issue"))
|
||||
c.Flash.Error(c.Tr("repo.issues.dependency.add_error_same_issue"))
|
||||
} else {
|
||||
|
||||
exists, err := models.CreateIssueDependency(c.User, issue, dep)
|
||||
|
|
@ -66,7 +66,7 @@ func AddDependency(c *context.Context) {
|
|||
}
|
||||
|
||||
if exists {
|
||||
c.Flash.Error(c.Tr("add_error_dep_exists"))
|
||||
c.Flash.Error(c.Tr("repo.issues.dependency.add_error_dep_exists"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user