mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
update trans string
This commit is contained in:
@@ -431,14 +431,14 @@ class DirSharedItemsEndpoint(APIView):
|
|||||||
gid = int(gid)
|
gid = int(gid)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
result['failed'].append({
|
result['failed'].append({
|
||||||
'error_msg': _(u'group_id %s invalid.') % gid
|
'error_msg': 'group_id %s invalid.' % gid
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
group = ccnet_api.get_group(gid)
|
group = ccnet_api.get_group(gid)
|
||||||
if not group:
|
if not group:
|
||||||
result['failed'].append({
|
result['failed'].append({
|
||||||
'error_msg': _(u'Group %s not found') % gid
|
'error_msg': 'Group %s not found' % gid
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@@ -446,7 +446,7 @@ class DirSharedItemsEndpoint(APIView):
|
|||||||
not ccnet_api.is_group_user(gid, username):
|
not ccnet_api.is_group_user(gid, username):
|
||||||
result['failed'].append({
|
result['failed'].append({
|
||||||
'group_name': group.group_name,
|
'group_name': group.group_name,
|
||||||
'error_msg': _(u'Permission denied.')
|
'error_msg': 'Permission denied.'
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user