diff --git a/apps/audits/views.py b/apps/audits/views.py index 072d13f60..f8e0a1dd3 100644 --- a/apps/audits/views.py +++ b/apps/audits/views.py @@ -1,5 +1,6 @@ from django.conf import settings from django.views.generic import ListView +from django.utils.translation import ugettext as _ from common.mixins import AdminUserRequiredMixin, DatetimeSearchMixin @@ -46,6 +47,8 @@ class FTPLogListView(AdminUserRequiredMixin, DatetimeSearchMixin, ListView): 'asset': self.asset, 'system_user': self.system_user, 'filename': self.filename, + "app": _("Audits"), + "action": _("FTP log"), } kwargs.update(context) return super().get_context_data(**kwargs) diff --git a/apps/i18n/zh/LC_MESSAGES/django.mo b/apps/i18n/zh/LC_MESSAGES/django.mo index 57d3d9d92..61ef6ec21 100644 Binary files a/apps/i18n/zh/LC_MESSAGES/django.mo and b/apps/i18n/zh/LC_MESSAGES/django.mo differ diff --git a/apps/i18n/zh/LC_MESSAGES/django.po b/apps/i18n/zh/LC_MESSAGES/django.po index e19a33c25..fc8255313 100644 --- a/apps/i18n/zh/LC_MESSAGES/django.po +++ b/apps/i18n/zh/LC_MESSAGES/django.po @@ -1927,7 +1927,7 @@ msgstr "作业中心" #: templates/_nav.html:64 msgid "Audits" -msgstr "审计" +msgstr "日志审计" #: templates/_nav.html:67 msgid "FTP log" diff --git a/apps/templates/_nav.html b/apps/templates/_nav.html index 778578eb2..409a46f15 100644 --- a/apps/templates/_nav.html +++ b/apps/templates/_nav.html @@ -64,7 +64,7 @@ {% trans 'Audits' %} {#
  • #}