mirror of https://github.com/jumpserver/jumpserver
perf: i18n
parent
0d27bfcfa9
commit
53f106b30d
|
@ -264,7 +264,7 @@ class UserSession(models.Model):
|
||||||
user_agent = models.CharField(max_length=254, blank=True, null=True, verbose_name=_("User agent"))
|
user_agent = models.CharField(max_length=254, blank=True, null=True, verbose_name=_("User agent"))
|
||||||
type = models.CharField(choices=LoginTypeChoices.choices, max_length=2, verbose_name=_("Login type"))
|
type = models.CharField(choices=LoginTypeChoices.choices, max_length=2, verbose_name=_("Login type"))
|
||||||
backend = models.CharField(max_length=32, default="", verbose_name=_("Auth backend"))
|
backend = models.CharField(max_length=32, default="", verbose_name=_("Auth backend"))
|
||||||
date_created = models.DateTimeField(null=True, blank=True, verbose_name=_('Date created'))
|
date_created = models.DateTimeField(null=True, blank=True, verbose_name=_('Login date'))
|
||||||
user = models.ForeignKey(
|
user = models.ForeignKey(
|
||||||
'users.User', verbose_name=_('User'), related_name='sessions', on_delete=models.CASCADE
|
'users.User', verbose_name=_('User'), related_name='sessions', on_delete=models.CASCADE
|
||||||
)
|
)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -42,7 +42,7 @@
|
||||||
"ActionCount": "Action count",
|
"ActionCount": "Action count",
|
||||||
"PermAction": "Permission Action",
|
"PermAction": "Permission Action",
|
||||||
"ActionSetting": "Action setting",
|
"ActionSetting": "Action setting",
|
||||||
"Actions": "Action",
|
"Actions": "Actions",
|
||||||
"ActionsTips": "The effects of each authority's agreement are different, click on the icon behind the authority to view",
|
"ActionsTips": "The effects of each authority's agreement are different, click on the icon behind the authority to view",
|
||||||
"Activate": "Activate",
|
"Activate": "Activate",
|
||||||
"ActivateSelected": "Activate selected",
|
"ActivateSelected": "Activate selected",
|
||||||
|
@ -374,6 +374,7 @@
|
||||||
"DatePasswordLastUpdated": "Last password update date",
|
"DatePasswordLastUpdated": "Last password update date",
|
||||||
"DateStart": "Start date",
|
"DateStart": "Start date",
|
||||||
"DateSync": "Sync date",
|
"DateSync": "Sync date",
|
||||||
|
"Datetime": "Datetime",
|
||||||
"DateUpdated": "Update date",
|
"DateUpdated": "Update date",
|
||||||
"Day": "Day",
|
"Day": "Day",
|
||||||
"DeclassificationLogNum": "Password change logs",
|
"DeclassificationLogNum": "Password change logs",
|
||||||
|
|
|
@ -34,10 +34,10 @@
|
||||||
"AccountTemplateList": "アカウントテンプレートリスト",
|
"AccountTemplateList": "アカウントテンプレートリスト",
|
||||||
"AccountTemplateUpdateSecretHelpText": "テンプレートによって作成されたアカウントをアカウントリストに表示します。秘密の文を更新すると、テンプレートで作成されたアカウントの秘密の文も更新されます。",
|
"AccountTemplateUpdateSecretHelpText": "テンプレートによって作成されたアカウントをアカウントリストに表示します。秘密の文を更新すると、テンプレートで作成されたアカウントの秘密の文も更新されます。",
|
||||||
"Accounts": "アカウント",
|
"Accounts": "アカウント",
|
||||||
"Action": "Action",
|
"Action": "動作",
|
||||||
"ActionCount": "Action数",
|
"ActionCount": "Action数",
|
||||||
"ActionSetting": "Action設定",
|
"ActionSetting": "Action設定",
|
||||||
"Actions": "Action",
|
"Actions": "操作",
|
||||||
"ActionsTips": "各権限の役割はプロトコルにより異なります、アイコンをクリックして確認してください",
|
"ActionsTips": "各権限の役割はプロトコルにより異なります、アイコンをクリックして確認してください",
|
||||||
"Activate": "有効化",
|
"Activate": "有効化",
|
||||||
"ActivateSelected": "選択を有効化",
|
"ActivateSelected": "選択を有効化",
|
||||||
|
@ -379,6 +379,7 @@
|
||||||
"DatePasswordLastUpdated": "最終パスワード更新日",
|
"DatePasswordLastUpdated": "最終パスワード更新日",
|
||||||
"DateStart": "開始日",
|
"DateStart": "開始日",
|
||||||
"DateSync": "同期日",
|
"DateSync": "同期日",
|
||||||
|
"Datetime": "日時",
|
||||||
"DateUpdated": "更新日",
|
"DateUpdated": "更新日",
|
||||||
"Day": "日",
|
"Day": "日",
|
||||||
"DeclassificationLogNum": "パスワード変更ログ数",
|
"DeclassificationLogNum": "パスワード変更ログ数",
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
"ActionCount": "动作数量",
|
"ActionCount": "动作数量",
|
||||||
"PermAction": "授权动作",
|
"PermAction": "授权动作",
|
||||||
"ActionSetting": "动作设置",
|
"ActionSetting": "动作设置",
|
||||||
"Actions": "动作",
|
"Actions": "操作",
|
||||||
"ActionsTips": "各个权限作用协议不尽相同,点击权限后面的图标查看",
|
"ActionsTips": "各个权限作用协议不尽相同,点击权限后面的图标查看",
|
||||||
"Activate": "激活",
|
"Activate": "激活",
|
||||||
"Active": "激活中",
|
"Active": "激活中",
|
||||||
|
@ -387,6 +387,7 @@
|
||||||
"DatePasswordLastUpdated": "最后更新密码日期",
|
"DatePasswordLastUpdated": "最后更新密码日期",
|
||||||
"DateStart": "开始日期",
|
"DateStart": "开始日期",
|
||||||
"DateSync": "同步日期",
|
"DateSync": "同步日期",
|
||||||
|
"Datetime": "日期时间",
|
||||||
"DateUpdated": "更新日期",
|
"DateUpdated": "更新日期",
|
||||||
"Day": "日",
|
"Day": "日",
|
||||||
"DeclassificationLogNum": "改密日志数",
|
"DeclassificationLogNum": "改密日志数",
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
"Action": "動作",
|
"Action": "動作",
|
||||||
"ActionCount": "動作數量",
|
"ActionCount": "動作數量",
|
||||||
"ActionSetting": "動作設置",
|
"ActionSetting": "動作設置",
|
||||||
"Actions": "權限",
|
"Actions": "操作",
|
||||||
"Activate": "啟用",
|
"Activate": "啟用",
|
||||||
"Active": "活躍",
|
"Active": "活躍",
|
||||||
"ActiveAsset": "近期被登入過",
|
"ActiveAsset": "近期被登入過",
|
||||||
|
@ -444,6 +444,7 @@
|
||||||
"DatePasswordUpdated": "密碼更新日期",
|
"DatePasswordUpdated": "密碼更新日期",
|
||||||
"DateStart": "開始日期",
|
"DateStart": "開始日期",
|
||||||
"DateSync": "同步日期",
|
"DateSync": "同步日期",
|
||||||
|
"Datetime": "日期時間",
|
||||||
"DateUpdated": "更新日期",
|
"DateUpdated": "更新日期",
|
||||||
"DeactiveSelected": "禁用所選",
|
"DeactiveSelected": "禁用所選",
|
||||||
"DeclassificationLogNum": "改密日誌數",
|
"DeclassificationLogNum": "改密日誌數",
|
||||||
|
|
|
@ -16,7 +16,7 @@ class SimpleSessionCommandSerializer(serializers.ModelSerializer):
|
||||||
user = serializers.CharField(label=_("User")) # 限制 64 字符,见 validate_user
|
user = serializers.CharField(label=_("User")) # 限制 64 字符,见 validate_user
|
||||||
asset = serializers.CharField(max_length=128, label=_("Asset"))
|
asset = serializers.CharField(max_length=128, label=_("Asset"))
|
||||||
input = serializers.CharField(label=_("Command"))
|
input = serializers.CharField(label=_("Command"))
|
||||||
session = serializers.CharField(max_length=36, label=_("Session ID"))
|
session = serializers.CharField(max_length=36, label=_("Session"))
|
||||||
risk_level = LabeledChoiceField(
|
risk_level = LabeledChoiceField(
|
||||||
choices=RiskLevelChoices.choices,
|
choices=RiskLevelChoices.choices,
|
||||||
required=False, label=_("Risk level"),
|
required=False, label=_("Risk level"),
|
||||||
|
|
Loading…
Reference in New Issue