Skip to content

Commit bf402c7

Browse files
committed
use translated error message
1 parent cbf4c92 commit bf402c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/setting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func CollaborationPost(ctx *context.Context) {
382382
}
383383

384384
if !u.IsActive {
385-
ctx.Flash.Error("cannot add an inactive user as a collaborator")
385+
ctx.Flash.Error(ctx.Tr("repo.settings.add_collaborator_inactive_user"))
386386
ctx.Redirect(setting.AppSubURL + ctx.Req.URL.Path)
387387
return
388388
}

0 commit comments

Comments
 (0)