diff --git a/AppResources/Info.plist b/AppResources/Info.plist
index 88b3baa..f2ec480 100644
--- a/AppResources/Info.plist
+++ b/AppResources/Info.plist
@@ -9,8 +9,8 @@
CFBundleIconFileAppIcon
CFBundleNameMP4Flow
CFBundlePackageTypeAPPL
- CFBundleShortVersionString1.5.2
- CFBundleVersion22
+ CFBundleShortVersionString1.5.3
+ CFBundleVersion23
CFBundleLocalizations
enzh-Hansfrruesjako
LSMinimumSystemVersion13.0
diff --git a/AppResources/en.lproj/Localizable.strings b/AppResources/en.lproj/Localizable.strings
index b843cef..fe93e04 100644
--- a/AppResources/en.lproj/Localizable.strings
+++ b/AppResources/en.lproj/Localizable.strings
@@ -503,3 +503,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "Installation failed. Check your network and Homebrew permissions, then retry or use Terminal.";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg and ffprobe are ready.";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "FFmpeg or ffprobe is still unavailable. See the checks above.";
+
+"跟随系统" = "Follow System";
+"检查依赖…" = "Check Dependencies…";
diff --git a/AppResources/es.lproj/Localizable.strings b/AppResources/es.lproj/Localizable.strings
index e485822..15a79c7 100644
--- a/AppResources/es.lproj/Localizable.strings
+++ b/AppResources/es.lproj/Localizable.strings
@@ -504,3 +504,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "Falló la instalación. Comprueba la red y los permisos de Homebrew o usa Terminal.";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg y ffprobe están listos.";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "FFmpeg o ffprobe sigue sin estar disponible. Consulta los resultados de arriba.";
+
+"跟随系统" = "Seguir el sistema";
+"检查依赖…" = "Comprobar dependencias…";
diff --git a/AppResources/fr.lproj/Localizable.strings b/AppResources/fr.lproj/Localizable.strings
index c565592..641a752 100644
--- a/AppResources/fr.lproj/Localizable.strings
+++ b/AppResources/fr.lproj/Localizable.strings
@@ -504,3 +504,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "Échec. Vérifiez le réseau et les autorisations Homebrew, puis réessayez ou utilisez Terminal.";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg et ffprobe sont prêts.";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "FFmpeg ou ffprobe reste indisponible. Consultez les résultats ci-dessus.";
+
+"跟随系统" = "Suivre le système";
+"检查依赖…" = "Vérifier les dépendances…";
diff --git a/AppResources/ja.lproj/Localizable.strings b/AppResources/ja.lproj/Localizable.strings
index 44d0a13..2a17d42 100644
--- a/AppResources/ja.lproj/Localizable.strings
+++ b/AppResources/ja.lproj/Localizable.strings
@@ -503,3 +503,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "インストールできませんでした。通信と Homebrew の権限を確認するか、ターミナルをご利用ください。";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg と ffprobe の準備ができました。";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "FFmpeg または ffprobe がまだ使えません。上の診断結果を確認してください。";
+
+"跟随系统" = "システムに従う";
+"检查依赖…" = "依存ツールを確認…";
diff --git a/AppResources/ko.lproj/Localizable.strings b/AppResources/ko.lproj/Localizable.strings
index 25771f1..af3735a 100644
--- a/AppResources/ko.lproj/Localizable.strings
+++ b/AppResources/ko.lproj/Localizable.strings
@@ -503,3 +503,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "설치하지 못했습니다. 네트워크와 Homebrew 권한을 확인하거나 터미널을 사용하세요.";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg와 ffprobe를 사용할 수 있습니다.";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "FFmpeg 또는 ffprobe를 아직 사용할 수 없습니다. 위 점검 결과를 확인하세요.";
+
+"跟随系统" = "시스템 설정 따르기";
+"检查依赖…" = "의존성 확인…";
diff --git a/AppResources/ru.lproj/Localizable.strings b/AppResources/ru.lproj/Localizable.strings
index b7d989e..4f320ca 100644
--- a/AppResources/ru.lproj/Localizable.strings
+++ b/AppResources/ru.lproj/Localizable.strings
@@ -503,3 +503,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "Ошибка установки. Проверьте сеть и права Homebrew или используйте Терминал.";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg и ffprobe готовы к работе.";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "FFmpeg или ffprobe всё ещё недоступен. См. результаты проверки выше.";
+
+"跟随系统" = "Как в системе";
+"检查依赖…" = "Проверить зависимости…";
diff --git a/AppResources/zh-Hans.lproj/Localizable.strings b/AppResources/zh-Hans.lproj/Localizable.strings
index 3ac988d..18528dc 100644
--- a/AppResources/zh-Hans.lproj/Localizable.strings
+++ b/AppResources/zh-Hans.lproj/Localizable.strings
@@ -503,3 +503,6 @@
"安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。" = "安装未完成。请检查网络和 Homebrew 权限后重试,或使用终端安装。";
"FFmpeg 和 ffprobe 已就绪。" = "FFmpeg 和 ffprobe 已就绪。";
"安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。" = "安装后仍无法使用 FFmpeg 或 ffprobe。请查看上方的检测结果。";
+
+"跟随系统" = "跟随系统";
+"检查依赖…" = "检查依赖…";
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 298187a..93b0b9b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## 1.5.3 — 2026-11-20
+
+**English** — Open Environment Check from Help → Check Dependencies. The Language menu now offers Follow System, and About links to the official website.
+
+**简体中文** — 可从「帮助 → 检查依赖」打开环境体检。「语言」菜单支持跟随系统,「关于」面板可打开官网。
+
+**日本語** — 「ヘルプ → 依存ツールを確認」から環境チェックを開けます。言語はシステム設定に合わせられ、「MP4Flow について」から公式サイトを開けます。
+
+**한국어** — ‘도움말 → 의존성 확인’에서 환경 점검을 열 수 있습니다. 언어는 시스템 설정을 따를 수 있으며, 정보 창에 공식 웹사이트 링크가 추가되었습니다.
+
+macOS 13+ · Apple Silicon / Intel · FFmpeg and ffprobe installed separately · Ad-hoc signed, not notarized
+
## 1.5.1 — 2026-11-06
### English
diff --git a/README.es.md b/README.es.md
index 2284e4d..d2c883a 100644
--- a/README.es.md
+++ b/README.es.md
@@ -34,7 +34,7 @@ También puedes cambiar la resolución de salida. Todo el procesamiento de video
## Descargar e instalar
1. **Instala la app.** Abre la [última versión](https://github.com/ixiehao/MP4Flow/releases/latest), despliega **Assets** y descarga el **instalador `.dmg` de MP4Flow** para tu chip: **arm64 (Apple Silicon)** o **x86_64 (Intel)**. Ábrelo y arrastra **MP4Flow** a **Applications (Aplicaciones)**.
-2. **Configura FFmpeg y ffprobe.** Abre MP4Flow y haz clic en el icono de onda de la parte superior para abrir Diagnóstico.
+2. **Configura FFmpeg y ffprobe.** Abre MP4Flow y elige «Ayuda → Comprobar dependencias…» en la barra de menús.
- **¿Ya tienes Homebrew?** Si faltan las herramientas, pulsa «Instalar dependencias».
- **¿No tienes Homebrew?** Sigue las instrucciones oficiales y completa los «Next steps» si aparecen. Vuelve a MP4Flow y pulsa «Instalar dependencias». [Abrir Homebrew](https://brew.sh/)
diff --git a/README.fr.md b/README.fr.md
index ec401be..b475d79 100644
--- a/README.fr.md
+++ b/README.fr.md
@@ -34,7 +34,7 @@ Vous pouvez aussi changer la résolution de sortie. Tout le traitement vidéo se
## Télécharger et installer
1. **Installez l’app.** Ouvrez la [dernière version](https://github.com/ixiehao/MP4Flow/releases/latest), dépliez **Assets** et téléchargez le **fichier `.dmg` de MP4Flow** adapté : **arm64 (Apple Silicon)** ou **x86_64 (Intel)**. Ouvrez-le, puis glissez **MP4Flow** dans **Applications**.
-2. **Configurez FFmpeg et ffprobe.** Ouvrez MP4Flow et cliquez sur l’icône en forme d’onde en haut pour ouvrir le diagnostic.
+2. **Configurez FFmpeg et ffprobe.** Ouvrez MP4Flow et choisissez « Aide → Vérifier les dépendances… » dans la barre des menus.
- **Homebrew est déjà installé ?** Si les outils manquent, cliquez sur « Installer les dépendances ».
- **Vous n’avez pas Homebrew ?** Suivez les instructions officielles et effectuez les éventuelles étapes « Next steps ». Revenez ensuite à MP4Flow et cliquez sur « Installer les dépendances ». [Ouvrir Homebrew](https://brew.sh/)
diff --git a/README.ja.md b/README.ja.md
index 00e52fd..30355be 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -34,7 +34,7 @@
## ダウンロードと導入
1. **アプリを入れる。** [最新リリース](https://github.com/ixiehao/MP4Flow/releases/latest)の **Assets** を開き、チップに合う **MP4Flow の `.dmg` ファイル**(**arm64:Apple Silicon** / **x86_64:Intel**)をダウンロード。開いて **MP4Flow** を **Applications(アプリケーション)** にドラッグします。
-2. **FFmpeg と ffprobe を設定します。** MP4Flow を開き、ウィンドウ上部の波形アイコンをクリックして「環境チェック」を開きます。
+2. **FFmpeg と ffprobe を設定します。** MP4Flow を開き、メニューバーの「ヘルプ → 依存ツールを確認…」を選びます。
- **Homebrew をインストール済みの場合** ツールが不足している場合は「依存関係をインストール」をクリックします。
- **Homebrew がない場合** 公式の手順に従い、「Next steps」が表示されたら最後まで実行します。その後 MP4Flow に戻り、「依存関係をインストール」をクリックします。 [Homebrewを開く](https://brew.sh/)
diff --git a/README.ko.md b/README.ko.md
index 135c56b..1084eb5 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -34,7 +34,7 @@
## 다운로드와 설치
1. **앱을 설치하세요.** [최신 버전 페이지](https://github.com/ixiehao/MP4Flow/releases/latest)에서 **Assets**를 펼쳐 칩에 맞는 **MP4Flow `.dmg` 설치 파일**: **arm64(Apple Silicon)** 또는 **x86_64(Intel)**을 다운로드하세요. 파일을 열고 **MP4Flow**를 **Applications(응용 프로그램)**로 드래그하세요.
-2. **FFmpeg와 ffprobe를 설정하세요.** MP4Flow를 열고 창 상단의 파형 아이콘을 눌러 ‘환경 점검’을 엽니다.
+2. **FFmpeg와 ffprobe를 설정하세요.** MP4Flow를 열고 메뉴 막대에서 ‘도움말 → 의존성 확인…’를 선택하세요.
- **Homebrew가 이미 있나요?** 도구가 없으면 ‘의존성 설치’를 누르세요.
- **Homebrew가 없나요?** 공식 안내에 따라 설치하고 ‘Next steps’가 표시되면 완료하세요. MP4Flow로 돌아와 ‘의존성 설치’를 누르세요. [Homebrew 웹사이트 열기](https://brew.sh/)
diff --git a/README.md b/README.md
index 8ee316e..f358e99 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ You can also change output resolution. All video processing stays on your Mac.
## Download and install
1. **Install the app.** Open the [latest release](https://github.com/ixiehao/MP4Flow/releases/latest), expand **Assets**, and download the MP4Flow **`.dmg` installer** for your chip: **arm64 (Apple Silicon)** or **x86_64 (Intel)**. Open it and drag **MP4Flow** to **Applications**.
-2. **Set up FFmpeg and ffprobe.** Open MP4Flow and click the waveform icon at the top to open Environment Check.
+2. **Set up FFmpeg and ffprobe.** Open MP4Flow and choose “Help → Check Dependencies…” from the menu bar.
- **Already have Homebrew?** If the tools are missing, click “Install dependencies”.
- **No Homebrew?** Follow the official installation instructions and complete any “Next steps”. Then return to MP4Flow and click “Install dependencies”. [Open Homebrew](https://brew.sh/)
diff --git a/README.ru.md b/README.ru.md
index c28f7f8..2bbb6fa 100644
--- a/README.ru.md
+++ b/README.ru.md
@@ -34,7 +34,7 @@
## Скачать и установить
1. **Установите приложение.** Откройте [последний выпуск](https://github.com/ixiehao/MP4Flow/releases/latest), разверните **Assets** и скачайте **установщик MP4Flow `.dmg`** для вашего чипа: **arm64 (Apple Silicon)** или **x86_64 (Intel)**. Откройте файл и перетащите **MP4Flow** в **Applications («Программы»)**.
-2. **Настройте FFmpeg и ffprobe.** Откройте MP4Flow и нажмите значок с волной в верхней части окна, чтобы открыть «Диагностику».
+2. **Настройте FFmpeg и ffprobe.** Откройте MP4Flow и выберите «Справка → Проверить зависимости…» в строке меню.
- **Homebrew уже установлен?** Если инструментов нет, нажмите «Установить зависимости».
- **Нет Homebrew?** Установите его по официальной инструкции и выполните шаги «Next steps», если они появятся. Вернитесь в MP4Flow и нажмите «Установить зависимости». [Открыть сайт Homebrew](https://brew.sh/)
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 3c0606d..3ea0b62 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -34,7 +34,7 @@
## 下载与安装
1. **安装应用。** 打开[最新版本页面](https://github.com/ixiehao/MP4Flow/releases/latest),展开 **Assets**,下载对应芯片的 **MP4Flow `.dmg` 安装包**:**arm64(Apple 芯片)** 或 **x86_64(Intel)**。打开后,将 **MP4Flow** 拖入 **Applications(应用程序)**。
-2. **安装 FFmpeg 和 ffprobe。** 打开 MP4Flow,点击窗口顶部的波形图标,进入「环境体检」。
+2. **安装 FFmpeg 和 ffprobe。** 打开 MP4Flow,在菜单栏选择「帮助 → 检查依赖…」。
- **已安装 Homebrew?** 如果缺少转换工具,点击「一键安装依赖」。
- **还没有 Homebrew?** 按官网提示安装,并完成安装后显示的「Next steps」(如有)。然后回到 MP4Flow,点击「一键安装依赖」。 [打开 Homebrew 官网](https://brew.sh/)
diff --git a/Scripts/tests/website.test.mjs b/Scripts/tests/website.test.mjs
index 933b3d9..f5b6875 100644
--- a/Scripts/tests/website.test.mjs
+++ b/Scripts/tests/website.test.mjs
@@ -256,6 +256,9 @@ test('seven READMEs cover all ten features and use current App action names', as
assert.ok(readme.includes(`| **${catalogs[language.id][key]}** |`), `${language.id}: ${key}`);
}
for (const key of ['画面编辑', '画面调整', '应用编辑', '开始转换']) assert.ok(readme.includes(`**${label(key)}**`), `${language.id}: ${key}`);
+ const dependencyMenu = `${label('menu.help')} → ${label('检查依赖…')}`;
+ assert.ok(catalogs[language.id].installIntro.includes(dependencyMenu), `${language.id}: website dependency menu`);
+ assert.ok(readme.includes(dependencyMenu), `${language.id}: README dependency menu`);
assert.ok(!readme.includes(`**${label('裁切与比例')} →`), language.id);
assert.match(readme, /HDR/);
assert.ok((readme.match(/https:\/\/github\.com\/ixiehao\/MP4Flow\/releases\/latest/g) ?? []).length >= 2, language.id);
diff --git a/Sources/FastConvert/AppLanguage.swift b/Sources/FastConvert/AppLanguage.swift
index 49b7101..0aa3120 100644
--- a/Sources/FastConvert/AppLanguage.swift
+++ b/Sources/FastConvert/AppLanguage.swift
@@ -41,6 +41,12 @@ enum AppLanguage: String, CaseIterable, Identifiable, Sendable {
return .english
}
+ static let followSystem = "system"
+
+ static func resolve(_ preference: String?) -> AppLanguage {
+ AppLanguage(rawValue: preference ?? followSystem) ?? systemDefault
+ }
+
// Resolve resource bundles once, not for every label on every progress tick.
private static let bundles: [AppLanguage: Bundle] = Dictionary(uniqueKeysWithValues: allCases.compactMap { language in
guard let bundle = language.bundle(in: .main) else { return nil }
@@ -81,9 +87,9 @@ enum AppLanguage: String, CaseIterable, Identifiable, Sendable {
/// Dynamic state strings are not `LocalizedStringKey` values, so they use this
/// helper while static SwiftUI labels are resolved by the view locale.
enum L10n {
- private static var language: AppLanguage {
+ static var language: AppLanguage {
let identifier = UserDefaults.standard.string(forKey: "appLanguage")
- return AppLanguage(rawValue: identifier ?? "") ?? AppLanguage.systemDefault
+ return AppLanguage.resolve(identifier)
}
static func text(_ key: String) -> String { language.text(key) }
diff --git a/Sources/FastConvert/DependencyHealth.swift b/Sources/FastConvert/DependencyHealth.swift
index 6af71e4..ce2e662 100644
--- a/Sources/FastConvert/DependencyHealth.swift
+++ b/Sources/FastConvert/DependencyHealth.swift
@@ -379,6 +379,7 @@ private struct CommandResult: Sendable {
struct DependencyHealthStatusBar: View {
@ObservedObject var monitor: DependencyHealthMonitor
let refresh: () -> Void
+ let openDetails: () -> Void
let copyFFmpegInstallCommand: () -> Void
let openHomebrewWebsite: () -> Void
@Binding var isShowingDetails: Bool
@@ -395,9 +396,7 @@ struct DependencyHealthStatusBar: View {
.truncationMode(.tail)
.layoutPriority(1)
Spacer(minLength: 0)
- Button {
- isShowingDetails = true
- } label: {
+ Button(action: openDetails) {
healthActionMark(.healthCheck)
}
.buttonStyle(.plain)
@@ -448,7 +447,7 @@ struct DependencyHealthStatusBar: View {
private var backgroundColor: Color {
switch displayedLevel {
- case .failed: BrandColor.warningBackground
+ case .failed: .red.opacity(0.08)
case .warning: BrandColor.warningBackground.opacity(0.62)
case .ready, .checking: BrandColor.surface
}
@@ -741,6 +740,6 @@ private func color(for level: DependencyHealthLevel) -> Color {
case .ready: BrandColor.success
case .warning: BrandColor.warning
case .failed: .red
- case .checking: BrandColor.blue
+ case .checking: .secondary
}
}
diff --git a/Sources/FastConvert/FastConvertApp.swift b/Sources/FastConvert/FastConvertApp.swift
index 26bb09a..5b2e9b1 100644
--- a/Sources/FastConvert/FastConvertApp.swift
+++ b/Sources/FastConvert/FastConvertApp.swift
@@ -8,13 +8,19 @@ struct MP4FlowApp: App {
@NSApplicationDelegateAdaptor(MP4FlowAppDelegate.self) private var appDelegate
@StateObject private var store = ConverterStore(journal: .live)
@StateObject private var updateChecker = UpdateChecker()
- @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.systemDefault.rawValue
+ @State private var dependencyCheckRequested = false
+ @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.followSystem
var body: some Scene {
- WindowGroup(id: "main") {
- ContentView(store: store, updateChecker: updateChecker, appDelegate: appDelegate)
+ Window("MP4Flow", id: "main") {
+ ContentView(
+ store: store,
+ updateChecker: updateChecker,
+ appDelegate: appDelegate,
+ dependencyCheckRequested: $dependencyCheckRequested
+ )
.frame(minWidth: 980, minHeight: 650)
- .environment(\.locale, (AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault).locale)
+ .environment(\.locale, (AppLanguage.resolve(appLanguageIdentifier)).locale)
}
.windowStyle(.hiddenTitleBar)
.commands {
@@ -23,25 +29,31 @@ struct MP4FlowApp: App {
appDelegate.showAboutPanel(availableUpdate: updateChecker.availableUpdate)
}
}
- CommandMenu((AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault).text("Language")) {
+ CommandMenu(AppLanguage.resolve(appLanguageIdentifier).text("Language")) {
Picker(selection: $appLanguageIdentifier) {
+ Text(verbatim: L10n.text("跟随系统")).tag(AppLanguage.followSystem)
ForEach(AppLanguage.allCases) { language in
Text(verbatim: language.displayName).tag(language.rawValue)
}
} label: {
- Text(verbatim: (AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault).text("Language"))
+ Text(verbatim: AppLanguage.resolve(appLanguageIdentifier).text("Language"))
}
.pickerStyle(.inline)
+ .labelsHidden()
}
CommandGroup(replacing: .help) {
Button(L10n.text("MP4Flow 使用帮助")) {
appDelegate.showHelpPanel(updateChecker: updateChecker)
}
Divider()
- Button(updateChecker.isChecking ? L10n.text("正在检查…") : L10n.text("检查更新…")) {
+ Button(L10n.text("检查更新…")) {
appDelegate.requestManualUpdateCheck?()
}
.disabled(updateChecker.isChecking)
+ Button(L10n.text("检查依赖…")) {
+ dependencyCheckRequested = true
+ appDelegate.openMainWindow?()
+ }
if let update = updateChecker.availableUpdate {
Button(L10n.format("发现新版本 v%@", update.version)) {
updateChecker.openDownloadPage()
@@ -55,7 +67,7 @@ struct MP4FlowApp: App {
Settings {
UpdateSettingsView(updateChecker: updateChecker)
.id(appLanguageIdentifier)
- .environment(\.locale, (AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault).locale)
+ .environment(\.locale, (AppLanguage.resolve(appLanguageIdentifier)).locale)
}
}
}
@@ -64,6 +76,13 @@ private enum ProjectLinks {
static let repository = URL(string: "https://github.com/ixiehao/MP4Flow")!
static let issues = URL(string: "https://github.com/ixiehao/MP4Flow/issues/new/choose")!
static let developer = URL(string: "https://github.com/ixiehao")!
+
+ static func website(for language: AppLanguage) -> URL {
+ let root = "https://ixiehao.github.io/MP4Flow/"
+ if language == .english { return URL(string: root)! }
+ let route = language == .chinese ? "zh" : language.rawValue
+ return URL(string: root + route + "/")!
+ }
}
private enum AboutCredits {
@@ -93,6 +112,7 @@ private enum AboutCredits {
appendBody(L10n.text("免费开源的本地视频转换工具") + "\n")
appendBody(L10n.text("开发者:"))
appendLink("ixiehao\n", ProjectLinks.developer)
+ appendLink("ixiehao.github.io/MP4Flow\n", ProjectLinks.website(for: L10n.language))
appendLink("github.com/ixiehao/MP4Flow\n", ProjectLinks.repository)
appendLink(L10n.text("反馈问题或建议"), ProjectLinks.issues)
if let availableUpdate {
@@ -200,7 +220,7 @@ private struct HelpStep: View {
private struct HelpPanel: View {
@ObservedObject var updateChecker: UpdateChecker
- @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.systemDefault.rawValue
+ @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.followSystem
var body: some View {
VStack(alignment: .leading, spacing: 18) {
@@ -280,7 +300,7 @@ private struct HelpPanel: View {
.padding(24)
.frame(width: 520)
.id(appLanguageIdentifier)
- .environment(\.locale, (AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault).locale)
+ .environment(\.locale, (AppLanguage.resolve(appLanguageIdentifier)).locale)
}
}
@@ -333,11 +353,11 @@ private struct UpdateSettingsView: View {
private struct UpdateAvailableBanner: View {
@ObservedObject var updateChecker: UpdateChecker
- @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.systemDefault.rawValue
+ @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.followSystem
var body: some View {
if let update = updateChecker.availableUpdate, updateChecker.shouldShowUpdateBanner {
- let language = AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault
+ let language = AppLanguage.resolve(appLanguageIdentifier)
HStack(spacing: 12) {
TablerIcon(name: .download, color: BrandColor.blue)
.frame(width: 18, height: 18)
@@ -374,6 +394,7 @@ struct ContentView: View {
@ObservedObject var store: ConverterStore
@ObservedObject var updateChecker: UpdateChecker
let appDelegate: MP4FlowAppDelegate
+ @Binding var dependencyCheckRequested: Bool
@Environment(\.openWindow) private var openWindow
@State private var isDropTargeted = false
@StateObject private var dependencyHealth = DependencyHealthMonitor()
@@ -385,7 +406,7 @@ struct ContentView: View {
@State private var clipItem: ConversionItem?
@State private var cropItem: ConversionItem?
@State private var exportItem: ConversionItem?
- @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.systemDefault.rawValue
+ @AppStorage("appLanguage") private var appLanguageIdentifier = AppLanguage.followSystem
private let configurationControlHeight: CGFloat = 40
private let appVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "—"
@@ -424,18 +445,23 @@ struct ContentView: View {
.ignoresSafeArea(.container, edges: .top)
.font(AppFont.body)
.onAppear {
- MenuBarLocalization.shared.install(language: AppLanguage(rawValue: appLanguageIdentifier) ?? AppLanguage.systemDefault)
+ MenuBarLocalization.shared.install(language: AppLanguage.resolve(appLanguageIdentifier))
appDelegate.openMainWindow = { openWindow(id: "main") }
appDelegate.requestManualUpdateCheck = checkForUpdates
appDelegate.prepareForTermination = { await store.prepareForTermination() }
Task { _ = await updateChecker.checkAfterStartupDelay() }
- refreshDependencyHealth()
+ if dependencyCheckRequested {
+ handleDependencyCheckRequest()
+ } else {
+ refreshDependencyHealth()
+ }
}
+ .onChange(of: dependencyCheckRequested) { if $0 { handleDependencyCheckRequest() } }
.onChange(of: store.outputDirectory) { _ in refreshDependencyHealth() }
.onChange(of: store.items.count) { _ in refreshDependencyHealth() }
.onChange(of: appLanguageIdentifier) { identifier in
appDelegate.refreshLocalizedWindowTitles()
- MenuBarLocalization.shared.update(language: AppLanguage(rawValue: identifier) ?? AppLanguage.systemDefault)
+ MenuBarLocalization.shared.update(language: AppLanguage.resolve(identifier))
}
.onChange(of: store.preset) { preset in
if preset == .smartEnhanceUpscale {
@@ -452,10 +478,7 @@ struct ContentView: View {
}
}
.alert(L10n.text("转换组件不可用"), isPresented: $store.showFFmpegSetup) {
- Button(L10n.text("环境体检")) {
- refreshDependencyHealth(forceToolCheck: true)
- showDependencyHealth = true
- }
+ Button(L10n.text("环境体检"), action: openDependencyHealth)
Button(L10n.text("稍后再说"), role: .cancel) {}
} message: {
Text(L10n.text("打开「环境体检」,安装或修复 FFmpeg 和 ffprobe。"))
@@ -667,12 +690,24 @@ struct ContentView: View {
DependencyHealthStatusBar(
monitor: dependencyHealth,
refresh: { refreshDependencyHealth(forceToolCheck: true) },
+ openDetails: openDependencyHealth,
copyFFmpegInstallCommand: store.copyFFmpegInstallCommand,
openHomebrewWebsite: store.openHomebrewWebsite,
isShowingDetails: $showDependencyHealth
)
}
+ private func handleDependencyCheckRequest() {
+ guard dependencyCheckRequested else { return }
+ dependencyCheckRequested = false
+ openDependencyHealth()
+ }
+
+ private func openDependencyHealth() {
+ refreshDependencyHealth(forceToolCheck: true)
+ showDependencyHealth = true
+ }
+
private func refreshDependencyHealth(forceToolCheck: Bool = false) {
dependencyHealth.refresh(
outputDirectory: store.outputDirectory,
diff --git a/Tests/FastConvertTests/AppLanguageTests.swift b/Tests/FastConvertTests/AppLanguageTests.swift
index 8ebe4b7..b97c327 100644
--- a/Tests/FastConvertTests/AppLanguageTests.swift
+++ b/Tests/FastConvertTests/AppLanguageTests.swift
@@ -30,6 +30,9 @@ final class AppLanguageTests: XCTestCase {
XCTAssertEqual(AppLanguage.preferred(in: ["ar", "de-DE"]), .english)
XCTAssertEqual(AppLanguage.preferred(in: []), .english)
XCTAssertEqual(AppLanguage.preferred(in: ["french", "russian"]), .english)
+ XCTAssertEqual(AppLanguage.resolve(AppLanguage.followSystem), AppLanguage.systemDefault)
+ XCTAssertEqual(AppLanguage.resolve(nil), AppLanguage.systemDefault)
+ XCTAssertEqual(AppLanguage.resolve("ja"), .japanese)
}
func testActualCatalogsAndEveryFormattedMessage() throws {
diff --git a/docs/LOCALIZATION.md b/docs/LOCALIZATION.md
index 08d2dcf..b91b3bf 100644
--- a/docs/LOCALIZATION.md
+++ b/docs/LOCALIZATION.md
@@ -26,6 +26,6 @@ swift test --filter AppLanguageTests
The Swift tests load the actual catalogs explicitly, exercise formatted messages, regional selection, fallback and live file-size localization. XCTest's main bundle alone does not contain the installed App resources and can misleadingly return source keys.
-Test the packaged App in every language, including its minimum window width, preset menu, dependency dialog, trim/crop editor, queue actions, failure recovery, Help and update settings. Switch language with a populated queue and retained warnings; verify the queue and edits remain intact. Check language persistence after relaunch. The menu-bar Language menu is the only language selector, with English first and a persisted selection. The main header reserves its flexible width for the localized title and privacy subtitle. Common native menu headings and commands relabel in place using public roles/actions, retaining their targets, shortcuts and validation. The initially empty View placeholder has a narrow exact-caption fallback using shipped native translations. Verify accessibility titles too: macOS 27 SwiftUI can ignore the modern title setter, so a cached per-item public compatibility override is used only when needed. Native validation can reset an item after localization: invalidate the AX attempt cache when its display title changes, and include the notified menu copies in the deferred refresh. Dynamic Undo action names, service-provider entries and system file-dialog chrome remain system-owned; do not rewrite unknown native commands or macOS language preferences.
+Test the packaged App in every language, including its minimum window width, preset menu, dependency dialog, trim/crop editor, queue actions, failure recovery, Help and update settings. Switch language with a populated queue and retained warnings; verify the queue and edits remain intact. Check language persistence after relaunch. The menu-bar Language menu is the only language selector, with Follow System first and explicit language choices starting with English. The selection persists across launches. The main header reserves its flexible width for the localized title and privacy subtitle. Common native menu headings and commands relabel in place using public roles/actions, retaining their targets, shortcuts and validation. The initially empty View placeholder has a narrow exact-caption fallback using shipped native translations. Verify accessibility titles too: macOS 27 SwiftUI can ignore the modern title setter, so a cached per-item public compatibility override is used only when needed. Native validation can reset an item after localization: invalidate the AX attempt cache when its display title changes, and include the notified menu copies in the deferred refresh. Dynamic Undo action names, service-provider entries and system file-dialog chrome remain system-owned; do not rewrite unknown native commands or macOS language preferences.
Arabic is intentionally outside the current scope. Supporting it later requires a separate right-to-left design and media-coordinate regression pass; a translated catalog alone is insufficient.
diff --git a/docs/RELEASE-CHECKLIST.md b/docs/RELEASE-CHECKLIST.md
index ea41f1b..472bb50 100644
--- a/docs/RELEASE-CHECKLIST.md
+++ b/docs/RELEASE-CHECKLIST.md
@@ -39,7 +39,7 @@ Use this checklist for each public MP4Flow release. It is a release gate, not a
- [ ] Verify the mounted final app with `codesign --verify --deep --strict --verbose=2 MP4Flow.app`, confirm the exact single architecture, macOS deployment minimum, matching external dSYM UUIDs and bundled resources, and disclose that the current build is not notarized.
- [ ] Test the downloaded app's Gatekeeper behaviour on a clean Mac and provide accurate macOS approval instructions. If a future release uses Developer ID, sign nested executable code and the app, notarize and staple the final distribution, and verify the resulting ticket before claiming notarization.
- [ ] Generate and publish the SHA-256 file for the exact final DMG. Treat a checksum as integrity information, not as a signing substitute.
-- [ ] Install the final DMG on a clean Intel Mac and Apple-silicon Mac when both architectures are claimed. Test first launch, Gatekeeper, English, Simplified Chinese, French, Russian, Spanish, Japanese, Korean, FFmpeg missing, conversion, trim, crop, rotation, and both merge modes. Confirm English appears first in the language menu.
+- [ ] Install the final DMG on a clean Intel Mac and Apple-silicon Mac when both architectures are claimed. Test first launch, Gatekeeper, English, Simplified Chinese, French, Russian, Spanish, Japanese, Korean, FFmpeg missing, conversion, trim, crop, rotation, and both merge modes. Confirm Follow System appears first, followed by English and the other supported languages.
## Release notes and support
diff --git a/website/locales/en.json b/website/locales/en.json
index e360223..2eff9a4 100644
--- a/website/locales/en.json
+++ b/website/locales/en.json
@@ -37,7 +37,7 @@
"socialImageAlt": "MP4Flow, a native Mac video converter, showing its real English crop window with Tears of Steel",
"installEyebrow": "ONE-TIME SETUP",
"installTitle": "Install FFmpeg",
- "installIntro": "Open MP4Flow and click the waveform icon at the top to open Environment Check.",
+ "installIntro": "Open MP4Flow and choose “Help → Check Dependencies…” from the menu bar.",
"installWithHomebrew": "Already have Homebrew?",
"installWithoutHomebrew": "No Homebrew?",
"installManual": "Install from Terminal",
diff --git a/website/locales/es.json b/website/locales/es.json
index aba6ca0..9ce7980 100644
--- a/website/locales/es.json
+++ b/website/locales/es.json
@@ -37,7 +37,7 @@
"socialImageAlt": "MP4Flow, conversor nativo para Mac: ventana real de recorte en inglés con Tears of Steel",
"installEyebrow": "INSTALA UNA SOLA VEZ",
"installTitle": "Instalar FFmpeg",
- "installIntro": "Abre MP4Flow y haz clic en el icono de onda de la parte superior para abrir Diagnóstico.",
+ "installIntro": "Abre MP4Flow y elige «Ayuda → Comprobar dependencias…» en la barra de menús.",
"installWithHomebrew": "¿Ya tienes Homebrew?",
"installWithoutHomebrew": "¿No tienes Homebrew?",
"installManual": "Instalar desde Terminal",
diff --git a/website/locales/fr.json b/website/locales/fr.json
index cfea176..8da11d6 100644
--- a/website/locales/fr.json
+++ b/website/locales/fr.json
@@ -37,7 +37,7 @@
"socialImageAlt": "MP4Flow, convertisseur natif pour Mac : véritable fenêtre de recadrage en anglais avec Tears of Steel",
"installEyebrow": "UNE SEULE INSTALLATION",
"installTitle": "Installer FFmpeg",
- "installIntro": "Ouvrez MP4Flow et cliquez sur l’icône en forme d’onde en haut pour ouvrir le diagnostic.",
+ "installIntro": "Ouvrez MP4Flow et choisissez « Aide → Vérifier les dépendances… » dans la barre des menus.",
"installWithHomebrew": "Homebrew est déjà installé ?",
"installWithoutHomebrew": "Vous n’avez pas Homebrew ?",
"installManual": "Installer depuis Terminal",
diff --git a/website/locales/ja.json b/website/locales/ja.json
index a712af8..36ae41f 100644
--- a/website/locales/ja.json
+++ b/website/locales/ja.json
@@ -37,7 +37,7 @@
"socialImageAlt": "Mac 用動画変換アプリ MP4Flow。Tears of Steel を表示した実際の英語版切り抜き画面",
"installEyebrow": "初回のみの設定",
"installTitle": "FFmpeg の導入",
- "installIntro": "MP4Flow を開き、ウィンドウ上部の波形アイコンをクリックして「環境チェック」を開きます。",
+ "installIntro": "MP4Flow を開き、メニューバーの「ヘルプ → 依存ツールを確認…」を選びます。",
"installWithHomebrew": "Homebrew をインストール済みの場合",
"installWithoutHomebrew": "Homebrew がない場合",
"installManual": "ターミナルからインストール",
diff --git a/website/locales/ko.json b/website/locales/ko.json
index 3d18b7e..e2e7723 100644
--- a/website/locales/ko.json
+++ b/website/locales/ko.json
@@ -37,7 +37,7 @@
"socialImageAlt": "Mac용 동영상 변환 앱 MP4Flow. Tears of Steel을 연 실제 영어 자르기 화면",
"installEyebrow": "처음 한 번만 설정",
"installTitle": "FFmpeg 설치",
- "installIntro": "MP4Flow를 열고 창 상단의 파형 아이콘을 눌러 ‘환경 점검’을 엽니다.",
+ "installIntro": "MP4Flow를 열고 메뉴 막대에서 ‘도움말 → 의존성 확인…’를 선택하세요.",
"installWithHomebrew": "Homebrew가 이미 있나요?",
"installWithoutHomebrew": "Homebrew가 없나요?",
"installManual": "터미널에서 설치",
diff --git a/website/locales/ru.json b/website/locales/ru.json
index b205c11..a73ad9d 100644
--- a/website/locales/ru.json
+++ b/website/locales/ru.json
@@ -37,7 +37,7 @@
"socialImageAlt": "MP4Flow для Mac: настоящее окно обрезки на английском с фрагментом Tears of Steel",
"installEyebrow": "ОДНОКРАТНАЯ НАСТРОЙКА",
"installTitle": "Установить FFmpeg",
- "installIntro": "Откройте MP4Flow и нажмите значок с волной в верхней части окна, чтобы открыть «Диагностику».",
+ "installIntro": "Откройте MP4Flow и выберите «Справка → Проверить зависимости…» в строке меню.",
"installWithHomebrew": "Homebrew уже установлен?",
"installWithoutHomebrew": "Нет Homebrew?",
"installManual": "Установить через Терминал",
diff --git a/website/locales/zh.json b/website/locales/zh.json
index ea46233..5b4b8d4 100644
--- a/website/locales/zh.json
+++ b/website/locales/zh.json
@@ -37,7 +37,7 @@
"socialImageAlt": "MP4Flow 原生 Mac 视频转换工具,展示使用 Tears of Steel 的真实英文裁切窗口",
"installEyebrow": "只需安装一次",
"installTitle": "安装 FFmpeg",
- "installIntro": "打开 MP4Flow,点击窗口顶部的波形图标,进入「环境体检」。",
+ "installIntro": "打开 MP4Flow,在菜单栏选择「帮助 → 检查依赖…」。",
"installWithHomebrew": "已安装 Homebrew?",
"installWithoutHomebrew": "还没有 Homebrew?",
"installManual": "通过终端安装",