diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 6d01f9bd..975ba8a9 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -246,6 +246,19 @@ "enableFileManagerDesc": "Enable/disable host visibility in File Manager tab", "autoStartDesc": "Automatically start this tunnel when the container launches", "defaultPathDesc": "Default directory when opening file manager for this host", + "tunnelForwardDescription": "This tunnel will forward traffic from port {{sourcePort}} on the source machine (current connection details in general tab) to port {{endpointPort}} on the endpoint machine.", + "endpointSshConfiguration": "Endpoint SSH Configuration", + "sourcePortDescription": "(Source refers to the Current Connection Details in the General tab)", + "autoStartContainer": "Auto Start on Container Launch", + "upload": "Upload", + "authentication": "Authentication", + "password": "Password", + "key": "Key", + "sshPrivateKey": "SSH Private Key", + "keyPassword": "Key Password", + "keyType": "Key Type", + "maxRetriesDescription": "Maximum number of retry attempts for tunnel connection.", + "retryIntervalDescription": "Time to wait between retry attempts.", "otherInstallMethods": "Other installation methods:", "sshpassOSInstructions": { "centos": "CentOS/RHEL/Fedora: sudo yum install sshpass or sudo dnf install sshpass", diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index d3291d74..51154ba0 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -246,6 +246,19 @@ "enableFileManagerDesc": "启用/禁用在文件管理器选项卡中显示此主机", "autoStartDesc": "容器启动时自动启动此隧道", "defaultPathDesc": "打开此主机文件管理器时的默认目录", + "tunnelForwardDescription": "此隧道将从源计算机(常规选项卡中的当前连接详情)的端口 {{sourcePort}} 转发流量到端点计算机的端口 {{endpointPort}}。", + "endpointSshConfiguration": "端点 SSH 配置", + "sourcePortDescription": "(源指的是常规选项卡中的当前连接详情)", + "autoStartContainer": "容器启动时自动启动", + "upload": "上传", + "authentication": "认证方式", + "password": "密码", + "key": "密钥", + "sshPrivateKey": "SSH 私钥", + "keyPassword": "密钥密码", + "keyType": "密钥类型", + "maxRetriesDescription": "隧道连接的最大重试次数。", + "retryIntervalDescription": "重试尝试之间的等待时间。", "otherInstallMethods": "其他安装方法:", "sshpassOSInstructions": { "centos": "CentOS/RHEL/Fedora: sudo yum install sshpass 或 sudo dnf install sshpass", diff --git a/src/ui/Apps/Host Manager/HostManagerHostEditor.tsx b/src/ui/Apps/Host Manager/HostManagerHostEditor.tsx index 40764152..d341ef16 100644 --- a/src/ui/Apps/Host Manager/HostManagerHostEditor.tsx +++ b/src/ui/Apps/Host Manager/HostManagerHostEditor.tsx @@ -567,7 +567,7 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos )} /> - Authentication + {t('hosts.authentication')} { @@ -577,8 +577,8 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos className="flex-1 flex flex-col h-full min-h-0" > - Password - Key + {t('hosts.password')} + {t('hosts.key')} ( - Password + {t('hosts.password')} @@ -601,7 +601,7 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos name="key" render={({field}) => ( - SSH Private Key + {t('hosts.sshPrivateKey')}
( - Key Password + {t('hosts.keyPassword')} ( - Key Type + {t('hosts.keyType')}

- This tunnel will forward traffic from - port {form.watch(`tunnelConnections.${index}.sourcePort`) || '22'} on - the source machine (current connection details - in general tab) to - port {form.watch(`tunnelConnections.${index}.endpointPort`) || '224'} on - the endpoint machine. + {t('hosts.tunnelForwardDescription', { + sourcePort: form.watch(`tunnelConnections.${index}.sourcePort`) || '22', + endpointPort: form.watch(`tunnelConnections.${index}.endpointPort`) || '224' + })}

@@ -900,8 +895,7 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos placeholder="3" {...maxRetriesField} /> - Maximum number of retry attempts - for tunnel connection. + {t('hosts.maxRetriesDescription')} )} @@ -917,8 +911,7 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos placeholder="10" {...retryIntervalField} /> - Time to wait between retry - attempts. + {t('hosts.retryIntervalDescription')} )} @@ -928,8 +921,7 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos name={`tunnelConnections.${index}.autoStart`} render={({field}) => ( - Auto Start on Container - Launch + {t('hosts.autoStartContainer')}