mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-11 01:17:02 +00:00
update translate
This commit is contained in:
parent
3b23cfd26a
commit
8e2a744db6
seahub
@ -24,7 +24,7 @@
|
||||
<tr>
|
||||
<th width="25%" class="user">{% trans "User" %}</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>
|
||||
</tr>
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<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>
|
||||
{% endif %}
|
||||
|
||||
|
@ -642,11 +642,11 @@ if EVENTS_CONFIG_FILE:
|
||||
|
||||
def generate_file_audit_event_type(e):
|
||||
return {
|
||||
'file-download-web': (_('web'), ''),
|
||||
'file-download-share-link': (_('share-link'),''),
|
||||
'file-download-api': (_('API'), e.device),
|
||||
'repo-download-sync': (_('download-sync'), e.device),
|
||||
'repo-upload-sync': (_('upload-sync'), e.device),
|
||||
'file-download-web': ('web', ''),
|
||||
'file-download-share-link': ('share-link',''),
|
||||
'file-download-api': ('API', e.device),
|
||||
'repo-download-sync': ('download-sync', e.device),
|
||||
'repo-upload-sync': ('upload-sync', e.device),
|
||||
}[e.etype]
|
||||
|
||||
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)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
messages.error(request, _(u'Failed to export excel'))
|
||||
messages.error(request, _(u'Failed to export Excel'))
|
||||
return HttpResponseRedirect(next)
|
||||
|
||||
if is_pro_version():
|
||||
@ -648,9 +648,9 @@ def sys_useradmin_export_excel(request):
|
||||
|
||||
data_list.append(row)
|
||||
|
||||
wb = write_xls(_('users'), head, data_list)
|
||||
wb = write_xls('users', head, data_list)
|
||||
if not wb:
|
||||
messages.error(request, _(u'Failed to export excel'))
|
||||
messages.error(request, _(u'Failed to export Excel'))
|
||||
return HttpResponseRedirect(next)
|
||||
|
||||
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]
|
||||
data_list.append(row)
|
||||
|
||||
wb = write_xls(_('groups'), head, data_list)
|
||||
wb = write_xls('groups', head, data_list)
|
||||
if not wb:
|
||||
messages.error(request, _(u'Failed to export excel'))
|
||||
return HttpResponseRedirect(next)
|
||||
|
Loading…
Reference in New Issue
Block a user