mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 19:53:51 +08:00
[lang] fix tiny language
This commit is contained in:
parent
0000931a88
commit
5c78051a85
@ -272,7 +272,7 @@ team_name = Team name
|
||||
member_amount = Number of members
|
||||
join_time = Join Time
|
||||
project_setting = Project setting
|
||||
handover_project = Hanover
|
||||
handover_project = Handover
|
||||
make_public = Into Public
|
||||
make_private = Into Privete
|
||||
history_record_amount = Number of history records
|
||||
|
@ -1017,8 +1017,7 @@ func (c *ManagerController) TeamChangeMemberRole() {
|
||||
if memberId <= 0 || roleId <= 0 || teamId <= 0 || roleId > int(conf.BookObserver) {
|
||||
c.JsonResult(5001, i18n.Tr(c.Lang, "message.param_error"))
|
||||
}
|
||||
|
||||
teamMember, err := models.NewTeamMember().ChangeRoleId(teamId, memberId, conf.BookRole(roleId))
|
||||
teamMember, err := models.NewTeamMember().SetLang(c.Lang).ChangeRoleId(teamId, memberId, conf.BookRole(roleId))
|
||||
|
||||
if err != nil {
|
||||
c.JsonResult(5002, err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user