diff --git a/apps/audits/backends/db.py b/apps/audits/backends/db.py index 7d486b795..e7ffcd39a 100644 --- a/apps/audits/backends/db.py +++ b/apps/audits/backends/db.py @@ -54,6 +54,9 @@ class OperateLogStore(BaseOperateStorage): def convert_diff_friendly(cls, op_log): diff_list = list() handler = cls._get_special_handler(op_log.resource_type) + # 标记翻译字符串 + labels = _("labels") + operate_log_id = _("operate_log_id") for k, v in op_log.diff.items(): before, after = v.split(cls.SEP, 1) diff_list.append({ diff --git a/apps/locale/ja/LC_MESSAGES/django.mo b/apps/locale/ja/LC_MESSAGES/django.mo index 72b8334b6..89c025060 100644 --- a/apps/locale/ja/LC_MESSAGES/django.mo +++ b/apps/locale/ja/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:835dcba30214a93faf10b7e9faca13f5e0da6c50aebf19290aeeb05d9b0b2bbf -size 178641 +oid sha256:2dd9ffcfe15b130a5b3d7b4fcfe806eaae979973e8bd29ad9a473b9215424c57 +size 178725 diff --git a/apps/locale/ja/LC_MESSAGES/django.po b/apps/locale/ja/LC_MESSAGES/django.po index d8afc843e..804ac40ed 100644 --- a/apps/locale/ja/LC_MESSAGES/django.po +++ b/apps/locale/ja/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-22 16:56+0800\n" +"POT-Creation-Date: 2024-10-22 17:33+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1979,7 +1979,7 @@ msgstr "ラベル" msgid "New node" msgstr "新しいノード" -#: assets/models/node.py:467 audits/backends/db.py:61 audits/backends/db.py:62 +#: assets/models/node.py:467 audits/backends/db.py:64 audits/backends/db.py:65 #: audits/backends/es.py:66 audits/backends/es.py:67 msgid "empty" msgstr "空" @@ -2409,7 +2409,15 @@ msgstr "監査" msgid "The text content is too long. Use Elasticsearch to store operation logs" msgstr "文章の内容が長すぎる。Elasticsearchで操作履歴を保存する" -#: audits/backends/db.py:87 +#: audits/backends/db.py:58 +msgid "labels" +msgstr "タグ" + +#: audits/backends/db.py:59 +msgid "operate_log_id" +msgstr "操作ログID" + +#: audits/backends/db.py:90 msgid "Tips" msgstr "謎々" diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 7b4036c90..251368354 100644 --- a/apps/locale/zh/LC_MESSAGES/django.mo +++ b/apps/locale/zh/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:69e15a297e0f0280ee405763eb58dd038b12010d1f7499af8f9cedbacda62252 -size 146179 +oid sha256:4517c6a7464c68f949912b97c8a9abcc766ca19e32267a1d1da3f0e012471c1a +size 146255 diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 1461d6b85..f2aa582de 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: JumpServer 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-22 16:56+0800\n" +"POT-Creation-Date: 2024-10-22 17:33+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -1969,7 +1969,7 @@ msgstr "标签" msgid "New node" msgstr "新节点" -#: assets/models/node.py:467 audits/backends/db.py:61 audits/backends/db.py:62 +#: assets/models/node.py:467 audits/backends/db.py:64 audits/backends/db.py:65 #: audits/backends/es.py:66 audits/backends/es.py:67 msgid "empty" msgstr "空" @@ -2390,7 +2390,15 @@ msgstr "日志审计" msgid "The text content is too long. Use Elasticsearch to store operation logs" msgstr "文字内容太长。请使用 Elasticsearch 存储操作日志" -#: audits/backends/db.py:87 +#: audits/backends/db.py:58 +msgid "labels" +msgstr "标签" + +#: audits/backends/db.py:59 +msgid "operate_log_id" +msgstr "操作日志ID" + +#: audits/backends/db.py:90 msgid "Tips" msgstr "提示" @@ -9278,4 +9286,4 @@ msgstr "企业专业版" #: xpack/plugins/license/models.py:86 msgid "Ultimate edition" -msgstr "企业旗舰版" \ No newline at end of file +msgstr "企业旗舰版" diff --git a/apps/locale/zh_Hant/LC_MESSAGES/django.mo b/apps/locale/zh_Hant/LC_MESSAGES/django.mo index a740926f1..ca544c974 100644 --- a/apps/locale/zh_Hant/LC_MESSAGES/django.mo +++ b/apps/locale/zh_Hant/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bff387dec9ea743be3db8a192413d2e0691a747de164aed5f213d94b78f18c54 -size 146290 +oid sha256:7d4d2709e597e055072474f08be2f363d43df239240051024a77213ba48ecfac +size 146366 diff --git a/apps/locale/zh_Hant/LC_MESSAGES/django.po b/apps/locale/zh_Hant/LC_MESSAGES/django.po index 4f950081a..b8ffdb490 100644 --- a/apps/locale/zh_Hant/LC_MESSAGES/django.po +++ b/apps/locale/zh_Hant/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: JumpServer 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-22 16:57+0800\n" +"POT-Creation-Date: 2024-10-22 17:33+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -1971,7 +1971,7 @@ msgstr "標籤" msgid "New node" msgstr "新節點" -#: assets/models/node.py:467 audits/backends/db.py:61 audits/backends/db.py:62 +#: assets/models/node.py:467 audits/backends/db.py:64 audits/backends/db.py:65 #: audits/backends/es.py:66 audits/backends/es.py:67 msgid "empty" msgstr "空" @@ -2392,7 +2392,15 @@ msgstr "日誌審計" msgid "The text content is too long. Use Elasticsearch to store operation logs" msgstr "文字內容太長。請使用 Elasticsearch 儲存操作日誌" -#: audits/backends/db.py:87 +#: audits/backends/db.py:58 +msgid "labels" +msgstr "標籤" + +#: audits/backends/db.py:59 +msgid "operate_log_id" +msgstr "操作日誌ID" + +#: audits/backends/db.py:90 msgid "Tips" msgstr "提示"