Merge pull request #9295 from swordqiu/hotfix/qj-update-i18n-master-20201209

fix(cloudcommon): supplement i18n translations
This commit is contained in:
Zexi Li
2020-12-09 20:44:11 +08:00
committed by GitHub
3 changed files with 4938 additions and 4913 deletions
+3295 -3288
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -456,7 +456,7 @@ func SharablePerformPublic(model ISharableBaseModel, ctx context.Context, userCr
}
case rbacutils.ScopeSystem:
if len(candidateIds) > 0 {
return errors.Wrapf(httperrors.ErrForbidden, "sharing is limited to domains %s", jsonutils.Marshal(candidateIds))
return httperrors.NewForbiddenError("sharing is limited to domains %s", jsonutils.Marshal(candidateIds))
}
_, err = SharedResourceManager.shareToTarget(ctx, userCred, model, SharedTargetProject, nil, nil, nil)
if err != nil {