Use a common message template instead of a special one

This commit is contained in:
Lunny Xiao 2024-08-19 11:42:37 -07:00
parent 0d24c9f383
commit 0e18a26c56
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 2 additions and 2 deletions

View File

@ -159,6 +159,7 @@ filter.public = Public
filter.private = Private
no_results_found = No results found.
load_failed = Load %s failed because of internal error
[search]
search = Search...
@ -1274,7 +1275,6 @@ commit_graph.color = Color
commit.contained_in = This commit is contained in:
commit.contained_in_default_branch = This commit is part of the default branch
commit.load_referencing_branches_and_tags = Load branches and tags referencing this commit
commit.load_tags_failed = Load tags failed because of internal error
blame = Blame
download_file = Download file
normal_view = Normal View

View File

@ -90,7 +90,7 @@ func Commits(ctx *context.Context) {
commitsTagsMap, err := repo_model.FindTagsByCommitIDs(ctx, ctx.Repo.Repository.ID, commitIDs...)
if err != nil {
log.Error("FindTagsByCommitIDs: %v", err)
ctx.Flash.Error(ctx.Tr("repo.commit.load_tags_failed"))
ctx.Flash.Error(ctx.Tr("load_failed", "tags"))
} else {
ctx.Data["CommitsTagsMap"] = commitsTagsMap
}