mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 06:57:52 +00:00
update translate
This commit is contained in:
parent
3b23cfd26a
commit
8e2a744db6
@ -24,7 +24,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th width="25%" class="user">{% trans "User" %}</th>
|
<th width="25%" class="user">{% trans "User" %}</th>
|
||||||
<th width="20%">{% trans "Type" %}</th>
|
<th width="20%">{% trans "Type" %}</th>
|
||||||
<th width="30%">{% trans "IP / Device" %}</th>
|
<th width="30%">{% trans "IP" %} / {% trans "Device Name" %}</th>
|
||||||
<th width="25%">{% trans "Date" %}</th>
|
<th width="25%">{% trans "Date" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="empty-tips">
|
<div class="empty-tips">
|
||||||
<h2 class="alc">{% trans "No file access infomation" %}</h2>
|
<h2 class="alc">{% trans "This file has (apparently) not been accessed yet" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -642,11 +642,11 @@ if EVENTS_CONFIG_FILE:
|
|||||||
|
|
||||||
def generate_file_audit_event_type(e):
|
def generate_file_audit_event_type(e):
|
||||||
return {
|
return {
|
||||||
'file-download-web': (_('web'), ''),
|
'file-download-web': ('web', ''),
|
||||||
'file-download-share-link': (_('share-link'),''),
|
'file-download-share-link': ('share-link',''),
|
||||||
'file-download-api': (_('API'), e.device),
|
'file-download-api': ('API', e.device),
|
||||||
'repo-download-sync': (_('download-sync'), e.device),
|
'repo-download-sync': ('download-sync', e.device),
|
||||||
'repo-upload-sync': (_('upload-sync'), e.device),
|
'repo-upload-sync': ('upload-sync', e.device),
|
||||||
}[e.etype]
|
}[e.etype]
|
||||||
|
|
||||||
def get_file_audit_events_by_path(email, org_id, repo_id, file_path, start, limit):
|
def get_file_audit_events_by_path(email, org_id, repo_id, file_path, start, limit):
|
||||||
|
@ -597,7 +597,7 @@ def sys_useradmin_export_excel(request):
|
|||||||
seaserv.get_emailusers('LDAPImport', -1, -1)
|
seaserv.get_emailusers('LDAPImport', -1, -1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
messages.error(request, _(u'Failed to export excel'))
|
messages.error(request, _(u'Failed to export Excel'))
|
||||||
return HttpResponseRedirect(next)
|
return HttpResponseRedirect(next)
|
||||||
|
|
||||||
if is_pro_version():
|
if is_pro_version():
|
||||||
@ -648,9 +648,9 @@ def sys_useradmin_export_excel(request):
|
|||||||
|
|
||||||
data_list.append(row)
|
data_list.append(row)
|
||||||
|
|
||||||
wb = write_xls(_('users'), head, data_list)
|
wb = write_xls('users', head, data_list)
|
||||||
if not wb:
|
if not wb:
|
||||||
messages.error(request, _(u'Failed to export excel'))
|
messages.error(request, _(u'Failed to export Excel'))
|
||||||
return HttpResponseRedirect(next)
|
return HttpResponseRedirect(next)
|
||||||
|
|
||||||
response = HttpResponse(mimetype='application/ms-excel')
|
response = HttpResponse(mimetype='application/ms-excel')
|
||||||
@ -1400,7 +1400,7 @@ def sys_group_admin_export_excel(request):
|
|||||||
row = [grp.group_name, grp.creator_name, create_at]
|
row = [grp.group_name, grp.creator_name, create_at]
|
||||||
data_list.append(row)
|
data_list.append(row)
|
||||||
|
|
||||||
wb = write_xls(_('groups'), head, data_list)
|
wb = write_xls('groups', head, data_list)
|
||||||
if not wb:
|
if not wb:
|
||||||
messages.error(request, _(u'Failed to export excel'))
|
messages.error(request, _(u'Failed to export excel'))
|
||||||
return HttpResponseRedirect(next)
|
return HttpResponseRedirect(next)
|
||||||
|
Loading…
Reference in New Issue
Block a user