mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
feat(i18n): give the strip and the switcher the words for a link that is retrying
The strip could count reconnect attempts but never say what any of them ran into, and the switcher had no word at all for a machine between links or for a workspace another client is holding.
This commit is contained in:
@@ -1076,6 +1076,10 @@ pub fn translate_en(key: L10nKey) -> &'static str {
|
||||
L10nKey::RemoteStripConnecting => "Connecting to {machine}…",
|
||||
L10nKey::RemoteStripReconnecting => "Reconnecting to {machine}…",
|
||||
L10nKey::RemoteStripReconnectingAttempt => "Reconnecting to {machine}… (attempt {count})",
|
||||
L10nKey::RemoteStripReconnectingWhy => "Reconnecting to {machine}… — last failure: {error}",
|
||||
L10nKey::RemoteStripReconnectingAttemptWhy => {
|
||||
"Reconnecting to {machine}… (attempt {count}) — last failure: {error}"
|
||||
}
|
||||
L10nKey::RemoteStripPreempted => "This workspace was opened on {by}",
|
||||
L10nKey::RemoteStripFailed => "Not connected to {machine} — {error}",
|
||||
L10nKey::RemoteNoticePreempted => "Opened elsewhere — typing has no effect",
|
||||
@@ -1446,6 +1450,8 @@ pub fn translate_en(key: L10nKey) -> &'static str {
|
||||
L10nKey::SwitcherStatusConnecting => "connecting…",
|
||||
L10nKey::SwitcherStatusConnectFailed => "couldn't connect",
|
||||
L10nKey::SwitcherStatusNotConnected => "not connected",
|
||||
L10nKey::SwitcherStatusReconnecting => "reconnecting…",
|
||||
L10nKey::SwitcherStatusTakenOver => "taken over",
|
||||
L10nKey::SettingsFontDefault => "Default (match primary)",
|
||||
L10nKey::ForwardDescriptionPlaceholder => "what it's for",
|
||||
L10nKey::SettingsShellDefaultLoginShell => "your login shell",
|
||||
|
||||
@@ -1123,6 +1123,10 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> {
|
||||
L10nKey::RemoteStripConnecting => "{machine} に接続中…",
|
||||
L10nKey::RemoteStripReconnecting => "{machine} に再接続中…",
|
||||
L10nKey::RemoteStripReconnectingAttempt => "{machine} に再接続中…({count} 回目の試行)",
|
||||
L10nKey::RemoteStripReconnectingWhy => "{machine} に再接続中…(前回の失敗: {error})",
|
||||
L10nKey::RemoteStripReconnectingAttemptWhy => {
|
||||
"{machine} に再接続中…({count} 回目の試行、前回の失敗: {error})"
|
||||
}
|
||||
L10nKey::RemoteStripPreempted => "このワークスペースは {by} で開かれました",
|
||||
L10nKey::RemoteStripFailed => "{machine} に未接続です — {error}",
|
||||
L10nKey::RemoteNoticePreempted => "別の場所で開かれました — 入力しても反映されません",
|
||||
@@ -1494,6 +1498,8 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> {
|
||||
L10nKey::SwitcherStatusConnecting => "接続中…",
|
||||
L10nKey::SwitcherStatusConnectFailed => "接続できませんでした",
|
||||
L10nKey::SwitcherStatusNotConnected => "未接続",
|
||||
L10nKey::SwitcherStatusReconnecting => "再接続中…",
|
||||
L10nKey::SwitcherStatusTakenOver => "他のクライアントが使用中",
|
||||
L10nKey::SettingsFontDefault => "デフォルト(メインに合わせる)",
|
||||
L10nKey::ForwardDescriptionPlaceholder => "用途",
|
||||
L10nKey::SettingsShellDefaultLoginShell => "あなたのログインシェル",
|
||||
|
||||
@@ -930,6 +930,8 @@ l10n_keys! {
|
||||
RemoteStripConnecting,
|
||||
RemoteStripReconnecting,
|
||||
RemoteStripReconnectingAttempt,
|
||||
RemoteStripReconnectingWhy,
|
||||
RemoteStripReconnectingAttemptWhy,
|
||||
RemoteStripPreempted,
|
||||
RemoteStripFailed,
|
||||
RemoteNoticePreempted,
|
||||
@@ -1212,6 +1214,8 @@ l10n_keys! {
|
||||
SwitcherStatusConnecting,
|
||||
SwitcherStatusConnectFailed,
|
||||
SwitcherStatusNotConnected,
|
||||
SwitcherStatusReconnecting,
|
||||
SwitcherStatusTakenOver,
|
||||
SettingsFontDefault,
|
||||
ForwardDescriptionPlaceholder,
|
||||
SettingsShellDefaultLoginShell,
|
||||
|
||||
@@ -1021,6 +1021,10 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> {
|
||||
L10nKey::RemoteStripConnecting => "正在连接 {machine}…",
|
||||
L10nKey::RemoteStripReconnecting => "正在重新连接 {machine}…",
|
||||
L10nKey::RemoteStripReconnectingAttempt => "正在重新连接 {machine}…(第 {count} 次尝试)",
|
||||
L10nKey::RemoteStripReconnectingWhy => "正在重新连接 {machine}…(上次失败:{error})",
|
||||
L10nKey::RemoteStripReconnectingAttemptWhy => {
|
||||
"正在重新连接 {machine}…(第 {count} 次尝试,上次失败:{error})"
|
||||
}
|
||||
L10nKey::RemoteStripPreempted => "此工作区已在 {by} 上打开",
|
||||
L10nKey::RemoteStripFailed => "未连接到 {machine}——{error}",
|
||||
L10nKey::RemoteNoticePreempted => "已在别处打开——输入无效",
|
||||
@@ -1374,6 +1378,8 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> {
|
||||
L10nKey::SwitcherStatusConnecting => "正在连接…",
|
||||
L10nKey::SwitcherStatusConnectFailed => "连接失败",
|
||||
L10nKey::SwitcherStatusNotConnected => "未连接",
|
||||
L10nKey::SwitcherStatusReconnecting => "正在重连…",
|
||||
L10nKey::SwitcherStatusTakenOver => "已被接管",
|
||||
L10nKey::SettingsFontDefault => "默认(匹配主字体)",
|
||||
L10nKey::ForwardDescriptionPlaceholder => "用途说明",
|
||||
L10nKey::SettingsShellDefaultLoginShell => "你的登录 shell",
|
||||
|
||||
Reference in New Issue
Block a user