diff --git a/src/ui/app.rs b/src/ui/app.rs index e2ba59eb..dd21edac 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -1448,7 +1448,15 @@ impl Tty7App { // file manager just opens nothing. if let Err(e) = std::fs::create_dir_all(&dir) { log::warn!("could not create {}: {e}", dir.display()); - crate::ui::host_ops::HostOps::notify_err(window, cx, t(L10nKey::ThemeFolderFailed), &e); + crate::ui::host_ops::HostOps::notify_err( + window, + cx, + &t_fmt( + L10nKey::OpenInFileManagerFailed, + &[("path", &dir.display().to_string())], + ), + &e, + ); return; } cx.open_with_system(&dir); diff --git a/src/ui/i18n/en.rs b/src/ui/i18n/en.rs index c499dd35..6cf0ae03 100644 --- a/src/ui/i18n/en.rs +++ b/src/ui/i18n/en.rs @@ -147,7 +147,6 @@ pub fn translate_en(key: L10nKey) -> &'static str { L10nKey::SettingsAnsiColors => "ANSI colors", L10nKey::SettingsCustomThemes => "Custom themes", L10nKey::SettingsThemesRejected => "Not loaded from the themes folder", - L10nKey::ThemeFolderFailed => "Could not open the themes folder", L10nKey::ThemeDuplicateFailed => "Could not duplicate the theme", L10nKey::ThemeSaveFailed => "Could not save the theme", L10nKey::OpenInFileManagerFailed => "Could not open {path}", diff --git a/src/ui/i18n/ja.rs b/src/ui/i18n/ja.rs index bd2ab58e..0a1a7a5a 100644 --- a/src/ui/i18n/ja.rs +++ b/src/ui/i18n/ja.rs @@ -149,7 +149,6 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> { L10nKey::SettingsAnsiColors => "ANSI カラー", L10nKey::SettingsCustomThemes => "カスタムテーマ", L10nKey::SettingsThemesRejected => "テーマフォルダから読み込めなかったもの", - L10nKey::ThemeFolderFailed => "テーマフォルダを開けませんでした", L10nKey::ThemeDuplicateFailed => "テーマを複製できませんでした", L10nKey::ThemeSaveFailed => "テーマを保存できませんでした", L10nKey::OpenInFileManagerFailed => "{path} を開けませんでした", diff --git a/src/ui/i18n/mod.rs b/src/ui/i18n/mod.rs index b75f5fa7..2661c437 100644 --- a/src/ui/i18n/mod.rs +++ b/src/ui/i18n/mod.rs @@ -191,7 +191,6 @@ l10n_keys! { SettingsCustomThemes, SettingsThemesRejected, ThemeDuplicateFailed, - ThemeFolderFailed, ThemeSaveFailed, OpenInFileManagerFailed, SettingsCustomThemesIntro, diff --git a/src/ui/i18n/zh.rs b/src/ui/i18n/zh.rs index e9ec55b7..e7129ead 100644 --- a/src/ui/i18n/zh.rs +++ b/src/ui/i18n/zh.rs @@ -131,7 +131,6 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> { L10nKey::SettingsAnsiColors => "ANSI 颜色", L10nKey::SettingsCustomThemes => "自定义主题", L10nKey::SettingsThemesRejected => "主题文件夹里这些没能加载", - L10nKey::ThemeFolderFailed => "无法打开主题文件夹", L10nKey::ThemeDuplicateFailed => "无法复制主题", L10nKey::ThemeSaveFailed => "无法保存主题", L10nKey::OpenInFileManagerFailed => "无法打开 {path}",