perf: Translate

pull/14348/head
wangruidong 2024-10-22 17:42:39 +08:00 committed by Bryan
parent 891e3d5609
commit 0918f5c6f6
7 changed files with 43 additions and 16 deletions

View File

@ -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({

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:835dcba30214a93faf10b7e9faca13f5e0da6c50aebf19290aeeb05d9b0b2bbf
size 178641
oid sha256:2dd9ffcfe15b130a5b3d7b4fcfe806eaae979973e8bd29ad9a473b9215424c57
size 178725

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 "謎々"

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:69e15a297e0f0280ee405763eb58dd038b12010d1f7499af8f9cedbacda62252
size 146179
oid sha256:4517c6a7464c68f949912b97c8a9abcc766ca19e32267a1d1da3f0e012471c1a
size 146255

View File

@ -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 <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\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 "企业旗舰版"
msgstr "企业旗舰版"

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bff387dec9ea743be3db8a192413d2e0691a747de164aed5f213d94b78f18c54
size 146290
oid sha256:7d4d2709e597e055072474f08be2f363d43df239240051024a77213ba48ecfac
size 146366

View File

@ -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 <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\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 "提示"