perf: 修改授权动作翻译 (#12095)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-11-14 10:41:00 +08:00
committed by GitHub
parent 5673698a57
commit 521c1f0dfa
5 changed files with 71 additions and 41 deletions

View File

@@ -9,13 +9,13 @@ __all__ = ["ActionChoices"]
class ActionChoices(BitChoices):
connect = bit(1), _("Connect") + " ({})".format(_("All protocols"))
upload = bit(2), _("Upload") + " (RDP, SFTP)"
download = bit(3), _("Download") + " (RDP, SFTP)"
copy = bit(4), _("Copy") + " (RDP, VNC)"
paste = bit(5), _("Paste") + " (RDP, VNC)"
delete = bit(6), _("Delete") + " (SFTP)"
share = bit(7), _("Share") + " (SSH)"
connect = bit(1), _("Connect (All protocols)")
upload = bit(2), _("Upload (RDP, SFTP)")
download = bit(3), _("Download (RDP, SFTP)")
copy = bit(4), _("Copy (RDP, VNC)")
paste = bit(5), _("Paste (RDP, VNC)")
delete = bit(6), _("Delete (SFTP)")
share = bit(7), _("Share (SSH)")
@classmethod
def is_tree(cls):