fix(settings): file Compression with the algorithm lists it belongs to

`Algorithms` holds five lists — kex, cipher, mac, hostkey, compression —
and the SSH form showed four of them under Algorithms and the fifth under
Connection, next to the keepalives. There it was labelled just
"Compression", which in an ssh_config is a yes/no, over a description
reading "Comma-separated (blank = default)." — an instruction that made no
sense for the switch the label implied.

It moves up to its siblings and takes their naming: "Compression
algorithms", beside "Host-key algorithms". Connection is left with the two
keepalives and the connect timeout, which is what that word means here.
This commit is contained in:
l0ng-ai
2026-08-08 17:57:09 +07:00
parent bf7b35bdf2
commit bce4a384cb
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ pub fn translate_en(key: L10nKey) -> &'static str {
L10nKey::SettingsMacsDesc => "Comma-separated (blank = default).",
L10nKey::SettingsHostKeyAlgorithms => "Host-key algorithms",
L10nKey::SettingsHostKeyAlgorithmsDesc => "Comma-separated (blank = default).",
L10nKey::SettingsCompression => "Compression",
L10nKey::SettingsCompression => "Compression algorithms",
L10nKey::SettingsJumpHostVia => "via {jump_name}",
L10nKey::SettingsConnected => "connected",
L10nKey::SettingsProfileCopied => "{name} (copy)",
+1 -1
View File
@@ -259,7 +259,7 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> {
L10nKey::SettingsMacsDesc => "カンマ区切り(空欄 = デフォルト)",
L10nKey::SettingsHostKeyAlgorithms => "ホストキーアルゴリズム",
L10nKey::SettingsHostKeyAlgorithmsDesc => "カンマ区切り(空欄 = デフォルト)",
L10nKey::SettingsCompression => "圧縮",
L10nKey::SettingsCompression => "圧縮アルゴリズム",
L10nKey::SettingsJumpHostVia => "{jump_name} 経由",
L10nKey::SettingsConnected => "接続済み",
L10nKey::SettingsProfileCopied => "{name}(コピー)",
+1 -1
View File
@@ -231,7 +231,7 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> {
L10nKey::SettingsMacsDesc => "逗号分隔(留空 = 默认值)。",
L10nKey::SettingsHostKeyAlgorithms => "主机密钥算法",
L10nKey::SettingsHostKeyAlgorithmsDesc => "逗号分隔(留空 = 默认值)。",
L10nKey::SettingsCompression => "压缩",
L10nKey::SettingsCompression => "压缩算法",
L10nKey::SettingsJumpHostVia => "经由 {jump_name}",
L10nKey::SettingsConnected => "已连接",
L10nKey::SettingsProfileCopied => "{name}(副本)",
+4 -1
View File
@@ -3440,7 +3440,9 @@ impl Tty7App {
&form.hostkey,
cx,
))
.child(self.subgroup_header(L10nKey::SettingsGroupConnection, cx))
// Compression here is the algorithm list russh negotiates, not
// ssh_config's yes/no switch, so it belongs with the other three
// lists rather than under Connection with the keepalives.
.child(text_row(
self,
t(L10nKey::SettingsCompression),
@@ -3448,6 +3450,7 @@ impl Tty7App {
&form.compression,
cx,
))
.child(self.subgroup_header(L10nKey::SettingsGroupConnection, cx))
.child(text_row(
self,
t(L10nKey::SettingsKeepaliveInterval),