diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e3b80b9c..82b8a6e8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,7 +36,8 @@ electron . --smoke test\shot.png - 带插值的文案用 `{name}` / `{0}` 占位符,译文里的占位符必须与原文一一对应; - 语言设置默认 `auto`(中文系统中文,其它系统英文),老用户升级保持中文; - 双语 UI 冒烟:`npm run test:ui:en`(需要 Electron 二进制,纯 Node 的 `npm test` 不跑); - - 内置手册目前仍是中文,后续可以单独提交手册翻译。 + - 内置手册有中文和英文版本;更新时保持章节锚点一致。 + - 既有消息 ID 与源文本词典共用同一语言状态,兼容规则见 [docs/I18N.md](docs/I18N.md)。 ## 测试约定 diff --git a/README.md b/README.md index f30da32e..6a8f5408 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # ApkStart +[Interface translations / Traduções da interface](docs/I18N.md) · 简体中文 / English / Português (Brasil) / Русский / Tiếng Việt / Español / 日本語 / 한국어 +

ApkStart Logo

[![CI](https://github.com/RoutineMiku/apkstart/actions/workflows/ci.yml/badge.svg)](https://github.com/RoutineMiku/apkstart/actions/workflows/ci.yml) diff --git a/build/electron-builder-test.cjs b/build/electron-builder-test.cjs new file mode 100644 index 00000000..474d1e14 --- /dev/null +++ b/build/electron-builder-test.cjs @@ -0,0 +1,15 @@ +'use strict'; +const fs = require('fs'); +const path = require('path'); +const yaml = require('js-yaml'); + +// Lightweight test installer: reuse the runtime already in the user's data directory. +// A new installation downloads the runtime on demand, as the portable build does. +const config = yaml.load(fs.readFileSync(path.join(__dirname, '../electron-builder.yml'), 'utf8')); +module.exports = { + ...config, + directories: { ...config.directories, output: 'dist/i18n-test' }, + extraMetadata: { version: `${require('../package.json').version}-i18n.1` }, + extraResources: [], + publish: null, +}; diff --git a/build/installer.nsh b/build/installer.nsh index 79624bc3..dd7a7fd5 100644 --- a/build/installer.nsh +++ b/build/installer.nsh @@ -11,13 +11,23 @@ ; 用户装完发现桌面上什么都没有。这里用 NSIS 原生的 CreateShortcut 再写一次: ; $DESKTOP 走 SHGetFolderPath,能正确跟随桌面的重定向路径;写成幂等操作, ; 和 electron-builder 的重复执行也只是覆盖同一个 .lnk。 +LangString ApkStartCreateShortcuts 2052 "正在创建桌面快捷方式…" +LangString ApkStartCreateShortcuts 1033 "Creating desktop shortcuts…" +LangString ApkStartCreateShortcuts 1046 "Criando atalhos na área de trabalho…" +LangString ApkStartShortcutDescription 2052 "ApkStart — 在电脑上直接运行安卓应用" +LangString ApkStartShortcutDescription 1033 "ApkStart — Run Android apps on your PC" +LangString ApkStartShortcutDescription 1046 "ApkStart — Execute apps Android no seu computador" +LangString un.ApkStartStopProcesses 2052 "正在结束 ApkStart 残留进程…" +LangString un.ApkStartStopProcesses 1033 "Stopping remaining ApkStart processes…" +LangString un.ApkStartStopProcesses 1046 "Encerrando os processos restantes do ApkStart…" + !macro customInstall - DetailPrint "正在创建桌面快捷方式…" + DetailPrint "$(ApkStartCreateShortcuts)" CreateShortcut "$DESKTOP\ApkStart.lnk" "$INSTDIR\ApkStart.exe" "" "$INSTDIR\ApkStart.exe" 0 \ - SW_SHOWNORMAL "" "ApkStart — 在电脑上直接运行安卓应用" + SW_SHOWNORMAL "" "$(ApkStartShortcutDescription)" CreateDirectory "$SMPROGRAMS\ApkStart" CreateShortcut "$SMPROGRAMS\ApkStart\ApkStart.lnk" "$INSTDIR\ApkStart.exe" "" "$INSTDIR\ApkStart.exe" 0 \ - SW_SHOWNORMAL "" "ApkStart — 在电脑上直接运行安卓应用" + SW_SHOWNORMAL "" "$(ApkStartShortcutDescription)" !macroend !macro customUnInstall @@ -26,7 +36,7 @@ Delete "$SMPROGRAMS\ApkStart\ApkStart.lnk" RMDir "$SMPROGRAMS\ApkStart" - DetailPrint "正在结束 ApkStart 残留进程…" + DetailPrint "$(un.ApkStartStopProcesses)" ; /F 强杀 /T 连带子进程。进程不存在时 taskkill 返回 128,忽略即可。 nsExec::Exec 'taskkill.exe /F /T /IM ApkStart.exe' nsExec::Exec 'taskkill.exe /F /T /IM qemu-system-x86_64.exe' diff --git a/docs/I18N.md b/docs/I18N.md new file mode 100644 index 00000000..4071a2ab --- /dev/null +++ b/docs/I18N.md @@ -0,0 +1,86 @@ +# Interface translations + +The interface and startup splash support upstream's eight languages: Simplified Chinese +(`zh`), English (`en`), Russian (`ru`), Vietnamese (`vi`), Spanish (`es`), Brazilian +Portuguese (`pt`), Japanese (`ja`) and Korean (`ko`). Settings → Language saves the +selection and updates open windows without reloading the main window. First-launch +language selection, custom system images and background polling optimizations from +upstream are preserved. + +`settings.uiLanguage` is the canonical preference. Existing `settings.language` values +from earlier builds are migrated (`pt-BR` → `pt`, `zh-CN` → `zh`) when the canonical +preference is absent. New installations follow the system language; existing upstream +installations without a preference retain Chinese. Unsupported system languages use English. + +`src/core/i18n.js` shares one active language between both message formats: + +- Upstream's source-text dictionaries live in `src/i18n/*.json`; keep Chinese source + strings as keys and preserve named or numbered placeholders. New upstream UI text + continues to use this format and the `i18n-dom.js` display-layer observer. +- Existing extracted UI and runtime messages remain in `src/locales/*.json`. Keep the + same keys and numbered placeholders in all four catalogs. Do not renumber existing + `mNNNN` keys. Prefer descriptive keys for runtime additions. Some messages contain + trusted interface HTML; preserve markup and escape user content before interpolation. + +The shared module overlays the English, Brazilian Portuguese and Russian catalogs on +source-text lookup where Chinese source messages match. `t()` supports both formats. +`getCatalog()` serves the explicit-ID renderer via allowlisted `i18n:get` IPC. That +renderer listens to upstream's `i18n:lang` notifications; explicitly marked nodes and +attributes are excluded from the source-text observer to prevent competing DOM updates. +Other upstream languages use their existing dictionaries with English fallback for +explicit-ID messages without a matching translation. Upstream source-text lookup retains +its Chinese fallback. No runtime dependency is added for internationalization. + +The four explicit-ID catalogs contain 1,383 messages each. The 347 runtime/diagnostic +messages contributed in fork PR #2 have been translated into Brazilian Portuguese. +Their Russian entries remain the contribution's English placeholders pending translation. +English fallback does not mean that Russian runtime translation is complete. + +App names, package names, file paths, release notes and raw runtime logs are preserved. +Some diagnostics emitted by underlying components still use Chinese. The built-in +manual has Chinese (`src/ui/manual.html`) and English (`src/ui/manual.en.html`) versions; +non-Chinese locales use English. Keep their section IDs and content in sync. Both include +upstream's language-selection and custom-system-image sections. + +## Validation + +```powershell +npm test +npm run test:i18n +npm run i18n:check +npm run test:ui +npm run test:ui:en +npm run test:i18n:ui +``` + +The UI test uses mocked APIs in an isolated Electron window. It checks language +switching across all eight languages without reloads, app-launch feedback and settings overflow, +translated context menus, category navigation, cross-category search, diagnostic +tutorial routing and both bundled/download splash variants. +Screenshots are written to `test/out/i18n/`. It does not install APKs or alter the +user's installation. Real Android app startup still needs a manual test. + +## Local test installer + +```powershell +npm install +npm run build:exe:test +``` + +Output: `dist/i18n-test/ApkStart--i18n.1-Setup.exe` (Windows x64). +This unsigned, unpublished test build uses the same application ID and data paths +as ApkStart. It omits the bundled Android runtime and reuses an existing runtime in +the user data directory; missing runtime components download on demand. It must be +installed in the same location as the current installation to replace that copy. +The installer language and interface language can be selected independently. + +## Teste em português + +1. Feche o ApkStart pela opção Sair no ícone da bandeja do Windows. +2. Execute o instalador de teste e escolha a mesma pasta da instalação atual. +3. Abra Configurações → Idioma e selecione Português (Brasil). +4. Confira as telas, abra um app Android já instalado e teste a opção English. + +O instalador mantém o mesmo identificador e os mesmos caminhos de dados do projeto. +Ele não inclui a imagem Android completa. Logs brutos e alguns diagnósticos internos +ainda podem aparecer em chinês. A compilação é local e não publica uma versão ou PR. diff --git a/electron-builder.yml b/electron-builder.yml index 6f652e50..44f808c6 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -91,7 +91,11 @@ nsis: oneClick: false perMachine: false allowToChangeInstallationDirectory: true - displayLanguageSelector: false + displayLanguageSelector: true + installerLanguages: + - zh_CN + - en_US + - pt_BR # always:即使桌面上已有同名 .lnk 也重建一次。 # 默认的 true 只在「不存在」时才创建,某些机器上(安全软件拦截、桌面被 # OneDrive 重定向、旧版残留了指向已删目录的坏快捷方式)会出现装完没图标, diff --git a/package-lock.json b/package-lock.json index cd182c0a..ff1844e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,16 @@ { "name": "apkstart", - "version": "0.3.0", + "version": "0.6.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "apkstart", - "version": "0.3.0", + "version": "0.6.4", "license": "MIT", "os": [ - "win32" + "win32", + "linux" ], "dependencies": { "@napi-rs/lzma": "^1.5.3" diff --git a/package.json b/package.json index 3a595dff..023a03b3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "scripts": { "start": "electron .", "dev": "electron . --dev", - "test": "node test/i18n-test.js && node test/run-tests.js && node test/android-test.js && node test/range-validation-test.js && node test/display-scale-test.js && node test/resources-test.js && node test/drivers-test.js && node test/preflight-test.js && node test/standalone-test.js && node test/boot-auth-test.js && node test/issue-hardening-test.js && node test/autodebug-test.js && node test/settings-categories-test.js && node test/engine-test.js && node test/manual-test.js && node test/incremental-test.js && node test/auto-test.js", + "test": "node test/i18n-test.js && node test/i18n-source-test.js && node test/run-tests.js && node test/android-test.js && node test/range-validation-test.js && node test/display-scale-test.js && node test/resources-test.js && node test/drivers-test.js && node test/preflight-test.js && node test/standalone-test.js && node test/boot-auth-test.js && node test/issue-hardening-test.js && node test/autodebug-test.js && node test/settings-categories-test.js && node test/engine-test.js && node test/manual-test.js && node test/incremental-test.js && node test/auto-test.js", "i18n:extract": "node tools/i18n/extract.js", "i18n:check": "node tools/check-i18n.js", "test:ui": "electron test/settings-ui-test.js", @@ -50,6 +50,9 @@ "assoc:on": "node scripts/assoc.js on", "assoc:off": "node scripts/assoc.js off", "test:boot": "node test/boot-test.js", + "test:i18n": "node test/i18n-test.js", + "test:i18n:ui": "electron test/i18n-ui-test.js", + "build:exe:test": "electron-builder --win nsis --x64 --config build/electron-builder-test.cjs --publish never", "pack:linux": "electron-builder --linux AppImage --config electron-builder.yml", "icons": "electron build/build-icons.js", "shots": "electron build/store-shots.js", diff --git a/src/core/adb.js b/src/core/adb.js index bcd95b67..8aa6bfde 100644 --- a/src/core/adb.js +++ b/src/core/adb.js @@ -9,6 +9,7 @@ const os = require('os'); const path = require('path'); const crypto = require('crypto'); const store = require('./store'); +const { t } = require('./i18n'); const { autoRotateSetting } = require('./orientation'); /** @@ -55,35 +56,25 @@ function friendlyInstallError(raw) { const code = /INSTALL_[A-Z_]+/.exec(raw); const tag = code ? code[0] : ''; const table = { - INSTALL_FAILED_NO_MATCHING_ABIS: - '安装失败:这个应用只提供 ARM 原生库(多数国产应用如此),' - + '当前系统镜像没有 ARM 转译层。ApkStart 会自动切换到内置新版翻译层的兼容镜像并重试。', - INSTALL_FAILED_OLDER_SDK: - '安装失败:应用要求的 Android 版本高于当前运行时(需更高系统镜像)。', - INSTALL_PARSE_FAILED_NO_CERTIFICATES: - '安装失败:APK 没有有效签名,无法安装。', - INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES: - '安装失败:与已安装版本签名不一致,请先卸载旧版再装。', - INSTALL_FAILED_VERSION_DOWNGRADE: - '安装失败:设备上已安装更高版本,不能降级覆盖。', - INSTALL_FAILED_INSUFFICIENT_STORAGE: - '安装失败:运行时磁盘空间不足,请清理后重试。', - INSTALL_FAILED_INVALID_APK: - '安装失败:APK 文件损坏或不完整(可能下载未完成),请重新获取。', - INSTALL_FAILED_INVALID_URI: '安装失败:APK 路径含特殊字符,请把文件移到纯英文路径后重试。', - INSTALL_FAILED_ALREADY_EXISTS: '安装失败:已存在同名应用且签名不同,请先卸载。', - INSTALL_FAILED_UPDATE_INCOMPATIBLE: '安装失败:与已安装版本签名不一致,请先卸载旧版。', - INSTALL_FAILED_DEPRECATED_SDK_VERSION: - '安装失败:这是面向很老 Android 版本的应用(targetSdk 过低),Android 14 默认禁止安装。' - + 'ApkStart 会自动用官方绕过参数重试。', - INSTALL_FAILED_TEST_ONLY: '安装失败:这是仅供测试的应用包,已自动加上测试包参数重试。', - INSTALL_FAILED_MISSING_SHARED_LIBRARY: '安装失败:应用依赖的设备特性(如特定厂商库)在当前运行时不存在。', - INSTALL_FAILED_USER_RESTRICTION: '安装失败:系统限制了安装,请重启运行时后重试。', - INSTALL_FAILED_CONFLICTING_PROVIDER: '安装失败:与已有应用的 ContentProvider 冲突,请卸载冲突应用。', - INSTALL_FAILED_INTERNAL_ERROR: '安装失败:系统内部错误(常见于存储空间不足或开机未完成),请重启运行时后重试。', + INSTALL_FAILED_NO_MATCHING_ABIS: t('adb.install.INSTALL_FAILED_NO_MATCHING_ABIS'), + INSTALL_FAILED_OLDER_SDK: t('adb.install.INSTALL_FAILED_OLDER_SDK'), + INSTALL_PARSE_FAILED_NO_CERTIFICATES: t('adb.install.INSTALL_PARSE_FAILED_NO_CERTIFICATES'), + INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES: t('adb.install.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES'), + INSTALL_FAILED_VERSION_DOWNGRADE: t('adb.install.INSTALL_FAILED_VERSION_DOWNGRADE'), + INSTALL_FAILED_INSUFFICIENT_STORAGE: t('adb.install.INSTALL_FAILED_INSUFFICIENT_STORAGE'), + INSTALL_FAILED_INVALID_APK: t('adb.install.INSTALL_FAILED_INVALID_APK'), + INSTALL_FAILED_INVALID_URI: t('adb.install.INSTALL_FAILED_INVALID_URI'), + INSTALL_FAILED_ALREADY_EXISTS: t('adb.install.INSTALL_FAILED_ALREADY_EXISTS'), + INSTALL_FAILED_UPDATE_INCOMPATIBLE: t('adb.install.INSTALL_FAILED_UPDATE_INCOMPATIBLE'), + INSTALL_FAILED_DEPRECATED_SDK_VERSION: t('adb.install.INSTALL_FAILED_DEPRECATED_SDK_VERSION'), + INSTALL_FAILED_TEST_ONLY: t('adb.install.INSTALL_FAILED_TEST_ONLY'), + INSTALL_FAILED_MISSING_SHARED_LIBRARY: t('adb.install.INSTALL_FAILED_MISSING_SHARED_LIBRARY'), + INSTALL_FAILED_USER_RESTRICTION: t('adb.install.INSTALL_FAILED_USER_RESTRICTION'), + INSTALL_FAILED_CONFLICTING_PROVIDER: t('adb.install.INSTALL_FAILED_CONFLICTING_PROVIDER'), + INSTALL_FAILED_INTERNAL_ERROR: t('adb.install.INSTALL_FAILED_INTERNAL_ERROR'), }; const msg = table[tag]; - return msg ? `${msg}(${tag})` : `安装失败:${raw}`; + return msg ? t('adb.install.withTag', [msg, tag]) : t('adb.install.failedRaw', [raw]); } /** @@ -96,28 +87,26 @@ const ANTI_EMULATOR_RE = /anti[-_ ]?emulat|emulator.?detect|检测到.{0,6}(模 /** 把启动后的崩溃日志翻译成能看懂的原因 */ function friendlyLaunchError(raw, pkg) { - const t = String(raw || ''); - if (ANTI_EMULATOR_RE.test(t)) { - return `${pkg || '应用'} 检测到模拟器 / 转译环境后主动退出(反模拟、反调试或安全校验),` - + '属于应用自身限制,不是故障;ApkStart 无法绕过,详见内置手册 6.3。'; + const text = String(raw || ''); + const name = pkg || t('adb.launch.appName'); + if (ANTI_EMULATOR_RE.test(text)) { + return t('adb.launch.antiEmulator', [name]); } - if (/DoBadTrampoline|libndk_translation|houdini|SIGABRT.*arm/i.test(t)) { - return `${pkg || '应用'} 启动后崩溃:应用与 ARM 翻译层不兼容` - + '(常见于反调试 / 反模拟检测或 native hook 冲突)。' - + '若运行时尚未启用兼容镜像会自动切换重试一次;已启用仍崩溃则属于应用兼容性限制,' - + '不是故障,详见内置手册 6.3。'; + if (/DoBadTrampoline|libndk_translation|houdini|SIGABRT.*arm/i.test(text)) { + return t('adb.launch.translationCrash', [name]); } - if (/UnsatisfiedLinkError|dlopen failed|couldn't find "lib|\.so.*not found/i.test(t)) { - return `${pkg || '应用'} 启动后崩溃:缺少设备原生库(应用可能只提供 ARM 版本)。` - + '若运行时尚未启用 ARM 翻译层会自动切换兼容镜像重试;已启用仍崩溃多为应用限制,详见内置手册 6.3。'; + if (/UnsatisfiedLinkError|dlopen failed|couldn't find "lib|\.so.*not found/i.test(text)) { + return t('adb.launch.missingNativeLib', [name]); } - if (/ClassNotFoundException|NoClassDefFoundError|AndroidRuntime/i.test(t)) { - return `${pkg || '应用'} 启动即崩溃(应用内部异常,可能与模拟器环境或缺少 Google 服务有关)。`; + if (/ClassNotFoundException|NoClassDefFoundError|AndroidRuntime/i.test(text)) { + return t('adb.launch.appException', [name]); } - if (/java\.lang\.SecurityException|Permission Denial/i.test(t)) { - return `${pkg || '应用'} 启动失败:系统拒绝了启动请求(权限或签名问题)。`; + if (/java\.lang\.SecurityException|Permission Denial/i.test(text)) { + return t('adb.launch.denied', [name]); } - return `${pkg || '应用'} 未能启动${t ? `:${t.slice(0, 240)}` : '(进程未存活)'}`; + return text + ? t('adb.launch.failedWithLog', [name, text.slice(0, 240)]) + : t('adb.launch.failedNoProcess', [name]); } const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); @@ -296,7 +285,7 @@ class AdbClient { // adb install 的失败原因写在 stdout 且退出码非 0; // 旧版只看 stderr,导致用户永远只看到一句空泛的「失败」。 const text = [stdout, stderr, err.message].filter(Boolean).join('\n').trim(); - const e = new AdbError(`adb ${finalArgs.join(' ')} 失败: ${text}`, stderr, err.code); + const e = new AdbError(t('adb.exec.failed', [finalArgs.join(' '), text]), stderr, err.code); e.stdout = stdout; e.raw = text; return reject(e); @@ -466,7 +455,7 @@ class AdbClient { * - NO_MATCHING_ABIS 抛带 code 的错误,交给上层自动切换兼容镜像。 */ async install(apkPath) { - if (!fs.existsSync(apkPath)) throw new Error(`APK 不存在: ${apkPath}`); + if (!fs.existsSync(apkPath)) throw new Error(t('adb.install.missingApk', [apkPath])); const staged = stageApk(apkPath); const file = staged.path; const variants = [ @@ -517,7 +506,7 @@ class AdbClient { // 没拿到明确错误码:最后一种写法再试 } } - const err = new Error(friendlyInstallError(last || '安装失败,未获得明确原因')); + const err = new Error(friendlyInstallError(last || t('adb.install.noReason'))); err.code = (/INSTALL_[A-Z_]+/.exec(last) || [])[0] || 'INSTALL_UNKNOWN'; err.raw = last; throw err; @@ -528,7 +517,7 @@ class AdbClient { /** 拆分 APK(.apks / .xapk 解出来的多个分片)走 install-multiple */ async installMultiple(apkPaths) { - if (!apkPaths || !apkPaths.length) throw new Error('没有可安装的分片 APK'); + if (!apkPaths || !apkPaths.length) throw new Error(t('adb.install.noSplits')); const staged = apkPaths.map((p) => stageApk(p)); const files = staged.map((s) => s.path); const totalBytes = staged.reduce((n, s) => n + (fs.existsSync(s.path) ? fs.statSync(s.path).size : 0), 0); @@ -551,7 +540,7 @@ class AdbClient { throw new Error(friendlyInstallError(raw)); } } - throw new Error('拆分 APK 安装失败'); + throw new Error(t('adb.install.splitFailed')); } finally { staged.forEach((s) => unstage(s.staged ? s.path : null)); } @@ -680,7 +669,7 @@ class AdbClient { // eslint-disable-next-line no-await-in-loop const alive = await this.waitAppAlive(pkg, 6000); if (alive.ok) return out; - if (alive.uncertain) return `${out}\n(应用仍在加载中)`; + if (alive.uncertain) return `${out}\n${t('adb.launch.stillLoading')}`; lastError = alive.crash || lastError; // 崩溃日志明确指向 ARM 翻译层时不再重试,直接交给上层切换兼容镜像 if (/DoBadTrampoline|libndk_translation|UnsatisfiedLinkError|dlopen failed/i.test(alive.crash || '')) { diff --git a/src/core/appwin.js b/src/core/appwin.js index e742ad39..33518631 100644 --- a/src/core/appwin.js +++ b/src/core/appwin.js @@ -12,6 +12,7 @@ const path = require('path'); const { hookOptions } = require('./pointer'); const store = require('./store'); const { physicalRect } = require('./geometry'); +const { t } = require('./i18n'); const TITLEBAR_H = 38; /** @@ -150,7 +151,7 @@ class AppWindow { // 独立窗口模式下「全屏」要作用在模拟器窗口上(我们这层壳是隐藏的, // maximize 一个隐藏窗口没有任何视觉效果,openDetached 会读这个标记)。 this._wantFullscreen = !!fullscreen; - this.state = { label: label || '应用', tip: '正在启动安卓运行时…', ready: false, landscape: false }; + this.state = { label: label || t('m0373'), tip: t('m0374'), ready: false, landscape: false }; const area = this._area(); const size = AppWindow.sizeFor(area, this.portrait, false); @@ -519,7 +520,7 @@ class AppWindow { if (!this.isOpen) return this.state.landscape; const next = explicitNext === undefined || explicitNext === null ? !this.state.landscape : !!explicitNext; - this.setState({ tip: next ? '正在切换到横屏(重启安卓运行时,约 30-60 秒)…' : '正在切回竖屏(重启安卓运行时,约 30-60 秒)…', ready: false }); + this.setState({ tip: t(next ? 'appwin.rotateLandscape' : 'appwin.rotatePortrait'), ready: false }); if (typeof onRestart === 'function') { const ok = await onRestart(next).catch(() => false); if (ok) { diff --git a/src/core/autodebug.js b/src/core/autodebug.js index 9f5c945b..48c2727c 100644 --- a/src/core/autodebug.js +++ b/src/core/autodebug.js @@ -16,6 +16,7 @@ */ const manual = require('./manual'); +const { t } = require('./i18n'); /** 问题分类(设置页按这个顺序分组展示) */ const CATEGORIES = [ @@ -82,8 +83,8 @@ function evaluate(obs) { code: 'runtime.bootFailed', category: 'runtime', severity: 'error', - title: '安卓运行时上次启动失败', - hint: '运行时的真实报错已经拿到,按这条原因处理通常一次就能恢复。', + title: t('autodebug.runtime.bootFailed.title'), + hint: t('autodebug.runtime.bootFailed.hint'), detail: bootError, fix: 'restartRuntime', }); @@ -95,9 +96,9 @@ function evaluate(obs) { code: 'runtime.stuckBoot', category: 'runtime', severity: 'warn', - title: '安卓开机卡在引导阶段', - hint: '已经引导超过 2 分半还没进系统。常见原因是快速启动快照损坏,重启运行时(会走一次冷启动)通常能解决。', - detail: `阶段:${runtime.phase}`, + title: t('autodebug.runtime.stuckBoot.title'), + hint: t('autodebug.runtime.stuckBoot.hint'), + detail: t('autodebug.runtime.stuckBoot.detail', [runtime.phase]), fix: 'restartRuntime', }); } @@ -108,8 +109,8 @@ function evaluate(obs) { code: 'runtime.staleLocks', category: 'runtime', severity: 'warn', - title: `检测到 ${runtime.locks} 个上次残留的锁文件`, - hint: '锁文件没清会让下一次启动被判定为「AVD 已被占用」而直接失败。可以一键清掉。', + title: t('autodebug.runtime.staleLocks.title', [runtime.locks]), + hint: t('autodebug.runtime.staleLocks.hint'), fix: 'lock', }); } @@ -121,8 +122,8 @@ function evaluate(obs) { code: 'runtime.orphanProcesses', category: 'runtime', severity: 'warn', - title: `有 ${runtime.orphans} 个残留的模拟器进程`, - hint: '上次没有正常关机的安卓进程还占着资源与 AVD 锁,会让下次开机失败。可以一键清理(不会动已装应用与存档)。', + title: t('autodebug.runtime.orphanProcesses.title', [runtime.orphans]), + hint: t('autodebug.runtime.orphanProcesses.hint'), fix: 'orphans', }); } @@ -133,8 +134,8 @@ function evaluate(obs) { code: 'runtime.staleSnapshot', category: 'runtime', severity: 'warn', - title: '快速启动快照已损坏', - hint: '快照文件还在但校验不通过,每次开机都要额外冷启动一次。删掉它会用一次冷启动换回磁盘空间。', + title: t('autodebug.runtime.staleSnapshot.title'), + hint: t('autodebug.runtime.staleSnapshot.hint'), fix: 'snapshots', }); } @@ -147,8 +148,8 @@ function evaluate(obs) { code: 'device.unauthorized', category: 'device', severity: 'error', - title: '安卓设备未授权调试', - hint: '安卓侧弹过「允许 USB 调试吗」但没被确认,adb 一直连不上。重启运行时(走一次冷启动)会重新弹出确认框,确认后即恢复。', + title: t('autodebug.device.unauthorized.title'), + hint: t('autodebug.device.unauthorized.hint'), fix: 'restartRuntime', }); } else if (device.state === 'offline') { @@ -156,8 +157,8 @@ function evaluate(obs) { code: 'device.offline', category: 'device', severity: 'warn', - title: '安卓设备处于 offline 状态', - hint: 'adb 能看到设备但连不上,通常是虚拟机还在引导或 adb 服务没握手成功。等一会儿仍不恢复就重启运行时。', + title: t('autodebug.device.offline.title'), + hint: t('autodebug.device.offline.hint'), fix: 'restartRuntime', }); } else if (runtime.running && device.checked && device.state === 'no-device') { @@ -165,8 +166,8 @@ function evaluate(obs) { code: 'device.missing', category: 'device', severity: 'warn', - title: '运行时在跑,但 adb 没看到设备', - hint: '安卓进程活着、adb 却看不到设备,多半是 adb 服务端口被别的程序占了,或者引导还没完成。', + title: t('autodebug.device.missing.title'), + hint: t('autodebug.device.missing.hint'), fix: 'restartRuntime', }); } @@ -179,9 +180,9 @@ function evaluate(obs) { code: 'storage.diskCritical', category: 'storage', severity: 'error', - title: '运行时所在磁盘快满了', - hint: '剩余空间不足 2 GB,装应用和写快照都会失败。点「一键清理」回收旧镜像、旧快照和日志。', - detail: `剩余 ${freeMB} MB`, + title: t('autodebug.storage.diskCritical.title'), + hint: t('autodebug.storage.diskCritical.hint'), + detail: t('autodebug.storage.diskCritical.detail', [freeMB]), fix: 'disk', }); } else if (freeMB > 0 && freeMB < 8192) { @@ -189,9 +190,9 @@ function evaluate(obs) { code: 'storage.diskLow', category: 'storage', severity: 'warn', - title: '运行时所在磁盘空间偏紧', - hint: '剩余不足 8 GB,快照和系统镜像还需要空间。建议先清理一次可回收文件。', - detail: `剩余 ${freeMB} MB`, + title: t('autodebug.storage.diskLow.title'), + hint: t('autodebug.storage.diskLow.hint'), + detail: t('autodebug.storage.diskLow.detail', [freeMB]), fix: 'disk', }); } @@ -202,9 +203,9 @@ function evaluate(obs) { code: 'storage.dataNeedsReset', category: 'storage', severity: 'warn', - title: '数据分区扩容没有真正生效', - hint: '快速启动用的差量盘挡着就地扩容,guest 里看到的还是旧容量。需要「重置安卓数据」后按新容量重建(会清掉已装应用)。', - detail: `配置 ${storage.configuredGB} GB · 实际 ${storage.actualGB} GB`, + title: t('autodebug.storage.dataNeedsReset.title'), + hint: t('autodebug.storage.dataNeedsReset.hint'), + detail: t('autodebug.storage.dataNeedsReset.detail', [storage.configuredGB, storage.actualGB]), fix: 'dataReset', }); } else if (Number(storage.configuredGB) > 0 && Number(storage.actualGB) > 0 @@ -213,9 +214,9 @@ function evaluate(obs) { code: 'storage.dataMismatch', category: 'storage', severity: 'error', - title: '安卓数据分区比配置的小', - hint: '安卓里实际可用容量小于设置里写的值,装大游戏会提示存储空间不足。', - detail: `配置 ${storage.configuredGB} GB · 实际 ${storage.actualGB} GB`, + title: t('autodebug.storage.dataMismatch.title'), + hint: t('autodebug.storage.dataMismatch.hint'), + detail: t('autodebug.storage.dataMismatch.detail', [storage.configuredGB, storage.actualGB]), fix: 'dataReset', }); } @@ -225,8 +226,8 @@ function evaluate(obs) { code: 'storage.sharedBroken', category: 'storage', severity: 'warn', - title: '共享目录不可用', - hint: '文件互通用的本机目录不存在或没有写权限,安卓里保存的文件同步不过去。', + title: t('autodebug.storage.sharedBroken.title'), + hint: t('autodebug.storage.sharedBroken.hint'), detail: storage.sharedPath || '', fix: 'shared', }); @@ -241,8 +242,8 @@ function evaluate(obs) { code: 'settings.orientationConflict', category: 'settings', severity: 'warn', - title: '屏幕方向策略与当前面板方向相反', - hint: '策略要求竖屏,但面板现在是横屏,安卓只会给应用一条窄画面加两侧黑边。把面板方向改成与策略一致即可。', + title: t('autodebug.settings.orientationConflict.title'), + hint: t('autodebug.settings.orientationConflict.hintPortrait'), fix: 'orientation', }); } else if (mode === 'landscape' && settings.landscape === false) { @@ -250,8 +251,8 @@ function evaluate(obs) { code: 'settings.orientationConflict', category: 'settings', severity: 'warn', - title: '屏幕方向策略与当前面板方向相反', - hint: '策略要求横屏,但面板现在是竖屏,看剧/游戏会是一条竖着的窄画面。把面板方向改成与策略一致即可。', + title: t('autodebug.settings.orientationConflict.title'), + hint: t('autodebug.settings.orientationConflict.hintLandscape'), fix: 'orientation', }); } @@ -261,8 +262,8 @@ function evaluate(obs) { code: 'settings.detachedFullscreen', category: 'settings', severity: 'info', - title: '原生窗口模式下的「启动时自动全屏」不会生效', - hint: '原生窗口由模拟器自己开窗,全屏由它自己决定,不受这里的开关控制。想铺满屏幕可在窗口里按 F11,或把窗口承载方式改成嵌入模式。', + title: t('autodebug.settings.detachedFullscreen.title'), + hint: t('autodebug.settings.detachedFullscreen.hint'), }); } @@ -271,8 +272,8 @@ function evaluate(obs) { code: 'settings.snapshotOffLowDisk', category: 'settings', severity: 'info', - title: '磁盘偏紧,快速启动快照已关闭', - hint: '当前磁盘余量不到 4 GB,快照又被关掉:打开应用会走一次完整冷启动(十几秒)。磁盘够的话建议重新打开快照。', + title: t('autodebug.settings.snapshotOffLowDisk.title'), + hint: t('autodebug.settings.snapshotOffLowDisk.hint'), fix: 'settings', }); } @@ -287,8 +288,8 @@ function evaluate(obs) { code: 'audio.disabled', category: 'settings', severity: 'warn', - title: '安卓应用声音已在设置里关闭', - hint: '安卓声音开关被关掉了,所以只有 ApkStart 里的应用没声音。点「处理」重新打开,并重启一次运行时即可。', + title: t('autodebug.audio.disabled.title'), + hint: t('autodebug.audio.disabled.hint'), fix: 'audio', }); } @@ -297,8 +298,8 @@ function evaluate(obs) { code: 'audio.windowsServiceStopped', category: 'settings', severity: 'warn', - title: 'Windows 音频服务(Audiosrv)未运行', - hint: '这会连系统其它软件一起没声音。到 services.msc 启动 Windows Audio 并设为自动,或在管理员 PowerShell 里执行 net start Audiosrv。', + title: t('autodebug.audio.windowsServiceStopped.title'), + hint: t('autodebug.audio.windowsServiceStopped.hint'), fix: 'audioService', }); } @@ -309,8 +310,8 @@ function evaluate(obs) { code: 'audio.microphoneDisabled', category: 'settings', severity: 'warn', - title: '麦克风输入已在设置里关闭', - hint: '应用里的语音、通话、录音会失败(查不到录音设备)。点「处理」重新打开并重启一次运行时即可;同时确认 Windows 的麦克风权限已允许桌面应用访问。', + title: t('autodebug.audio.microphoneDisabled.title'), + hint: t('autodebug.audio.microphoneDisabled.hint'), fix: 'microphone', }); } @@ -322,8 +323,8 @@ function evaluate(obs) { code: 'network.guestDown', category: 'network', severity: 'warn', - title: '安卓里没有网络', - hint: '安卓侧解析或联网失败,视频/资讯类应用会一直转圈。可以用「修复网络」重置安卓数据解决(应用清单会保留)。', + title: t('autodebug.network.guestDown.title'), + hint: t('autodebug.network.guestDown.hint'), detail: network.reason || '', fix: 'repairNetwork', }); @@ -335,8 +336,8 @@ function evaluate(obs) { code: 'network.sourcesDown', category: 'network', severity: 'warn', - title: `${badSources.length} 个下载源连不上`, - hint: '更新检查会同时问多个源,有一个不通不影响使用;如果全都不通,请检查网络或代理。', + title: t('autodebug.network.sourcesDown.title', [badSources.length]), + hint: t('autodebug.network.sourcesDown.hint'), detail: badSources.map((s) => s.name).join('、'), fix: 'settings', }); @@ -350,8 +351,8 @@ function evaluate(obs) { code: 'logs.errors', category: 'logs', severity: 'warn', - title: `运行日志里有 ${errLines.length} 条错误`, - hint: '最近一次运行留下了错误记录,展开诊断报告可以看到完整上下文。', + title: t('autodebug.logs.errors.title', [errLines.length]), + hint: t('autodebug.logs.errors.hint'), detail: errLines.slice(-1)[0], fix: 'report', }); @@ -364,8 +365,8 @@ function evaluate(obs) { code: 'accel.softwareEmulation', category: 'runtime', severity: 'warn', - title: '当前没有硬件加速', - hint: '只能跑纯软件模拟,开机慢到几分钟、画面也容易掉帧。开启「Windows 虚拟机监控程序平台」后重启即可。', + title: t('autodebug.accel.softwareEmulation.title'), + hint: t('autodebug.accel.softwareEmulation.hint'), detail: accel.note || '', fix: 'virtualization', }); diff --git a/src/core/doctor.js b/src/core/doctor.js index 47ff5dab..9f8b94eb 100644 --- a/src/core/doctor.js +++ b/src/core/doctor.js @@ -1,4 +1,5 @@ 'use strict'; +const { t } = require('./i18n'); /** * 设备自适应 / 自动诊断(零配置底座) * @@ -309,13 +310,13 @@ function planVariants(profile) { const safeGpu = gpus.find((g) => /software|swiftshader/.test(g)) || firstGpu; const ordered = [firstGpu, ...gpus.filter((g) => g !== firstGpu && /swiftshader|swangle/.test(g))].slice(0, 2); for (const gpu of ordered) { - out.push({ ...profile, gpu, label: `${gpu} / ${profile.accel === 'auto' ? '硬件加速' : '软件模拟'}`, wipe: false, snapshot: true }); + out.push({ ...profile, gpu, label: t(profile.accel === 'auto' ? 'doctor.plan.hardware' : 'doctor.plan.software', [gpu]), wipe: false, snapshot: true }); } out.push({ ...profile, gpu: safeGpu, accel: 'off', - label: '关闭加速的软件模拟(慢,但兼容性最好)', + label: t('doctor.plan.noAccel'), wipe: false, snapshot: false, }); @@ -326,7 +327,7 @@ function planVariants(profile) { memoryMB: 2048, cores: 2, dataMB: Math.min(profile.dataMB, 2048), - label: '保守冷启动(最小内存 + 清快照)', + label: t('doctor.plan.conservative'), // 这里**绝对不能** wipe:以前写的是 wipe:true,而磁盘写满时每次尝试都会失败, // 于是连续重试把用户已装的应用和存档一起「清快照 + 清数据」了 —— // 「磁盘满了,结果打开 ApkStart 应用全没了」就是这么发生的。 @@ -417,52 +418,51 @@ const RULES = [ // 与 CPU、内存、镜像都无关(同机换 -gpu software 往往就能过)。 // 必须排在 GPU_INIT 前面:崩溃日志里通常也带着渲染初始化信息,先判崩溃更准。 re: /emulator exit 3221225477|exit code 3221225477|0xC0000005|STATUS_ACCESS_VIOLATION/i, - title: '渲染后端崩溃(0xC0000005 访问冲突)', - hint: '已自动改用更保守的渲染后端重试,并记住这个后端下次不再先试。' - + '若反复出现,请更新显卡驱动;或在设置 → 性能与资源里把画质调低、关闭远程桌面/虚拟机显卡直通后再试。', + get title() { return t('doctor.rule.ACCESS_VIOLATION.title'); }, + get hint() { return t('doctor.rule.ACCESS_VIOLATION.hint'); }, }, { code: 'GPU_INIT', // 只匹配「失败」语境:正常日志里也会出现 Vulkan/EGL/ANGLE 字样,不能误判为致命错误 re: /Failed to initialize GL emulation|Could not initialize (OpenGL|emulated framebuffer)|Failed to create .*GLES|EGL_(BAD|NOT_INITIALIZED|CONTEXT_LOST)|Failed to (load|initialize) .*vulkan|vulkan.*(failed|error)|ANGLE.*(fail|error)/i, - title: '显卡渲染后端初始化失败', - hint: '已自动切换软件渲染重试。若仍失败,请更新显卡驱动,或关闭远程桌面/虚拟机显卡直通后再试。', + get title() { return t('doctor.rule.GPU_INIT.title'); }, + get hint() { return t('doctor.rule.GPU_INIT.hint'); }, }, { code: 'GPU_MODE', re: /Unknown option|invalid .*-gpu|Unrecognized .*gpu|Unsupported gpu/i, - title: '当前运行时不接受该 GPU 模式', - hint: '已自动按运行时版本挑选可用的 GPU 模式重试(老版本用 swiftshader_indirect,新版本用 software)。', + get title() { return t('doctor.rule.GPU_MODE.title'); }, + get hint() { return t('doctor.rule.GPU_MODE.hint'); }, }, { code: 'ACCEL', re: /x86_64 emulation currently requires hardware acceleration|acceleration.*not (installed|available|supported)|WHPX.*(not|failed)|AEHD.*(not|failed)|ERROR_ACCESS_DENIED|加速.*不可用/i, - title: '硬件加速不可用', - hint: '已自动回退软件模拟(首次启动会明显变慢)。想要流畅可用,请在「Windows 功能」勾选「虚拟机平台」,或安装 AEHD 驱动后重启。', + get title() { return t('doctor.rule.ACCEL.title'); }, + get hint() { return t('doctor.rule.ACCEL.hint'); }, }, { code: 'MEMORY', re: /Cannot allocate memory|not enough memory|commit charge|Failed to allocate|out of memory|内存不足/i, - title: '内存分配失败', - hint: '已自动下调分配给 Android 的内存与核心数。请关闭占内存的程序后重试。', + get title() { return t('doctor.rule.MEMORY.title'); }, + get hint() { return t('doctor.rule.MEMORY.hint'); }, }, { code: 'PORT_BUSY', re: /port.*(in use|busy)|Address already in use|bind.*failed|Failed to (setup|bind) .*console/i, - title: '模拟器端口被占用', - hint: '已自动换用空闲端口。若反复出现,请退出夜神/MuMu/蓝叠等模拟器,或重启电脑。', + get title() { return t('doctor.rule.PORT_BUSY.title'); }, + get hint() { return t('doctor.rule.PORT_BUSY.hint'); }, }, { code: 'AVD_LOCK', re: /already running|lock file|\.lock|AVD is in use|emulator is running/i, - title: '上次运行残留了锁文件', - hint: '已自动清理 AVD 锁文件并重新拉起。', + get title() { return t('doctor.rule.AVD_LOCK.title'); }, + get hint() { return t('doctor.rule.AVD_LOCK.hint'); }, }, { code: 'IMAGE', re: /system\.img.*(missing|not found|corrupt)|kernel-ranchu.*(missing|not found)|invalid magic|Failed to open .*\.img|APEX.*(fail|error|loop)|boot loop|verity.*fail/i, - title: '系统镜像缺失或损坏 / 与旧用户数据不兼容', - hint: '已自动用干净的用户数据重新开机。若仍失败,请在「运行时」里删除镜像后重新下载。', + get title() { return t('doctor.rule.IMAGE.title'); }, + get hint() { return t('doctor.rule.IMAGE.hint'); }, }, { code: 'DLL', @@ -472,43 +472,41 @@ const RULES = [ // VC++ 运行库确实缺失、杀毒隔离了运行时文件,三种都可能。原来一律断言 // 「杀毒删了 / 缺 VC++」是照退出码静态猜的,会误导用户重装无用。 // 真实缺哪个 DLL 要看 WER 的 FaultingModuleName;这里如实列为「待定位」。 - title: '运行时依赖 DLL 加载失败(具体原因待定位)', - hint: '常见原因:商店版从只读目录启动子进程的路径限制、VC++ 运行库缺失、杀毒隔离了运行时文件。' - + '请打开内置手册 6.8 按步骤定位;不要只凭这一条就重装运行库。', + get title() { return t('doctor.rule.DLL.title'); }, + get hint() { return t('doctor.rule.DLL.hint'); }, }, { code: 'DISK_FULL', re: /No space left|disk full|not enough space|磁盘空间不足/i, - title: '磁盘空间不足,无法启动安卓', - hint: '请把运行时目录(设置 → 系统集成 → 运行时数据目录)改到空间充足的盘,' - + '或在设置里关掉「保留快速启动快照」/ 调小数据分区。安卓数据不会被自动清除。', + get title() { return t('doctor.rule.DISK_FULL.title'); }, + get hint() { return t('doctor.rule.DISK_FULL.hint'); }, }, { code: 'NON_ASCII', re: /Unicode|non-ASCII|路径.*(无效|找不到)|cannot find the path/i, - title: '安装路径含中文或特殊字符', - hint: '已自动改用 Windows 短路径。若仍失败,请把 ApkStart 移到纯英文目录(如 C:\\ApkStart)。', + get title() { return t('doctor.rule.NON_ASCII.title'); }, + get hint() { return t('doctor.rule.NON_ASCII.hint'); }, }, { // 上次被强制结束后 AVD 目录会留下 hardware-qemu.ini.lock / multiinstance.lock, // 模拟器一律拒绝启动,报出来的却是容易被误读成 CPU 问题的话。必须排在 CPU 规则前。 code: 'AVD_LOCK', re: /Running multiple emulators with the same AVD|AVD .*is already running|hardware-qemu\.ini\.lock/i, - title: '上一次运行没有正常退出,残留了锁文件', - hint: 'ApkStart 会自动清掉残留锁并重试;若反复出现,请检查是否有别的模拟器正在用同一套运行时。', + get title() { return t('doctor.rule.AVD_LOCK_UNCLEAN.title'); }, + get hint() { return t('doctor.rule.AVD_LOCK_UNCLEAN.hint'); }, }, { code: 'CPU_FEATURE', re: /host doesn't support requested feature|CPUID.*not supported|unsupported CPU|missing.*(AVX|SSE4|xsave)/i, - title: 'CPU 缺少运行时要求的指令集', - hint: '这类提示在部分老 CPU 上只是警告、仍能开机;若确实起不来,请把「运行时」里的引擎更新到较旧兼容版本,或换一台支持 VT-x/AVX 的电脑。', + get title() { return t('doctor.rule.CPU_FEATURE.title'); }, + get hint() { return t('doctor.rule.CPU_FEATURE.hint'); }, }, { code: 'SNAPSHOT', re: /snapshot|Quick Boot|ram\.img|Saving state/i, - title: '快速启动快照损坏', - hint: '已自动丢弃旧快照走冷启动;下一次正常退出会重新生成快照。', + get title() { return t('doctor.rule.SNAPSHOT.title'); }, + get hint() { return t('doctor.rule.SNAPSHOT.hint'); }, }, ]; @@ -520,16 +518,19 @@ function diagnose(lines) { } return { code: 'UNKNOWN', - title: '运行时未能完成开机', - hint: '已自动按多种参数组合重试。可点「导出诊断报告」把日志发给作者定位。', + title: t('doctor.unknown.title'), + hint: t('doctor.unknown.hint'), }; } /** 人类可读的一行摘要,放在设置页让高级用户知道自动选了什么 */ function describeProfile(p) { - return `自动:${(p.memoryMB / 1024).toFixed(1)}GB 内存 · ${p.cores} 核 · ${p.gpu} 渲染 · ` - + `${p.accelOk ? '硬件加速' : '软件模拟'} · ${p.snapshot ? '按需快照' : '冷启动'}` - + `${p.lite ? ' · 轻量容器' : ''} · 端口 ${p.port}`; + return t('profile.summary', [ + (p.memoryMB / 1024).toFixed(1), p.cores, p.gpu, + p.accelOk ? t('profile.accelerated') : t('m0019'), + p.snapshot ? t('profile.snapshot') : t('profile.coldBoot'), + p.lite ? t('profile.lite') : '', p.port, + ]); } /** 导出诊断报告(纯文本,便于发邮件/贴 issue) */ @@ -539,24 +540,24 @@ function writeReport({ dataDir, profile, logLines = [], extra = {} }) { const file = path.join(dir, `diagnostic-${new Date().toISOString().replace(/[:.]/g, '-')}.txt`); const d = diagnose(logLines); const body = [ - 'ApkStart 诊断报告', - `生成时间:${new Date().toLocaleString()}`, + t('doctor.report.title'), + t('doctor.report.generated', [new Date().toLocaleString()]), '', - '== 本机 ==', + t('doctor.report.host'), JSON.stringify(hostInfo(), null, 2), '', - '== 自动配置 ==', + t('doctor.report.profile'), JSON.stringify(profile || {}, null, 2), describeProfile(profile || chooseProfile()), '', - '== 诊断 ==', - `${d.code}:${d.title}`, + t('doctor.report.diagnosis'), + t('doctor.report.finding', [d.code, d.title]), d.hint, '', - '== 附加信息 ==', + t('doctor.report.extra'), JSON.stringify(extra, null, 2), '', - '== 运行时日志(末尾 300 行)==', + t('doctor.report.log'), ...(Array.isArray(logLines) ? logLines.slice(-300) : String(logLines || '').split('\n')), ].join('\n'); fs.writeFileSync(file, body, 'utf8'); diff --git a/src/core/download.js b/src/core/download.js index f1940397..80a54dd9 100644 --- a/src/core/download.js +++ b/src/core/download.js @@ -9,6 +9,7 @@ const http = require('http'); const https = require('https'); const crypto = require('crypto'); const { URL } = require('url'); +const { t } = require('./i18n'); const UA = 'ApkStart/0.2 (Windows; +https://github.com/apkstart)'; @@ -29,7 +30,7 @@ function validRange(res, start, end, total) { function openStream(url, { method = 'GET', headers = {}, redirects = 0 } = {}) { return new Promise((resolve, reject) => { - if (redirects > 6) return reject(new Error('重定向次数过多')); + if (redirects > 6) return reject(new Error(t('download.tooManyRedirects'))); const u = new URL(url); const mod = u.protocol === 'http:' ? http : https; const req = mod.request(url, { @@ -45,7 +46,7 @@ function openStream(url, { method = 'GET', headers = {}, redirects = 0 } = {}) { resolve(res); }); req.on('error', reject); - req.on('timeout', () => { req.destroy(new Error('连接超时')); }); + req.on('timeout', () => { req.destroy(new Error(t('download.timeout'))); }); req.end(); }); } @@ -122,13 +123,13 @@ async function download(url, dest, opt = {}) { discardPartial(dest); continue; } - throw new Error('无法验证续传文件,服务器返回 HTTP 416'); + throw new Error(t('download.resume416')); } if (res.statusCode !== 200 && res.statusCode !== 206) { res.resume(); if (attempt <= retries) { await new Promise((r) => setTimeout(r, 1500)); continue; } discardPartial(dest); // 重试耗尽:别把坏文件留给下次续传 - throw new Error(`下载失败 HTTP ${res.statusCode}: ${url}`); + throw new Error(t('download.httpFailed', [res.statusCode, url])); } if (res.statusCode === 206) { @@ -136,7 +137,7 @@ async function download(url, dest, opt = {}) { if (!m || !validRange(res, existing, Number(m[2]), Number(m[3])) || Number(m[2]) !== Number(m[3]) - 1) { res.resume(); discardPartial(dest); - throw new Error('服务器返回了不匹配的续传范围'); + throw new Error(t('download.resumeRangeMismatch')); } } @@ -175,12 +176,12 @@ async function download(url, dest, opt = {}) { if (idle) clearTimeout(idle); idle = setTimeout(() => { res.destroy(); - finish(new Error('连接停滞(长时间无数据)')); + finish(new Error(t('download.stalled'))); }, idleMs); }; kick(); - const onAbort = () => { res.destroy(new Error('已取消')); }; + const onAbort = () => { res.destroy(new Error(t('download.cancelled'))); }; if (signal) signal.addEventListener('abort', onAbort, { once: true }); res.on('data', (c) => { @@ -203,7 +204,7 @@ async function download(url, dest, opt = {}) { ws.on('finish', () => finish()); ws.on('error', (e) => finish(e)); res.on('error', (e) => finish(e)); - res.on('close', () => { if (!res.complete) finish(new Error('连接被中断')); }); + res.on('close', () => { if (!res.complete) finish(new Error(t('download.interrupted'))); }); }); } catch (e) { // 中断 / 超时 / 写盘失败:半截文件留着只会让下次续传继续失败 @@ -222,7 +223,7 @@ async function download(url, dest, opt = {}) { const actual = await sha256File(dest); if (actual.toLowerCase() !== expectSha256.toLowerCase()) { discardPartial(dest); - throw new Error(`校验失败:期望 ${expectSha256.slice(0, 12)}… 实际 ${actual.slice(0, 12)}…`); + throw new Error(t('download.checksumMismatch', [expectSha256.slice(0, 12), actual.slice(0, 12)])); } } return { file: dest, size: fs.statSync(dest).size }; @@ -309,11 +310,11 @@ async function downloadParallel(url, dest, opt = {}) { const res = await openStream(url, { headers: { Range: `bytes=${c.pos}-${c.end}` } }); if (res.statusCode !== 206) { res.resume(); - throw new Error(`分块请求被拒绝 HTTP ${res.statusCode}`); + throw new Error(t('download.chunkRequestRejected', [res.statusCode])); } if (!validRange(res, c.pos, c.end, total)) { res.resume(); - throw new Error('服务器返回了不匹配的分块范围'); + throw new Error(t('download.chunkRangeMismatch')); } await new Promise((resolve, reject) => { // 必须自己兜住「promise 永远不 settle」:res.destroy(err) 在某些情况下只发 @@ -325,17 +326,17 @@ async function downloadParallel(url, dest, opt = {}) { clearTimeout(idle); if (err) reject(err); else resolve(); }; - let idle = setTimeout(() => { res.destroy(); finish(new Error('连接停滞(长时间无数据)')); }, idleMs); + let idle = setTimeout(() => { res.destroy(); finish(new Error(t('download.stalled'))); }, idleMs); const kick = () => { clearTimeout(idle); - idle = setTimeout(() => { res.destroy(); finish(new Error('连接停滞(长时间无数据)')); }, idleMs); + idle = setTimeout(() => { res.destroy(); finish(new Error(t('download.stalled'))); }, idleMs); }; res.on('data', (buf) => { // 服务器可能返回超出请求分块范围的数据,多出来的字节会写穿到别的分块, // 拼出一个静默损坏的包。宁可判失败换源,不能让它落盘。 if (buf.length > c.end - c.pos + 1) { res.destroy(); - return finish(new Error('分块响应超出请求范围')); + return finish(new Error(t('download.chunkOverflow'))); } try { fs.writeSync(fd, buf, 0, buf.length, c.pos); @@ -350,7 +351,7 @@ async function downloadParallel(url, dest, opt = {}) { }); res.on('end', () => finish()); res.on('error', (e) => finish(e)); - res.on('close', () => finish(new Error('连接被中断'))); + res.on('close', () => finish(new Error(t('download.interrupted')))); }); return c.pos > c.end; }; @@ -362,10 +363,10 @@ async function downloadParallel(url, dest, opt = {}) { // eslint-disable-next-line no-await-in-loop const ok = await fetchChunk(c); if (ok) return; - throw new Error('分块未完整返回'); + throw new Error(t('download.chunkIncomplete')); } catch (e) { c.tries += 1; - if (c.tries >= retries) throw new Error(`分块下载失败(${c.start}-${c.end}):${e.message}`); + if (c.tries >= retries) throw new Error(t('download.chunkDownloadFailed', [c.start, c.end, e.message])); // eslint-disable-next-line no-await-in-loop await new Promise((r) => setTimeout(r, 800 * c.tries)); } @@ -382,7 +383,7 @@ async function downloadParallel(url, dest, opt = {}) { onProgress({ got: size, total: size, percent: 100, speed: 0, eta: 0 }); if (size !== total) { discardPartial(dest); - throw new Error(`下载不完整:${size}/${total} 字节`); + throw new Error(t('download.incomplete', [size, total])); } return { file: dest, size, parallel: n }; } @@ -401,7 +402,7 @@ async function downloadAny(urls, dest, opt = {}) { discardPartial(dest); } } - throw new Error(`所有下载源均失败:\n${errors.join('\n')}`); + throw new Error(t('download.allSourcesFailed', [errors.join('\n')])); } /** @@ -427,7 +428,7 @@ async function downloadMulti(urls, dest, opt = {}) { const idleMs = Number(opt.idleMs) > 0 ? Number(opt.idleMs) : 20000; const list = [...new Set((urls || []).filter(Boolean))]; - if (!list.length) throw new Error('没有可用的下载地址'); + if (!list.length) throw new Error(t('download.noAddress')); if (list.length === 1) return downloadParallel(list[0], dest, opt); // 1) 并行探测:总大小 + 是否支持 Range @@ -533,11 +534,11 @@ async function downloadMulti(urls, dest, opt = {}) { const res = await openStream(url, { headers: { Range: `bytes=${c.pos}-${c.end}` } }); if (res.statusCode !== 206) { res.resume(); - throw new Error(`分块被拒绝 HTTP ${res.statusCode}`); + throw new Error(t('download.chunkRejected', [res.statusCode])); } if (!validRange(res, c.pos, c.end, total)) { res.resume(); - throw new Error('服务器返回了不匹配的分块范围'); + throw new Error(t('download.chunkRangeMismatch')); } const startPos = c.pos; const startedAt = Date.now(); @@ -556,16 +557,16 @@ async function downloadMulti(urls, dest, opt = {}) { clearTimeout(idle); if (err) reject(err); else resolve(); }; - let idle = setTimeout(() => { res.destroy(); finish(new Error('连接停滞(长时间无数据)')); }, idleMs); + let idle = setTimeout(() => { res.destroy(); finish(new Error(t('download.stalled'))); }, idleMs); const kick = () => { clearTimeout(idle); - idle = setTimeout(() => { res.destroy(); finish(new Error('连接停滞(无数据超时)')); }, idleMs); + idle = setTimeout(() => { res.destroy(); finish(new Error(t('download.stalledNoData'))); }, idleMs); }; res.on('data', (buf) => { // 同上:拒绝超出请求范围的字节,避免静默写坏分块 if (buf.length > c.end - c.pos + 1) { res.destroy(); - return finish(new Error('分块响应超出请求范围')); + return finish(new Error(t('download.chunkOverflow'))); } try { fs.writeSync(fd, buf, 0, buf.length, c.pos); @@ -586,13 +587,13 @@ async function downloadMulti(urls, dest, opt = {}) { c.rotates = (c.rotates || 0) + 1; // 这里不推进 c.src:换源统一由下面的 catch 做,否则一次失败会跳两个源 res.destroy(); - finish(new Error(`该源速度过低(${(bps / 1024).toFixed(0)} KB/s),换源重试`)); + finish(new Error(t('download.slowSource', [(bps / 1024).toFixed(0)]))); } } }); res.on('end', () => finish()); res.on('error', (e) => finish(e)); - res.on('close', () => finish(new Error('连接被中断'))); + res.on('close', () => finish(new Error(t('download.interrupted')))); }); return c.pos > c.end; }; @@ -607,7 +608,7 @@ async function downloadMulti(urls, dest, opt = {}) { saveMeta(); return; } - throw new Error('分块未完整返回'); + throw new Error(t('download.chunkIncomplete')); } catch (e) { c.tries += 1; if (c.tries >= retries) { @@ -615,7 +616,7 @@ async function downloadMulti(urls, dest, opt = {}) { // 拼不出正确字节。整包 + 边车一起作废,下次干净重来。 // 以前这里只 saveMeta() 保留,结果每次打开都从坏块继续 → 无限重下。 discardPartial(dest); - throw new Error(`分块失败(${c.start}-${c.end}):${e.message}`); + throw new Error(t('download.chunkFailed', [c.start, c.end, e.message])); } // 换一个源再试:一个镜像抽风不该拖垮整个下载 c.src += 1; @@ -636,7 +637,7 @@ async function downloadMulti(urls, dest, opt = {}) { tick(true); if (size !== total) { discardPartial(dest); - throw new Error(`下载不完整:${size}/${total} 字节`); + throw new Error(t('download.incomplete', [size, total])); } return { file: dest, size, parallel: n, sources: same.length, multi: true, resumed: resume }; } @@ -657,7 +658,7 @@ async function downloadAnyParallel(urls, dest, opt = {}) { discardPartial(dest); } } - throw new Error(`所有下载源均失败:\n${errors.join('\n')}`); + throw new Error(t('download.allSourcesFailed', [errors.join('\n')])); } module.exports = { diff --git a/src/core/emulator.js b/src/core/emulator.js index db7f2ce1..b3ca2eca 100644 --- a/src/core/emulator.js +++ b/src/core/emulator.js @@ -18,6 +18,7 @@ const { Provisioner } = require('./provision'); const doctor = require('./doctor'); const drivers = require('./drivers'); const userdata = require('./userdata'); +const { t } = require('./i18n'); const AVD_NAME = 'apkstart'; const SNAPSHOT_NAME = 'apkstart'; @@ -34,16 +35,16 @@ function describeExitCode(code) { // 不能当成 0 报「正常退出」,但也谈不上异常,返回空串让调用方原样显示。 if (code == null) return ''; switch (Number(code)) { - case 0: return '正常退出'; - case 1: return '启动参数或环境错误'; - case 3221225477: return '0xC0000005 访问冲突,渲染后端崩溃'; - case 3221225725: return '0xC00000FD 栈溢出'; + case 0: return t('emulator.exit.normal'); + case 1: return t('emulator.exit.badArgs'); + case 3221225477: return t('emulator.exit.accessViolation'); + case 3221225725: return t('emulator.exit.stackOverflow'); // 0xC0000135 只说明「某个依赖 DLL 没加载成功」,不能据此断定是 VC++ 没装 // 或杀毒删文件:商店版从 WindowsApps 只读目录拉起子进程时同样会报这个码。 // 具体是哪个 DLL,要看 WER 的 FaultingModuleName,别在 UI 上替用户下结论。 - case 3221225781: return '0xC0000135 依赖 DLL 加载失败(原因待查,见内置手册 6.8)'; - case 3221225506: return '0xC0000022 拒绝访问(驱动或权限问题)'; - case 3221225595: return '0xC000007B 镜像位数不匹配或 DLL 损坏'; + case 3221225781: return t('emulator.exit.dllLoad'); + case 3221225506: return t('emulator.exit.accessDenied'); + case 3221225595: return t('emulator.exit.badImage'); default: return ''; } } @@ -284,7 +285,7 @@ class EmulatorEngine { this.clearLocks(avdDir); return 0; } - onLog(`清理 ${pids.size} 个残留模拟器进程`); + onLog(t('emulator.cleanup.leftover', [pids.size])); await Promise.all([...pids].map((pid) => new Promise((r) => { execFile('taskkill', ['/PID', String(pid), '/T', '/F'], { windowsHide: true }, () => r()); }))); @@ -598,18 +599,18 @@ class EmulatorEngine { const r = spawnSync(exe, [op, '-f', 'raw', ...rest], { cwd: path.dirname(exe), windowsHide: true, encoding: 'utf8', }); - if (r.status !== 0) throw new Error(`qemu-img ${op} 失败: ${(r.stderr || '').trim() || r.status}`); + if (r.status !== 0) throw new Error(t('emulator.qemuImgFailed', [op, (r.stderr || '').trim() || r.status])); } /** emulator 自带 resize2fs.exe(cygwin 版,必须在 bin64 目录下跑才能找到 DLL) */ _resize2fs(img) { const bin = path.join(path.dirname(this.locate().emulatorExe), 'bin64'); const exe = path.join(bin, 'resize2fs.exe'); - if (!fs.existsSync(exe)) throw new Error('缺少 resize2fs.exe'); + if (!fs.existsSync(exe)) throw new Error(t('emulator.resize2fsMissing')); const r = spawnSync(exe, [img], { cwd: bin, windowsHide: true, encoding: 'utf8', timeout: 180000, }); - if (r.status !== 0) throw new Error(`resize2fs 失败: ${(r.stderr || '').trim() || r.status}`); + if (r.status !== 0) throw new Error(t('emulator.resize2fsFailed', [(r.stderr || '').trim() || r.status])); } /** emulator 依赖这些环境变量定位 SDK / AVD;中文路径一律转 8.3 短路径 */ @@ -797,7 +798,7 @@ class EmulatorEngine { this.log(`emulator exit ${code}${meaning ? `(${meaning})` : ''}`); this._logWrite(logFile, `emulator exit ${code}${meaning ? `(${meaning})` : ''}\n`); this.proc = null; - onLog(`运行时已退出(code=${code}${meaning ? `,${meaning}` : ''})`); + onLog(meaning ? t('emulator.exitedWithMeaning', [code, meaning]) : t('emulator.exited', [code])); }); proc.on('error', (e) => { this.log(`spawn error: ${e.message}`); @@ -869,8 +870,7 @@ class EmulatorEngine { ok: false, needsReset: true, fsGB: this.dataInfo().fsGB, - error: `安卓正在用快速启动的差量盘,就地扩容改不到它(目标 ${wantGB} GB)。` - + '需要「重置安卓数据」后按新容量重建 /data —— 已装应用和存档会被清空,请先确认。', + error: t('emulator.resize.overlay', [wantGB]), }; } const r = this.ensureDataPartition(dir, dataMB); @@ -884,8 +884,7 @@ class EmulatorEngine { ok: false, ...r, fsGB: Number((fsAfter / 1073741824).toFixed(1)), - error: `镜像已扩到 ${wantGB} GB,但文件系统只到 ${(fsAfter / 1073741824).toFixed(1)} GB(resize2fs 没成功)。` - + '可以再点一次「立即扩容」,或清理磁盘后重试。', + error: t('emulator.resize.fsShort', [wantGB, (fsAfter / 1073741824).toFixed(1)]), }; } return r; @@ -1200,15 +1199,15 @@ class EmulatorEngine { if (await this._consoleAlive()) { return { ok: true, reused: true, serial: this.serial, port: this.port }; } - onLog('上一次的模拟器已经退出,重新开机…'); + onLog(t('emulator.start.relaunch')); this.proc = null; } const loc = this.locate(); - if (!loc.emulatorExe) throw new Error('未安装运行时引擎,请先在「运行时」页完成部署'); + if (!loc.emulatorExe) throw new Error(t('emulator.start.noEngine')); const choice = this.imageChoice(); if (choice.compat ? !this.provisioner.playImageInfo().ok : !this.provisioner.systemImageInfo().ok) { - throw new Error('系统镜像未就绪,请先在「运行时」页下载 Android 系统镜像'); + throw new Error(t('emulator.start.noImage')); } const s = this.settings; @@ -1221,16 +1220,13 @@ class EmulatorEngine { const diskMB = doctor.freeDiskMB(loc.root); const needMB = 2500; if (avdFreeMB && avdFreeMB < needMB) { - const msg = `磁盘空间不足:安卓数据目录(${avdHome})所在磁盘只剩 ${(avdFreeMB / 1024).toFixed(1)} GB,` - + `运行时至少要 ${(needMB / 1024).toFixed(1)} GB 可用。请在「设置 → 系统集成 → 安卓数据目录」` - + '把它改到空间充足的盘(例如 D:),或先清理磁盘。你的应用与存档不会被自动删除。'; + const msg = t('emulator.start.diskLowAvd', [avdHome, (avdFreeMB / 1024).toFixed(1), (needMB / 1024).toFixed(1)]); this.log(msg); onLog(msg); return { ok: false, error: msg, needsSpace: true, attempts: [] }; } if (diskMB && diskMB < 300) { - const msg = `运行时目录(${loc.root})所在磁盘只剩 ${(diskMB / 1024).toFixed(1)} GB,` - + '连日志和临时文件都写不下。请清理磁盘,或把「运行时数据目录」也换到别的盘。'; + const msg = t('emulator.start.diskLowRuntime', [loc.root, (diskMB / 1024).toFixed(1)]); this.log(msg); onLog(msg); return { ok: false, error: msg, needsSpace: true, attempts: [] }; @@ -1260,16 +1256,16 @@ class EmulatorEngine { drv = this._resolveDrivers({ accel: accelInfo, emulatorVersion: emuVersion }); } catch (e) { this.log(`驱动加载失败:${e.message}`); - onLog(`驱动加载失败(已忽略,按默认参数启动):${e.message}`); + onLog(t('emulator.drivers.loadFailed', [e.message])); } if (drv.applied.length) { - onLog(`已应用驱动:${drv.applied.map((d) => `${d.name} v${d.version}`).join('、')}`); + onLog(t('emulator.drivers.applied', [drv.applied.map((d) => `${d.name} v${d.version}`).join(t('list.sepComma'))])); for (const n of (this._driverEffect.notes || []).slice(0, 4)) onLog(`· ${n}`); } else { - onLog('未匹配到任何驱动,按默认参数启动'); + onLog(t('emulator.drivers.none')); } if (drv.errors && drv.errors.length) { - onLog(`有 ${drv.errors.length} 个驱动文件没加载成功(设置 → 驱动 里能看到原因)`); + onLog(t('emulator.drivers.errors', [drv.errors.length])); } // 与设置页 / 诊断报告共用同一个入口,保证「显示的」就是「实跑的」 @@ -1285,11 +1281,11 @@ class EmulatorEngine { const gpuFixed = drivers.gpuModeToArg(this._driverEffect.gpuMode); if (gpuFixed) { variants = variants.map((v) => ({ ...v, gpu: gpuFixed })); - onLog(`驱动把渲染后端固定为 ${gpuFixed}`); + onLog(t('emulator.drivers.gpuFixed', [gpuFixed])); } if (this._driverEffect.forceTcg) { - variants = variants.map((v) => ({ ...v, accel: 'off', label: `${v.gpu} / 驱动要求软件模拟` })); - onLog('驱动要求关闭硬件加速(走软件模拟)'); + variants = variants.map((v) => ({ ...v, accel: 'off', label: t('emulator.drivers.softwareLabel', [v.gpu]) })); + onLog(t('emulator.drivers.forceTcg')); } } @@ -1306,12 +1302,12 @@ class EmulatorEngine { const retryHostWithoutVulkan = badGpu === 'host' && badVer === emuVersion && vulkanRetried !== emuVersion; if (retryHostWithoutVulkan) { store.saveSettings({ engine: { badGpu: '', badGpuVulkanTried: emuVersion } }); - onLog('上次 host 渲染崩溃疑似 Vulkan 导致,本次以 -feature -Vulkan 重试硬件加速'); + onLog(t('emulator.gpu.vulkanRetry')); } else if (badGpu && badVer === emuVersion) { const rank = (v) => (v.gpu === badGpu ? 1 : 0); variants.sort((a, b) => rank(a) - rank(b)); if (variants[0] && variants[0].gpu === badGpu && variants.length > 1) { - onLog(`上次 ${badGpu} 渲染后端启动即崩溃,本次改用 ${variants[1].gpu} 先试`); + onLog(t('emulator.gpu.badBackend', [badGpu, variants[1].gpu])); } } @@ -1344,7 +1340,7 @@ class EmulatorEngine { // 日志也按轮切分:内存日志是跨轮累积的,第 1 轮的崩溃行若留在尾部, // 第 2 轮(比如换后端后端口冲突)会被误诊成同一个崩溃。 const logStart = this._log.length; - onLog(`启动运行时(第 ${i + 1}/${variants.length} 次:${plan.label})…`); + onLog(t('emulator.boot.attempt', [i + 1, variants.length, plan.label])); // eslint-disable-next-line no-await-in-loop const avd = this.ensureAvd({ @@ -1374,11 +1370,11 @@ class EmulatorEngine { const d = doctor.diagnose(this._attemptLines(logStart, 60)); this.attempts.push({ plan: plan.label, diagnosis: d.code, exitCode: this.lastExitCode }); this.lastDiagnosis = d; - lastError = `${d.title}:${d.hint}`; + lastError = t('emulator.boot.titleHint', [d.title, d.hint]); // 磁盘写满不是「换组参数就能好」的问题:继续重试只会反复失败, // 而且历史上最后那组参数带 wipe,会把用户数据一起抹掉。直接收工、如实报错。 if (d.code === 'DISK_FULL') { - onLog('磁盘空间不足,已停止重试(不会动你的应用与存档)。'); + onLog(t('emulator.boot.diskFull')); this._persistFailure({ profile, why: 'disk-full' }); return { ok: false, error: lastError, needsSpace: true, attempts: this.attempts, exitCode: this.lastExitCode }; } @@ -1386,7 +1382,7 @@ class EmulatorEngine { if (['ACCEL', 'GPU_INIT', 'GPU_MODE', 'IMAGE', 'DLL', 'ACCESS_VIOLATION'].includes(d.code)) { try { this.provisioner.invalidateEnvCache(); } catch (_) { /* ignore */ } } - onLog(`${d.title},自动换一组参数重试…`); + onLog(t('emulator.boot.retry', [d.title])); this._noteGpuFailure(plan); continue; } @@ -1430,7 +1426,7 @@ class EmulatorEngine { // 每 15 秒一条进度:以前用「取模」判断,自适应间隔下会连着打两三条重复的 if (Date.now() - lastNotice > 15000) { lastNotice = Date.now(); - onLog(`正在开机… ${Math.round((Date.now() - started) / 1000)}s`); + onLog(t('emulator.boot.waiting', [Math.round((Date.now() - started) / 1000)])); } // eslint-disable-next-line no-await-in-loop await sleep(interval); @@ -1445,7 +1441,7 @@ class EmulatorEngine { // job 对象会连带杀掉子进程),下次打开有没有快照直接决定是 25 秒还是 7 秒。 // 装完新应用时 installer 会作废快照,避免"重启后应用消失"。 this.snapshotWorthSaving = true; - onLog(`运行时就绪(${Math.round(bootMs / 1000)}s,${plan.label})`); + onLog(t('emulator.boot.ready', [Math.round(bootMs / 1000), plan.label])); // 开机成功不等于能用:顺手体检网络。虚拟机没网时,需要联网的页面会一直黑屏, // 用户只会说「这个应用黑屏」,很难联想到是网络。这里主动查一次并说清楚。 // @@ -1459,9 +1455,7 @@ class EmulatorEngine { network = await this.checkNetwork('', { waitMs: 12000, interval: 3000 }); } catch (_) { /* 体检失败不算启动失败 */ } if (network && !network.ok) { - onLog('⚠ 安卓虚拟机暂时没连上网(Wi-Fi 未关联或没拿到地址)。' - + '需要联网的应用打开后可能一直黑屏:稍后重开应用即可;' - + '若持续无网,可在「设置 → 修复网络」重连(不会删除已装应用)。'); + onLog(t('emulator.boot.noNetwork')); } return { ok: true, serial: this.serial, port, accel: accelInfo, logFile, @@ -1473,8 +1467,8 @@ class EmulatorEngine { const d = fatal ? (this.lastDiagnosis || doctor.diagnose(attemptLines)) : doctor.diagnose(attemptLines); this.attempts.push({ plan: plan.label, diagnosis: d.code, timeout: !fatal, exitCode: this.lastExitCode }); this.lastDiagnosis = d; - lastError = fatal ? `${d.title}:${d.hint}` : '开机超时(可能是首次引导较慢或硬件加速未生效)'; - onLog(`${lastError},自动换一组参数重试…`); + lastError = fatal ? t('emulator.boot.titleHint', [d.title, d.hint]) : t('emulator.boot.timeout'); + onLog(t('emulator.boot.retry', [lastError])); // 授权对话框卡住不是渲染后端的问题,别把当前 GPU 记进「启动即崩」黑名单, // 否则下次启动会无缘无故跳过用户机器本来能用的后端。 if (d.code !== 'ADB_UNAUTHORIZED') this._noteGpuFailure(plan); @@ -1493,11 +1487,12 @@ class EmulatorEngine { exitMeaning: describeExitCode(this.lastExitCode), }, }); - const err = new Error( - `运行时多次尝试仍未能启动(${d.title})。\n${d.hint}\n\n` - + `已尝试:${this.attempts.map((a) => `${a.plan} → ${a.diagnosis}`).join(';')}\n` - + `诊断报告:${report.file}`, - ); + const err = new Error(t('emulator.boot.failed', [ + d.title, + d.hint, + this.attempts.map((a) => `${a.plan} → ${a.diagnosis}`).join(t('list.sep')), + report.file, + ])); err.diagnosis = d; err.report = report.file; err.attempts = this.attempts; diff --git a/src/core/engine.js b/src/core/engine.js index 3708c06f..98bccfc9 100644 --- a/src/core/engine.js +++ b/src/core/engine.js @@ -13,6 +13,7 @@ const fs = require('fs'); const path = require('path'); const { AdbClient, isUnauthorizedError } = require('./adb'); const store = require('./store'); +const { t } = require('./i18n'); const { Provisioner } = require('./provision'); const { EmulatorEngine } = require('./emulator'); const doctor = require('./doctor'); @@ -220,7 +221,7 @@ class Runtime { if (!env.adb.ok) { result.needsSetup = 'adb'; - result.error = '缺少 adb:点击「一键部署」自动下载'; + result.error = t('engine.adbMissing'); return result; } @@ -358,15 +359,12 @@ class Runtime { let authHealed = false; // 本次 start() 是否已因「未授权」作废旧快照冷启动过 const diagUnauthorized = () => ({ code: 'ADB_UNAUTHORIZED', - title: '安卓调试授权未完成(需要点一次「允许」)', + title: t('engine.adbUnauthorized.title'), // 旧文案让人去删 %USERPROFILE%\.android\adbkey —— 实测那是**反向操作**: // 换了新密钥后,系统里已存的旧公钥仍然生效,两者对不上,反而永远授权不了 // (Android 只在 adb_keys 不存在时才写入新公钥)。正确做法是在模拟器窗口里 // 点一次「允许」,或者清空安卓数据让系统重建授权表。 - hint: '模拟器停在「允许 USB 调试?」对话框。请在那个模拟器窗口里点「允许」——' - + '勾选「一律允许使用这台计算机进行调试」再点,之后就不会再问。' - + '若窗口点不动或一直不出现:设置 → 运行时 → 清空安卓数据后重试' - + '(会清掉已装应用,重新安装即可,不会影响 APK 文件)。', + hint: t('engine.adbUnauthorized.hint'), }); const probe = async ({ serial }) => { if (!this.emulator.running()) return 'fatal'; @@ -431,7 +429,7 @@ class Runtime { if (!st || st.ok === false) { return { ok: false, - error: (st && st.error) || '安卓运行时未能启动', + error: (st && st.error) || t('engine.runtimeStartFailed'), needsSpace: !!(st && st.needsSpace), attempts: (st && st.attempts) || [], diagnosis: this.emulator.lastDiagnosis, @@ -570,7 +568,7 @@ class Runtime { if (!linked) { return { ok: false, - error: '虚拟机已启动,但 adb 未能连接:请在虚拟机里开启「开发者选项 → ADB over network」后重试', + error: t('engine.adbConnectFailed'), }; } const ready = await this.waitAndroidReady(client, Math.max(60000, timeout / 2), onLog); @@ -578,8 +576,8 @@ class Runtime { return { ok: false, error: ready.stage === 'kernel' - ? 'Android 内核未完成引导,请查看运行时日志(可能镜像损坏或加速未生效)' - : 'Android 已引导但系统服务未就绪(可能停在首次开机设置界面,请在虚拟机窗口里完成向导)', + ? t('engine.bootKernel') + : t('engine.bootServices'), }; } await this.prepare(client); @@ -1071,8 +1069,8 @@ class Runtime { ok: false, needsSetup: env.emulator.ok ? 'sysimg' : 'provision', error: env.emulator.ok - ? '还差系统镜像:点「下载系统镜像」即可' - : '运行时组件尚未部署完成', + ? t('engine.needSysimg') + : t('engine.needProvision'), env, }; } @@ -1548,7 +1546,7 @@ class Runtime { if (!this.vmRunning) { const boot0 = await this.ensure({ onLog }); if (!boot0 || !boot0.ok) { - return { ok: false, error: (boot0 && boot0.error) || '虚拟机没能启动', boot: false }; + return { ok: false, error: (boot0 && boot0.error) || t('engine.vmStartFailed'), boot: false }; } } this._wifiRepairTried = true; @@ -1569,7 +1567,7 @@ class Runtime { this.emulator.forceColdBootOnNextStart(); const boot = await this.ensure({ onLog }); if (!boot || !boot.ok) { - return { ok: false, error: (boot && boot.error) || '虚拟机没能启动', boot: false }; + return { ok: false, error: (boot && boot.error) || t('engine.vmStartFailed'), boot: false }; } let network = await this.waitForNetwork({ onLog, timeoutMs: 90000 }); if (network && network.ok) { @@ -1585,7 +1583,7 @@ class Runtime { this.emulator.forceWipeOnNextStart(); const boot2 = await this.ensure({ onLog }); if (!boot2 || !boot2.ok) { - return { ok: false, error: (boot2 && boot2.error) || '虚拟机没能启动', boot: false, wiped: true }; + return { ok: false, error: (boot2 && boot2.error) || t('engine.vmStartFailed'), boot: false, wiped: true }; } network = await this.waitForNetwork({ onLog, timeoutMs: 240000 }); if (network && network.ok) { diff --git a/src/core/i18n.js b/src/core/i18n.js index a12f7640..e766c9bf 100644 --- a/src/core/i18n.js +++ b/src/core/i18n.js @@ -16,6 +16,12 @@ * 语言来源优先级:APKSTART_LANG / --lang= 环境覆盖(冒烟测试用)> settings.uiLanguage * > 系统首选语言(zh* → 中文,其它按系统语言匹配,匹配不到 → 英文)。 */ +const catalogs = { + 'zh-CN': require('../locales/zh-CN.json'), + en: require('../locales/en.json'), + 'pt-BR': require('../locales/pt-BR.json'), + ru: require('../locales/ru.json'), +}; const EN = require('../i18n/en.json'); // 其余语种词典:缺失时降级为空对象,保证某个语种文件损坏也不会拖垮启动。 @@ -48,6 +54,14 @@ const LANGUAGES = [ const CJK_RE = /[\u4e00-\u9fff]/; +// Catalog IDs remain supported for existing UI and runtime messages. New +// source-text translations use the same active language and upstream dictionary. +for (const [locale, code] of [['en', 'en'], ['pt-BR', 'pt'], ['ru', 'ru']]) { + DICTS[code] = { ...DICTS[code] }; + for (const [key, source] of Object.entries(catalogs['zh-CN'])) { + if (/[\u4e00-\u9fff]/.test(source)) DICTS[code][source] = catalogs[locale][key]; + } +} let lang = 'zh'; let dict = {}; let patterns = null; @@ -245,11 +259,12 @@ function lookup(text, depth = 0) { * 中文模式或没有译文时原样返回。 */ function t(text, vars) { - if (lang === 'zh' || !dict || !Object.keys(dict).length) return text; + if (Object.hasOwn(catalogs['zh-CN'], text)) { + return format(getCatalog(getLanguage())[text], vars); + } const raw = String(text == null ? '' : text); if (!raw) return raw; - let out = lookup(raw); - if (out === undefined) return raw; + let out = lookup(raw) ?? raw; if (vars && typeof vars === 'object') { out = out.replace(/\{([^{}]+)\}/g, (m, k) => { const key = String(k).trim(); @@ -274,3 +289,23 @@ module.exports = { // 测试用:清掉按语言缓存的骨架正则 _reset() { patterns = null; literalKeys = null; patternCache.clear(); }, }; + +function resolveLocale(preference, systemLocale = 'en') { + const code = normalizeLang(preference) || pickSystemLang(systemLocale); + return code === 'zh' ? 'zh-CN' : code === 'pt' ? 'pt-BR' : code; +} +function format(message, values = []) { + return message.replace(/\{(\d+)\}/g, (match, index) => ( + index < values.length ? String(values[index]) : match + )); +} +function getCatalog(locale) { + const resolved = resolveLocale(locale); + if (catalogs[resolved]) return catalogs[resolved]; + const sourceDict = DICTS[normalizeLang(resolved)] || {}; + return Object.fromEntries(Object.entries(catalogs['zh-CN']).map(([key, source]) => ( + [key, sourceDict[source] || catalogs.en[key]] + ))); +} +function setLocale(locale) { setLanguage(locale); } +Object.assign(module.exports, { resolveLocale, format, getCatalog, setLocale }); diff --git a/src/core/incremental.js b/src/core/incremental.js index ec1b8a72..abeb9fcf 100644 --- a/src/core/incremental.js +++ b/src/core/incremental.js @@ -16,6 +16,7 @@ */ const path = require('path'); const { sha256File } = require('./download'); +const { t } = require('./i18n'); const APP_DIR = 'resources/app'; const MANIFEST_RE = /-manifest\.json$/i; @@ -29,12 +30,12 @@ function norm(p) { /** 清单格式校验。宁可判为「不可用」退回完整包,也不要拿一份残缺清单去覆盖文件。 */ function parseManifest(text) { let m; - try { m = JSON.parse(text); } catch (_) { throw new Error('增量清单不是合法 JSON'); } - if (!m || m.schema !== 1) throw new Error('增量清单版本不支持'); - if (!m.version || !m.electronVersion) throw new Error('增量清单缺少版本信息'); + try { m = JSON.parse(text); } catch (_) { throw new Error(t('incremental.manifestInvalidJson')); } + if (!m || m.schema !== 1) throw new Error(t('incremental.manifestSchema')); + if (!m.version || !m.electronVersion) throw new Error(t('incremental.manifestNoVersion')); if (!m.app || !m.app.asset || !m.app.sha256 || !m.app.files || typeof m.app.files !== 'object' || !Object.keys(m.app.files).length) { - throw new Error('增量清单缺少代码包信息'); + throw new Error(t('incremental.manifestNoApp')); } return m; } diff --git a/src/core/installer.js b/src/core/installer.js index 213a4211..69176153 100644 --- a/src/core/installer.js +++ b/src/core/installer.js @@ -8,6 +8,7 @@ const os = require('os'); const path = require('path'); const crypto = require('crypto'); const store = require('./store'); +const { t } = require('./i18n'); const { parseApk } = require('./apk'); const { ZipFile } = require('./zip'); const { iconToIco, writeShortcut, removeShortcut, safeFileName, shortcutExt } = require('./shortcut'); @@ -48,7 +49,7 @@ async function parseBundle(filePath) { const cleanup = () => { try { fs.rmSync(dir, { recursive: true, force: true }); } catch (_) { /* ignore */ } }; try { const apkNames = zip.names().filter((n) => /\.apk$/i.test(n)); - if (!apkNames.length) throw new Error('这个安装包里没有找到 APK 分片(可能不是 .apks/.xapk)'); + if (!apkNames.length) throw new Error(t('installer.noSplits')); fs.mkdirSync(dir, { recursive: true }); const files = []; for (let i = 0; i < apkNames.length; i++) { @@ -62,7 +63,7 @@ async function parseBundle(filePath) { for (const f of files) { try { meta = parseApk(f); break; } catch (_) { /* 分片里没有清单 */ } } - if (!meta) throw new Error('拆分包的 base APK 解析失败'); + if (!meta) throw new Error(t('installer.baseParseFailed')); return { meta, files, cleanup }; } catch (e) { cleanup(); @@ -122,9 +123,9 @@ class Installer { async ensureCompatImage(onProgress) { const prov = this.runtime.provisioner; if (prov.playImageInfo().ok) return true; - onProgress({ stage: 'runtime', message: '首次安装 ARM 应用:正在下载兼容镜像(约 1.5GB,只需一次)…' }); + onProgress({ stage: 'runtime', message: t('installer.compat.downloading') }); await prov.installPlayImage((p) => onProgress({ stage: 'runtime', message: p.message, percent: p.percent })); - if (!prov.playImageInfo().ok) throw new Error('兼容镜像下载失败,请检查网络后重试'); + if (!prov.playImageInfo().ok) throw new Error(t('installer.compat.downloadFailed')); return true; } @@ -132,7 +133,7 @@ class Installer { async switchToCompat(onProgress) { const apps = store.getApps(); store.saveSettings({ runtime: { compatImage: true } }); - onProgress({ stage: 'runtime', message: '正在切换到兼容镜像并重启运行时…' }); + onProgress({ stage: 'runtime', message: t('installer.compat.switching') }); try { await this.runtime.stop(); } catch (_) { /* ignore */ } // 等旧设备从 adb 列表里消失,避免被 ensure() 当成可复用实例 for (let i = 0; i < 12; i += 1) { @@ -148,7 +149,7 @@ class Installer { try { this.runtime.emulator?.invalidateSnapshot(); } catch (_) { /* ignore */ } const rt = await this.runtime.ensure({ onLog: (m) => onProgress({ stage: 'runtime', message: m }) }); if (!rt.ok) { - const err = new Error(rt.error || '切换兼容镜像后运行时不可用'); + const err = new Error(rt.error || t('installer.compat.runtimeUnavailable')); err.needsSetup = rt.needsSetup || 'provision'; throw err; } @@ -165,14 +166,14 @@ class Installer { // eslint-disable-next-line no-await-in-loop await rt.client.install(app.apkPath); } - onProgress({ stage: 'runtime', message: `正在恢复已装应用 ${app.label}…` }); + onProgress({ stage: 'runtime', message: t('installer.compat.restoring', [app.label]) }); } catch (_) { /* 单个应用恢复失败不阻塞 */ } } return rt; } async install(filePath, onProgress = () => {}) { - onProgress({ stage: 'parse', message: '正在解析 APK…' }); + onProgress({ stage: 'parse', message: t('installer.parsing') }); let meta; let bundle = null; if (/\.(apks|xapk)$/i.test(filePath)) { @@ -183,7 +184,7 @@ class Installer { } onProgress({ stage: 'parse-done', - message: `已识别 ${meta.label}(${meta.package})`, + message: t('installer.recognized', [meta.label, meta.package]), meta: { label: meta.label, package: meta.package, versionName: meta.versionName }, }); @@ -214,10 +215,10 @@ class Installer { } try { - onProgress({ stage: 'runtime', message: '正在准备安卓运行时…' }); + onProgress({ stage: 'runtime', message: t('installer.preparing') }); let rt = await this.runtime.ensure({ onLog: (m) => onProgress({ stage: 'runtime', message: m }) }); if (!rt.ok) { - const err = new Error(rt.error || '运行时不可用'); + const err = new Error(rt.error || t('installer.runtimeUnavailable')); err.needsSetup = rt.needsSetup || 'provision'; throw err; } @@ -226,7 +227,7 @@ class Installer { // 复用了旧版本/旧快照拉起、没开翻译层的模拟器时,playImageInfo().ok 也是 true, // 光靠它会漏掉,于是装到一半才报 NO_MATCHING_ABIS。这里提前切一次,省掉那段白等。 if (isArmOnly(meta) && await runningHasArm(rt.client) === false) { - onProgress({ stage: 'runtime', message: '这个应用只有 ARM 库,正在切换到兼容镜像…' }); + onProgress({ stage: 'runtime', message: t('installer.armSwitching') }); await this.ensureCompatImage(onProgress); rt = await this.switchToCompat(onProgress); } @@ -242,7 +243,7 @@ class Installer { const existing = store.getApp(meta.package); // 装完之后旧 quickboot 快照里的磁盘状态就过期了,留着会导致「装好的应用重启后又不见了」 try { this.runtime.emulator?.invalidateSnapshot(); } catch (_) { /* ignore */ } - onProgress({ stage: 'install', message: existing ? '正在更新应用…' : '正在安装应用…' }); + onProgress({ stage: 'install', message: existing ? t('installer.updating') : t('installer.installing') }); try { if (bundle) await client.installMultiple(bundle.files); else await client.install(filePath); @@ -253,20 +254,17 @@ class Installer { // 「正在自动切换兼容镜像后重试」,于是出现「红色安装失败 + 文案说正在重试」的怪事。 // 现在无条件切一次:错误本身就是重试理由。 if (e.code === 'NO_MATCHING_ABIS') { - onProgress({ stage: 'runtime', message: '这个应用只有 ARM 库,正在切换到兼容镜像后重装…' }); + onProgress({ stage: 'runtime', message: t('installer.armSwitchingReinstall') }); await this.ensureCompatImage(onProgress); const rt2 = await this.switchToCompat(onProgress); - onProgress({ stage: 'install', message: '已切换兼容镜像,正在重新安装…' }); + onProgress({ stage: 'install', message: t('installer.switchedReinstalling') }); try { if (bundle) await rt2.client.installMultiple(bundle.files); else await rt2.client.install(filePath); } catch (e2) { // 已经切到兼容镜像仍失败:这次必须说实话,别再说「正在重试」。 const raw2 = (e2 && e2.message) || String(e2 || ''); - const err = new Error( - `已切换到 Android 14 兼容镜像并重启运行时,但 ${meta.label} 仍然安装失败(${raw2})。` - + '请检查磁盘空间与网络后重试;若一直失败,到「设置 → 诊断与修复」导出诊断报告反馈。', - ); + const err = new Error(t('installer.stillFailedAfterSwitch', [meta.label, raw2])); err.code = e2 && e2.code ? e2.code : 'NO_MATCHING_ABIS'; err.abiRetried = true; throw err; @@ -350,31 +348,31 @@ class Installer { const settings = store.getSettings(); if (settings.createShortcutOnInstall) { - onProgress({ stage: 'shortcut', message: '正在创建桌面快捷方式…' }); + onProgress({ stage: 'shortcut', message: t('installer.shortcutCreating') }); try { app.shortcutPath = this.createShortcut(app); store.upsertApp({ package: app.package, shortcutPath: app.shortcutPath }); } catch (e) { - onProgress({ stage: 'shortcut-warn', message: `快捷方式创建失败:${e.message}` }); + onProgress({ stage: 'shortcut-warn', message: t('installer.shortcutFailed', [e.message]) }); } } // 兼容性提示:只有 ARM 原生库时,x86 运行时需要转译层 const warnings = []; if (meta.minSdk && meta.minSdk > 34) { - warnings.push(`此应用要求 Android ${meta.minSdk}+,高于当前运行时,可能无法正常运行。`); + warnings.push(t('installer.warn.minSdk', [meta.minSdk])); } if (iconFallback === 'placeholder') { - warnings.push('应用图标无法解析(可能是特殊格式的自适应图标),快捷方式暂时使用占位图标。'); + warnings.push(t('installer.warn.iconPlaceholder')); } else if (iconFallback === 'webp-decode-failed') { - warnings.push('应用图标(WebP)解码失败,快捷方式暂时使用占位图标。'); + warnings.push(t('installer.warn.iconWebp')); } client.batteryOptimizeOff(meta.package).catch(() => {}); // 装应用时作废了旧快照,这里补排一次:空闲时把「已装好新应用」的状态存下来, // 否则下次开机要重新冷启动(20 多秒)。 try { this.runtime.scheduleSnapshotSave?.(12000); } catch (_) { /* ignore */ } - onProgress({ stage: 'done', message: `${app.label} 安装完成`, app }); + onProgress({ stage: 'done', message: t('installer.done', [app.label]), app }); return { app, warnings, engine: rt.engine }; } @@ -393,7 +391,7 @@ class Installer { args, iconIcoPath: ico, iconPngPath: png, - description: `${app.label} — 由 ApkStart 运行`, + description: t('installer.shortcutDescription', [app.label]), cwd: this.ctx.cwd, // 每个应用一个 AUMID:任务栏上按应用分组,不会全挤到 ApkStart 里 appUserModelId: `RoutineMiku.ApkStart.${app.package}`.slice(0, 128), @@ -423,7 +421,7 @@ class Installer { errors.push(`${fallback}: ${e.message}`); } } - if (!first) throw new Error(errors.join('; ') || '创建快捷方式失败'); + if (!first) throw new Error(errors.join('; ') || t('installer.shortcutCreateFailed')); // 开始菜单那份的路径也存下来,卸载时一起删 if (startMenuPath || first) { store.upsertApp({ package: app.package, startMenuPath }); @@ -490,13 +488,13 @@ class Installer { let rt = await this.runtime.ensure({ onLog }); onMark('ensure done'); if (!rt.ok) { - const err = new Error(rt.error || '运行时不可用'); + const err = new Error(rt.error || t('installer.runtimeUnavailable')); err.needsSetup = rt.needsSetup; throw err; } // 分辨率要在拉起应用之前改,避免 wm size 触发配置变更把刚启动的 Activity 重建 if (beforeStart) { - const replaced = await beforeStart(rt).catch((e) => { onLog(`显示适配跳过:${e.message}`); return null; }); + const replaced = await beforeStart(rt).catch((e) => { onLog(t('installer.displaySkipped', [e.message])); return null; }); // beforeStart 可以返回一个新的 rt(重启运行时后旧 client 已失效), // 后续全部用新的。不返回就继续用原来的。 if (replaced && replaced.client) rt = replaced; @@ -517,13 +515,13 @@ class Installer { if (rt.engine === 'emulator' || rt.engine === 'builtin') { let net = await this.runtime.waitForNetwork({ onLog, timeoutMs: 20000 }).catch(() => null); if (net && net.ok) { - onLog(`虚拟机网络就绪(${net.ip || ''})`); + onLog(t('installer.netReady', [net.ip || ''])); } else { // 等不到网络时,做一次**非破坏性**的补救:把「已保存但不会自动连」 // 的 AndroidWifi 点一下。它不重启虚拟机、不碰用户数据,只是拉起设置页 // 点一条已保存的热点,所以放在启动路径上是安全的。 // 实机上「虚拟机一直没网」绝大多数就是这个原因(见 emulator.repairWifi)。 - onLog('虚拟机连不上 Wi-Fi,正在尝试重新连接…'); + onLog(t('installer.wifiReconnecting')); try { // 注意:repairWifi 挂在 engine(this.runtime)上,不在 rt 上。 // rt 是 ensure() 的返回对象 { ok, client, engine, ... },里面只有 client; @@ -533,7 +531,7 @@ class Installer { if (fixed) { net = await this.runtime.waitForNetwork({ onLog, timeoutMs: 15000 }).catch(() => null); if (net && net.ok) { - onLog(`虚拟机网络已恢复(${net.ip || ''})`); + onLog(t('installer.netRestored', [net.ip || ''])); // 关键:把「网络已连上」这个状态立刻存进快照。 // 不存的话下次开机还是从「没网」的旧快照恢复,每次都要再花十几秒重连。 // 用 forceSnapshotSave 是因为马上要启动应用,永远等不到「空闲」。 @@ -542,10 +540,10 @@ class Installer { } } catch (e) { // 不要把异常吞得无声无息:这条日志就是「重连到底跑没跑」的唯一证据。 - onLog(`自动重连 Wi-Fi 失败:${e.message}`); + onLog(t('installer.wifiReconnectFailed', [e.message])); } if (!net || !net.ok) { - onLog('虚拟机网络还没就绪,先启动应用(联网页面可能稍后才加载出来)'); + onLog(t('installer.netNotReady')); } } } @@ -564,10 +562,10 @@ class Installer { let installed = false; try { installed = await rt.client.isInstalled(pkg); } catch (_) { /* 当作未安装,走重装 */ } if (!installed) { - onLog('应用文件缺失(快照与数据不一致),正在用本地备份自动重装…'); + onLog(t('installer.reinstalling')); // 重装前作废快照:否则旧快照的 packages.xml 仍说「已装」,下次又不对 try { this.runtime.emulator?.invalidateSnapshot(); } catch (_) { /* ignore */ } - await rt.client.install(app.apkPath).catch((e) => onLog(`自动安装失败:${e.message}`)); + await rt.client.install(app.apkPath).catch((e) => onLog(t('installer.autoInstallFailed', [e.message]))); } } // 观察 25 秒并要求「连续存活 5 秒」才算启动成功。 @@ -640,12 +638,12 @@ class Installer { // eslint-disable-next-line no-await-in-loop ok = started ? await staysAlive() : false; onMark(`alive #${attempt} ${ok}`); - if (!ok && attempt < 3) onLog(`应用启动后退出(第 ${attempt} 次),正在自动重试…`); + if (!ok && attempt < 3) onLog(t('installer.exitedRetry', [attempt])); } if (!ok) { // 兜底:异常退出会留下「半初始化」的数据,导致之后每次都崩。 // 清一次应用数据再拉起来,成功率最高(用户不必自己去设置里清缓存)。 - onLog('应用连续退出,正在重置应用数据后重试…'); + onLog(t('installer.exitedReset')); await rt.client.shell(`pm clear ${pkg}`, { timeout: 20000 }).catch(() => ''); await sleep(800); // pm clear 会把运行时权限一并清掉,必须重新授,否则会卡在系统授权框 @@ -657,7 +655,7 @@ class Installer { if (!ok) await rt.client.dismissPermissionDialog().catch(() => {}); } if (!ok) { - const err = new Error('应用启动后立即退出,已自动重试并重置应用数据仍未成功'); + const err = new Error(t('installer.unstable')); err.code = 'APP_UNSTABLE'; throw err; } @@ -675,7 +673,7 @@ class Installer { const playReady = this.runtime.provisioner.playImageInfo().ok; const needSwitch = hasArm === false || !playReady; if (needSwitch) { - onLog('当前运行时未启用 ARM 翻译层,正在自动切换兼容镜像后重试…'); + onLog(t('installer.armDisabledSwitching')); await this.ensureCompatImage((m) => onLog(m.message || '')); const rt2 = await this.switchToCompat((m) => onLog(m.message || '')); if (app && app.apkPath && fs.existsSync(app.apkPath)) { diff --git a/src/core/manual.js b/src/core/manual.js index c0a62115..62578272 100644 --- a/src/core/manual.js +++ b/src/core/manual.js @@ -1,4 +1,5 @@ 'use strict'; +const { t, getCatalog } = require('./i18n'); /** * 内置手册的「故障 → 教程章节」映射(纯函数,不依赖 electron / fs) * @@ -29,7 +30,7 @@ const TOPICS = Object.freeze({ }); // 反模拟 / 安全校验导致的启动退出也归到 6.3:该章节末尾已说明这类应用属于限制。 -const ARM_RE = /NO_MATCHING_ABIS|DoBadTrampoline|libndk_translation|UnsatisfiedLinkError|arm64-v8a|armeabi-v7a|ARM 翻译层|ARM 转译层|反模拟|反仿真|反调试|anti[-_ ]?emulat|emulator.?detect|safetynet|play.?integrity/i; +const ARM_RE = /NO_MATCHING_ABIS|DoBadTrampoline|libndk_translation|UnsatisfiedLinkError|arm64-v8a|armeabi-v7a|ARM 翻译层|ARM translation layer|ARM 转译层|反模拟|反仿真|反调试|anti[-_ ]?emulat|emulator.?detect|safetynet|play.?integrity/i; const ADB_RE = /ADB_UNAUTHORIZED|unauthorized|允许 USB 调试|调试授权/i; const SOUND_RE = /audio|AUDIO|sound|声音|音量|静音|Audiosrv/i; // 0xC0000135 / DLL 加载失败: Decimal 3221225781 也要认,诊断里两种写法都出现 @@ -64,9 +65,33 @@ const ISSUE_MAP = Object.freeze({ vcRedist: 'dll', }); +// Launch errors do not always include Android error codes. Identify the known +// catalog template in any supported catalog instead of matching translated words. +const LOCALIZED_ERROR_TOPICS = { + 'adb.launch.antiEmulator': 'arm', + 'adb.launch.translationCrash': 'arm', + 'adb.launch.missingNativeLib': 'arm', + 'engine.adbUnauthorized.title': 'adb', + 'engine.adbUnauthorized.hint': 'adb', +}; +function topicForLocalizedError(text) { + for (const locale of ['zh-CN', 'en', 'pt-BR', 'ru']) { + const catalog = getCatalog(locale); + for (const [key, topic] of Object.entries(LOCALIZED_ERROR_TOPICS)) { + const pattern = catalog[key].split(/\{\d+\}/g) + .map((part) => part.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')) + .join('[\\s\\S]*?'); + if (new RegExp('^' + pattern + '$').test(text)) return topic; + } + } + return null; +} + /** 兜底:用标题/详情里的关键字再判一次,覆盖 doctor:selfCheck 的旧 code */ function topicByText(text) { const s = String(text || ''); + const localized = topicForLocalizedError(s); + if (localized) return localized; if (ARM_RE.test(s)) return 'arm'; if (ADB_RE.test(s)) return 'adb'; if (SOUND_RE.test(s)) return 'sound'; @@ -97,11 +122,13 @@ function topicForIssue(issue) { function topicForError(text) { const s = String(text || ''); if (!s.trim()) return TOPICS.overview; + const localized = topicForLocalizedError(s); + if (localized) return TOPICS[localized]; if (ARM_RE.test(s)) return TOPICS.arm; if (ADB_RE.test(s)) return TOPICS.adb; if (SOUND_RE.test(s)) return TOPICS.sound; if (DLL_RE.test(s)) return TOPICS.dll; - if (/INSTALL_|PARSE_FAILED|安装失败|签名|安装包/.test(s)) return TOPICS.install; + if (/INSTALL_|PARSE_FAILED|安装失败|Install failed|签名|安装包/.test(s)) return TOPICS.install; if (/attach failed|emu:0|device not found|旋转窗口/.test(s)) return TOPICS.startup; return topicByText(s) === 'overview' ? TOPICS.install : TOPICS[topicByText(s)]; } @@ -123,9 +150,14 @@ function resolve(payload) { return { id: topic.id, anchor: topic.anchor, - title: topic.title, + title: t('manual.topic.' + topic.id), reason: String(p.reason || ''), }; } -module.exports = { TOPICS, ISSUE_MAP, topicForIssue, topicForError, topicByText, resolve }; +/** 手册文件:简体中文用 manual.html,其余界面语言(含 pt-BR)用英文版 manual.en.html */ +function fileForLocale(locale) { + return locale === 'zh-CN' ? 'manual.html' : 'manual.en.html'; +} + +module.exports = { TOPICS, ISSUE_MAP, topicForIssue, topicForError, topicByText, resolve, fileForLocale }; diff --git a/src/core/preflight.js b/src/core/preflight.js index c1a41e91..0454d3ae 100644 --- a/src/core/preflight.js +++ b/src/core/preflight.js @@ -23,6 +23,7 @@ const os = require('os'); const fs = require('fs'); const path = require('path'); +const { t } = require('./i18n'); // ---------------- 探测 ---------------- @@ -223,15 +224,15 @@ function recommendResources({ totalMB = 0, cores = 0, accelOk = false, vramMB = * 现在 host 崩了有 badGpu 记忆自动降级,swangle 只在「没加速 / 显存极小」时建议。 */ function recommendGpu({ vendor = 'unknown', accelOk = false, vramMB = 0 } = {}) { - if (!accelOk) return { gpuMode: 'software', why: '没有可用的硬件加速,先用软件渲染保证画面能出来' }; - if (vendor === 'unknown') return { gpuMode: 'auto', why: '显卡型号读不到,交给自动降级链去试' }; - if (vramMB > 0 && vramMB < 512) return { gpuMode: 'swangle', why: '显存很小,用 swangle 更稳' }; + if (!accelOk) return { gpuMode: 'software', why: t('preflight.why.noAccel') }; + if (vendor === 'unknown') return { gpuMode: 'auto', why: t('preflight.why.unknownGpu') }; + if (vramMB > 0 && vramMB < 512) return { gpuMode: 'swangle', why: t('preflight.why.lowVram') }; // 有硬件加速、显卡识别得出就走 host(真正调用独显/核显)。显存读不到(0)不再 // 当成「显卡弱」——核显共享内存本来就报 0,这正是以前误把核显降到软件的原因。 - if (vendor === 'nvidia') return { gpuMode: 'host', why: 'NVIDIA 驱动成熟,host 直通通常最快' }; - if (vendor === 'amd') return { gpuMode: 'host', why: 'AMD 显卡走 host 才能用上硬件加速;若崩溃会自动降级' }; - if (vendor === 'intel') return { gpuMode: 'host', why: 'Intel 核显走 host 才能用上硬件加速;若崩溃会自动降级' }; - return { gpuMode: 'auto', why: '交给自动降级链去试' }; + if (vendor === 'nvidia') return { gpuMode: 'host', why: t('preflight.why.nvidia') }; + if (vendor === 'amd') return { gpuMode: 'host', why: t('preflight.why.amd') }; + if (vendor === 'intel') return { gpuMode: 'host', why: t('preflight.why.intel') }; + return { gpuMode: 'auto', why: t('preflight.why.auto') }; } /** @@ -254,34 +255,33 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { add({ key: 'vt-unsupported', level: 'bad', - title: '这颗 CPU 不支持硬件虚拟化', - detail: '只能走软件模拟,速度会慢 5~10 倍。轻量应用还能用,大型游戏不建议。', + title: t('preflight.vt-unsupported.title'), + detail: t('preflight.vt-unsupported.detail'), action: null, }); } else if (cpu.vtFirmware === false) { add({ key: 'vt-bios-off', level: 'bad', - title: 'CPU 虚拟化在 BIOS 里没开', - detail: '重启进 BIOS/UEFI,把 Intel VT-x(Intel)或 SVM Mode(AMD)设为 Enabled,保存后回来重新体检。' - + '联想/戴尔/华硕一般在 Advanced → CPU Configuration 里;品牌机可能叫 Virtualization Technology。', - action: { kind: 'manual', id: 'bios', label: '需要重启进 BIOS,无法自动完成' }, + title: t('preflight.vt-bios-off.title'), + detail: t('preflight.vt-bios-off.detail'), + action: { kind: 'manual', id: 'bios', label: t('preflight.vt-bios-off.label') }, }); } else if (cpu.vtFirmware === true) { add({ key: 'vt-ok', level: 'ok', - title: 'CPU 虚拟化已在 BIOS 开启', - detail: cpu.name ? `${cpu.name} · ${cpu.cores || '?'} 核 / ${cpu.threads || '?'} 线程` : '', + title: t('preflight.vt-ok.title'), + detail: cpu.name ? t('preflight.vt-ok.detail', [cpu.name, cpu.cores || '?', cpu.threads || '?']) : '', action: null, }); } else { add({ key: 'vt-unknown', level: 'warn', - title: '读不到 CPU 虚拟化状态', - detail: '可能是主板/权限限制。若启动时提示没有硬件加速,请手动进 BIOS 确认 VT-x / SVM 已开启。', - action: { kind: 'manual', id: 'bios', label: '手动确认' }, + title: t('preflight.vt-unknown.title'), + detail: t('preflight.vt-unknown.detail'), + action: { kind: 'manual', id: 'bios', label: t('preflight.vt-unknown.label') }, }); } @@ -292,28 +292,27 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { add({ key: 'whpx-ok', level: 'ok', - title: 'Windows 虚拟机监控程序平台已启用', + title: t('preflight.whpx-ok.title'), detail: v.hypervisorPresent - ? 'Hypervisor 正在运行,WHPX 可用。' - : '功能已启用;如果加速仍不可用,重启一次让 Hypervisor 起来。', + ? t('preflight.whpx-ok.detailRunning') + : t('preflight.whpx-ok.detailRestart'), action: null, }); } else if (edition === 'store') { add({ key: 'whpx-off', level: 'bad', - title: '「虚拟机监控程序平台」没有启用', - detail: '商店版不能自行改系统功能。按 Win+R → 输入 optionalfeatures → 勾选「Windows 虚拟机监控程序平台」' - + '(HypervisorPlatform)与「虚拟机平台」→ 确定 → 重启。', - action: { kind: 'elevate', id: 'virtualization', label: '打开「Windows 功能」窗口' }, + title: t('preflight.whpx-off.title'), + detail: t('preflight.whpx-off.detailStore'), + action: { kind: 'elevate', id: 'virtualization', label: t('preflight.whpx-off.labelStore') }, }); } else { add({ key: 'whpx-off', level: 'bad', - title: '「虚拟机监控程序平台」没有启用', - detail: '点下面的按钮会自动开启 HypervisorPlatform + VirtualMachinePlatform(需要管理员确认),完成后重启电脑。', - action: { kind: 'elevate', id: 'virtualization', label: '一键开启(需管理员)' }, + title: t('preflight.whpx-off.title'), + detail: t('preflight.whpx-off.detailInstaller'), + action: { kind: 'elevate', id: 'virtualization', label: t('preflight.whpx-off.labelInstaller') }, }); } @@ -322,20 +321,20 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { add({ key: 'accel-ok', level: 'ok', - title: `硬件加速可用(${v.accelKind === 'aehd' ? 'AEHD' : 'WHPX'})`, - detail: '启动会走硬件加速;下面的配置按这台机器的显卡与内存推荐。', + title: t('preflight.accel-ok.title', [v.accelKind === 'aehd' ? 'AEHD' : 'WHPX']), + detail: t('preflight.accel-ok.detail'), action: null, }); } else { add({ key: 'accel-off', level: 'warn', - title: '当前没有可用的硬件加速', + title: t('preflight.accel-off.title'), detail: edition === 'installer' && v.vtFirmware !== false - ? '可以装 AEHD 驱动(需管理员),或先开「虚拟机监控程序平台」后重启;两者都不行就只能软件模拟。' - : '会先用软件模拟保证能跑;速度比硬件加速慢 5~10 倍。', + ? t('preflight.accel-off.detailInstaller') + : t('preflight.accel-off.detailPlain'), action: edition === 'installer' && v.vtFirmware !== false - ? { kind: 'elevate', id: 'accel', label: '安装 AEHD 驱动(需管理员)' } + ? { kind: 'elevate', id: 'accel', label: t('preflight.accel-off.label') } : null, }); } @@ -345,20 +344,20 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { add({ key: 'gpu-unknown', level: 'warn', - title: '读不到显卡信息', - detail: '可能是远程桌面 / 虚拟机 / 驱动异常。渲染后端交给自动降级链处理。', + title: t('preflight.gpu-unknown.title'), + detail: t('preflight.gpu-unknown.detail'), action: null, }); } else { const integrated = /radeon\s+(graphics|vega)|uhd|iris|hd\s+graphics|vega/i.test(gpu.name); const vram = gpu.vramMB - ? `${(gpu.vramMB / 1024).toFixed(1)} GB 显存${integrated ? '(核显,其余走共享内存)' : ''}` - : '显存未知'; + ? t('preflight.vram', [(gpu.vramMB / 1024).toFixed(1), integrated ? t('preflight.vramIntegrated') : '']) + : t('preflight.vramUnknown'); add({ key: 'gpu-info', level: 'ok', title: `${gpu.name}`, - detail: `${vram}${gpu.driverVersion ? ` · 驱动 ${gpu.driverVersion}` : ''}${gpu.driverDate ? `(${gpu.driverDate})` : ''}`, + detail: `${vram}${gpu.driverVersion ? t('preflight.driverVersion', [gpu.driverVersion]) : ''}${gpu.driverDate ? t('preflight.driverDate', [gpu.driverDate]) : ''}`, action: null, }); const old = /^(19|20)\d{2}-\d{2}-\d{2}$/.test(gpu.driverDate || '') @@ -367,8 +366,8 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { add({ key: 'gpu-driver-old', level: 'warn', - title: '显卡驱动比较旧', - detail: `驱动日期 ${gpu.driverDate}(约 ${Math.floor(old)} 年前)。老驱动是「起来后黑屏 / 花屏」的常见原因,建议去厂商官网更新。`, + title: t('preflight.gpu-driver-old.title'), + detail: t('preflight.gpu-driver-old.detail', [gpu.driverDate, Math.floor(old)]), action: null, }); } @@ -377,20 +376,20 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { // ---- 5. 内存 / 磁盘 / 系统版本 ---- const total = Number(mem.totalMB) || 0; if (!total) { - add({ key: 'mem-unknown', level: 'warn', title: '读不到物理内存', detail: '', action: null }); + add({ key: 'mem-unknown', level: 'warn', title: t('preflight.mem-unknown.title'), detail: '', action: null }); } else if (total < 6144) { add({ key: 'mem-low', level: 'warn', - title: `内存偏小(${(total / 1024).toFixed(1)} GB)`, - detail: '安卓虚拟机最多只能分 2 GB、2 核,画质降到 540×960,并建议关掉浏览器标签页再开应用。', + title: t('preflight.mem-low.title', [(total / 1024).toFixed(1)]), + detail: t('preflight.mem-low.detail'), action: null, }); } else { add({ key: 'mem-ok', level: 'ok', - title: `物理内存 ${(total / 1024).toFixed(0)} GB`, + title: t('preflight.mem-ok.title', [(total / 1024).toFixed(0)]), detail: '', action: null, }); @@ -401,8 +400,8 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { add({ key: 'os-old', level: 'warn', - title: `Windows 版本较旧(build ${build})`, - detail: 'ApkStart 最低支持 Windows 10 2004(build 19041)。更旧的系统上 emulator 可能直接退出。', + title: t('preflight.os-old.title', [build]), + detail: t('preflight.os-old.detail'), action: null, }); } @@ -427,10 +426,10 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { const driver = { format: 'apkstart-driver/1', id: `auto-${vendor}-${build || 'x'}`.toLowerCase().replace(/[^a-z0-9._-]/g, '-'), - name: `本机自动配置(${gpu.name || vendor})`, + name: t('preflight.driverName', [gpu.name || vendor]), version: '1.0.0', - author: 'ApkStart 体检', - description: `由「本机体检 · 自动配置」生成:${gpuRec.why}。${v.accelOk ? '硬件加速可用。' : '当前无硬件加速。'}`, + author: t('preflight.driverAuthor'), + description: t('preflight.driverDescription', [gpuRec.why, v.accelOk ? t('preflight.driverAccelOk') : t('preflight.driverAccelNone')]), priority: 5, match: { platform: [hw.platform || process.platform], @@ -449,10 +448,10 @@ function evaluate({ hw = {}, settings = {}, edition = 'installer' } = {}) { const warn = items.filter((i) => i.level === 'warn').length; const level = bad ? 'bad' : warn ? 'warn' : 'good'; const summary = bad - ? `发现 ${bad} 项必须先处理(${items.filter((i) => i.level === 'bad').map((i) => i.title).join('、')})` + ? t('preflight.summary.bad', [bad, items.filter((i) => i.level === 'bad').map((i) => i.title).join(t('list.sepComma'))]) : warn - ? `有 ${warn} 项建议优化(${items.filter((i) => i.level === 'warn').map((i) => i.title).join('、')})` - : '这台机器可以直接跑硬件加速,配置已经是最优'; + ? t('preflight.summary.warn', [warn, items.filter((i) => i.level === 'warn').map((i) => i.title).join(t('list.sepComma'))]) + : t('preflight.summary.good'); return { level, diff --git a/src/core/provision.js b/src/core/provision.js index dd785f95..a3245f8b 100644 --- a/src/core/provision.js +++ b/src/core/provision.js @@ -9,6 +9,7 @@ const fs = require('fs'); const path = require('path'); const zlib = require('zlib'); const { spawn, execFile } = require('child_process'); +const { t } = require('./i18n'); const store = require('./store'); const doctor = require('./doctor'); const { download, downloadAny, downloadAnyParallel, downloadMulti, head, discardPartial } = require('./download'); @@ -352,7 +353,7 @@ class Provisioner { async hypervisor() { if (this._hypervisor !== null) return this._hypervisor; - if (!IS_WIN) { this._hypervisor = { whpx: false, note: '非 Windows 平台' }; return this._hypervisor; } + if (!IS_WIN) { this._hypervisor = { whpx: false, note: t('provision.hv.notWindows') }; return this._hypervisor; } // 只做毫秒级的文件检查。真正"WHPX 是否可用"由 emulator -accel-check 给出权威答案, // 避免在这里拉起 PowerShell(冷启动 1-2 秒)拖慢每次状态轮询。 const dll = fs.existsSync('C:\\Windows\\System32\\WinHvPlatform.dll'); @@ -361,8 +362,8 @@ class Provisioner { dll, hypervisorPresent: false, note: dll - ? '虚拟机平台组件存在(可用性由运行时引擎检测)' - : '未检测到 Windows Hypervisor Platform 组件:可在「启用或关闭 Windows 功能」中勾选「虚拟机平台」后重启', + ? t('provision.hv.present') + : t('provision.hv.missing'), }; return this._hypervisor; } @@ -1085,16 +1086,16 @@ class Provisioner { let result; if (usable) { const kind = hasAehdFile && /aehd/i.test(text) ? 'aehd' : 'whpx'; - result = { ok: true, kind, note: kind === 'whpx' ? 'WHPX 硬件加速已启用' : 'AEHD 硬件加速已启用' }; + result = { ok: true, kind, note: t(kind === 'whpx' ? 'provision.accel.whpx' : 'provision.accel.aehd') }; } else if (/can't find the emulator-check|corrupted tools installation/i.test(text) && hasAehdFile) { // 部分精简运行时包会漏掉 emulator-check.exe,导致 -accel-check 无法给出结论。 // 此时只要 AEHD 驱动已安装,就按「可用」处理:启动时 emulator 自己会挂载驱动, // 避免被误判成无加速而强行 -accel off(软件模拟在部分机器上会直接崩溃)。 - result = { ok: true, kind: 'aehd', note: 'AEHD 硬件加速已启用(emulator-check 缺失,按驱动判定)' }; + result = { ok: true, kind: 'aehd', note: t('provision.accel.aehdNoCheck') }; } else if (hasAehdFile && /aehd/i.test(text) && !/ERROR_ACCESS_DENIED/i.test(text)) { - result = { ok: true, kind: 'aehd', note: 'AEHD 硬件加速已启用' }; + result = { ok: true, kind: 'aehd', note: t('provision.accel.aehd') }; } else if (hv.dll && /whpx/i.test(text) && !/error|denied/i.test(text)) { - result = { ok: true, kind: 'whpx', note: 'WHPX 硬件加速已启用' }; + result = { ok: true, kind: 'whpx', note: t('provision.accel.whpx') }; } else { result = { ok: false, diff --git a/src/core/sources.js b/src/core/sources.js index 82b0b9a3..311d91db 100644 --- a/src/core/sources.js +++ b/src/core/sources.js @@ -18,6 +18,7 @@ const https = require('https'); const http = require('http'); const { URL } = require('url'); const { cmpVer } = require('./version'); +const { t } = require('./i18n'); const OWNER_GH = 'RoutineMiku'; const OWNER_GITEE = 'daily-miku'; @@ -53,9 +54,9 @@ const SAMPLE_BYTES = 256 * 1024; function openUrl(url, { timeout = 10000, headers = {}, redirects = 0, followRedirect = true } = {}) { return new Promise((resolve, reject) => { - if (redirects > 6) return reject(new Error('重定向次数过多')); + if (redirects > 6) return reject(new Error(t('sources.tooManyRedirects'))); let u; - try { u = new URL(url); } catch (_) { return reject(new Error('地址无效')); } + try { u = new URL(url); } catch (_) { return reject(new Error(t('sources.invalidUrl'))); } const mod = u.protocol === 'http:' ? http : https; const req = mod.request(url, { method: 'GET', @@ -74,7 +75,7 @@ function openUrl(url, { timeout = 10000, headers = {}, redirects = 0, followRedi } resolve(res); }); - req.on('timeout', () => req.destroy(new Error('连接超时'))); + req.on('timeout', () => req.destroy(new Error(t('sources.timeout')))); req.on('error', reject); req.end(); }); @@ -230,7 +231,7 @@ class Sources { blockedReason(id) { const until = this._blocked.get(id) || 0; if (until <= Date.now()) return null; - return `暂时跳过(${Math.ceil((until - Date.now()) / 60000)} 分钟内不再尝试)`; + return t('sources.skipped', [Math.ceil((until - Date.now()) / 60000)]); } /** 各源的最新 release(并发,任何一个失败都不影响另一个) */ @@ -319,8 +320,8 @@ class Sources { const limited = /\b(403|429)\b/.test(e.message); if (limited) this._blocked.set(id, Date.now() + this._blockMs); const hint = limited - ? '(被限流,已暂停使用该源一段时间)' - : (id === 'gitee' && !token ? '(可稍后重试,或在设置里填只读 token 提高额度)' : ''); + ? t('sources.hint.rateLimited') + : (id === 'gitee' && !token ? t('sources.hint.giteeToken') : ''); return { source: id, name: s.name, web: s.web, error: `${e.message}${hint}` }; } }); @@ -347,11 +348,11 @@ class Sources { } const ok = all.filter((x) => x && x.rel); if (!ok.length) { - const why = all.map((x) => `${x.name || x.source}: ${x.error || '无数据'}`).join(';'); + const why = all.map((x) => `${x.name || x.source}: ${x.error || t('sources.noData')}`).join(t('sources.whySeparator')); // 全挂了但手里有上一次的结果:宁可给一份「可能是旧的」版本信息, // 也不要让界面直接报错 —— 用户至少还能看到当前版本和发布页入口。 if (cached.value) return { ...cached.value, stale: true, staleReason: why }; - throw new Error(`连不上更新服务器(${why})`); + throw new Error(t('sources.unreachable', [why])); } ok.sort((a, b) => cmpVer(b.rel.tag_name || b.rel.name, a.rel.tag_name || a.rel.name)); const top = ok[0]; @@ -463,7 +464,7 @@ class Sources { if (!c || now - c.at > this._rankTtl) need.push(u); } if (need.length) { - onProgress?.({ stage: 'probe', message: `正在测速 ${need.length} 个下载源…` }); + onProgress?.({ stage: 'probe', message: t('sources.probe.start', [need.length]) }); // 顺序测而不是并发测:并发会互相抢带宽,测出来的名次变成「谁抢得凶」, // 而不是「谁真的快」。每个源 256KB,正常也就一秒左右。 // 单个源最多等 6 秒就放弃(旧版 9 秒 × 4 个源 = 最长 36 秒没有任何字节进度, @@ -473,7 +474,7 @@ class Sources { i += 1; let host = u; try { host = new URL(u).host; } catch (_) { /* 地址不合法就原样显示 */ } - onProgress?.({ stage: 'probe', message: `正在测速第 ${i}/${need.length} 个源:${host}…` }); + onProgress?.({ stage: 'probe', message: t('sources.probe.item', [i, need.length, host]) }); // eslint-disable-next-line no-await-in-loop const r = await measure(u, { timeoutMs: 6000 }); this._rankCache.set(u, { at: Date.now(), ok: r.ok, speed: r.speed }); @@ -489,7 +490,7 @@ class Sources { if (s > 0) { onProgress?.({ stage: 'probe', - message: `已选最快的源:${new URL(best).host}(约 ${(s / 1048576).toFixed(2)} MB/s)`, + message: t('sources.probe.best', [new URL(best).host, (s / 1048576).toFixed(2)]), }); } return sorted; diff --git a/src/core/store.js b/src/core/store.js index 7f640fa3..3de3bf54 100644 --- a/src/core/store.js +++ b/src/core/store.js @@ -287,8 +287,11 @@ const store = { const VALID_LANGS = ['auto', 'zh', 'en', 'ru', 'vi', 'es', 'pt', 'ja', 'ko']; const freshInstall = !fs.existsSync(SETTINGS_FILE); if (existing.uiLanguage === undefined) { - s.uiLanguage = freshInstall ? 'auto' : 'zh'; - } else if (!VALID_LANGS.includes(s.uiLanguage)) { + s.uiLanguage = existing.language !== undefined + ? (existing.language === 'pt-BR' ? 'pt' : existing.language === 'zh-CN' ? 'zh' : existing.language) + : freshInstall ? 'auto' : 'zh'; + } + if (!VALID_LANGS.includes(s.uiLanguage)) { s.uiLanguage = 'zh'; } /** @@ -354,6 +357,9 @@ const store = { }, saveSettings(patch) { + if (patch && patch.language !== undefined && patch.uiLanguage === undefined) { + patch = { ...patch, uiLanguage: patch.language === 'pt-BR' ? 'pt' : patch.language === 'zh-CN' ? 'zh' : patch.language }; + } const next = deepMerge(this.getSettings(), patch); // 只改了「资源策略」时,把它翻译成具体的三个开关,避免两套配置各说各话 if (patch && patch.engine && patch.engine.resourceMode) { diff --git a/src/core/updater.js b/src/core/updater.js index aac8b40c..eada7594 100644 --- a/src/core/updater.js +++ b/src/core/updater.js @@ -22,6 +22,7 @@ const { ZipFile, resolveZipEntry } = require('./zip'); const { cmpVer } = require('./version'); const { Sources } = require('./sources'); const inc = require('./incremental'); +const { t } = require('./i18n'); const OWNER = 'RoutineMiku'; const REPO = 'apkstart'; @@ -161,7 +162,7 @@ class Updater { */ async prepare(info) { const it = info || this.latest; - if (!it || !it.asset) throw new Error('这个版本没有可自动安装的安装包,请到 GitHub 发布页手动下载'); + if (!it || !it.asset) throw new Error(t('updater.noInstaller')); const dir = path.join(this.updateDir, it.version); fs.mkdirSync(dir, { recursive: true }); @@ -176,7 +177,7 @@ class Updater { } catch (e) { this.onProgress({ stage: 'download', percent: 1, - message: `增量更新不可用(${e.message}),改用完整包…`, + message: t('updater.incrementalUnavailable', [e.message]), }); } } @@ -195,7 +196,7 @@ class Updater { if (it.asset.parts && it.asset.parts.length) { await this._downloadParts(it.asset, file, conns, total); } else { - this.onProgress({ stage: 'download', percent: 1, message: `正在下载 ${it.asset.name}…` }); + this.onProgress({ stage: 'download', percent: 1, message: t('updater.downloading', [it.asset.name]) }); // 候选地址 = 源站 + 镜像前缀;先各下 256KB 实测速度,再拿最快的那个分块下载。 // 这是「GitHub 直连几十 KB/s、镜像能跑几 MB/s」时唯一靠谱的选路方式: // 按域名猜没用,同一天不同时段差别很大。 @@ -218,7 +219,7 @@ class Updater { this.onProgress({ stage: 'download', percent: Math.max(1, Math.min(99, pct)), - message: `下载中 ${mb}${sp}`, + message: t('updater.downloadProgress', [`${mb}${sp}`]), speed: pr.speed, }); }, @@ -231,17 +232,17 @@ class Updater { // 直接复用这份载荷,绝不再下一遍 100MB —— 这正是「更新死循环」的来源。 // 就绪标记由本函数写、替换脚本成功后清掉,所以只有完整解压过的载荷才会被复用。 if (this._payloadReady(out, it.version)) { - this.onProgress({ stage: 'ready', percent: 100, message: '已有下载好的更新包,直接复用' }); + this.onProgress({ stage: 'ready', percent: 100, message: t('updater.reuseFull') }); return { mode: 'zip', payload: out, version: it.version }; } fs.rmSync(out, { recursive: true, force: true }); fs.mkdirSync(out, { recursive: true }); await this._extract(file, out); this._markPayloadReady(out, it.version); - this.onProgress({ stage: 'ready', percent: 100, message: '更新包已解压完成' }); + this.onProgress({ stage: 'ready', percent: 100, message: t('updater.extracted') }); return { mode: 'zip', payload: out, version: it.version }; } - this.onProgress({ stage: 'ready', percent: 100, message: '安装包已下载完成' }); + this.onProgress({ stage: 'ready', percent: 100, message: t('updater.downloaded') }); return { mode: 'setup', payload: file, version: it.version }; } @@ -258,15 +259,15 @@ class Updater { const fetchAsset = async (asset, name, label) => { const target = path.join(dir, name); const ranked = await this.sources.rank(this.sources.candidates(asset), {}).catch(() => this.sources.candidates(asset)); - this.onProgress({ stage: 'download', percent: 1, message: `正在获取${label}…` }); + this.onProgress({ stage: 'download', percent: 1, message: t('updater.fetching', [label]) }); await downloadAny(ranked, target, {}); return target; }; - const manifestFile = await fetchAsset(it.incremental.manifest, `manifest-${it.version}.json`, '更新清单'); + const manifestFile = await fetchAsset(it.incremental.manifest, `manifest-${it.version}.json`, t('updater.label.manifest')); const manifest = inc.parseManifest(fs.readFileSync(manifestFile, 'utf8')); if (String(manifest.version).replace(/^v/i, '') !== String(it.version).replace(/^v/i, '')) { - throw new Error('清单版本与发行版不一致'); + throw new Error(t('updater.manifestMismatch')); } // 清单声明的 app 资产必须真的是这次 release 里那个(防止挂错旧包) const appAsset = it.assets && it.assets.find((a) => a && a.name === manifest.app.asset); @@ -279,16 +280,16 @@ class Updater { }); if (choice.mode !== 'app') return null; - const appFile = await fetchAsset(choice.appAsset, manifest.app.asset, '增量代码包'); + const appFile = await fetchAsset(choice.appAsset, manifest.app.asset, t('updater.label.app')); const gotHash = await sha256File(appFile); if (String(gotHash).toLowerCase() !== String(manifest.app.sha256).toLowerCase()) { - throw new Error('增量代码包校验失败(sha256 不符)'); + throw new Error(t('updater.appHashMismatch')); } const payload = path.join(dir, 'app-payload'); // 上次下载解压成功但替换失败:直接复用(和完整包的 .apkstart-ready 同理) if (this._payloadReady(payload, it.version)) { - this.onProgress({ stage: 'ready', percent: 100, message: '已有下载好的增量包,直接复用' }); + this.onProgress({ stage: 'ready', percent: 100, message: t('updater.reuseIncremental') }); return { mode: 'app', payload, version: it.version, manifest }; } fs.rmSync(payload, { recursive: true, force: true }); @@ -296,10 +297,10 @@ class Updater { await this._extract(appFile, payload); // 逐文件校验:下载被截断 / 镜像给了错文件都能在这里拦下 const bad = await inc.verifyExtracted({ payload, files: manifest.app.files }); - if (bad.length) throw new Error(`增量代码包有 ${bad.length} 个文件校验不通过`); + if (bad.length) throw new Error(t('updater.appFilesBad', [bad.length])); this._markPayloadReady(payload, it.version, 'app'); - this.onProgress({ stage: 'ready', percent: 100, message: '增量包已校验完成' }); + this.onProgress({ stage: 'ready', percent: 100, message: t('updater.incrementalVerified') }); return { mode: 'app', payload, version: it.version, manifest }; } @@ -332,15 +333,19 @@ class Updater { this.onProgress({ stage: 'download', percent: Math.max(1, Math.min(99, pct)), - message: `下载中 ${(got / 1048576).toFixed(1)} MB${total ? ` / ${(total / 1048576).toFixed(1)} MB` : ''}` - + `(第 ${part.index}/${asset.parts.length} 片)${sp}`, + message: t('updater.downloadPartProgress', [ + `${(got / 1048576).toFixed(1)} MB${total ? ` / ${(total / 1048576).toFixed(1)} MB` : ''}`, + part.index, + asset.parts.length, + sp, + ]), speed: pr.speed, }); }, }); const buf = fs.readFileSync(tmp); if (part.size && buf.length !== part.size) { - throw new Error(`分片 ${part.index} 大小不对(${buf.length} ≠ ${part.size}),已中止,可重试`); + throw new Error(t('updater.partSizeBad', [part.index, buf.length, part.size])); } fs.writeSync(fd, buf, 0, buf.length, doneBytes); doneBytes += buf.length; @@ -350,7 +355,7 @@ class Updater { fs.closeSync(fd); } if (total && doneBytes !== total) { - throw new Error(`更新包拼装后大小不对(${doneBytes} ≠ ${total}),已中止,可重试`); + throw new Error(t('updater.assembledSizeBad', [doneBytes, total])); } } @@ -370,7 +375,7 @@ class Updater { this.onProgress({ stage: 'extract', percent: Math.min(99, Math.round((i / names.length) * 100)), - message: `正在解压 ${i}/${names.length}`, + message: t('updater.extracting', [i, names.length]), }); } } diff --git a/src/i18n/pt.json b/src/i18n/pt.json index c1b888cc..b782b964 100644 --- a/src/i18n/pt.json +++ b/src/i18n/pt.json @@ -1,175 +1,177 @@ { - "AEHD 硬件加速已启用": "AEHD Aceleração de hardwareHabilitado", - "Android 应用": "Android aplicativo", - "Android 运行时": "Android ambiente de execução", - "ApkStart 使用手册 · {title}": "ApkStart Manual do usuário · {title}", - "adb 路径": "adb caminho", - "{0} 分钟前": "{0} minutosantes", - "{0} 小时前": "{0} horasantes", - "{0} 已安装": "{0} Instalado", - "{0} 已安装{1}": "{0} Instalado{1}", - "下一次启动安卓时生效": "下uma vezIniciarAndroid时terá efeito", - "下一次打开应用生效": "下uma vezAbriraplicativoterá efeito", + "AEHD 硬件加速已启用": "Aceleração de hardware AEHD ativada", + "Android 应用": "Apps Android", + "Android 运行时": "Ambiente Android", + "ApkStart 使用手册 · {title}": "Manual do usuário do ApkStart · {title}", + "adb 路径": "Caminho do adb", + "{0} 分钟前": "Há {0} min", + "{0} 小时前": "Há {0} h", + "{0} 已安装": "{0} instalado", + "{0} 已安装{1}": "{0} instalado{1}", + "下一次启动安卓时生效": "Será aplicado na próxima inicialização do Android", + "下一次打开应用生效": "Será aplicado na próxima vez que você abrir um app", "下次启动安卓运行时将使用这个镜像,不再联网下载": "Esta imagem será usada no próximo início; nada será baixado", - "下次打开应用时生效": "na próxima vezAbriraplicativo时terá efeito", - "下次打开应用生效": "na próxima vezAbriraplicativoterá efeito", - "下次打开应用重新联网": "na próxima vezAbriraplicativonovamente联网", - "下次重启安卓运行时后生效": "na próxima vezReiniciarAndroidambiente de execuçãodepoisterá efeito", - "下次重启运行时生效": "na próxima vezReiniciarambiente de execuçãoterá efeito", + "下次打开应用时生效": "Será aplicado na próxima abertura de um app", + "下次打开应用生效": "Será aplicado na próxima abertura de um app", + "下次打开应用重新联网": "A próxima abertura de um app reconectará à rede", + "下次重启安卓运行时后生效": "Será aplicado após a próxima reinicialização do ambiente Android", + "下次重启运行时生效": " entra em vigor após reiniciar o ambiente ", "使用手册": "Manual do usuário", - "保留快速启动快照(推荐)": "Manter快速Iniciarsnapshot (recomendado)", - "修复": "corrigir", - "修复失败": "corrigirfalhou", - "修复未完成": "corrigirnão Concluir", - "修复网络": "corrigirrede", - "修复虚拟机网络?": "corrigirmáquina virtualrede?", + "保留快速启动快照(推荐)": "Manter snapshot de inicialização rápida (recomendado)", + "修复": "Reparar", + "修复失败": "Falha no reparo", + "修复未完成": "Reparo incompleto", + "修复网络": "Reparar rede", + "修复虚拟机网络?": "Reparar a rede da máquina virtual?", "关于": "Sobre", "关闭": "Fechar", - "关闭失败": "Fecharfalhou", - "关闭应用": "Fecharaplicativo", - "关闭当前应用": "Fechar o aplicativo atual", - "关闭当前应用({name})": "Fecharatualaplicativo ({name})", - "内存 (MB,0 = 自动)": "memória (MB, 0 = Automático)", - "加速未启用": "aceleraçãoNão habilitado", + "关闭失败": "Não foi possível fechar", + "关闭应用": "Fechar app", + "关闭当前应用": "Fechar app atual", + "关闭当前应用({name})": "Fechar aplicativo atual ({name})", + "内存 (MB,0 = 自动)": "Memória (MB, 0 = automático)", + "加速未启用": "Aceleração não ativada", "卸载": "Desinstalar", "卸载 ApkStart": "Desinstalar ApkStart", - "卸载失败": "Desinstalarfalhou", + "卸载失败": "Falha ao desinstalar", "发现新版本": "Nova versão disponível", - "发现新版本 {0}": "Nova versão disponível {0}", - "发现新版本 {0}{1}{2}{3}": "Nova versão disponível {0}{1}{2}{3}", + "发现新版本 {0}": "Nova versão {0}", + "发现新版本 {0}{1}{2}{3}": "Nova versão {0}{1}{2}{3}", "发现新版本 {tag}": "Nova versão disponível {tag}", "取消": "Cancelar", "同步共享目录": "Sincronizar pasta compartilhada", "启动失败": "Falha ao iniciar", "启动失败:{0}": "Falha ao iniciar: {0}", - "启动运行时": "Iniciarambiente de execução", - "启用自动检测(默认开启)": "启用Automáticoverificação (padrãoAtivado)", - "声音已打开": "somaberto", - "声音设置": "somConfigurações", - "失败:{0}": "falhou: {0}", - "安卓声音": "Androidsom", - "安卓数据目录已更新": "Androiddadosdiretório已atualização", - "安卓运行时": "Androidambiente de execução", + "启动运行时": "Iniciar ambiente Android", + "启用自动检测(默认开启)": "Ativar verificações automáticas (ativado por padrão)", + "声音已打开": "Áudio ativado", + "声音设置": "Configurações de som", + "失败:{0}": "Falha: {0}", + "安卓声音": "Áudio do Android", + "安卓数据目录已更新": "Pasta de dados do Android atualizada", + "安卓运行时": "Ambiente Android", "安装 APK": "Instalar APK", - "安装后自动创建桌面快捷方式": "InstalardepoisAutomático创建área de trabalhoatalho", + "安装后自动创建桌面快捷方式": "Criar atalhos na área de trabalho após a instalação", "安装失败": "Falha na instalação", "安装失败:{0}": "Falha na instalação: {0}", "安装完成": "Instalação concluída", - "安装未完成": "Instalarnão Concluir", - "完成": "Concluir", - "已下载 v{0},正在重启完成安装…": "已Baixar v{0}, ReiniciarConcluirInstalar…", + "安装未完成": "Instalação incompleta", + "完成": "Concluído", + "已下载 v{0},正在重启完成安装…": "Versão {0} baixada. Reiniciando para concluir a instalação…", "已卸载": "Desinstalado", - "已打开镜像自动旋转": "abertoimagemAutomático旋转", - "应用": "aplicativo", - "应用失败": "aplicativofalhou", - "应用窗口": "aplicativojanela", - "开始修复": "Iniciarcorrigir", - "开机自动启动(默认开启)": "开机AutomáticoIniciar (padrãoAtivado)", - "当前版本": "atualversão", - "当前面板方向": "atualpainelorientação", - "快捷方式目录": "atalhodiretório", + "已打开镜像自动旋转": "Rotação automática da imagem ativada", + "应用": "O aplicativo", + "应用失败": "Falha ao aplicar", + "应用窗口": "Janelas dos apps", + "开始修复": "Iniciar reparo", + "开机自动启动(默认开启)": "Iniciar com o Windows (ativado por padrão)", + "当前版本": "Versão atual", + "当前面板方向": "Orientação atual do painel", + "快捷方式目录": "Pasta de atalhos", "打开": "Abrir", "打开 ApkStart": "Abrir ApkStart", - "打开应用": "Abriraplicativo", - "打开设置": "AbrirConfigurações", - "打开驱动目录": "Abrirdriverdiretório", + "打开应用": "Abrir app", + "打开设置": "Abrir configurações", + "打开驱动目录": "Abrir pasta de drivers", "指向含 system.img 与 kernel-ranchu 的目录(可从官网下载或用已有模拟器镜像)。设置后优先使用,不再联网下载镜像。": "Aponte para um diretório com system.img e kernel-ranchu (baixado do site oficial ou copiado de outro emulador). Após definido, será usado primeiro e nada será baixado.", - "无硬件加速": "semAceleração de hardware", - "更新失败": "atualizaçãofalhou", - "更新失败:{0}": "atualizaçãofalhou: {0}", - "未下载": "não Baixar", - "未启用硬件加速": "Não habilitadoAceleração de hardware", - "未安装": "não Instalar", - "未安装 emulator": "não Instalar emulator", + "无硬件加速": "Sem aceleração de hardware", + "更新失败": "Falha na atualização", + "更新失败:{0}": "Falha na atualização: {0}", + "未下载": "Não baixada", + "未启用硬件加速": "Aceleração de hardware desativada", + "未安装": "Não instalado", + "未安装 emulator": "Emulador não instalado", "检查更新": "Verificar atualizações", - "检测失败": "verificaçãofalhou", - "横屏 / 竖屏": "paisagem / retrato", - "横屏 / 竖屏(Ctrl+R)": "paisagem / retrato (Ctrl+R)", - "横屏启动": "paisagemIniciar", - "横屏启动(当前竖屏)": "paisagemIniciar (atualretrato)", - "横屏面板": "paisagempainel", - "正在准备 Android 系统镜像…": "Preparando Android imagem do sistema…", - "正在准备 Android 运行时…": "Preparando Android ambiente de execução…", - "正在准备 adb…": "Preparando adb…", + "检测失败": "Falha na verificação", + "横屏 / 竖屏": "Horizontal / vertical", + "横屏 / 竖屏(Ctrl+R)": "Horizontal / vertical (Ctrl+R)", + "横屏启动": "horizontal ao abrir", + "横屏启动(当前竖屏)": "Abrir na horizontal (atualmente vertical)", + "横屏面板": "Painel horizontal", + "正在准备 Android 系统镜像…": "Preparando a imagem do sistema Android…", + "正在准备 Android 运行时…": "Preparando o ambiente Android…", + "正在准备 adb…": "Preparando o adb…", "正在准备…": "Preparando…", - "正在卸载…": "Desinstalar…", + "正在卸载…": "Desinstalando…", "正在启动…": "Iniciando…", - "正在启动安卓运行时…": "IniciandoAndroidambiente de execução…", - "正在启动运行时…": "Iniciandoambiente de execução…", + "正在启动安卓运行时…": "Iniciando o ambiente Android…", + "正在启动运行时…": "Iniciando o ambiente Android…", "正在安装 {0}": "Instalando {0}", - "正在安装硬件加速驱动…": "InstalandoAceleração de hardwaredriver…", - "正在开启硬件加速…": "AtivadoAceleração de hardware…", - "正在打开 {0}": "Abrir {0}", - "正在打开安卓应用声音…": "正在AbrirAndroidaplicativosom…", - "正在打开应用…": "Abriraplicativo…", - "正在打开麦克风输入…": "Abrirmicrofone输入…", - "正在更新…": "atualização…", - "正在检测…": "verificação…", - "正在重启安卓运行时…": "正在ReiniciarAndroidambiente de execução…", - "点「立即更新」自动下载安装": "点「Atualizar agora」AutomáticoBaixarInstalar", - "界面语言": "Idioma da interface", + "正在安装硬件加速驱动…": "Instalando o driver de aceleração de hardware…", + "正在开启硬件加速…": "Ativando a aceleração de hardware…", + "正在打开 {0}": "Abrindo {0}", + "正在打开安卓应用声音…": "Ativando o áudio dos apps Android…", + "正在打开应用…": "Abrindo o app…", + "正在打开麦克风输入…": "Ativando a entrada do microfone…", + "正在更新…": "Atualizando…", + "正在检测…": "Detectando…", + "正在重启安卓运行时…": "Reiniciando o ambiente Android…", + "点「立即更新」自动下载安装": "Clique em “Atualizar agora” para baixar e instalar automaticamente", + "界面语言": "Idioma", "留空使用内置镜像;可填 Android SDK system-images/.../x86_64 目录": "Deixe vazio para usar a imagem integrada; pode informar um diretório Android SDK system-images/.../x86_64", "硬件加速": "Aceleração de hardware", - "硬件加速已启用": "Aceleração de hardwareHabilitado", + "硬件加速已启用": "Aceleração de hardware ativada", "确定": "OK", "确认": "Confirmar", - "磁盘空间不足": "discoespaçoinsuficiente", - "稍后": "Depois", + "磁盘空间不足": "Espaço em disco insuficiente", + "稍后": "Mais tarde", "立即更新": "Atualizar agora", - "竖屏启动": "retratoIniciar", - "竖屏启动(当前横屏)": "retratoIniciar (atualpaisagem)", - "竖屏面板": "retratopainel", - "简体中文": "Chinês simplificado", + "竖屏启动": "vertical ao abrir", + "竖屏启动(当前横屏)": "Abrir na vertical (atualmente horizontal)", + "竖屏面板": "Painel vertical", + "简体中文": "简体中文", "简体中文(推荐)": "Chinês simplificado (recomendado)", "系统语言": "Idioma do sistema", - "系统镜像": "imagem do sistema", - "系统镜像(ISO)": "imagem do sistema (ISO)", - "系统默认": "sistemapadrão", + "系统镜像": "Imagem do sistema", + "系统镜像(ISO)": "Imagem do sistema (ISO)", + "系统默认": "Padrão do sistema", "继续": "Continuar", - "网络": "rede", - "网络加速(推荐)": "redeaceleração (recomendado)", + "网络": "Rede", + "网络加速(推荐)": "Aceleração de rede (recomendado)", "自动": "Automático", - "自动全屏": "Automáticotela cheia", - "自动模式": "Automáticomodo", - "自动模式(默认,无需设置)": "Automáticomodo (padrão, sem需Configurações)", + "自动全屏": "Tela cheia automática", + "自动模式": "Modo automático", + "自动模式(默认,无需设置)": "Modo automático (padrão; sem ajustes necessários)", "自定义系统镜像目录": "Diretório de imagem do sistema personalizado", "自定义镜像已设置": "Imagem personalizada definida", - "虚拟机窗口已打开": "máquina virtualjanelaaberto", - "虚拟磁盘": "virtualdisco", + "虚拟机窗口已打开": "Janela da máquina virtual aberta", + "虚拟磁盘": "Disco virtual", "设置": "Configurações", - "设置方向失败": "Configuraçõesorientaçãofalhou", - "语言设置": "idiomaConfigurações", - "请手动删除程序目录({0})与数据目录({1})": "Por favor ManualExcluirprogramadiretório ({0})与dadosdiretório ({1})", + "设置方向失败": "Não foi possível definir a orientação", + "语言设置": "Configurações de idioma", + "请手动删除程序目录({0})与数据目录({1})": "Exclua manualmente a pasta do programa ({0}) e a pasta de dados ({1})", "请选择一个含 system.img 与 kernel-ranchu 的目录": "Escolha um diretório com system.img e kernel-ranchu", - "请重试": "Por favor Tentar novamente", - "跟随系统": "Seguir o sistema", - "跟随系统(自动)": "Seguir o sistema (Automático)", - "运行时": "ambiente de execução", - "运行时尚未安装 Android 系统 —— 打开设置 → 运行时继续": "ambiente de execução尚não Instalar Android sistema —— AbrirConfigurações → ambiente de execuçãoContinuar", - "运行时已自动准备完成": "ambiente de execução已AutomáticoPronto", - "运行时数据目录(系统镜像 · 已装应用 · 快照)": "ambiente de execuçãodadosdiretório (imagem do sistema · 已装aplicativo · snapshot)", - "运行时未启动": "ambiente de execuçãonão Iniciar", - "运行时磁盘空间紧张": "ambiente de execuçãodiscoespaço紧张", - "还没有安装应用": "Nenhum aplicativo instalado ainda", + "请重试": "Tente novamente", + "跟随系统": "Idioma do sistema", + "跟随系统(自动)": "Seguir o sistema (automático)", + "运行时": "Ambiente Android", + "运行时尚未安装 Android 系统 —— 打开设置 → 运行时继续": "Android ainda não instalado — continue em Configurações → Ambiente Android", + "运行时已自动准备完成": "Configuração automática do ambiente Android concluída", + "运行时数据目录(系统镜像 · 已装应用 · 快照)": "Pasta de dados do ambiente Android (imagens · apps · snapshots)", + "运行时未启动": "Ambiente Android parado", + "运行时磁盘空间紧张": "Pouco espaço na unidade do ambiente Android", + "还没有安装应用": "Nenhum app instalado ainda", "退出": "Sair", - "选择 APK 文件": "selecionar APK arquivo", - "选择 Android-x86 / Bliss OS 系统镜像": "selecionar Android-x86 / Bliss OS imagem do sistema", - "选择已安装 Android 的虚拟磁盘": "selecionarInstalado Android 的virtualdisco", + "选择 APK 文件": "Selecionar arquivos APK", + "选择 Android-x86 / Bliss OS 系统镜像": "Selecionar imagem do sistema Android-x86 / Bliss OS", + "选择已安装 Android 的虚拟磁盘": "Selecionar disco virtual com Android instalado", "选择目录": "Escolher pasta", "选择自定义系统镜像目录": "Escolher diretório de imagem do sistema", "选择语言": "Escolher idioma", - "选择驱动文件(.json)": "selecionardriverarquivo (.json)", - "重启运行时后生效": "Reiniciarambiente de execuçãodepoisterá efeito", + "选择驱动文件(.json)": "Selecionar arquivo de driver (.json)", + "重启运行时后生效": "Será aplicado após reiniciar o ambiente Android", "镜像目录无效": "Diretório de imagem inválido", - "需要先下载 Android 系统镜像(约 1.5GB)。": "é necessário先Baixar Android imagem do sistema (约 1.5GB).", - "需要先打开一次应用,让运行时启动": "é necessário先Abriruma vezaplicativo, 让ambiente de execuçãoIniciar", - "需要手动启动 Windows Audio": "é necessárioManualIniciar Windows Audio", - "需要手动开启一次(仅此一次)": "é necessárioManualAtivadouma vez (仅此uma vez)", - "首次启动需要引导 Android 系统": "primeira vezIniciaré necessário引导 Android sistema", - "首次启动需要预热运行时,请稍候…": "primeira vezIniciaré necessário预热ambiente de execução, Aguarde…", - "驱动 JSON": "driver JSON", - "驱动安装失败(退出码 {0})": "driverFalha na instalação (Sair码 {0})", - "麦克风已打开": "microfoneaberto", - "默认:运行时目录下的 avd 文件夹": "padrão: ambiente de execuçãodiretório下的 avd pasta", - "(已选 {0},下次启动安卓后生效)": "(已选 {0}, na próxima vezIniciarAndroiddepoisterá efeito)" + "需要先下载 Android 系统镜像(约 1.5GB)。": "Baixe a imagem do sistema Android primeiro (cerca de 1,5 GB).", + "需要先打开一次应用,让运行时启动": "Abra um app primeiro para iniciar o ambiente Android", + "需要手动启动 Windows Audio": "Inicie o Windows Audio manualmente", + "需要手动开启一次(仅此一次)": "Ative manualmente uma vez (configuração única)", + "首次启动需要引导 Android 系统": "A primeira inicialização precisa iniciar o Android", + "首次启动需要预热运行时,请稍候…": "A primeira inicialização precisa preparar o ambiente. Aguarde…", + "驱动 JSON": "JSON de driver", + "驱动安装失败(退出码 {0})": "Falha na instalação do driver (código de saída {0})", + "麦克风已打开": "Microfone ativado", + "默认:运行时目录下的 avd 文件夹": "Padrão: pasta avd dentro da pasta do ambiente Android", + "(已选 {0},下次启动安卓后生效)": "({0} selecionada; será aplicado na próxima inicialização do Android)", + "界面语言已切换": "Idioma da interface alterado", + "已立即生效;安卓系统语言不受影响": "A alteração já está em vigor; o idioma do sistema Android foi mantido" } diff --git a/src/i18n/ru.json b/src/i18n/ru.json index c70c2334..46b0260a 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -858,5 +858,7 @@ ":选": ": выберите", ";匹配不上就不生效。": "; без совпадения не применяется.", ";已生成驱动,下次开机会自动套用": "; драйвер создан и будет автоматически применён при следующем запуске", - ";询问是否使用 GPT 时选": "; когда спросят, использовать ли GPT, выберите" + ";询问是否使用 GPT 时选": "; когда спросят, использовать ли GPT, выберите", + "界面语言已切换": "Язык интерфейса изменён", + "已立即生效;安卓系统语言不受影响": "Изменение применено; язык системы Android не изменился" } diff --git a/src/locales/en.json b/src/locales/en.json new file mode 100644 index 00000000..a795dd1f --- /dev/null +++ b/src/locales/en.json @@ -0,0 +1,1385 @@ +{ + "m0000": "Just now", + "m0001": "{0} min ago", + "m0002": "{0} h ago", + "m0003": "{0} days ago", + "m0004": "First use: open Settings → Runtime → Set up automatically, then install your apps.", + "m0005": "Tip: all apps share one Android runtime, so the next app starts almost instantly.", + "m0006": "", + "m0007": "Running", + "m0008": "Bring to front", + "m0009": "Open", + "m0010": "{0} apps", + "m0011": "No apps installed", + "m0012": "Runtime not set up — open Settings → Runtime to set it up automatically", + "m0013": "Setup required", + "m0014": "Runtime ready · Android {0}{1}", + "m0015": " · App windows enabled", + "m0016": "Booting Android…", + "m0017": "Booting", + "m0018": "Hardware acceleration unavailable: using software emulation (first boot may take longer)", + "m0019": "Software emulation", + "m0020": "Android 14 universal image missing — download it in Settings → Runtime (about 1.5 GB, once)", + "m0021": "Image download required", + "m0022": "Runtime engine not installed — open Settings → Runtime for automatic setup", + "m0024": "Runtime ready — install an APK or double-click a desktop shortcut to start", + "m0025": "Ready to start", + "m0026": "Installer running — complete installation in the virtual machine window", + "m0027": "Installing", + "m0028": "Runtime on standby (starts automatically when installing or opening an app)", + "m0029": "Android not installed yet — continue in Settings → Runtime", + "m0030": "Standby", + "m0031": "Installation required", + "m0032": "Status check failed: {0}", + "m0033": "Engine", + "m0034": "System image", + "m0035": "Ready · Android {0}", + "m0037": "Components ready · Starts when you open an app", + "m0038": "Missing {0}{1}", + "m0039": " (no hardware acceleration; software emulation will be used)", + "m0040": "adb tools", + "m0041": "Android runtime", + "m0043": "Everything is ready", + "m0044": "Set up automatically", + "m0045": "Completed automatically", + "m0046": "Automatic", + "m0047": "Android {0} ready · App windows adapt to your screen", + "m0049": "Components ready. Double-click an APK or desktop shortcut to start.", + "m0050": "Still missing {0}. Click “Set up automatically” below to install and start in the background.", + "m0051": "", + "m0052": "Preparing…", + "m0053": "Completed · Click to check again", + "m0055": "Last startup failed: {0}", + "m0056": "Last startup diagnosis: {0}", + "m0057": "Fully automatic: no image, acceleration or memory setup needed", + "m0058": "Setup failed", + "m0059": "Check your connection and try again", + "m0060": "Components ready. Starting automatically…", + "m0061": "First boot takes about 1–3 minutes; later starts take a few seconds.", + "m0062": "Runtime ready", + "m0063": "Drop an APK into the window or double-click a desktop shortcut.", + "m0064": "Startup incomplete", + "m0065": "Export a diagnostic report to investigate", + "m0067": "Setup already in progress", + "m0068": "Installing hardware acceleration driver…", + "m0069": "Click “Yes” in the permission prompt", + "m0070": "Hardware acceleration enabled", + "m0071": "Acceleration not enabled", + "m0072": "Unknown step", + "m0073": "Could not start the installation environment", + "m0074": "Virtual machine window opened", + "m0075": "Follow the six steps below, then click “Installation complete”.", + "m0076": "Installation complete; runtime connected", + "m0077": "You can now drop an APK here to install it.", + "m0078": "Unknown error", + "m0079": "{0}\nAndroid data partition is full: open Settings → Performance and resources, increase the partition size and click “Expand now”.", + "m0080": "{0}\nThis package contains only ARM libraries. Switching to a compatible image and retrying.", + "m0081": "{0}\nThe package name matches an installed app but its signature differs. Uninstall the app from its context menu, then try again.", + "m0082": "{0}\nA newer version is installed. Uninstall it from the context menu first.", + "m0083": "{0}\nThe package is too large or memory is insufficient. Check available disk space and memory, then retry;", + "m0084": "if it still fails, use a short ASCII-only path (for example D:\\a.apk).", + "m0085": "Installation already in progress", + "m0086": "Wait for the current installation to finish.", + "m0087": "Installing {0}", + "m0088": "Reading APK…", + "m0091": "{0} installed", + "m0092": "Desktop shortcut created. Double-click it to open the app.", + "m0093": "Create a desktop shortcut from the app’s context menu.", + "m0094": "{0}: compatibility notice", + "m0095": "Opening {0}", + "m0096": "The first launch needs to warm up the runtime. Please wait…", + "m0097": "Started", + "m0098": "The app is running in its own window (rotate using the top bar).", + "m0099": "Startup failed", + "m0100": "Desktop shortcut created", + "m0101": "Could not create shortcut", + "m0102": "Uninstall “{0}”?\n\nIts app data and desktop shortcut will also be removed.", + "m0103": "Uninstalled", + "m0104": "Uninstall failed", + "m0105": "Open app", + "m0106": "Create desktop shortcut", + "m0107": "Pin to top", + "m0108": "Show APK in folder", + "m0109": "Clear app data", + "m0110": "Uninstall", + "m0111": "Unpin", + "m0113": "Clear all data for “{0}”? This cannot be undone.", + "m0114": "Data cleared", + "m0115": "Could not clear data", + "m0116": "Reading…", + "m0117": "Runtime not ready ({0})", + "m0118": "Runtime not running", + "m0119": "Wi-Fi on", + "m0120": "Wi-Fi off", + "m0121": "{0} · Volume {1}%", + "m0122": " · Airplane mode", + "m0123": "Applied", + "m0124": "Failed: {0}", + "m0125": "Runtime not ready", + "m0126": "Wi-Fi enabled", + "m0127": "Wi-Fi disabled", + "m0128": "Airplane mode enabled", + "m0129": "Airplane mode disabled", + "m0130": "System animations enabled", + "m0131": "System animations disabled for faster navigation", + "m0132": "Font size updated", + "m0133": "Display size updated", + "m0134": "Volume updated", + "m0135": "Optimized: animations off, background limit relaxed, battery exemption enabled", + "m0136": "Optimization failed; runtime may not be running", + "m0137": "Open an app first to start the runtime", + "m0138": "Could not read data partition information", + "m0139": "Not created yet", + "m0140": "Unknown", + "m0141": "Current data image: {0}{1} · Free space on its drive: {2}.", + "m0142": " (automatic)", + "m0143": "If a game reports insufficient storage, increase this value and click “Expand now”. Expansion preserves installed apps and saved games.", + "m0144": "Associated · Click to disable", + "m0145": "Not associated · Click to enable", + "m0146": "Automatic mode", + "m0147": "Total {0}{1}", + "m0148": " · Reclaimable {0} ({1} items)", + "m0149": " · Already optimized", + "m0150": "Statistics unavailable", + "m0152": "Check failed: {0}", + "m0153": "Network unavailable", + "m0154": "Open download page", + "m0155": " (offline cache; may be outdated)", + "m0156": "New version {0}{1}{2}{3}", + "m0157": "; {0} unreachable", + "m0158": "Update now", + "m0160": "Release notes:\n{0}", + "m0161": " (offline cache)", + "m0162": "Up to date (v{0}){1}{2}", + "m0163": " · via {0}", + "m0164": "Update failed: {0}", + "m0165": "Update failed", + "m0166": "Updating…", + "m0167": "Checking…", + "m0168": "Connecting to GitHub…", + "m0169": "New version {0}", + "m0170": "Click “Update now” to download and install automatically", + "m0171": "Up to date", + "m0173": "Updating…", + "m0177": "Downloaded v{0}. Restarting to finish installation…", + "m0178": "Resource policy updated", + "m0179": "Applies the next time you open an app", + "m0180": "Select a capacity first", + "m0181": "“Automatic” chooses a size based on free disk space; no manual expansion needed", + "m0182": "Expand the Android data partition now?", + "m0183": "Resize /data to {0} GB in place, preserving installed apps and saved games.", + "m0184": "Running Android apps must close first. The next launch will boot Android again and take a little longer.", + "m0185": "Start expansion", + "m0186": "Expanding…", + "m0187": "Data partition expanded", + "m0188": "Expansion failed", + "m0189": "About {0} GB now available", + "m0191": "System components restored", + "m0192": "Deep trimming disabled; restoring background packages", + "m0193": "ARM compatibility mode enabled", + "m0194": "Download the Google Play compatibility image (Android 14, about 1.5 GB) using the button below", + "m0196": "Applies after restarting the runtime", + "m0197": "Switched to fullscreen", + "m0198": "Switched to portrait window", + "m0199": "Display size updated", + "m0200": "Applies when opening or switching apps", + "m0201": "Missing shortcuts restored", + "m0202": "All shortcuts already exist", + "m0203": "Desktop and Start menu shortcuts are available", + "m0204": "Diagnostic report exported", + "m0205": "Export failed", + "m0206": "Already optimized", + "m0207": "No old images or snapshots to reclaim.", + "m0208": "Cleanup complete", + "m0209": "Freed about {0} MB ({1} items). Installed apps were preserved.", + "m0210": "Total {0} · Reclaimable {1} ({2} items)", + "m0211": "Cleanup failed", + "m0212": "Reset Android data?", + "m0213": "This restores Android to a clean installation:", + "m0214": "• Deletes all third-party apps (including games), their data and login sessions\n", + "m0215": "• Deletes the current AVD’s Quick Boot snapshot\n", + "m0216": "• Preserves the system image; data is recreated on the next cold boot\n\n", + "m0217": "This cannot be undone. Continue?", + "m0218": "Cancel", + "m0219": "Continue", + "m0220": "Confirm once more", + "m0221": "Installed apps and their data will be permanently deleted. Reset now?", + "m0222": "The system image, other AVDs, local APK cache and icons are preserved.", + "m0224": "Confirm reset", + "m0225": "Reset failed", + "m0226": "Please try again", + "m0227": "Android data reset", + "m0228": "Freed about {0} MB. Installed app records were cleared.", + "m0231": "Repair the virtual machine’s network?", + "m0232": "Blank pages or endless loading in apps often mean the Android virtual machine has no network connection.", + "m0233": "The repair tries these steps, from least to most disruptive:\n\n", + "m0234": "1. Cold boot without loading a snapshot and wait for connectivity — preserves all data\n", + "m0235": "2. Only if needed, resets Android data — keeps the app list and reinstalls apps when opened,\n", + "m0236": " but app login sessions, viewing history and other app data will be lost\n\n", + "m0237": "Only the current AVD is affected. The system image and local APK cache are preserved. This takes about 1–5 minutes. Continue?", + "m0239": "Start repair", + "m0240": "Network still unavailable", + "m0241": "The virtual machine still has no network after the reset. Check the host connection and firewall.", + "m0242": "Network restored", + "m0243": "Connected", + "m0244": " (Android data was reset; apps will reinstall when opened)", + "m0245": " (your data was preserved)", + "m0246": "Repair failed", + "m0247": "Scan failed", + "m0249": "Nothing to clean", + "m0250": "No files left over from old versions.", + "m0251": "…and {0} more items", + "m0252": "Clean up old version files?", + "m0253": "Found {0} items, about {1} MB:", + "m0254": "{0}\n\nOnly old program directories, invalid uninstall entries and temporary update files will be deleted.", + "m0255": "The running version and your app data will be preserved.", + "m0257": "Start cleanup", + "m0260": "; {0} items in use were skipped", + "m0261": "Old version files cleaned up", + "m0262": "Deleted {0} items, freeing {1} MB{2}.", + "m0265": "Shortcuts rebuilt", + "m0266": "All shortcuts exist", + "m0267": "No shortcuts need rebuilding", + "m0268": "New directory selected", + "m0269": "Click “Save and migrate” to move existing files", + "m0270": "Enter or browse for a directory first", + "m0271": "Shared directory updated", + "m0272": "Existing files were moved to the new directory", + "m0273": "Saved", + "m0274": "Save failed", + "m0275": "Uninstall ApkStart?\n\nThis removes the .apk file association and the program. This cannot be undone.", + "m0276": "The portable version cannot uninstall automatically", + "m0277": "Manually delete the program directory ({0}) and data directory ({1})", + "m0279": "Uninstalling…", + "m0280": "Uninstaller started. ApkStart will close shortly.", + "m0281": "Starting ARM compatibility image download", + "m0283": "Download ARM compatibility image", + "m0284": "ARM compatibility image ready", + "m0286": "Compatibility image download failed", + "m0291": "Ready ({0} GB)", + "m0292": "Not downloaded", + "m0293": "Data directory updated", + "m0294": "Restart ApkStart to apply (existing data is not moved automatically)", + "m0295": "Android data directory updated", + "m0296": "Restart ApkStart to apply. You can move the entire apkstart.avd folder to the new directory, then delete the old copy.", + "m0297": "Detecting…", + "m0298": "No running runtime found", + "m0299": "Found: {0}", + "m0300": "Starting…", + "m0301": "Ready: {0}", + "m0302": "Startup failed: {0}", + "m0303": "Built-in virtual machine stopped", + "m0305": ".apk association disabled", + "m0307": ".apk association enabled", + "m0308": "Double-clicking an APK now installs it in ApkStart", + "m0309": "Operation failed", + "m0310": "System image imported", + "m0311": "Import failed", + "m0312": "Virtual disk imported", + "m0313": "You can now start the runtime", + "m0315": "Starting runtime…", + "m0316": "The first launch needs to boot Android", + "m0319": "Runtime session ended", + "m0320": "Shared directory synchronized", + "m0321": "Sync failed", + "m0322": "Synchronization is skipped when the runtime is not ready", + "m0323": "Only .apk files can be dropped here", + "m0324": "Installation failed: {0}", + "m0325": "Installation failed", + "m0327": "Good night", + "m0328": "Good morning", + "m0329": "Good afternoon", + "m0330": "Good afternoon", + "m0331": "Good evening", + "m0332": "{0}, welcome back", + "m0333": "Runtime ready — open an app to begin", + "m0334": "Runtime will be prepared automatically as needed", + "m0335": "Installed apps", + "m0336": "Ready", + "m0337": "Standby", + "m0338": "Android runtime", + "m0339": "Device / port", + "m0340": "New version {0} available. Update in Settings → Software updates.", + "m0341": "Drop an APK into the window to install it and automatically create a desktop shortcut", + "m0342": "Double-click an app card to open its own window; rotate, resize or close it from the top right", + "m0343": "Closing a window closes only that app; Android stays ready for a faster next launch", + "m0344": "{0} issues to fix", + "m0345": "{0} notices", + "m0346": "\n
\n \n Environment check passed. No problems affecting operation were found.\n \n \n
", + "m0347": "\n
\n Environment check\n {0}\n {1}\n \n \n \n
\n
\n {2}\n
", + "m0348": "{0} critical", + "m0349": "{0} notices", + "m0350": "", + "m0351": "Bundled installer not found", + "m0352": "Microsoft’s official download page is open. Download the x64 version.", + "m0353": "VC++ runtime installed", + "m0354": "Installation incomplete", + "m0356": "Enabling hardware acceleration…", + "m0357": "Click “Yes” in the prompt", + "m0359": "Restart your computer for the best performance", + "m0360": "Could not enable", + "m0365": "Freed about {0} MB", + "m0366": "Use a path with ASCII characters only", + "m0367": "Change “Runtime data directory” in Settings → System integration, then restart ApkStart.", + "m0368": "Installing missing runtime components…", + "m0369": "Leftover lock files removed", + "m0371": "Automatic repair is not supported yet", + "m0372": "Initialization failed", + "m0373": "App", + "m0374": "Starting Android runtime…", + "m0375": "Downloading runtime from GitHub…", + "m0376": "Runtime bundle incomplete. Fetching missing components from official sources…", + "m0377": "GitHub runtime unavailable ({0}). Using official sources…", + "m0378": "Preparing adb…", + "m0379": "Preparing Android runtime…", + "m0380": "Preparing Android system image…", + "m0381": "Could not start PowerShell", + "m0382": "ApkStart is still running in the background", + "m0383": "Click the tray icon to reopen; right-click it to quit.", + "m0384": "Open ApkStart", + "m0385": "No apps installed yet", + "m0386": "Switch to portrait window", + "m0387": "Fullscreen (fit to screen)", + "m0388": "Rebuild desktop / Start menu shortcuts", + "m0389": "Synchronize shared directory", + "m0390": "Settings", + "m0392": "Check for updates", + "m0393": "New version available", + "m0394": "ApkStart {0} is available; your current version is v{1}. Update now?", + "m0396": "Later", + "m0398": "Quit", + "m0399": "ApkStart — Android app launcher", + "m0400": "This APK is already being installed. Please wait…", + "m0401": "Installation in progress", + "m0402": "Another installation is in progress. Wait for it to finish.", + "m0404": "Installation complete", + "m0405": "{0} installed{1}", + "m0406": "; desktop shortcut created", + "m0408": "Update in progress", + "m0409": "Already up to date", + "m0410": "This release has no installable package. The GitHub release page has been opened.", + "m0411": "Preparing download…", + "m0412": "Replacing program files and restarting…", + "m0414": "Opening app…", + "m0416": "Select data directory", + "m0417": "Select APK to install", + "m0418": "Android apps", + "m0419": "App not found", + "m0420": "Directory cannot be empty", + "m0421": "VC++ runtime missing (x64)", + "m0422": "Android requires Microsoft VC++ 2015–2022. Without it the emulator may fail to start (0xc0000135).", + "m0423": "Hardware acceleration disabled", + "m0424": "Software emulation will be used (functional but slow). Enable virtualization for the best performance.", + "m0425": "Runtime drive low on space", + "m0426": "The drive containing “{0}” has only {1} MB free. Runtime components and images may fill it.", + "m0427": "Runtime directory contains non-ASCII characters", + "m0428": "Some runtime components cannot handle non-ASCII paths and may fail to start. Use a path with ASCII characters only.", + "m0429": "adb tools missing", + "m0430": "Cannot connect to the Android runtime.", + "m0431": "Runtime engine not installed", + "m0432": "Set up the runtime engine first (about 440 MB).", + "m0433": "System image not ready", + "m0434": "Download the Android system image first (about 1.5 GB).", + "m0435": "Lock files from the previous session found", + "m0436": "These may cause the next launch to report that the AVD is already in use.", + "m0437": "Confirm", + "m0439": "OK", + "m0440": "Data partition resized", + "m0441": "About {0} GB available in Android{1}", + "m0442": " (runtime restarted)", + "m0444": "Clean {0} items", + "m0445": "Confirm runtime cache cleanup", + "m0446": "About {0} MB will be freed", + "m0447": "The runtime will stop before deleting old images, the current AVD’s Quick Boot snapshot, lock files and inactive AVD caches. Installed apps are preserved (only snapshots are removed).", + "m0448": "Only old images, old snapshots, lock files and inactive AVD caches are deleted. Installed apps are preserved.", + "m0449": "This cannot be undone. Export a diagnostic report first if needed.", + "m0450": "AEHD driver package not ready", + "m0451": "Administrator permission canceled (click “Yes” to install the driver)", + "m0452": "Driver installation failed (exit code {0})", + "m0453": "Hardware acceleration already available; no action needed", + "m0454": "Virtual Machine Platform enabled. Restart your computer for best performance.", + "m0455": "Virtual Machine Platform enabled; hardware acceleration is active", + "m0456": "Could not enable system virtualization", + "m0457": "Could not prepare AEHD driver package", + "m0460": "AEHD hardware acceleration enabled", + "m0461": "Select an Android-x86 / Bliss OS system image", + "m0463": "Select a virtual disk with Android installed", + "m0464": "Virtual disk", + "m0465": "Unknown setting {0}", + "m0466": "agent scope is empty: leaving all windows untouched to avoid affecting other software", + "m0467": "Not enough disk space", + "m0468": "Only {0} GB left. Move Android data / runtime to another drive in Settings → System integration, or free disk space first.", + "m0469": "Only {0} GB free; Android may not start (change drives in Settings → System integration)", + "m0470": "Missing shortcuts restored", + "m0471": "Runtime setup completed automatically", + "m0472": "[smoke] Screenshot failed", + "m0473": "Runtime disconnected", + "m0475": "Search installed apps", + "m0476": "Install APK", + "m0477": "Drop an APK here to install", + "m0478": "Installation automatically creates a desktop shortcut. Double-click it to run the app in its own window, like any Windows program.", + "m0479": "When .apk association is enabled, double-clicking an APK in File Explorer also installs it in ApkStart.", + "m0480": "Choose APK files", + "m0481": "Checking runtime…", + "m0482": "Hello", + "m0483": "ApkStart is ready", + "m0484": "Do not show automatically at startup", + "m0485": "Open settings", + "m0486": "Get started", + "m0487": "Release to install", + "m0488": "Supports one or more .apk files", + "m0490": "Runtime and environment", + "m0491": "Runtime status", + "m0492": "Checking…", + "m0494": "Advanced: connect to an existing runtime", + "m0496": "Install Android on a virtual disk", + "m0497": "The virtual machine window is open. Complete these six steps once; ApkStart will then boot from the disk without the installation image.", + "m0498": "Boot menu", + "m0499": ": use", + "m0500": "to select", + "m0501": ", then press Enter", + "m0502": ": select", + "m0503": "; select this when asked about GPT:", + "m0504": "cfdisk partitioning", + "m0505": "→ press Enter for the default size →", + "m0506": "→ type", + "m0507": "Format", + "m0509": "→ when asked to format, select", + "m0510": "Bootloader and system", + "m0511": "select", + "m0513": "Done", + "m0514": ": when progress reaches 100%, click “Installation complete” below (ApkStart restarts and connects automatically)", + "m0515": "If adb is disconnected afterward, press", + "m0516": "in the virtual machine to open a terminal, then run", + "m0517": ", then press", + "m0518": "to return to the graphical interface.", + "m0519": "Installation complete", + "m0520": "Later", + "m0521": "Automatic mode (default; no setup needed)", + "m0522": "Settings adapted to this computer", + "m0523": "Detecting…", + "m0524": "Memory, CPU cores, graphics backend, ports and acceleration are selected automatically. Startup failures trigger fallback attempts without manual changes.", + "m0525": "Total disk usage (runtime + Android data + cache)", + "m0526": "Calculating…", + "m0527": "Clean reclaimable files", + "m0528": "Find and remove old program directories, invalid uninstall entries and temporary update files", + "m0529": "Clean up old versions", + "m0530": "Repair network problems in the Android virtual machine. This may reset Android data; the app list is preserved and apps reinstall when opened.", + "m0531": "Repair network", + "m0532": "Delete Android /data, installed apps and Quick Boot snapshots to restore a clean system", + "m0533": "Reset Android data", + "m0534": "Also delete the current AVD’s Quick Boot snapshot (stops the runtime first and can free several GB)", + "m0535": "The system image is shared and app data uses differencing layers. Old images, snapshots, logs and lock files can be reclaimed. Logs rotate automatically. Resetting Android data deletes user data and preserves only the system.", + "m0536": "Export diagnostic report", + "m0537": "Rebuild shortcuts", + "m0538": "Reports help troubleshoot problems; rebuilding restores desktop and Start menu shortcuts", + "m0539": "Start with Windows (enabled by default)", + "m0540": "Stay in the tray after Windows sign-in so desktop shortcuts can open apps without starting ApkStart manually.", + "m0541": "App windows", + "m0542": "Display mode", + "m0543": "Portrait window (resizable; remembers each app’s size)", + "m0544": "Fullscreen (fits the screen with the phone’s aspect ratio)", + "m0545": "Press", + "m0546": "or use the tray context menu to switch. Fullscreen preserves the aspect ratio and does not restart the app.", + "m0547": "Portrait rendering size", + "m0548": "Small · 720 × 1280", + "m0549": "Medium · 900 × 1600", + "m0550": "Large · 1080 × 1920", + "m0551": "Extra large · 1440 × 2560", + "m0552": "Drag the window border to resize. This setting changes Android’s internal resolution; lower values use fewer resources.", + "m0553": "Mouse controls", + "m0554": "Left button · Confirm / tap", + "m0555": "The emulator maps left-click to a finger tap and click-drag to swiping. No extra setup needed.", + "m0556": "Right button · Android Back", + "m0557": "By default the emulator also treats right-click as a tap. Enable this to make it go Back without triggering a tap.", + "m0558": "Mouse wheel · Swipe", + "m0559": "Smooth (recommended) · Combine wheel events into one swipe", + "m0560": "Native · Let the emulator handle each step", + "m0561": "Off · Do not intercept the wheel", + "m0562": "Smooth mode combines nearby wheel events into one swipe, avoiding stuttering and an adb process for each step.", + "m0563": "Side buttons · Back / forward (off by default)", + "m0564": "Side buttons require a global mouse hook, installed only while an ApkStart app window is in the foreground and removed when focus is lost or the window closes.", + "m0565": "These mappings apply only in app windows. Switching to the desktop or closing the window restores normal Windows mouse behavior.", + "m0566": "Performance and resources", + "m0567": "Resource policy", + "m0568": "Save resources · 2 cores / lower priority / 540p", + "m0569": "Balanced · Half the physical cores / lower priority / 720p (recommended)", + "m0570": "Smooth · All cores / foreground priority (video, games)", + "m0571": "Controls CPU use and picture quality. Choose Smooth for stuttering video or games, or Save resources for lightweight background apps. Applies next time an app opens.", + "m0572": "Picture quality (Android rendering resolution)", + "m0573": "Automatic (based on acceleration)", + "m0574": "Smooth · 540 × 960", + "m0575": "Balanced · 720 × 1280", + "m0576": "HD · 1080 × 1920", + "m0577": "Android data partition (apps and games)", + "m0579": "Expand now", + "m0580": "Expansion preserves installed apps and saved games. The next app launch takes a little longer.", + "m0581": "Reading data partition…", + "m0582": "Network acceleration (recommended)", + "m0583": "Use public DNS servers in China (Alibaba / Tencent) for Android. Host DNS may be slow with VPNs or corporate networks. Disable this if internal domains stop working.", + "m0584": "Android audio", + "m0585": "Play app notifications and video audio. Disable only if you need no sound and want to reduce CPU use.", + "m0586": "Keep Quick Boot snapshot (recommended)", + "m0587": "Subsequent launches take seconds, at the cost of about 2–3 GB on disk for", + "m0588": ". Disable if disk space is low; this affects startup speed, not apps or saved games.", + "m0589": "Container details (advanced)", + "m0590": "Lightweight container", + "m0591": "Limit vCPU allocation and lower process priority to favor the Windows desktop. Resource policy already manages this setting.", + "m0592": "Virtual machine priority", + "m0593": "Balanced (recommended) · Favor the foreground window", + "m0594": "Performance · Same priority as the foreground", + "m0595": "When no app window is open, the container automatically parks at the lowest priority.", + "m0596": "Deep background trimming", + "m0597": "Disable extra background packages such as Play Store, setup wizard and printing services. Disable this setting to restore them if an app reports missing Google Play services.", + "m0598": "Warm up at startup (recommended)", + "m0599": "Boot Android in the background when ApkStart starts, keeping the emulator hidden. Apps then open much faster, at the cost of about 1 GB of idle memory. Disable to cold-boot on the first launch.", + "m0600": "Android boots once and stays ready. Opening another app starts only that app and stops other app processes. Closing the last window clears background processes and parks the container.", + "m0601": "Download and update sources", + "m0602": "Update and download source", + "m0603": "Automatically choose the faster source (recommended)", + "m0604": "Gitee only (usually faster in China)", + "m0605": "GitHub only", + "m0606": "Automatic mode checks GitHub and Gitee, tests each download URL with a 256 KB sample and uses the fastest. An unavailable source does not prevent updates.", + "m0607": "Try public download mirrors automatically", + "m0608": "If GitHub is slow, also test ghfast.top / gh-proxy.com. These third-party services forward public release files without account information. Disable to use direct downloads and your custom prefix only.", + "m0609": "Mirror prefix (optional, speeds up GitHub)", + "m0610": "For example https://ghfast.top/", + "m0611": "If set, only this prefix is used instead of the public mirrors above. Leave blank for automatic selection. The prefix is prepended to the actual download URL.", + "m0612": "Download connections (1–16, default 8)", + "m0613": "Large files download in parallel chunks. Eight connections usually suffice; try sixteen on a stable connection.", + "m0614": "Gitee update source (optional)", + "m0615": "Read-only Gitee token (usually unnecessary)", + "m0616": "Leave blank: public repositories allow anonymous access", + "m0617": "This public repository’s Gitee release list can be read anonymously. A token is needed only for rate limits (403/429) or private branches: gitee.com → Settings → Personal access tokens, with “projects” only. It is used only to read releases; nothing is uploaded.", + "m0618": "Advanced settings (usually no changes needed)", + "m0619": "Runtime", + "m0620": "Engine mode", + "m0621": "Built-in runtime (recommended, QEMU + Android-x86)", + "m0622": "Connect to existing runtime (advanced: WSA / other emulator adb port)", + "m0623": "adb path", + "m0624": "Leave blank to search PATH / Android SDK automatically", + "m0625": "Device address", + "m0626": "Detect", + "m0627": "System image (ISO)", + "m0628": "Android-x86 / Bliss OS ISO or IMG path; leave blank for default", + "m0629": "Memory (MB, 0 = automatic)", + "m0630": "CPU cores (0 = automatic)", + "m0631": "Idle shutdown (minutes, 0 = disabled)", + "m0632": "Universal compatibility image (managed automatically)", + "m0633": "A single Android 14 universal image supports x86 and ARM apps and downloads automatically when first needed. This switch remains only for older settings.", + "m0634": "Compatibility image", + "m0636": "Download compatibility image", + "m0637": "Start runtime", + "m0638": "Stop built-in virtual machine", + "m0639": "Android settings (without opening the Android desktop)", + "m0642": "Refresh", + "m0643": "Optimize performance", + "m0644": "Disable animations, relax background process limits and exempt the current app from battery optimization. Most noticeable on low-end computers.", + "m0645": "Wi-Fi inside the Android virtual machine; turn off to reduce CPU use.", + "m0646": "Airplane mode", + "m0647": "Disconnect all networks, including mobile data.", + "m0648": "System animations", + "m0649": "Disable for faster transitions without affecting functionality.", + "m0650": "Media volume", + "m0651": "Font size", + "m0652": "Small", + "m0653": "Standard", + "m0654": "Large", + "m0655": "Extra large", + "m0656": "Display size", + "m0657": "Compact (uses fewer resources)", + "m0659": "Spacious", + "m0661": "Native Android settings", + "m0662": "Display settings", + "m0663": "Sound settings", + "m0664": "Language settings", + "m0665": "Manage apps", + "m0666": "Desktop and apps", + "m0667": "Create desktop shortcuts after installation", + "m0668": "Shortcuts use real app icons and open apps directly", + "m0669": "Also add to the Start menu", + "m0670": "Find apps in Windows Search; taskbar windows are grouped by app", + "m0671": "Shortcut directory", + "m0672": "Leave blank = desktop", + "m0674": "Restore shortcuts using the current settings if icons were accidentally deleted or blocked by security software.", + "m0675": "File sharing", + "m0676": "Shared directory on this computer", + "m0677": "Browse", + "m0679": "Sync now", + "m0680": "Save and migrate", + "m0681": "Existing files are moved from the old directory automatically; ongoing sharing is not interrupted.", + "m0682": "Corresponding Android directory", + "m0683": "Both directories stay synchronized in both directions. Files saved there by Android apps appear in the shared directory on this computer.", + "m0684": "System integration", + "m0685": "Associate .apk files", + "m0686": "Double-click APKs to install in ApkStart (current user only; no administrator needed)", + "m0688": "Runtime data directory (images · apps · snapshots)", + "m0689": "Default: user data directory on C:", + "m0692": "This uses several GB. Moving it off the system drive can free space on C:. Restart after changing. Existing data is not moved automatically; copy it manually before removing the old copy.", + "m0693": "Android data directory (apps, games and Quick Boot snapshots)", + "m0694": "Default: avd folder inside the runtime directory", + "m0697": "The main disk usage is the data partition (default 6 GB, expandable above) and Quick Boot snapshots (about 2–3 GB). Select another drive, such as D:, and restart to apply. The old", + "m0698": "folder can be moved in full before deleting the old copy.", + "m0699": "Uninstall ApkStart", + "m0700": "Uninstall", + "m0701": "Uninstalling removes the .apk association and the program. For portable versions, follow the instructions to delete the directory manually.", + "m0702": "Software updates", + "m0703": "Current version", + "m0704": "Not checked yet", + "m0707": "Get the latest release from GitHub (RoutineMiku/apkstart). The lightweight version downloads a portable package and replaces program files automatically, preserving the runtime, installed apps and snapshots.", + "m0708": "About", + "m0709": "WeChat official account QR code", + "m0710": "Scan to follow on WeChat", + "m0711": "Douyin QR code", + "m0712": "Douyin · Daily MIKU", + "m0713": "Android app launcher for Windows: APK installation, desktop shortcuts, individual app windows and two-way file sharing.", + "m0714": "Douyin · @Daily MIKU (contact the author)", + "m0715": "Changes apply immediately", + "m0718": "Landscape / portrait (Ctrl+R)", + "m0719": "Minimize", + "m0720": "Maximize", + "m0721": "Close", + "settings.language": "Language", + "settings.systemLanguage": "System language", + "settings.languageNote": "The interface language changes immediately. Android system language is unchanged.", + "profile.summary": "Automatic: {0} GB RAM · {1} cores · {2} graphics · {3} · {4}{5} · Port {6}", + "profile.accelerated": "Hardware acceleration", + "profile.snapshot": "On-demand snapshots", + "profile.coldBoot": "Cold boot", + "profile.lite": " · Lightweight container", + "settings.gamePriority": "Gaming / low latency · High runtime priority for FPS and rhythm games", + "settings.gamePriorityNote": "Gaming mode raises the Android virtual machine’s CPU priority and reduces host polling for lower input and display latency. Other programs may slow down. With no app window open, the container still automatically lowers its priority and parks.", + "display.restartingLandscape": "Switching to landscape: restarting Android runtime…", + "display.restartingPortrait": "Switching to portrait: restarting Android runtime…", + "v058.m0000": "Switching “{0}” to {1} (restarting Android, about 40 seconds, once)…", + "v058.m0001": "landscape", + "v058.m0002": "portrait", + "v058.m0003": "autoDeploy cooling down (last failed at {0}); skipping automatic retry", + "v058.m0004": "Skipping autoDeploy: runtime is bundled ({0}); no network needed", + "v058.m0005": "; the image will be extracted locally on first launch", + "v058.m0006": "Skipping network autoDeploy: bundled runtime directory ({0}); using diagnostics", + "v058.m0007": "The Store edition cannot elevate itself. Enable this manually once: ", + "v058.m0008": "Press Win+R → enter optionalfeatures → enable “Windows Hypervisor Platform”", + "v058.m0009": " (HypervisorPlatform, required by WHPX), then confirm and restart your computer.", + "v058.m0010": "Close current app ({0})", + "v058.m0011": "Close current app", + "v058.m0012": "Switch to portrait (runtime restart required)", + "v058.m0013": "Switch to landscape (runtime restart required)", + "v058.m0014": "Store edition updates are managed by Microsoft Store. Downloads and updates opened.", + "v058.m0015": "launch queued {0} (waiting for {1} to start)", + "v058.m0016": "app up (early display attachment)", + "v058.m0017": "orientation mismatch (panel={0}, want={1}); restarting to correct", + "v058.m0018": "Switching to landscape…", + "v058.m0019": "Switching to portrait…", + "v058.m0020": "Running with software emulation (very slow)", + "v058.m0021": "Enable Windows Hypervisor Platform and restart once for up to 5–10× faster performance.", + "v058.m0022": "Settings → Environment check → Fix opens that window.", + "v058.m0023": "Settings → Environment check → Fix can enable it (administrator permission required); restart afterward.", + "v058.m0024": "No app is running", + "v058.m0025": "Preflight automatic configuration: {0} driver={1}", + "v058.m0026": "(not saved)", + "v058.m0027": "Select a driver file (.json)", + "v058.m0028": "Driver JSON", + "v058.m0029": "Driver imported: {0} v{1}", + "v058.m0030": "Export a driver template for this computer", + "v058.m0032": "Driver ID missing", + "v058.m0033": "Windows Hypervisor Platform must be enabled", + "v058.m0034": "Without it, software emulation may take several minutes to boot.", + "v058.m0035": " (The Store edition cannot request administrator permission for you. Enable it manually and restart.)", + "v058.m0036": "Falling back to software emulation (functional but very slow).", + "v058.m0037": "Click “Fix” on the right to enable automatically (administrator permission required; a restart may be needed); ", + "v058.m0038": "if that fails, the AEHD driver will be tried instead.", + "v058.m0039": "Runtime not ready; resource allocation is unavailable", + "v058.m0040": "Invalid target capacity", + "v058.m0041": "Windows Hypervisor Platform was requested. Hardware acceleration takes effect after restarting your computer.", + "v058.m0042": "Windows Hypervisor Platform enabled; restart your computer to apply", + "v058.m0044": "Administrator permission canceled; hardware acceleration is unchanged. Click “Fix” again or enable Windows Hypervisor Platform manually.", + "v058.m0045": "Finishing the previous update…", + "v058.m0046": "\n
\n
\n \n
\n
Add app
\n
Drop an APK to install
\n
\n ", + "v058.m0047": "Hardware acceleration disabled: using software emulation (very slow). Open Environment check → Fix at the bottom right to enable it.", + "v058.m0048": "Network connected {0}", + "v058.m0049": "Virtual machine offline", + "v058.m0050": "Android is connected; apps can load online content", + "v058.m0051": "Android has no network connection; online pages may stay blank or fail. Open Settings → Repair network.", + "v058.m0052": "Close app", + "v058.m0053": "Key mapping…", + "v058.m0054": "Closed", + "v058.m0055": "Could not close", + "v058.m0057": "0. Clear current mapping", + "v058.m0058": "Choose a key mapping preset for “{0}”:\n\n{1}\n\nEnter its number:", + "v058.m0059": "Key mapping cleared", + "v058.m0060": "Invalid number", + "v058.m0061": "Applied “{0}”", + "v058.m0062": "{0} · Open the app to use keyboard controls", + "v058.m0063": "Could not save key mapping", + "v058.m0064": "Resource allocation information is unavailable", + "v058.m0065": "This computer: {0} RAM / {1} cores; ", + "v058.m0066": "Allocate up to {0} RAM and {1} cores (reserving 1/4 of RAM and one core for Windows).", + "v058.m0067": "Data partition limit: {0} GB{1}.", + "v058.m0068": " (drive has {0} GB free)", + "v058.m0069": "No preflight result returned. Please try again.", + "v058.m0070": "Processing…", + "v058.m0071": "Operation incomplete", + "v058.m0072": "Try again later or follow the manual instructions", + "v058.m0073": "Canceled", + "v058.m0074": "System settings were not changed", + "v058.m0075": "Hardware acceleration is already available", + "v058.m0076": "Changes submitted; restart required", + "v058.m0077": "Restart your computer to enable hardware acceleration, then click “Start check” to confirm", + "v058.m0078": "Click “Start check” to confirm the result", + "v058.m0079": "Automatic setup could not complete", + "v058.m0080": "Follow the manual instructions", + "v058.m0081": "{0}. Recommended: {1} GB RAM / ", + "v058.m0082": "{0} cores / {1} · Rendering {2}", + "v058.m0083": " (Store edition: enable system features manually in Windows Features)", + "v058.m0084": "Checking system…", + "v058.m0085": "Checking virtualization, graphics and memory… (about 2–3 seconds on first use)", + "v058.m0086": "System check failed", + "v058.m0087": "No hardware acceleration", + "v058.m0088": "This computer: {0}/{1} · {2} graphics · {3}", + "v058.m0089": " · emulator {0}; {1} drivers, {2} active on this computer.", + "v058.m0090": " {0} files could not load (see below).", + "v058.m0091": "Try again later", + "v058.m0092": "Built-in example", + "v058.m0093": " · Matches: {0}", + "v058.m0094": " · Does not match this computer", + "v058.m0095": "No drivers yet. Export a template to create one, or import a JSON file shared by someone else.", + "v058.m0096": "Driver list unavailable (runtime may not be set up yet)", + "v058.m0097": "Quick Boot differencing disk (actual size depends on runtime /data)", + "v058.m0098": "Actual filesystem {0} GB", + "v058.m0099": " Target {0} GB is not active yet: Android is using a Quick Boot differencing disk. Reset Android data to recreate /data at the new size (deletes installed apps).", + "v058.m0100": "Current data partition: {0}{1} · Free drive space: {2}.{3}", + "v058.m0101": "If a game reports insufficient storage, increase this size and click “Expand now”. Apps are preserved when in-place expansion is possible.", + "v058.m0102": "Apply failed", + "v058.m0104": "Configured for this computer", + "v058.m0105": "{0} GB RAM / {1} cores / {2}", + "v058.m0106": "; driver generated and applied automatically on next startup", + "v058.m0107": "Could not save driver", + "v058.m0108": "Could not open driver directory", + "v058.m0109": "Driver imported and enabled", + "v058.m0110": "Template exported", + "v058.m0111": "Edit effect, save it in the drivers directory and click “Refresh” to apply", + "v058.m0112": "System language updated", + "v058.m0113": "Applies after the next Android runtime restart", + "v058.m0114": "Chinese input method enabled", + "v058.m0115": "Chinese input method disabled", + "v058.m0117": "Android data reset required to expand", + "v058.m0118": "Android is using a Quick Boot differencing disk that cannot be expanded in place. Recreate /data to obtain {0} GB.", + "v058.m0119": "Recreating deletes installed apps and saved games (the emulator and image are preserved). Continue?", + "v058.m0120": "Clear and recreate", + "v058.m0121": "Recreating…", + "v058.m0122": "Recreated with the new size", + "v058.m0123": "Could not recreate", + "v058.m0124": "The next app launch will recreate /data at {0} GB (first boot takes a little longer)", + "v058.m0125": "Keyboard mapping enabled", + "v058.m0126": "Keyboard mapping disabled", + "v058.m0127": "Automatic fullscreen enabled", + "v058.m0128": "Automatic fullscreen disabled", + "v058.m0129": "Applies on next app launch", + "v058.m0130": "Set to follow app orientation", + "v058.m0131": "Landscape forced", + "v058.m0132": "Portrait forced", + "v058.m0133": "Next launch uses the app’s declared orientation and restarts the runtime once if the panel orientation differs.", + "v058.m0134": "Next launch restarts the runtime once to switch the panel to the selected orientation.", + "v058.m0135": "Tablet layout enabled", + "v058.m0136": "Tablet layout disabled", + "v058.m0137": "Applies on next launch (one runtime restart to change logical density).", + "v058.m0138": "Panel set to landscape", + "v058.m0139": "Panel set to portrait", + "v058.m0140": "Next launch restarts the runtime once to change physical panel orientation (about several seconds).", + "v058.m0141": "Switched to embedded mode", + "v058.m0142": "Switched to separate window mode", + "v058.m0143": "Applies next launch. In separate mode the emulator handles its own window, orientation and scaling.", + "v058.m0144": "Enable manually once (one-time setup)", + "v058.m0145": "Enable “Windows Hypervisor Platform” in the window that opens, confirm and restart your computer.", + "v058.m0147": "Administrator permission was not granted; hardware acceleration is unchanged.", + "v058.m0148": "First launch · Preparing locally (no network needed)", + "v058.m0149": "
  • Runtime components are bundled; no further downloads needed
  • ", + "v058.m0150": "
  • Extract the system image to user data (about one minute, once)
  • ", + "v058.m0151": "
  • Prepare hardware acceleration and Chinese input
  • ", + "v058.m0152": "
  • Then double-click an APK or desktop shortcut to open an app
  • ", + "v058.m0153": "简体中文", + "v058.m0154": " Memory, CPU cores, graphics, ports and acceleration are selected automatically, with fallback on startup failure. ApkStart uses ", + "v058.m0155": " a dedicated adb server port, 5044 ", + "v058.m0156": " (your system adb uses 5037), so running ", + "v058.m0157": " does not show this Android device. This isolation is intentional. To connect, set ", + "v058.m0158": " before running adb. Do not manually connect to port 5555 using ", + "v058.m0159": " , as that shows an “Allow USB debugging?” prompt over the running app. ", + "v058.m0160": "Automatic fullscreen", + "v058.m0161": "Off (use the display mode above)", + "v058.m0162": "On · Open every app in fullscreen", + "v058.m0163": "Apps open in fullscreen without pressing F11. Works best with landscape orientation, whose aspect ratio fits the screen without black borders.", + "v058.m0164": "Screen orientation", + "v058.m0165": "Follow app (recommended · Automatically fit portrait or landscape)", + "v058.m0166": "Force portrait (phone ratio, for short videos and reading)", + "v058.m0167": "Force landscape (wide screen, for videos and games)", + "v058.m0168": " Android orientation depends on the ", + "v058.m0169": " physical orientation of the virtual phone panel ", + "v058.m0170": " . If it differs from the app’s declared orientation, Android may show a narrow view with black borders. Resizing the window or changing resolution cannot fill it. Follow app reads the declared orientation from the APK and selects the matching panel at launch. The runtime restarts only when the orientation changes; later launches with the same orientation are fast. ", + "v058.m0171": "Tablet layout", + "v058.m0172": "On (recommended · 190 dpi, sw606dp tablet layout)", + "v058.m0173": "Off (image default density, phone layout)", + "v058.m0174": "At 190 dpi, 720 pixels equal 606 dp, exceeding Android’s 600 dp tablet breakpoint. Some apps then show two-column pages. Turn off for phone layout (larger text, less information). Applies next launch.", + "v058.m0175": "Current panel orientation", + "v058.m0176": "Portrait panel", + "v058.m0177": "Landscape panel", + "v058.m0178": " The runtime ", + "v058.m0179": " currently ", + "v058.m0180": " uses this physical panel orientation, selected by the policy above. Only forced modes let you specify it directly. ", + "v058.m0181": "Window hosting", + "v058.m0182": "Embedded (default) · Android inside the ApkStart window", + "v058.m0183": "Separate window · Emulator handles scaling and input", + "v058.m0184": "Embedded mode provides a unified app window, but embedding the emulator may cause black borders or incorrect clicks when scaling, rotating or switching windows. Separate mode lets the emulator handle orientation, scaling and input, at the cost of an extra taskbar icon. Applies next launch.", + "v058.m0185": "Keyboard mapping (game controls)", + "v058.m0186": "Enable keyboard mapping", + "v058.m0187": "Map keyboard keys to Android taps and swipes (for example, WASD movement and J/K skills). Configure each app separately: right-click its card → Key mapping to choose a preset or custom layout.", + "v058.m0188": "No key mapping for the current app. Right-click its card to apply a preset.", + "v058.m0189": "64 GB (for games around 50 GB)", + "v058.m0190": "System language", + "v058.m0191": "Simplified Chinese (recommended)", + "v058.m0192": "繁體中文", + "v058.m0193": "English (image default)", + "v058.m0194": "日本語", + "v058.m0195": " Language for system settings, permission prompts and dates. Applied during boot; ", + "v058.m0196": " takes effect after restarting the runtime ", + "v058.m0197": " . The Chinese input method is controlled separately below. ", + "v058.m0198": "Chinese input method (recommended)", + "v058.m0199": "The image includes only an English keyboard. Enable to silently install and activate bundled Google Pinyin for typing Chinese in Android apps. Disable to keep the original input method.", + "v058.m0200": "System check · Automatic configuration", + "v058.m0201": "Check CPU virtualization, Windows Hypervisor Platform, graphics, video memory, RAM and OS version. Recommended memory, cores, quality and graphics settings are saved with a compatibility profile. Actions requiring administrator permission get a button; BIOS changes include manual instructions.", + "v058.m0202": "Start check", + "v058.m0203": "Apply recommended settings", + "v058.m0204": "Drivers · Compatibility profiles", + "v058.m0205": " Some computers need different startup parameters (older graphics, disabled acceleration or unstable graphics drivers). A compatibility driver is a JSON file defining matching computers and startup overrides. You can create, import and share them. Only allowlisted startup settings can change; drivers ", + "v058.m0206": " do not execute code ", + "v058.m0207": " and do not apply unless their conditions match. ", + "v058.m0208": "Reading drivers…", + "v058.m0209": "Import driver…", + "v058.m0210": "Open drivers directory", + "v058.m0211": "Export computer template", + "v058.m0212": " Export computer template fills in this computer’s matching conditions. Edit ", + "v058.m0213": " in ", + "v058.m0214": " to use it. Field documentation is in the repository’s ", + "v058.m0215": "ApkStart built-in runtime (QEMU + Android 14, standalone)", + "v058.m0216": "ApkStart downloads and manages its own adb, emulator and system image. It does not detect, adopt or depend on any third-party emulator (MuMu, LDPlayer, BlueStacks or WSA). Other emulators and their updates do not affect it.", + "v058.m0217": "Assigned automatically by ApkStart (emulator-5554; next free port on conflict). No manual entry needed.", + "v058.m0218": "Android app launcher for Windows", + "v058.m0219": "Preparing…", + "v058.m0220": "First use · Automatic setup", + "v058.m0221": "Download Android runtime (about 200 MB, once)", + "v058.m0222": "Download system image (about 1.5 GB, once)", + "v058.m0223": "Configure hardware acceleration and networking", + "v058.m0224": "Then double-click an APK or desktop shortcut to open apps", + "v062.m0000": "Runtime points to another installation ({0}); using bundled runtime {1}", + "v062.m0001": "Switching to landscape (restarting Android, about 40 seconds, once)…", + "v062.m0002": "Switching to portrait (restarting Android, about 40 seconds, once)…", + "v062.m0003": "attach detached: shell window closed (attempt {0})", + "v062.m0004": "attach detached #{0} failed: {1}", + "v062.m0005": "Native window attachment failed after all retries; temporarily using embedded mode", + "v062.m0006": "The emulator’s native window could not be shown. Using the embedded window for this session.", + "v062.m0007": "ApkStart user manual · {0}", + "v062.m0008": "Automatic check found new issues: {0} (Settings → Diagnostics and repair)", + "v062.m0009": "Automatic check found new issues", + "v062.m0010": "{0}. Open ApkStart Settings → Diagnostics and repair to resolve them.", + "v062.m0011": "User manual", + "v062.m0012": "pre-attach detached ok (attempt {0})", + "v062.m0013": "Package name missing", + "v062.m0014": "(follow app)", + "v062.m0015": "Another instance adopted the runtime; skipping shutdown to avoid stopping its emulator", + "v062.m0016": "{0}\nInstallation still failed with the ARM compatibility image enabled. Export a diagnostic report in Settings → Diagnostics and repair.", + "v062.m0017": "{0}\nThis package contains only ARM libraries. The program will switch to a compatibility image and retry once. Watch for the next status message.", + "v062.m0018": "Landscape / portrait", + "v062.m0019": "Launch in portrait (currently landscape)", + "v062.m0020": "Launch in landscape (currently portrait)", + "v062.m0021": "Set landscape at launch", + "v062.m0022": "landscape at launch", + "v062.m0023": "portrait at launch", + "v062.m0024": "follow app", + "v062.m0025": "Set to {0}", + "v062.m0026": "Applies next time this app opens; no full runtime restart needed.", + "v062.m0027": "Could not set orientation", + "v062.m0028": "General and installation", + "v062.m0029": "Display and windows", + "v062.m0030": "Controls and input", + "v062.m0031": "Performance and resources", + "v062.m0032": "Network and downloads", + "v062.m0033": "Diagnostics and repair", + "v062.m0034": "Integration and files", + "v062.m0035": "Updates and about", + "v062.m0036": "{0} matching groups", + "v062.m0037": "Device connection", + "v062.m0038": "Storage", + "v062.m0039": "Network", + "v062.m0040": "Logs", + "v062.m0041": "Not checked yet", + "v062.m0042": "Last check {0} · Everything is OK", + "v062.m0043": "Last check {0} · {1} issues to address", + "v062.m0044": "
    \n \n No issues affecting operation found. Runtime, adb authorization, disk space, data partitions, snapshots and conflicting settings were checked.\n
    ", + "v062.m0045": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n {3}\n
    \n {4}\n \n
    ", + "v062.m0046": "", + "v062.m0047": "Checking…", + "v062.m0048": "Check failed", + "v062.m0049": "Could not collect status. Try again later.", + "v062.m0050": "Send the report to the author to help diagnose the problem", + "v062.m0051": "Automatic checks enabled", + "v062.m0052": "Automatic checks disabled", + "v062.m0053": "Checks periodically in the background and notifies only about new issues", + "v062.m0054": "Click “Check now” any time to run a manual check", + "v062.m0055": "Check interval updated", + "v062.m0056": "Check every {0} minutes", + "v062.m0057": "Image auto-rotate enabled", + "v062.m0058": "Image auto-rotate disabled", + "v062.m0059": "Saved to Android on next app launch. Screen orientation is still controlled by the orientation policy.", + "v062.m0060": "Switched to native window", + "v062.m0061": "Applies next launch. Embedded mode provides a unified window with rotation controls, but scaling and rotation may cause dropped frames or black borders.", + "v062.m0062": "Applies next launch. The emulator renders and arranges its native window for steadier scaling and frame rates. Rotate using the tray menu or Ctrl+Alt+R.", + "v062.m0063": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n
    \n {3}\n \n
    ", + "v062.m0064": "Follow the manual instructions", + "v062.m0065": "Repair incomplete", + "v062.m0066": "Could not enable hardware acceleration. The relevant tutorial has been opened.", + "v062.m0067": "Restarting Android runtime…", + "v062.m0068": "Android will boot again; this takes a little longer", + "v062.m0069": "Android runtime restarted", + "v062.m0070": "Click “Allow” if an authorization prompt appears", + "v062.m0071": "Restart failed. The relevant tutorial has been opened.", + "v062.m0072": "Leftover emulator processes cleaned up", + "v062.m0073": "Quick Boot snapshot invalidated", + "v062.m0074": "The next app launch will perform a full cold boot", + "v062.m0075": "Could not invalidate", + "v062.m0076": "Android data partition must be recreated", + "v062.m0077": "Open Settings → Performance and resources → Expand now. Confirm the reset if prompted (deletes installed apps).", + "v062.m0078": "Currently set to follow app", + "v062.m0079": "Panel orientation follows each app. Set an individual override if an app has the wrong orientation.", + "v062.m0080": "Panel switched to landscape", + "v062.m0081": "Panel switched to portrait", + "v062.m0082": "Applies next time an app opens", + "v062.m0083": "Check the shared directory", + "v062.m0084": "Open Settings → Integration and files and confirm the local shared directory exists and is writable.", + "v062.m0085": "Enabling Android app audio…", + "v062.m0086": "Restarting the runtime now to remove -no-audio", + "v062.m0087": "Could not save audio settings. The relevant tutorial has been opened.", + "v062.m0088": "Audio enabled", + "v062.m0089": "Runtime restarted. App audio should now be available.", + "v062.m0090": "Audio enabled, but the runtime restart failed. The relevant tutorial has been opened.", + "v062.m0091": "Start Windows Audio manually", + "v062.m0092": "The tutorial is open. Follow its steps once.", + "v062.m0093": "Resetting Android network…", + "v062.m0094": "The app list will be preserved", + "v062.m0095": "Android network reset", + "v062.m0096": "The next app launch will reconnect to the network", + "v062.m0098": "User manual (including troubleshooting)", + "v062.m0099": "Search settings: orientation / memory / proxy / snapshots…", + "v062.m0100": "Clear search", + "v062.m0101": "Settings categories", + "v062.m0110": "Image auto-rotate", + "v062.m0111": "On (default) · Android shows auto-rotate as enabled", + "v062.m0112": "Off · Use the previous locked behavior", + "v062.m0113": "In Android, ", + "v062.m0114": "auto-rotate is enabled by default", + "v062.m0115": ". This does not change picture orientation: the policy above still sets panel and screen orientation and ignores app orientation requests, preventing sensor changes. Only apps that read this setting use it.", + "v062.m0116": "Native window (default, recommended) · Stable emulator rendering and scaling", + "v062.m0117": "Embedded mode · Android inside ApkStart, with rotation controls", + "v062.m0118": "The emulator renders and arranges the native window for responsive dragging, scaling and rotation, with an extra taskbar icon. Rotate using the tray menu or Ctrl+Alt+R. Embedded mode gives a unified appearance with rotation controls, but scaling, rotation and switching apps may cause dropped frames or black borders. Applies next launch.", + "v062.m0119": "Automatic checks · Diagnostics", + "v062.m0120": "Periodically check the Android runtime, adb authorization, free disk space, data partition overlays, snapshots and conflicting settings in the background. Notify once for ", + "v062.m0121": "new", + "v062.m0122": " serious issues; other findings appear quietly below.", + "v062.m0123": "Enable automatic checks (on by default)", + "v062.m0124": "Disable periodic scanning; manual checks remain available through “Check now”.", + "v062.m0125": "Check interval", + "v062.m0126": "Every minute", + "v062.m0127": "Every 5 minutes", + "v062.m0128": "Every 10 minutes (recommended)", + "v062.m0129": "Every 30 minutes", + "v062.m0130": "Every hour", + "v062.m0131": "Notify me about new issues", + "v062.m0132": "Notify only about serious issues; do not repeat known ones.", + "v062.m0133": "Check now", + "v062.m0135": "Open user manual (including troubleshooting)", + "v064.m0000": "Microsoft VC++ 2015–2022 (x64) was verified missing from this system; the Android runtime requires it.", + "v064.m0001": "Install it using the button. If 0xC0000135 persists, see manual section 6.8: the Store edition may also have a child-process DLL path issue.", + "v064.m0002": "Laboratory", + "v064.m0003": "(This system does not support this setting)", + "v064.m0004": "System default", + "v064.m0005": "Dedicated GPU", + "v064.m0006": "Integrated GPU", + "v064.m0007": "(Applied: {0})", + "v064.m0008": "({0} selected; applies on next Android startup)", + "v064.m0009": "Graphics preference saved", + "v064.m0010": "Applies on next Android startup", + "v064.m0011": "Multiple app windows enabled (experimental)", + "v064.m0012": "Returned to single-app mode", + "v064.m0013": "Applies next launch: multiple apps can stay open with their own native windows.", + "v064.m0014": "Enabling microphone input…", + "v064.m0015": "Restarting the runtime now to enable the recording device", + "v064.m0016": "Could not save microphone settings. The relevant tutorial has been opened.", + "v064.m0017": "Microphone enabled", + "v064.m0018": "Runtime restarted. Apps should now be able to record audio.", + "v064.m0019": "Microphone enabled, but the runtime restart failed. The relevant tutorial has been opened.", + "v064.m0021": "Graphics preference (dedicated / integrated)", + "v064.m0022": "System default (recommended · Let Windows choose)", + "v064.m0023": "Prefer dedicated GPU (smoother games / video; uses more power)", + "v064.m0024": "Prefer integrated GPU (lower power and heat)", + "v064.m0025": "On computers with both GPU types, Windows may assign the emulator to integrated graphics, causing slow rendering. Choose the GPU explicitly here. Requires Windows 10 1803 or later; applies on next Android startup.", + "v064.m0026": "Microphone input (recommended)", + "v064.m0027": "Allow apps to use the computer’s microphone for voice, calls and recording. When disabled, apps cannot find a recording device. Disable only if you do not need recording or prefer it for privacy.", + "v064.m0029": "These features are experimental and may change between versions. Report problems through Diagnostics and repair → Export diagnostic report.", + "v064.m0030": "Windows native windows · Multiple apps (experimental)", + "v064.m0031": "Opening a new app keeps the previous one running, allowing quick switching while preserving sessions. Android has only one emulator window, so only one app is visible in the foreground at a time; apps are not displayed side by side. Memory usage increases. Disable to return to the stable single-app mode.", + "v064.m0032": "Apps to keep in background", + "v064.m0033": "0 · Lowest memory use (current app only)", + "v064.m0034": "1 · Balanced (recommended)", + "v064.m0035": "2 · More stable app switching", + "v064.m0036": "3 · Maximum app retention", + "v064.m0037": "In multiple-app mode, background apps beyond this limit are suspended to free memory while preserving data for fast switching.", + "settings.dnsServers": "DNS servers", + "settings.dnsServersCn": "China public DNS (Alibaba / Tencent)", + "settings.dnsServersNote": "Used when Network acceleration is on. Outside China or with an overseas VPN, Cloudflare or Google resolve faster. Applies the next time the Android runtime starts.", + "autodebug.accel.softwareEmulation.hint": "Only pure software emulation is possible: boot takes minutes and frames drop easily. Enable “Windows Hypervisor Platform” and restart.", + "autodebug.accel.softwareEmulation.title": "No hardware acceleration right now", + "autodebug.logs.errors.hint": "The last run left error records; expand the diagnostic report to see the full context.", + "autodebug.logs.errors.title": "{0} error(s) in the runtime log", + "autodebug.network.sourcesDown.hint": "The update check queries several sources at once; one being down is harmless. If all are down, check your network or proxy.", + "autodebug.network.sourcesDown.title": "{0} download source(s) unreachable", + "autodebug.network.guestDown.hint": "DNS resolution or connectivity fails on the Android side, so video and news apps keep spinning. Use “Repair network” to reset Android data (the app list is kept).", + "autodebug.network.guestDown.title": "Android has no network", + "autodebug.audio.microphoneDisabled.hint": "Voice, calls and recording in apps will fail (no recording device found). Click “Resolve” to turn it back on and restart the runtime once; also make sure Windows microphone permission allows desktop apps.", + "autodebug.audio.microphoneDisabled.title": "Microphone input is turned off in Settings", + "autodebug.audio.windowsServiceStopped.hint": "This silences other software on the system too. Start Windows Audio in services.msc and set it to automatic, or run net start Audiosrv in an administrator PowerShell.", + "autodebug.audio.windowsServiceStopped.title": "Windows Audio service (Audiosrv) is not running", + "autodebug.audio.disabled.hint": "The Android sound switch is off, so only apps inside ApkStart are silent. Click “Resolve” to turn it back on and restart the runtime once.", + "autodebug.audio.disabled.title": "Android app sound is turned off in Settings", + "autodebug.settings.snapshotOffLowDisk.hint": "Free disk space is under 4 GB and snapshots are off: opening an app will do a full cold boot (over ten seconds). If you have enough disk space, turn snapshots back on.", + "autodebug.settings.snapshotOffLowDisk.title": "Disk is tight, quick-boot snapshot is turned off", + "autodebug.settings.detachedFullscreen.hint": "In native window mode the emulator opens its own window and decides fullscreen itself, so this switch does not apply. Press F11 in the window to fill the screen, or switch the window hosting mode to embedded.", + "autodebug.settings.detachedFullscreen.title": "Auto fullscreen on launch has no effect in native window mode", + "autodebug.settings.orientationConflict.hintLandscape": "The policy asks for landscape, but the panel is portrait now, so videos and games appear as a narrow vertical strip. Set the panel orientation to match the policy.", + "autodebug.settings.orientationConflict.title": "Orientation policy conflicts with the current panel orientation", + "autodebug.settings.orientationConflict.hintPortrait": "The policy asks for portrait, but the panel is landscape now, so Android shows apps as a narrow strip with black bars on both sides. Set the panel orientation to match the policy.", + "autodebug.storage.sharedBroken.hint": "The host folder used for file exchange does not exist or is not writable, so files saved in Android cannot sync over.", + "autodebug.storage.sharedBroken.title": "Shared folder unavailable", + "autodebug.storage.dataMismatch.detail": "Configured {0} GB · Actual {1} GB", + "autodebug.storage.dataMismatch.hint": "The usable capacity inside Android is smaller than the value in Settings, so large games will report insufficient storage.", + "autodebug.storage.dataMismatch.title": "Android data partition is smaller than configured", + "autodebug.storage.dataNeedsReset.detail": "Configured {0} GB · Actual {1} GB", + "autodebug.storage.dataNeedsReset.hint": "The quick-boot differential disk blocks in-place expansion, so the guest still sees the old capacity. Use “Reset Android data” to rebuild at the new size (installed apps will be erased).", + "autodebug.storage.dataNeedsReset.title": "Data partition expansion did not take effect", + "autodebug.storage.diskLow.detail": "Free: {0} MB", + "autodebug.storage.diskLow.hint": "Less than 8 GB free; snapshots and system images still need room. Consider cleaning up reclaimable files first.", + "autodebug.storage.diskLow.title": "The runtime disk is getting low on space", + "autodebug.storage.diskCritical.detail": "Free: {0} MB", + "autodebug.storage.diskCritical.hint": "Less than 2 GB free: installing apps and writing snapshots will fail. Use “One-click cleanup” to reclaim old images, old snapshots and logs.", + "autodebug.storage.diskCritical.title": "The runtime disk is almost full", + "autodebug.device.missing.hint": "The Android process is alive but adb cannot see the device, most likely because another program is holding the adb server port, or boot has not finished.", + "autodebug.device.missing.title": "Runtime is running, but adb sees no device", + "autodebug.device.offline.hint": "adb can see the device but cannot connect, usually because the VM is still booting or the adb server handshake failed. If it does not recover after a short wait, restart the runtime.", + "autodebug.device.offline.title": "Android device is in offline state", + "autodebug.device.unauthorized.hint": "The “Allow USB debugging?” prompt appeared on the Android side but was never confirmed, so adb cannot connect. Restarting the runtime (one cold boot) shows the prompt again; confirm it and it recovers.", + "autodebug.device.unauthorized.title": "Android device has not authorized debugging", + "autodebug.runtime.staleSnapshot.hint": "The snapshot file is still there but fails validation, so every boot needs an extra cold start. Deleting it trades one cold start for the disk space back.", + "autodebug.runtime.staleSnapshot.title": "Quick-boot snapshot is damaged", + "autodebug.runtime.orphanProcesses.hint": "Android processes that did not shut down properly are still holding resources and the AVD lock, which makes the next boot fail. You can clean them up in one click (installed apps and saves are untouched).", + "autodebug.runtime.orphanProcesses.title": "Found {0} leftover emulator process(es)", + "autodebug.runtime.staleLocks.hint": "Uncleared lock files make the next start fail with “AVD already in use”. They can be removed in one click.", + "autodebug.runtime.staleLocks.title": "Found {0} leftover lock file(s) from the last run", + "autodebug.runtime.stuckBoot.detail": "Stage: {0}", + "autodebug.runtime.stuckBoot.hint": "Boot has taken more than 2.5 minutes without reaching the system. A damaged quick-boot snapshot is the usual cause; restarting the runtime (one cold boot) usually fixes it.", + "autodebug.runtime.stuckBoot.title": "Android boot is stuck at the boot stage", + "autodebug.runtime.bootFailed.hint": "The actual runtime error was captured; handling it as described usually fixes it in one go.", + "autodebug.runtime.bootFailed.title": "Last Android runtime start failed", + "doctor.report.log": "== Runtime log (last 300 lines) ==", + "doctor.report.extra": "== Additional info ==", + "doctor.report.finding": "{0}: {1}", + "doctor.report.diagnosis": "== Diagnosis ==", + "doctor.report.profile": "== Auto configuration ==", + "doctor.report.host": "== This machine ==", + "doctor.report.generated": "Generated: {0}", + "doctor.report.title": "ApkStart diagnostic report", + "doctor.unknown.hint": "Retried automatically with several parameter combinations. Click “Export diagnostic report” and send the log to the author to investigate.", + "doctor.unknown.title": "Runtime failed to finish booting", + "doctor.rule.SNAPSHOT.hint": "The old snapshot was discarded and a cold boot is used; the next clean exit will regenerate the snapshot.", + "doctor.rule.SNAPSHOT.title": "Quick Boot snapshot is damaged", + "doctor.rule.CPU_FEATURE.hint": "On some older CPUs this message is only a warning and the runtime still boots; if it truly cannot start, downgrade the engine under “Runtime” to an older compatible version, or use a PC that supports VT-x/AVX.", + "doctor.rule.CPU_FEATURE.title": "CPU lacks an instruction set required by the runtime", + "doctor.rule.AVD_LOCK_UNCLEAN.hint": "ApkStart cleans up leftover locks automatically and retries; if it keeps happening, check whether another emulator is using the same runtime.", + "doctor.rule.AVD_LOCK_UNCLEAN.title": "Last run did not exit cleanly and left lock files", + "doctor.rule.NON_ASCII.hint": "Automatically switched to the Windows short path. If it still fails, move ApkStart to a plain-English folder (such as C:\\ApkStart).", + "doctor.rule.NON_ASCII.title": "Install path contains Chinese or special characters", + "doctor.rule.DISK_FULL.hint": "Move the runtime folder (Settings → System integration → Runtime data directory) to a drive with enough space, or turn off “Keep Quick Boot snapshot” / shrink the data partition in Settings. Android data is not cleared automatically.", + "doctor.rule.DISK_FULL.title": "Not enough disk space to start Android", + "doctor.rule.DLL.hint": "Common causes: the Store edition cannot start child processes from a read-only directory, the VC++ runtime is missing, or antivirus quarantined runtime files. Open built-in manual section 6.8 and locate the cause step by step; do not reinstall the runtime based on this message alone.", + "doctor.rule.DLL.title": "Runtime dependency DLL failed to load (cause still to be determined)", + "doctor.rule.IMAGE.hint": "Automatically rebooted with clean user data. If it still fails, delete the image under “Runtime” and download it again.", + "doctor.rule.IMAGE.title": "System image is missing or damaged / incompatible with old user data", + "doctor.rule.AVD_LOCK.hint": "AVD lock files were cleaned up automatically and the runtime was started again.", + "doctor.rule.AVD_LOCK.title": "Leftover lock files from the last run", + "doctor.rule.PORT_BUSY.hint": "Automatically switched to a free port. If it keeps happening, quit other emulators such as Nox/MuMu/BlueStacks, or restart the PC.", + "doctor.rule.PORT_BUSY.title": "Emulator port is in use", + "doctor.rule.MEMORY.hint": "Automatically reduced the memory and cores given to Android. Close memory-hungry programs and try again.", + "doctor.rule.MEMORY.title": "Memory allocation failed", + "doctor.rule.ACCEL.hint": "Automatically fell back to software emulation (the first boot will be noticeably slower). For smooth performance, enable “Virtual Machine Platform” in “Windows Features”, or install the AEHD driver, then restart.", + "doctor.rule.ACCEL.title": "Hardware acceleration unavailable", + "doctor.rule.GPU_MODE.hint": "Automatically retried with a GPU mode that matches the runtime version (older versions use swiftshader_indirect, newer ones use software).", + "doctor.rule.GPU_MODE.title": "The current runtime does not accept this GPU mode", + "doctor.rule.GPU_INIT.hint": "Automatically switched to software rendering and retried. If it still fails, update your graphics driver, or turn off remote-desktop / VM GPU passthrough and try again.", + "doctor.rule.GPU_INIT.title": "Graphics rendering backend failed to initialize", + "doctor.rule.ACCESS_VIOLATION.hint": "Automatically retried with a more conservative rendering backend and remembered not to try this one first next time. If it keeps happening, update your graphics driver, or lower the quality in Settings → Performance and resources and turn off remote-desktop / VM GPU passthrough, then try again.", + "doctor.rule.ACCESS_VIOLATION.title": "Rendering backend crashed (0xC0000005 access violation)", + "preflight.summary.good": "This machine can run with hardware acceleration directly; the configuration is already optimal", + "preflight.summary.warn": "{0} item(s) recommended for optimization ({1})", + "preflight.summary.bad": "Found {0} item(s) that must be handled first ({1})", + "preflight.driverAuthor": "ApkStart health check", + "preflight.driverName": "This PC auto-configuration ({0})", + "preflight.os-old.detail": "ApkStart supports Windows 10 2004 (build 19041) at minimum. On older systems the emulator may exit immediately.", + "preflight.os-old.title": "Windows version is old (build {0})", + "preflight.mem-ok.title": "Physical memory: {0} GB", + "preflight.mem-low.detail": "The Android VM can get at most 2 GB and 2 cores, quality drops to 540×960; closing browser tabs before opening apps is recommended.", + "preflight.mem-low.title": "Low memory ({0} GB)", + "preflight.mem-unknown.title": "Cannot read physical memory", + "preflight.gpu-driver-old.detail": "Driver date {0} (about {1} years ago). Old drivers are a common cause of a black or garbled screen after startup; consider updating from the vendor website.", + "preflight.gpu-driver-old.title": "Graphics driver is rather old", + "preflight.gpu-unknown.detail": "This may be Remote Desktop / a VM / a driver problem. The rendering backend is left to the automatic fallback chain.", + "preflight.gpu-unknown.title": "Cannot read graphics card info", + "preflight.accel-off.label": "Install AEHD driver (administrator)", + "preflight.accel-off.detailPlain": "Software emulation is used first to make sure it runs; it is 5–10 times slower than hardware acceleration.", + "preflight.accel-off.detailInstaller": "You can install the AEHD driver (administrator required), or enable “Windows Hypervisor Platform” first and restart; if neither works, only software emulation is possible.", + "preflight.accel-off.title": "No hardware acceleration available right now", + "preflight.accel-ok.detail": "Startup will use hardware acceleration; the settings below are recommended for this machine’s GPU and memory.", + "preflight.accel-ok.title": "Hardware acceleration available ({0})", + "preflight.whpx-off.labelInstaller": "Enable in one click (administrator)", + "preflight.whpx-off.detailInstaller": "The button below enables HypervisorPlatform + VirtualMachinePlatform automatically (administrator confirmation required); restart the PC when it finishes.", + "preflight.whpx-off.labelStore": "Open the “Windows Features” window", + "preflight.whpx-off.detailStore": "The Store edition cannot change system features itself. Press Win+R → type optionalfeatures → tick “Windows Hypervisor Platform” (HypervisorPlatform) and “Virtual Machine Platform” → OK → restart.", + "preflight.whpx-ok.detailRestart": "The feature is enabled; if acceleration is still unavailable, restart once so the hypervisor starts.", + "preflight.whpx-ok.detailRunning": "The hypervisor is running and WHPX is available.", + "preflight.whpx-ok.title": "Windows Hypervisor Platform is enabled", + "preflight.vt-unknown.label": "Check manually", + "preflight.vt-unknown.detail": "This may be a motherboard/permission restriction. If startup reports no hardware acceleration, enter BIOS manually and confirm VT-x / SVM is enabled.", + "preflight.vt-unknown.title": "Cannot read CPU virtualization status", + "preflight.vt-ok.detail": "{0} · {1} cores / {2} threads", + "preflight.vt-ok.title": "CPU virtualization is enabled in BIOS", + "preflight.vt-bios-off.label": "Restart into BIOS required; cannot be done automatically", + "preflight.vt-bios-off.detail": "Restart into BIOS/UEFI, set Intel VT-x (Intel) or SVM Mode (AMD) to Enabled, save, then come back and re-run the check. On Lenovo/Dell/ASUS it is usually under Advanced → CPU Configuration; branded PCs may call it Virtualization Technology.", + "preflight.vt-bios-off.title": "CPU virtualization is not enabled in BIOS", + "preflight.vt-unsupported.detail": "Only software emulation is possible, which is 5–10 times slower. Light apps still work; big games are not recommended.", + "preflight.vt-unsupported.title": "This CPU does not support hardware virtualization", + "preflight.why.auto": "Leaving it to the automatic fallback chain", + "preflight.why.intel": "On Intel integrated graphics, host mode is needed to use hardware acceleration; it falls back automatically if it crashes", + "preflight.why.amd": "On AMD GPUs, host mode is needed to use hardware acceleration; it falls back automatically if it crashes", + "preflight.why.nvidia": "NVIDIA drivers are mature; host passthrough is usually the fastest", + "preflight.why.lowVram": "Very little video memory; swangle is more stable", + "preflight.why.unknownGpu": "The GPU model cannot be read; leaving it to the automatic fallback chain", + "preflight.why.noAccel": "No hardware acceleration is available; using software rendering first so the picture at least appears", + "preflight.vram": "{0} GB VRAM{1}", + "preflight.vramIntegrated": " (integrated, the rest is shared memory)", + "preflight.vramUnknown": "VRAM unknown", + "preflight.driverVersion": " · driver {0}", + "preflight.driverDate": " ({0})", + "preflight.driverDescription": "Generated by “This PC check · auto-configuration”: {0}. {1}", + "preflight.driverAccelOk": "Hardware acceleration is available.", + "preflight.driverAccelNone": "No hardware acceleration at the moment.", + "list.sep": "; ", + "list.sepComma": ", ", + "drivers.fileErrors": "{0}: {1}", + "engine.vmStartFailed": "The VM could not start", + "engine.needProvision": "Runtime components are not fully set up yet", + "engine.needSysimg": "The system image is still missing: click “Download system image”", + "engine.bootServices": "Android has booted but system services are not ready (it may be stuck at the first-boot setup screen; complete the wizard in the VM window)", + "engine.bootKernel": "The Android kernel did not finish booting; check the runtime log (the image may be damaged or acceleration may not be active)", + "engine.adbConnectFailed": "VM started, but adb could not connect: enable “Developer options → ADB over network” inside the VM and retry", + "engine.runtimeStartFailed": "Android runtime failed to start", + "engine.adbUnauthorized.hint": "The emulator is stuck at the “Allow USB debugging?” dialog. Click “Allow” in that emulator window — tick “Always allow from this computer” first, then click, and it will not ask again. If the window cannot be clicked or never appears: Settings → Runtime → clear Android data and retry (installed apps will be removed; reinstall them, APK files are not affected).", + "engine.adbUnauthorized.title": "Android debugging authorization incomplete (click “Allow” once)", + "engine.adbMissing": "adb is missing: click “One-click deploy” to download it automatically", + "preflight.whpx-off.title": "“Windows Hypervisor Platform” is not enabled", + "adb.install.INSTALL_FAILED_NO_MATCHING_ABIS": "Install failed: this app only ships ARM native libraries (as most Chinese apps do), and the current system image has no ARM translation layer. ApkStart will automatically switch to the compatibility image with the newer built-in translation layer and retry.", + "adb.install.INSTALL_FAILED_OLDER_SDK": "Install failed: the app requires a newer Android version than the current runtime (a newer system image is needed).", + "adb.install.INSTALL_PARSE_FAILED_NO_CERTIFICATES": "Install failed: the APK has no valid signature and cannot be installed.", + "adb.install.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES": "Install failed: the signature differs from the installed version; uninstall the old version first, then install again.", + "adb.install.INSTALL_FAILED_VERSION_DOWNGRADE": "Install failed: a newer version is already installed on the device; downgrading over it is not allowed.", + "adb.install.INSTALL_FAILED_INSUFFICIENT_STORAGE": "Install failed: not enough disk space in the runtime; free up some space and retry.", + "adb.install.INSTALL_FAILED_INVALID_APK": "Install failed: the APK file is corrupt or incomplete (the download may not have finished); get it again.", + "adb.install.INSTALL_FAILED_INVALID_URI": "Install failed: the APK path contains special characters; move the file to a plain English path and retry.", + "adb.install.INSTALL_FAILED_ALREADY_EXISTS": "Install failed: an app with the same name but a different signature already exists; uninstall it first.", + "adb.install.INSTALL_FAILED_UPDATE_INCOMPATIBLE": "Install failed: the signature differs from the installed version; uninstall the old version first.", + "adb.install.INSTALL_FAILED_DEPRECATED_SDK_VERSION": "Install failed: this app targets a very old Android version (targetSdk too low), which Android 14 blocks by default. ApkStart will automatically retry with the official bypass flag.", + "adb.install.INSTALL_FAILED_TEST_ONLY": "Install failed: this is a test-only app package; the test-package flag was added automatically and the install retried.", + "adb.install.INSTALL_FAILED_MISSING_SHARED_LIBRARY": "Install failed: a device feature the app depends on (such as a vendor-specific library) does not exist in the current runtime.", + "adb.install.INSTALL_FAILED_USER_RESTRICTION": "Install failed: the system restricts installation; restart the runtime and retry.", + "adb.install.INSTALL_FAILED_CONFLICTING_PROVIDER": "Install failed: conflicts with an existing app’s ContentProvider; uninstall the conflicting app.", + "adb.install.INSTALL_FAILED_INTERNAL_ERROR": "Install failed: internal system error (usually low storage or boot not finished); restart the runtime and retry.", + "adb.install.withTag": "{0} ({1})", + "adb.install.failedRaw": "Install failed: {0}", + "adb.install.noReason": "no clear reason was reported", + "adb.install.missingApk": "APK not found: {0}", + "adb.install.noSplits": "No split APKs to install", + "adb.install.splitFailed": "Split APK install failed", + "adb.exec.failed": "adb {0} failed: {1}", + "adb.launch.appName": "The app", + "adb.launch.antiEmulator": "{0} detected the emulator / translation environment and exited on its own (anti-emulation, anti-debugging or integrity checks). This is a limit of the app itself, not a fault; ApkStart cannot bypass it. See built-in manual 6.3.", + "adb.launch.translationCrash": "{0} crashed on launch: the app is incompatible with the ARM translation layer (common with anti-debugging / anti-emulation checks or native hook conflicts). If the runtime has not enabled the compatibility image yet it will switch and retry once automatically; if it still crashes with the image enabled, it is an app compatibility limit, not a fault. See built-in manual 6.3.", + "adb.launch.missingNativeLib": "{0} crashed on launch: a native library for this device is missing (the app may only ship an ARM build). If the runtime has not enabled the ARM translation layer yet it will switch to the compatibility image and retry automatically; if it still crashes once enabled, it is mostly an app limit. See built-in manual 6.3.", + "adb.launch.appException": "{0} crashed right at launch (an internal app exception, possibly related to the emulator environment or missing Google services).", + "adb.launch.denied": "{0} failed to launch: the system rejected the launch request (a permission or signature problem).", + "adb.launch.failedWithLog": "{0} could not be launched: {1}", + "adb.launch.failedNoProcess": "{0} could not be launched (the process is not alive)", + "adb.launch.stillLoading": "(The app is still loading)", + "installer.noSplits": "No APK splits were found in this package (it may not be an .apks/.xapk file)", + "installer.baseParseFailed": "Failed to parse the base APK of the split package", + "installer.compat.downloading": "First ARM app install: downloading the compatibility image (about 1.5 GB, one time only)…", + "installer.compat.downloadFailed": "Compatibility image download failed; check your network and retry", + "installer.compat.switching": "Switching to the compatibility image and restarting the runtime…", + "installer.compat.runtimeUnavailable": "The runtime is unavailable after switching to the compatibility image", + "installer.compat.restoring": "Restoring installed app {0}…", + "installer.parsing": "Parsing the APK…", + "installer.recognized": "Recognized {0} ({1})", + "installer.preparing": "Preparing the Android runtime…", + "installer.runtimeUnavailable": "The runtime is unavailable", + "installer.armSwitching": "This app only has ARM libraries; switching to the compatibility image…", + "installer.updating": "Updating the app…", + "installer.installing": "Installing the app…", + "installer.armSwitchingReinstall": "This app only has ARM libraries; switching to the compatibility image, then reinstalling…", + "installer.switchedReinstalling": "Switched to the compatibility image; reinstalling…", + "installer.stillFailedAfterSwitch": "Switched to the Android 14 compatibility image and restarted the runtime, but {0} still failed to install ({1}). Check disk space and network and retry; if it keeps failing, export a diagnostic report from “Settings → Diagnostics and repair” and send it as feedback.", + "installer.shortcutCreating": "Creating the desktop shortcut…", + "installer.shortcutFailed": "Shortcut creation failed: {0}", + "installer.warn.minSdk": "This app requires Android {0}+, which is higher than the current runtime; it may not run correctly.", + "installer.warn.iconPlaceholder": "The app icon could not be parsed (it may be a special adaptive-icon format); the shortcut uses a placeholder icon for now.", + "installer.warn.iconWebp": "The app icon (WebP) failed to decode; the shortcut uses a placeholder icon for now.", + "installer.done": "{0} installed", + "installer.shortcutDescription": "{0} — runs via ApkStart", + "installer.shortcutCreateFailed": "Failed to create the shortcut", + "installer.displaySkipped": "Display adaptation skipped: {0}", + "installer.netReady": "VM network ready ({0})", + "installer.wifiReconnecting": "The VM cannot reach Wi-Fi; trying to reconnect…", + "installer.netRestored": "VM network restored ({0})", + "installer.wifiReconnectFailed": "Automatic Wi-Fi reconnect failed: {0}", + "installer.netNotReady": "The VM network is not ready yet; starting the app anyway (online pages may load a little later)", + "installer.reinstalling": "App files are missing (snapshot and data are out of sync); reinstalling automatically from the local backup…", + "installer.autoInstallFailed": "Automatic install failed: {0}", + "installer.exitedRetry": "The app exited after launch (attempt {0}); retrying automatically…", + "installer.exitedReset": "The app keeps exiting; resetting its data and retrying…", + "installer.unstable": "The app exits right after launch; automatic retries and resetting its data did not help", + "installer.armDisabledSwitching": "The current runtime has no ARM translation layer enabled; switching to the compatibility image automatically and retrying…", + "provision.accel.whpx": "WHPX hardware acceleration enabled", + "provision.accel.aehd": "AEHD hardware acceleration enabled", + "provision.accel.aehdNoCheck": "AEHD hardware acceleration enabled (emulator-check missing; judged from the driver)", + "provision.hv.notWindows": "Not a Windows platform", + "provision.hv.present": "Virtual Machine Platform components are present (availability is checked by the runtime engine)", + "provision.hv.missing": "Windows Hypervisor Platform components not detected: enable \"Virtual Machine Platform\" in \"Turn Windows features on or off\", then restart", + "emulator.exit.normal": "Exited normally", + "emulator.exit.badArgs": "Bad launch arguments or environment", + "emulator.exit.accessViolation": "0xC0000005 access violation, the rendering backend crashed", + "emulator.exit.stackOverflow": "0xC00000FD stack overflow", + "emulator.exit.dllLoad": "0xC0000135 a dependent DLL failed to load (cause to be determined, see built-in manual 6.8)", + "emulator.exit.accessDenied": "0xC0000022 access denied (driver or permission problem)", + "emulator.exit.badImage": "0xC000007B image bitness mismatch or corrupt DLL", + "emulator.cleanup.leftover": "Cleaning up {0} leftover emulator process(es)", + "emulator.qemuImgFailed": "qemu-img {0} failed: {1}", + "emulator.resize2fsMissing": "resize2fs.exe is missing", + "emulator.resize2fsFailed": "resize2fs failed: {0}", + "emulator.exited": "Runtime exited (code={0})", + "emulator.exitedWithMeaning": "Runtime exited (code={0}, {1})", + "emulator.resize.overlay": "Android is using the quick-boot differencing disk, so in-place expansion cannot reach it (target {0} GB). You need to “Reset Android data” and rebuild /data at the new size — installed apps and saves will be erased, so please confirm first.", + "emulator.resize.fsShort": "The image has been expanded to {0} GB, but the file system only reaches {1} GB (resize2fs did not succeed). Click “Expand now” again, or free up disk space and retry.", + "emulator.start.relaunch": "The previous emulator has exited; booting again…", + "emulator.start.noEngine": "The runtime engine is not installed; deploy it first on the “Runtime” page", + "emulator.start.noImage": "The system image is not ready; download the Android system image first on the “Runtime” page", + "emulator.start.diskLowAvd": "Not enough space on disk: the disk holding the Android data directory ({0}) has only {1} GB left, and the runtime needs at least {2} GB free. In “Settings → System integration → Android data directory”, move it to a drive with enough space (for example D:), or free up disk space first. Your apps and saves will not be deleted automatically.", + "emulator.start.diskLowRuntime": "The disk holding the runtime directory ({0}) has only {1} GB left, not even enough for logs and temporary files. Free up disk space, or move the “Runtime data directory” to another drive as well.", + "emulator.drivers.loadFailed": "Driver loading failed (ignored, booting with default parameters): {0}", + "emulator.drivers.applied": "Drivers applied: {0}", + "emulator.drivers.none": "No driver matched; booting with default parameters", + "emulator.drivers.errors": "{0} driver file(s) failed to load (see Settings → Drivers for the reason)", + "emulator.drivers.gpuFixed": "The driver pins the rendering backend to {0}", + "emulator.drivers.softwareLabel": "{0} / software emulation required by driver", + "emulator.drivers.forceTcg": "The driver requires hardware acceleration to be off (using software emulation)", + "emulator.gpu.vulkanRetry": "The last host rendering crash was probably caused by Vulkan; retrying hardware acceleration with -feature -Vulkan this time", + "emulator.gpu.badBackend": "The {0} rendering backend crashed right at launch last time; trying {1} first this time", + "emulator.boot.attempt": "Starting runtime (attempt {0}/{1}: {2})…", + "emulator.boot.diskFull": "Not enough space on disk; retries stopped (your apps and saves are left untouched).", + "emulator.boot.titleHint": "{0}: {1}", + "emulator.boot.retry": "{0} — retrying automatically with another set of parameters…", + "emulator.boot.waiting": "Booting… {0}s", + "emulator.boot.ready": "Runtime ready ({0}s, {1})", + "emulator.boot.noNetwork": "⚠ The Android VM is not connected to the network yet (Wi-Fi not associated or no address obtained). Apps that need the network may show a black screen when opened: just reopen the app a little later; if there is still no network, reconnect via “Settings → Repair network” (installed apps are not deleted).", + "emulator.boot.timeout": "Boot timed out (the first boot may be slow, or hardware acceleration may not be in effect)", + "emulator.boot.failed": "The runtime still failed to start after several attempts ({0}).\n{1}\n\nAttempts: {2}\nDiagnostic report: {3}", + "updater.noInstaller": "This release has no package that can be installed automatically; download it manually from the GitHub releases page", + "updater.incrementalUnavailable": "Incremental update unavailable ({0}); falling back to the full package…", + "updater.downloading": "Downloading {0}…", + "updater.downloadProgress": "Downloading {0}", + "updater.downloadPartProgress": "Downloading {0} (part {1}/{2}){3}", + "updater.reuseFull": "An update package is already downloaded; reusing it", + "updater.extracted": "Update package extracted", + "updater.downloaded": "Installer downloaded", + "updater.fetching": "Fetching the {0}…", + "updater.label.manifest": "update manifest", + "updater.label.app": "incremental code package", + "updater.manifestMismatch": "The manifest version does not match the release", + "updater.appHashMismatch": "Incremental code package verification failed (sha256 mismatch)", + "updater.reuseIncremental": "An incremental package is already downloaded; reusing it", + "updater.appFilesBad": "{0} file(s) in the incremental code package failed verification", + "updater.incrementalVerified": "Incremental package verified", + "updater.partSizeBad": "Part {0} has the wrong size ({1} ≠ {2}); aborted, you can retry", + "updater.assembledSizeBad": "The assembled update package has the wrong size ({0} ≠ {1}); aborted, you can retry", + "updater.extracting": "Extracting {0}/{1}", + "doctor.plan.hardware": "{0} / hardware acceleration", + "doctor.plan.software": "{0} / software emulation", + "doctor.plan.noAccel": "Software emulation with acceleration off (slow, but the most compatible)", + "doctor.plan.conservative": "Conservative cold start (minimum memory + no snapshot)", + "sources.tooManyRedirects": "Too many redirects", + "sources.invalidUrl": "Invalid address", + "sources.timeout": "Connection timed out", + "sources.skipped": "Temporarily skipped (will not retry for {0} min)", + "sources.hint.rateLimited": " (rate limited; this source is paused for a while)", + "sources.hint.giteeToken": " (retry later, or enter a read-only token in Settings to raise the quota)", + "sources.noData": "no data", + "sources.whySeparator": "; ", + "sources.unreachable": "Cannot reach the update server ({0})", + "sources.probe.start": "Testing speed of {0} download sources…", + "sources.probe.item": "Testing source {0}/{1}: {2}…", + "sources.probe.best": "Fastest source selected: {0} (about {1} MB/s)", + "incremental.manifestInvalidJson": "The incremental manifest is not valid JSON", + "incremental.manifestSchema": "The incremental manifest version is not supported", + "incremental.manifestNoVersion": "The incremental manifest is missing version information", + "incremental.manifestNoApp": "The incremental manifest is missing code package information", + "download.tooManyRedirects": "Too many redirects", + "download.timeout": "Connection timed out", + "download.resume416": "Cannot verify the partial file for resuming; the server returned HTTP 416", + "download.httpFailed": "Download failed HTTP {0}: {1}", + "download.resumeRangeMismatch": "The server returned a mismatched resume range", + "download.stalled": "Connection stalled (no data for a long time)", + "download.stalledNoData": "Connection stalled (no-data timeout)", + "download.cancelled": "Cancelled", + "download.interrupted": "Connection interrupted", + "download.checksumMismatch": "Verification failed: expected {0}… actual {1}…", + "download.chunkRequestRejected": "Chunk request rejected HTTP {0}", + "download.chunkRejected": "Chunk rejected HTTP {0}", + "download.chunkRangeMismatch": "The server returned a mismatched chunk range", + "download.chunkOverflow": "The chunk response exceeded the requested range", + "download.chunkIncomplete": "The chunk was not fully returned", + "download.chunkDownloadFailed": "Chunk download failed ({0}-{1}): {2}", + "download.chunkFailed": "Chunk failed ({0}-{1}): {2}", + "download.incomplete": "Download incomplete: {0}/{1} bytes", + "download.allSourcesFailed": "All download sources failed:\n{0}", + "download.noAddress": "No download address available", + "download.slowSource": "This source is too slow ({0} KB/s); switching source", + "appwin.rotateLandscape": "Switching to landscape (restarting the Android runtime, about 30-60 seconds)…", + "appwin.rotatePortrait": "Switching back to portrait (restarting the Android runtime, about 30-60 seconds)…", + "manual.topic.overview": "User manual · Contents", + "manual.topic.accel": "Hardware acceleration not enabled / slow boot", + "manual.topic.install": "Install failed (INSTALL_FAILED_*)", + "manual.topic.arm": "ARM translation layer / ARM apps will not install", + "manual.topic.adb": "adb unauthorized (Allow USB debugging)", + "manual.topic.startup": "Will not open / window with a spinning button", + "manual.topic.other": "Other startup problems: quick reference", + "manual.topic.sound": "No sound / very quiet sound", + "manual.topic.dll": "Store version fails to start / 0xC0000135 (DLL load failure)", + "manual.topic.mic": "Apps cannot use the microphone / no voice calls or recording", + "manual.topic.gpu": "Discrete / integrated GPU rendering (graphics preference)", + "manual.topic.diagnose": "Built-in manual and automatic tutorials", + "manual.topic.settings": "Settings page navigation", + "manual.topic.storage": "Data and directories", + "manual.topic.network": "Automatic checks and network repair" +} diff --git a/src/locales/pt-BR.json b/src/locales/pt-BR.json new file mode 100644 index 00000000..e08ac0b4 --- /dev/null +++ b/src/locales/pt-BR.json @@ -0,0 +1,1385 @@ +{ + "m0000": "Agora mesmo", + "m0001": "Há {0} min", + "m0002": "Há {0} h", + "m0003": "Há {0} dias", + "m0004": "Primeiro uso: abra Configurações → Ambiente Android → Configurar automaticamente. Depois, instale seus apps.", + "m0005": "Dica: todos os apps compartilham o mesmo ambiente Android. Assim, o próximo app inicia quase instantaneamente.", + "m0006": "", + "m0007": "Em execução", + "m0008": "Trazer para frente", + "m0009": "Abrir", + "m0010": "{0} apps", + "m0011": "Nenhum app instalado", + "m0012": "Ambiente Android não configurado — abra Configurações → Ambiente Android para configurar", + "m0013": "Configuração necessária", + "m0014": "Ambiente pronto · Android {0}{1}", + "m0015": " · Janelas individuais ativadas", + "m0016": "Iniciando o Android…", + "m0017": "Iniciando", + "m0018": "Aceleração de hardware indisponível: usando emulação por software (a primeira inicialização pode demorar)", + "m0019": "Emulação por software", + "m0020": "Imagem universal do Android 14 ausente — baixe em Configurações → Ambiente Android (cerca de 1,5 GB, uma única vez)", + "m0021": "É necessário baixar a imagem", + "m0022": "Ambiente Android não instalado — abra Configurações → Ambiente Android para configurar", + "m0024": "Ambiente pronto — instale um APK ou clique duas vezes em um atalho para iniciar", + "m0025": "Pronto para iniciar", + "m0026": "Instalador em execução — conclua a instalação na janela da máquina virtual", + "m0027": "Instalando", + "m0028": "Ambiente em espera (inicia automaticamente ao instalar ou abrir um app)", + "m0029": "Android ainda não instalado — continue em Configurações → Ambiente Android", + "m0030": "Em espera", + "m0031": "Instalação necessária", + "m0032": "Falha ao verificar o status: {0}", + "m0033": "Motor de execução", + "m0034": "Imagem do sistema", + "m0035": "Pronto · Android {0}", + "m0037": "Componentes prontos · Inicia ao abrir um app", + "m0038": "Falta {0}{1}", + "m0039": " (sem aceleração de hardware; será usada emulação por software)", + "m0040": "Ferramentas adb", + "m0041": "Ambiente Android", + "m0043": "Tudo pronto", + "m0044": "Configurar automaticamente", + "m0045": "Concluído automaticamente", + "m0046": "Automático", + "m0047": "Android {0} pronto · As janelas dos apps se ajustam à tela", + "m0049": "Componentes prontos. Clique duas vezes em um APK ou atalho para iniciar.", + "m0050": "Ainda falta {0}. Clique em “Configurar automaticamente” abaixo para instalar e iniciar em segundo plano.", + "m0051": "", + "m0052": "Preparando…", + "m0053": "Concluído · Clique para verificar novamente", + "m0055": "Falha na última inicialização: {0}", + "m0056": "Diagnóstico da última inicialização: {0}", + "m0057": "Tudo automático: não é preciso escolher a imagem, ativar a aceleração ou ajustar a memória", + "m0058": "Falha na configuração", + "m0059": "Verifique sua conexão e tente novamente", + "m0060": "Componentes prontos. Iniciando automaticamente…", + "m0061": "A primeira inicialização leva cerca de 1 a 3 minutos; as próximas levam poucos segundos.", + "m0062": "Ambiente Android pronto", + "m0063": "Arraste um APK para a janela ou clique duas vezes em um atalho da área de trabalho.", + "m0064": "Inicialização incompleta", + "m0065": "Exporte um relatório de diagnóstico para investigar", + "m0067": "Já existe uma configuração em andamento", + "m0068": "Instalando o driver de aceleração de hardware…", + "m0069": "Clique em “Sim” na solicitação de permissão", + "m0070": "Aceleração de hardware ativada", + "m0071": "Aceleração não ativada", + "m0072": "Etapa desconhecida", + "m0073": "Não foi possível iniciar o ambiente de instalação", + "m0074": "Janela da máquina virtual aberta", + "m0075": "Siga as seis etapas abaixo e clique em “Instalação concluída”.", + "m0076": "Instalação concluída; ambiente conectado", + "m0077": "Agora você pode arrastar um APK para cá para instalá-lo.", + "m0078": "Erro desconhecido", + "m0079": "{0}\nA partição de dados do Android está cheia: abra Configurações → Desempenho e recursos, aumente a partição e clique em “Expandir agora”.", + "m0080": "{0}\nEste pacote contém apenas bibliotecas ARM. Alternando para uma imagem compatível e tentando novamente.", + "m0081": "{0}\nO nome do pacote é igual ao de um app instalado, mas a assinatura é diferente. Desinstale o app pelo menu de contexto e tente novamente.", + "m0082": "{0}\nUma versão mais recente está instalada. Desinstale-a pelo menu de contexto primeiro.", + "m0083": "{0}\nO pacote é grande demais ou não há memória suficiente. Verifique o espaço em disco e a memória e tente novamente;", + "m0084": "se a falha persistir, use um caminho curto, sem acentos (por exemplo, D:\\a.apk).", + "m0085": "Já existe uma instalação em andamento", + "m0086": "Aguarde a instalação atual terminar.", + "m0087": "Instalando {0}", + "m0088": "Lendo o APK…", + "m0091": "{0} instalado", + "m0092": "Atalho criado na área de trabalho. Clique duas vezes para abrir o app.", + "m0093": "Crie um atalho na área de trabalho pelo menu de contexto do app.", + "m0094": "{0}: aviso de compatibilidade", + "m0095": "Abrindo {0}", + "m0096": "A primeira inicialização precisa preparar o ambiente. Aguarde…", + "m0097": "Iniciado", + "m0098": "O app está em uma janela própria (gire a tela pela barra superior).", + "m0099": "Falha ao iniciar", + "m0100": "Atalho criado na área de trabalho", + "m0101": "Não foi possível criar o atalho", + "m0102": "Desinstalar “{0}”?\n\nOs dados do app e o atalho da área de trabalho também serão removidos.", + "m0103": "Desinstalado", + "m0104": "Falha ao desinstalar", + "m0105": "Abrir app", + "m0106": "Criar atalho na área de trabalho", + "m0107": "Fixar no topo", + "m0108": "Mostrar APK na pasta", + "m0109": "Limpar dados do app", + "m0110": "Desinstalar", + "m0111": "Desafixar", + "m0113": "Limpar todos os dados de “{0}”? Esta ação não pode ser desfeita.", + "m0114": "Dados apagados", + "m0115": "Não foi possível apagar os dados", + "m0116": "Lendo…", + "m0117": "Ambiente Android indisponível ({0})", + "m0118": "Ambiente Android parado", + "m0119": "Wi-Fi ativado", + "m0120": "Wi-Fi desativado", + "m0121": "{0} · Volume {1}%", + "m0122": " · Modo avião", + "m0123": "Aplicado", + "m0124": "Falha: {0}", + "m0125": "Ambiente Android indisponível", + "m0126": "Wi-Fi ativado", + "m0127": "Wi-Fi desativado", + "m0128": "Modo avião ativado", + "m0129": "Modo avião desativado", + "m0130": "Animações do sistema ativadas", + "m0131": "Animações do sistema desativadas para agilizar a navegação", + "m0132": "Tamanho da fonte atualizado", + "m0133": "Tamanho de exibição atualizado", + "m0134": "Volume atualizado", + "m0135": "Otimizado: animações desativadas, limite de processos ampliado e exceção de bateria ativada", + "m0136": "Falha na otimização; o ambiente Android pode estar parado", + "m0137": "Abra um app primeiro para iniciar o ambiente Android", + "m0138": "Não foi possível ler as informações da partição de dados", + "m0139": "Ainda não criada", + "m0140": "Desconhecido", + "m0141": "Imagem de dados atual: {0}{1} · Espaço livre na unidade: {2}.", + "m0142": " (automático)", + "m0143": "Se um jogo informar falta de armazenamento, aumente este valor e clique em “Expandir agora”. Os apps e jogos salvos são preservados.", + "m0144": "Associado · Clique para desativar", + "m0145": "Não associado · Clique para ativar", + "m0146": "Modo automático", + "m0147": "Total: {0}{1}", + "m0148": " · Recuperável: {0} ({1} itens)", + "m0149": " · Já otimizado", + "m0150": "Estatísticas indisponíveis", + "m0152": "Falha na verificação: {0}", + "m0153": "Rede indisponível", + "m0154": "Abrir página de download", + "m0155": " (cache offline; pode estar desatualizado)", + "m0156": "Nova versão {0}{1}{2}{3}", + "m0157": "; {0} inacessível", + "m0158": "Atualizar agora", + "m0160": "Notas da versão:\n{0}", + "m0161": " (cache offline)", + "m0162": "Versão atualizada (v{0}){1}{2}", + "m0163": " · via {0}", + "m0164": "Falha na atualização: {0}", + "m0165": "Falha na atualização", + "m0166": "Atualizando…", + "m0167": "Verificando…", + "m0168": "Conectando ao GitHub…", + "m0169": "Nova versão {0}", + "m0170": "Clique em “Atualizar agora” para baixar e instalar automaticamente", + "m0171": "Versão atualizada", + "m0173": "Atualizando…", + "m0177": "Versão {0} baixada. Reiniciando para concluir a instalação…", + "m0178": "Política de recursos atualizada", + "m0179": "Será aplicado na próxima vez que você abrir um app", + "m0180": "Selecione uma capacidade primeiro", + "m0181": "“Automático” define o tamanho conforme o espaço livre em disco; não é necessário expandir manualmente", + "m0182": "Expandir a partição de dados do Android agora?", + "m0183": "Expandir /data para {0} GB, preservando os apps instalados e jogos salvos.", + "m0184": "Os apps Android em execução precisam ser fechados. A próxima inicialização reiniciará o Android e levará um pouco mais de tempo.", + "m0185": "Iniciar expansão", + "m0186": "Expandindo…", + "m0187": "Partição de dados expandida", + "m0188": "Falha na expansão", + "m0189": "Cerca de {0} GB disponíveis agora", + "m0191": "Componentes do sistema restaurados", + "m0192": "Redução avançada desativada; restaurando pacotes em segundo plano", + "m0193": "Modo de compatibilidade ARM ativado", + "m0194": "Baixe a imagem de compatibilidade do Google Play (Android 14, cerca de 1,5 GB) pelo botão abaixo", + "m0196": "Será aplicado após reiniciar o ambiente Android", + "m0197": "Modo de tela cheia ativado", + "m0198": "Modo de janela vertical ativado", + "m0199": "Tamanho de exibição atualizado", + "m0200": "Será aplicado ao abrir ou alternar apps", + "m0201": "Atalhos ausentes restaurados", + "m0202": "Todos os atalhos já existem", + "m0203": "Atalhos da área de trabalho e do menu Iniciar disponíveis", + "m0204": "Relatório de diagnóstico exportado", + "m0205": "Falha na exportação", + "m0206": "Já otimizado", + "m0207": "Nenhuma imagem ou snapshot antigo para remover.", + "m0208": "Limpeza concluída", + "m0209": "Cerca de {0} MB liberados ({1} itens). Os apps instalados foram preservados.", + "m0210": "Total: {0} · Recuperável: {1} ({2} itens)", + "m0211": "Falha na limpeza", + "m0212": "Redefinir os dados do Android?", + "m0213": "Isso restaura o Android ao estado de uma instalação limpa:", + "m0214": "• Exclui todos os apps de terceiros (incluindo jogos), seus dados e sessões de login\n", + "m0215": "• Exclui o snapshot de inicialização rápida do AVD atual\n", + "m0216": "• Preserva a imagem do sistema; os dados serão recriados na próxima inicialização a frio\n\n", + "m0217": "Esta ação não pode ser desfeita. Continuar?", + "m0218": "Cancelar", + "m0219": "Continuar", + "m0220": "Confirme mais uma vez", + "m0221": "Os apps instalados e seus dados serão excluídos permanentemente. Redefinir agora?", + "m0222": "A imagem do sistema, os outros AVDs, o cache local de APKs e os ícones serão preservados.", + "m0224": "Confirmar redefinição", + "m0225": "Falha na redefinição", + "m0226": "Tente novamente", + "m0227": "Dados do Android redefinidos", + "m0228": "Cerca de {0} MB liberados. Os registros de apps instalados foram apagados.", + "m0231": "Reparar a rede da máquina virtual?", + "m0232": "Telas vazias ou carregamento sem fim nos apps podem indicar que a máquina virtual Android está sem conexão.", + "m0233": "O reparo tenta estas etapas, da menos para a mais invasiva:\n\n", + "m0234": "1. Inicia sem carregar um snapshot e aguarda a conexão — preserva todos os dados\n", + "m0235": "2. Somente se necessário, redefine os dados do Android — mantém a lista de apps e os reinstala ao abrir,\n", + "m0236": " mas as sessões de login, o histórico e os demais dados dos apps serão perdidos\n\n", + "m0237": "Apenas o AVD atual será afetado. A imagem do sistema e o cache local de APKs serão preservados. Isso leva cerca de 1 a 5 minutos. Continuar?", + "m0239": "Iniciar reparo", + "m0240": "Rede ainda indisponível", + "m0241": "A máquina virtual continua sem rede após a redefinição. Verifique a conexão do computador e o firewall.", + "m0242": "Rede restaurada", + "m0243": "Conectado", + "m0244": " (os dados do Android foram redefinidos; os apps serão reinstalados ao abrir)", + "m0245": " (seus dados foram preservados)", + "m0246": "Falha no reparo", + "m0247": "Falha na verificação", + "m0249": "Nada para limpar", + "m0250": "Nenhum arquivo de versões antigas encontrado.", + "m0251": "…e mais {0} itens", + "m0252": "Limpar arquivos de versões antigas?", + "m0253": "Foram encontrados {0} itens, cerca de {1} MB:", + "m0254": "{0}\n\nSerão excluídos apenas diretórios antigos do programa, registros de desinstalação inválidos e arquivos temporários de atualização.", + "m0255": "A versão em execução e os dados dos seus apps serão preservados.", + "m0257": "Iniciar limpeza", + "m0260": "; {0} itens em uso foram ignorados", + "m0261": "Arquivos de versões antigas removidos", + "m0262": "{0} itens excluídos, liberando {1} MB{2}.", + "m0265": "Atalhos recriados", + "m0266": "Todos os atalhos existem", + "m0267": "Nenhum atalho precisa ser recriado", + "m0268": "Nova pasta selecionada", + "m0269": "Clique em “Salvar e migrar” para mover os arquivos existentes", + "m0270": "Digite ou selecione uma pasta primeiro", + "m0271": "Pasta compartilhada atualizada", + "m0272": "Os arquivos existentes foram movidos para a nova pasta", + "m0273": "Salvo", + "m0274": "Falha ao salvar", + "m0275": "Desinstalar o ApkStart?\n\nIsso remove a associação de arquivos .apk e o programa. Esta ação não pode ser desfeita.", + "m0276": "A versão portátil não pode ser desinstalada automaticamente", + "m0277": "Exclua manualmente a pasta do programa ({0}) e a pasta de dados ({1})", + "m0279": "Desinstalando…", + "m0280": "Desinstalador iniciado. O ApkStart será fechado em breve.", + "m0281": "Iniciando o download da imagem de compatibilidade ARM", + "m0283": "Baixar imagem de compatibilidade ARM", + "m0284": "Imagem de compatibilidade ARM pronta", + "m0286": "Falha ao baixar a imagem de compatibilidade", + "m0291": "Pronto ({0} GB)", + "m0292": "Não baixada", + "m0293": "Pasta de dados atualizada", + "m0294": "Reinicie o ApkStart para aplicar (os dados existentes não são movidos automaticamente)", + "m0295": "Pasta de dados do Android atualizada", + "m0296": "Reinicie o ApkStart para aplicar. Você pode mover a pasta apkstart.avd inteira para a nova pasta e depois excluir a cópia antiga.", + "m0297": "Detectando…", + "m0298": "Nenhum ambiente Android em execução encontrado", + "m0299": "Encontrado: {0}", + "m0300": "Iniciando…", + "m0301": "Pronto: {0}", + "m0302": "Falha ao iniciar: {0}", + "m0303": "Máquina virtual integrada parada", + "m0305": "Associação de .apk desativada", + "m0307": "Associação de .apk ativada", + "m0308": "Agora, clicar duas vezes em um APK o instala no ApkStart", + "m0309": "Falha na operação", + "m0310": "Imagem do sistema importada", + "m0311": "Falha na importação", + "m0312": "Disco virtual importado", + "m0313": "Agora você pode iniciar o ambiente Android", + "m0315": "Iniciando o ambiente Android…", + "m0316": "A primeira inicialização precisa iniciar o Android", + "m0319": "Sessão do ambiente Android encerrada", + "m0320": "Pasta compartilhada sincronizada", + "m0321": "Falha na sincronização", + "m0322": "A sincronização é ignorada quando o ambiente Android está indisponível", + "m0323": "Somente arquivos .apk podem ser arrastados para cá", + "m0324": "Falha na instalação: {0}", + "m0325": "Falha na instalação", + "m0327": "Boa noite", + "m0328": "Bom dia", + "m0329": "Boa tarde", + "m0330": "Boa tarde", + "m0331": "Boa noite", + "m0332": "{0}, bem-vindo de volta", + "m0333": "Ambiente pronto — abra um app para começar", + "m0334": "O ambiente será preparado automaticamente quando necessário", + "m0335": "Apps instalados", + "m0336": "Pronto", + "m0337": "Em espera", + "m0338": "Ambiente Android", + "m0339": "Dispositivo / porta", + "m0340": "Nova versão {0} disponível. Atualize em Configurações → Atualizações.", + "m0341": "Arraste um APK para a janela para instalar e criar um atalho na área de trabalho", + "m0342": "Clique duas vezes no cartão de um app para abri-lo em uma janela própria; gire, redimensione ou feche pelo canto superior direito", + "m0343": "Fechar uma janela encerra apenas aquele app; o Android continua pronto para agilizar a próxima abertura", + "m0344": "{0} problemas para corrigir", + "m0345": "{0} avisos", + "m0346": "\n
    \n \n Verificação concluída. Nenhum problema que afete o funcionamento foi encontrado.\n \n \n
    ", + "m0347": "\n
    \n Verificação do ambiente\n {0}\n {1}\n \n \n \n
    \n
    \n {2}\n
    ", + "m0348": "{0} graves", + "m0349": "{0} avisos", + "m0350": "", + "m0351": "Instalador integrado não encontrado", + "m0352": "A página oficial de download da Microsoft foi aberta. Baixe a versão x64.", + "m0353": "Bibliotecas de execução do VC++ instaladas", + "m0354": "Instalação incompleta", + "m0356": "Ativando a aceleração de hardware…", + "m0357": "Clique em “Sim” na solicitação", + "m0359": "Reinicie o computador para obter o melhor desempenho", + "m0360": "Não foi possível ativar", + "m0365": "Cerca de {0} MB liberados", + "m0366": "Use um caminho sem acentos ou caracteres especiais", + "m0367": "Altere “Pasta de dados do ambiente Android” em Configurações → Integração com o sistema e reinicie o ApkStart.", + "m0368": "Instalando os componentes ausentes do ambiente Android…", + "m0369": "Arquivos de bloqueio residuais removidos", + "m0371": "O reparo automático ainda não está disponível", + "m0372": "Falha na inicialização", + "m0373": "App", + "m0374": "Iniciando o ambiente Android…", + "m0375": "Baixando o ambiente Android do GitHub…", + "m0376": "Pacote do ambiente Android incompleto. Obtendo componentes ausentes das fontes oficiais…", + "m0377": "Ambiente Android do GitHub indisponível ({0}). Usando fontes oficiais…", + "m0378": "Preparando o adb…", + "m0379": "Preparando o ambiente Android…", + "m0380": "Preparando a imagem do sistema Android…", + "m0381": "Não foi possível iniciar o PowerShell", + "m0382": "O ApkStart continua em execução em segundo plano", + "m0383": "Clique no ícone da bandeja para reabrir; clique com o botão direito para sair.", + "m0384": "Abrir ApkStart", + "m0385": "Nenhum app instalado ainda", + "m0386": "Alternar para janela vertical", + "m0387": "Tela cheia (ajustar à tela)", + "m0388": "Recriar atalhos da área de trabalho e do menu Iniciar", + "m0389": "Sincronizar pasta compartilhada", + "m0390": "Configurações", + "m0392": "Verificar atualizações", + "m0393": "Nova versão disponível", + "m0394": "O ApkStart {0} está disponível; sua versão atual é a {1}. Atualizar agora?", + "m0396": "Mais tarde", + "m0398": "Sair", + "m0399": "ApkStart — Inicializador de apps Android", + "m0400": "Este APK já está sendo instalado. Aguarde…", + "m0401": "Instalação em andamento", + "m0402": "Outra instalação está em andamento. Aguarde a conclusão.", + "m0404": "Instalação concluída", + "m0405": "{0} instalado{1}", + "m0406": "; atalho criado na área de trabalho", + "m0408": "Atualização em andamento", + "m0409": "Já está atualizado", + "m0410": "Esta versão não tem um pacote instalável. A página da versão no GitHub foi aberta.", + "m0411": "Preparando o download…", + "m0412": "Substituindo os arquivos do programa e reiniciando…", + "m0414": "Abrindo o app…", + "m0416": "Selecionar pasta de dados", + "m0417": "Selecionar APK para instalar", + "m0418": "Apps Android", + "m0419": "App não encontrado", + "m0420": "A pasta não pode ficar em branco", + "m0421": "Bibliotecas de execução do VC++ ausentes (x64)", + "m0422": "O Android requer o Microsoft VC++ 2015–2022. Sem ele, o emulador pode não iniciar (0xc0000135).", + "m0423": "Aceleração de hardware desativada", + "m0424": "Será usada emulação por software (funciona, mas é lenta). Ative a virtualização para obter o melhor desempenho.", + "m0425": "Pouco espaço na unidade do ambiente Android", + "m0426": "A unidade que contém “{0}” tem apenas {1} MB livres. Os componentes e as imagens podem esgotar o espaço.", + "m0427": "A pasta do ambiente Android contém caracteres especiais", + "m0428": "Alguns componentes não aceitam caminhos com acentos ou caracteres especiais e podem falhar ao iniciar. Use um caminho sem esses caracteres.", + "m0429": "Ferramentas adb ausentes", + "m0430": "Não é possível conectar ao ambiente Android.", + "m0431": "Ambiente Android não instalado", + "m0432": "Configure o ambiente Android primeiro (cerca de 440 MB).", + "m0433": "Imagem do sistema indisponível", + "m0434": "Baixe a imagem do sistema Android primeiro (cerca de 1,5 GB).", + "m0435": "Arquivos de bloqueio da sessão anterior encontrados", + "m0436": "Esses arquivos podem fazer a próxima inicialização informar que o AVD já está em uso.", + "m0437": "Confirmar", + "m0439": "OK", + "m0440": "Partição de dados redimensionada", + "m0441": "Cerca de {0} GB disponíveis no Android{1}", + "m0442": " (ambiente Android reiniciado)", + "m0444": "Limpar {0} itens", + "m0445": "Confirmar limpeza do cache do ambiente Android", + "m0446": "Cerca de {0} MB serão liberados", + "m0447": "O ambiente Android será parado antes da remoção de imagens antigas, do snapshot de inicialização rápida do AVD atual, dos arquivos de bloqueio e dos caches de AVDs inativos. Os apps instalados serão preservados (apenas os snapshots serão removidos).", + "m0448": "Serão excluídos apenas imagens antigas, snapshots antigos, arquivos de bloqueio e caches de AVDs inativos. Os apps instalados serão preservados.", + "m0449": "Esta ação não pode ser desfeita. Exporte um relatório de diagnóstico antes, se necessário.", + "m0450": "Pacote do driver AEHD indisponível", + "m0451": "Permissão de administrador cancelada (clique em “Sim” para instalar o driver)", + "m0452": "Falha na instalação do driver (código de saída {0})", + "m0453": "A aceleração de hardware já está disponível; nenhuma ação necessária", + "m0454": "Plataforma de Máquina Virtual ativada. Reinicie o computador para obter o melhor desempenho.", + "m0455": "Plataforma de Máquina Virtual ativada; aceleração de hardware em funcionamento", + "m0456": "Não foi possível ativar a virtualização do sistema", + "m0457": "Não foi possível preparar o pacote do driver AEHD", + "m0460": "Aceleração de hardware AEHD ativada", + "m0461": "Selecionar imagem do sistema Android-x86 / Bliss OS", + "m0463": "Selecionar disco virtual com Android instalado", + "m0464": "Disco virtual", + "m0465": "Configuração desconhecida: {0}", + "m0466": "Escopo do agente vazio: nenhuma janela será alterada para evitar afetar outros programas", + "m0467": "Espaço em disco insuficiente", + "m0468": "Restam apenas {0} GB. Mova os dados do Android / ambiente para outra unidade em Configurações → Integração com o sistema ou libere espaço em disco.", + "m0469": "Restam apenas {0} GB; o Android pode não iniciar (altere a unidade em Configurações → Integração com o sistema)", + "m0470": "Atalhos ausentes restaurados", + "m0471": "Configuração automática do ambiente Android concluída", + "m0472": "[smoke] Falha na captura de tela", + "m0473": "Ambiente Android desconectado", + "m0475": "Buscar apps instalados", + "m0476": "Instalar APK", + "m0477": "Arraste um APK para cá para instalar", + "m0478": "A instalação cria um atalho na área de trabalho automaticamente. Clique duas vezes para abrir o app em uma janela própria, como qualquer programa do Windows.", + "m0479": "Com a associação de .apk ativada, clicar duas vezes em um APK no Explorador de Arquivos também o instala no ApkStart.", + "m0480": "Selecionar arquivos APK", + "m0481": "Verificando o ambiente Android…", + "m0482": "Olá", + "m0483": "ApkStart está pronto", + "m0484": "Não mostrar automaticamente ao iniciar", + "m0485": "Abrir configurações", + "m0486": "Começar", + "m0487": "Solte para instalar", + "m0488": "Aceita um ou mais arquivos .apk", + "m0490": "Ambiente Android e sistema", + "m0491": "Status do ambiente Android", + "m0492": "Verificando…", + "m0494": "Avançado: conectar a um ambiente existente", + "m0496": "Instalar Android em um disco virtual", + "m0497": "A janela da máquina virtual está aberta. Siga estas seis etapas uma vez; depois, o ApkStart iniciará pelo disco, sem precisar da imagem de instalação.", + "m0498": "Menu de inicialização", + "m0499": ": use", + "m0500": "para selecionar", + "m0501": " e pressione Enter", + "m0502": ": selecione", + "m0503": "; ao perguntar sobre GPT, selecione", + "m0504": "Particionamento com cfdisk", + "m0505": "→ pressione Enter para aceitar o tamanho →", + "m0506": "→ digite", + "m0507": "Formatar", + "m0509": "→ ao perguntar sobre a formatação, selecione", + "m0510": "Carregador de inicialização e sistema", + "m0511": "selecione", + "m0513": "Concluído", + "m0514": ": quando o progresso chegar a 100%, clique em “Instalação concluída” abaixo (o ApkStart reinicia e se conecta automaticamente)", + "m0515": "Se o adb ficar desconectado depois, pressione", + "m0516": "na máquina virtual para abrir um terminal e execute", + "m0517": " e pressione", + "m0518": "para voltar à interface gráfica.", + "m0519": "Instalação concluída", + "m0520": "Mais tarde", + "m0521": "Modo automático (padrão; sem ajustes necessários)", + "m0522": "Configuração adaptada a este computador", + "m0523": "Detectando…", + "m0524": "Memória, núcleos de CPU, renderização, portas e aceleração são selecionados automaticamente. Em caso de falha ao iniciar, o programa tenta alternativas sem ajustes manuais.", + "m0525": "Uso total do disco (ambiente Android + dados + cache)", + "m0526": "Calculando…", + "m0527": "Limpar arquivos recuperáveis", + "m0528": "Localizar e remover pastas antigas do programa, registros de desinstalação inválidos e arquivos temporários de atualização", + "m0529": "Limpar versões antigas", + "m0530": "Reparar problemas de rede da máquina virtual Android. Isso pode redefinir os dados do Android; a lista de apps será preservada e os apps serão reinstalados ao abrir.", + "m0531": "Reparar rede", + "m0532": "Excluir /data do Android, apps instalados e snapshots de inicialização rápida para restaurar um sistema limpo", + "m0533": "Redefinir dados do Android", + "m0534": "Excluir também o snapshot de inicialização rápida do AVD atual (para o ambiente Android antes e pode liberar vários GB)", + "m0535": "A imagem do sistema é compartilhada e os dados dos apps usam camadas diferenciais. Imagens antigas, snapshots, logs e arquivos de bloqueio podem ser removidos. Os logs são rotacionados automaticamente. Redefinir os dados do Android exclui os dados do usuário e preserva apenas o sistema.", + "m0536": "Exportar relatório de diagnóstico", + "m0537": "Recriar atalhos", + "m0538": "Os relatórios ajudam a investigar problemas; a recriação restaura os atalhos da área de trabalho e do menu Iniciar", + "m0539": "Iniciar com o Windows (ativado por padrão)", + "m0540": "Manter na bandeja após entrar no Windows para abrir apps pelos atalhos sem iniciar o ApkStart manualmente.", + "m0541": "Janelas dos apps", + "m0542": "Modo de exibição", + "m0543": "Janela vertical (redimensionável; lembra o tamanho de cada app)", + "m0544": "Tela cheia (ajusta à tela mantendo a proporção de celular)", + "m0545": "Pressione", + "m0546": "ou use o menu da bandeja para alternar. A tela cheia preserva a proporção e não reinicia o app.", + "m0547": "Resolução de renderização vertical", + "m0548": "Pequena · 720 × 1280", + "m0549": "Média · 900 × 1600", + "m0550": "Grande · 1080 × 1920", + "m0551": "Muito grande · 1440 × 2560", + "m0552": "Arraste a borda da janela para redimensionar. Este ajuste altera a resolução interna do Android; valores menores usam menos recursos.", + "m0553": "Controles do mouse", + "m0554": "Botão esquerdo · Confirmar / tocar", + "m0555": "O emulador mapeia o clique esquerdo como toque e o arrastar como gesto de deslizar. Nenhum ajuste adicional necessário.", + "m0556": "Botão direito · Voltar no Android", + "m0557": "Por padrão, o emulador também interpreta o clique direito como toque. Ative para que ele apenas volte, sem provocar um toque acidental.", + "m0558": "Roda do mouse · Deslizar", + "m0559": "Suave (recomendado) · Agrupar movimentos em um gesto contínuo", + "m0560": "Nativo · Deixar o emulador processar cada movimento", + "m0561": "Desativado · Não interceptar a roda do mouse", + "m0562": "O modo suave agrupa movimentos próximos em um único gesto, evitando travamentos e um processo adb para cada movimento.", + "m0563": "Botões laterais · Voltar / avançar (desativado por padrão)", + "m0564": "Os botões laterais precisam de interceptação global do mouse, ativada apenas enquanto uma janela de app do ApkStart está em primeiro plano e removida ao perder o foco ou fechar.", + "m0565": "Esses mapeamentos funcionam apenas nas janelas dos apps em primeiro plano. Ao voltar para a área de trabalho ou fechar a janela, o mouse volta ao comportamento normal do Windows.", + "m0566": "Desempenho e recursos", + "m0567": "Política de recursos", + "m0568": "Economia · 2 núcleos / prioridade reduzida / 540p", + "m0569": "Equilibrado · Metade dos núcleos físicos / prioridade reduzida / 720p (recomendado)", + "m0570": "Fluidez · Todos os núcleos / prioridade de primeiro plano (vídeos e jogos)", + "m0571": "Controla o uso de CPU e a qualidade da imagem. Escolha Fluidez para vídeos ou jogos com travamentos, ou Economia para apps leves em segundo plano. Será aplicado na próxima abertura de um app.", + "m0572": "Qualidade da imagem (resolução de renderização do Android)", + "m0573": "Automático (conforme a aceleração)", + "m0574": "Fluidez · 540 × 960", + "m0575": "Equilibrado · 720 × 1280", + "m0576": "Alta definição · 1080 × 1920", + "m0577": "Partição de dados do Android (apps e jogos)", + "m0579": "Expandir agora", + "m0580": "A expansão preserva os apps instalados e jogos salvos. A próxima abertura de um app leva um pouco mais de tempo.", + "m0581": "Lendo a partição de dados…", + "m0582": "Aceleração de rede (recomendado)", + "m0583": "Usar servidores DNS públicos na China (Alibaba / Tencent) para o Android. O DNS do computador pode ser lento com VPNs ou redes corporativas. Desative se os domínios internos deixarem de funcionar.", + "m0584": "Áudio do Android", + "m0585": "Reproduzir sons de notificações e vídeos dos apps. Desative apenas se não precisar de áudio e quiser reduzir o uso de CPU.", + "m0586": "Manter snapshot de inicialização rápida (recomendado)", + "m0587": "As próximas inicializações levam segundos, com um custo de cerca de 2 a 3 GB em disco para", + "m0588": ". Desative se houver pouco espaço; isso afeta a velocidade de inicialização, mas preserva os apps e jogos salvos.", + "m0589": "Detalhes do contêiner (avançado)", + "m0590": "Contêiner leve", + "m0591": "Limitar a alocação de vCPU e reduzir a prioridade do processo para favorecer a área de trabalho do Windows. A política de recursos já gerencia este ajuste.", + "m0592": "Prioridade da máquina virtual", + "m0593": "Equilibrado (recomendado) · Favorecer a janela em primeiro plano", + "m0594": "Desempenho · Mesma prioridade do primeiro plano", + "m0595": "Quando nenhuma janela de app está aberta, o contêiner entra automaticamente em espera com a menor prioridade.", + "m0596": "Redução avançada de processos em segundo plano", + "m0597": "Desativar pacotes extras em segundo plano, como Play Store, assistente de configuração e serviços de impressão. Desative este ajuste para restaurá-los se um app informar falta dos serviços do Google Play.", + "m0598": "Pré-carregar ao iniciar (recomendado)", + "m0599": "Iniciar o Android em segundo plano junto com o ApkStart, mantendo o emulador oculto. Os apps abrem mais rápido, com um custo de cerca de 1 GB de memória em espera. Desative para iniciar o Android apenas ao abrir o primeiro app.", + "m0600": "O Android inicia uma vez e permanece pronto. Abrir outro app inicia apenas esse app e encerra os processos dos demais. Fechar a última janela limpa os processos em segundo plano e coloca o contêiner em espera.", + "m0601": "Fontes de download e atualização", + "m0602": "Fonte de atualização e download", + "m0603": "Escolher a fonte mais rápida automaticamente (recomendado)", + "m0604": "Somente Gitee (geralmente mais rápido na China)", + "m0605": "Somente GitHub", + "m0606": "O modo automático consulta o GitHub e o Gitee, testa cada URL com uma amostra de 256 KB e usa a mais rápida. Uma fonte indisponível não impede as atualizações.", + "m0607": "Tentar espelhos públicos automaticamente", + "m0608": "Se o GitHub estiver lento, testar também ghfast.top / gh-proxy.com. Esses serviços de terceiros encaminham arquivos públicos sem informações de conta. Desative para usar apenas downloads diretos e seu prefixo personalizado.", + "m0609": "Prefixo do espelho (opcional, acelera o GitHub)", + "m0610": "Por exemplo, https://ghfast.top/", + "m0611": "Se preenchido, apenas este prefixo será usado em vez dos espelhos públicos acima. Deixe em branco para seleção automática. O prefixo será adicionado antes da URL de download.", + "m0612": "Conexões de download (1 a 16, padrão 8)", + "m0613": "Arquivos grandes são baixados em partes paralelas. Oito conexões costumam ser suficientes; tente dezesseis em uma conexão estável.", + "m0614": "Fonte de atualização Gitee (opcional)", + "m0615": "Token do Gitee somente de leitura (geralmente desnecessário)", + "m0616": "Deixe em branco: repositórios públicos permitem acesso anônimo", + "m0617": "A lista de versões deste repositório público no Gitee permite acesso anônimo. Um token só é necessário para limites de acesso (403/429) ou branches privadas: gitee.com → Configurações → Tokens pessoais, com apenas “projects”. Ele é usado somente para ler versões; nada é enviado.", + "m0618": "Configurações avançadas (geralmente sem necessidade de alteração)", + "m0619": "Ambiente Android", + "m0620": "Modo de execução", + "m0621": "Ambiente integrado (recomendado, QEMU + Android-x86)", + "m0622": "Conectar a um ambiente existente (avançado: porta adb do WSA / outro emulador)", + "m0623": "Caminho do adb", + "m0624": "Deixe em branco para buscar automaticamente no PATH / Android SDK", + "m0625": "Endereço do dispositivo", + "m0626": "Detectar", + "m0627": "Imagem do sistema (ISO)", + "m0628": "Caminho da ISO ou IMG do Android-x86 / Bliss OS; deixe em branco para usar o padrão", + "m0629": "Memória (MB, 0 = automático)", + "m0630": "Núcleos de CPU (0 = automático)", + "m0631": "Desligamento por inatividade (minutos, 0 = desativado)", + "m0632": "Imagem de compatibilidade universal (gerenciada automaticamente)", + "m0633": "Uma única imagem universal do Android 14 aceita apps x86 e ARM e é baixada automaticamente quando necessário. Este controle existe apenas para compatibilidade com configurações antigas.", + "m0634": "Imagem de compatibilidade", + "m0636": "Baixar imagem de compatibilidade", + "m0637": "Iniciar ambiente Android", + "m0638": "Parar máquina virtual integrada", + "m0639": "Configurações do Android (sem abrir a área de trabalho do Android)", + "m0642": "Atualizar", + "m0643": "Otimizar desempenho", + "m0644": "Desativar animações, ampliar limites de processos em segundo plano e isentar o app atual da otimização de bateria. O efeito é mais perceptível em computadores modestos.", + "m0645": "Wi-Fi dentro da máquina virtual Android; desative para reduzir o uso de CPU.", + "m0646": "Modo avião", + "m0647": "Desconectar todas as redes, incluindo os dados móveis.", + "m0648": "Animações do sistema", + "m0649": "Desative para transições mais rápidas sem afetar as funções.", + "m0650": "Volume de mídia", + "m0651": "Tamanho da fonte", + "m0652": "Pequena", + "m0653": "Padrão", + "m0654": "Grande", + "m0655": "Muito grande", + "m0656": "Tamanho de exibição", + "m0657": "Compacto (usa menos recursos)", + "m0659": "Amplo", + "m0661": "Configurações nativas do Android", + "m0662": "Configurações de tela", + "m0663": "Configurações de som", + "m0664": "Configurações de idioma", + "m0665": "Gerenciar apps", + "m0666": "Área de trabalho e apps", + "m0667": "Criar atalhos na área de trabalho após a instalação", + "m0668": "Os atalhos usam os ícones reais e abrem os apps diretamente", + "m0669": "Adicionar também ao menu Iniciar", + "m0670": "Encontre apps na Pesquisa do Windows; as janelas da barra de tarefas são agrupadas por app", + "m0671": "Pasta de atalhos", + "m0672": "Em branco = área de trabalho", + "m0674": "Restaure os atalhos conforme as configurações atuais se os ícones foram apagados sem querer ou bloqueados pelo software de segurança.", + "m0675": "Compartilhamento de arquivos", + "m0676": "Pasta compartilhada neste computador", + "m0677": "Procurar", + "m0679": "Sincronizar agora", + "m0680": "Salvar e migrar", + "m0681": "Os arquivos existentes são movidos automaticamente da pasta antiga; o compartilhamento em andamento não é interrompido.", + "m0682": "Pasta correspondente no Android", + "m0683": "As duas pastas permanecem sincronizadas nos dois sentidos. Arquivos salvos ali pelos apps Android aparecem na pasta compartilhada deste computador.", + "m0684": "Integração com o sistema", + "m0685": "Associar arquivos .apk", + "m0686": "Clique duas vezes em APKs para instalar no ApkStart (somente usuário atual; sem administrador)", + "m0688": "Pasta de dados do ambiente Android (imagens · apps · snapshots)", + "m0689": "Padrão: pasta de dados do usuário em C:", + "m0692": "Esta pasta usa vários GB. Movê-la para outra unidade pode liberar espaço em C:. Reinicie após alterar. Os dados existentes não são movidos automaticamente; copie-os manualmente antes de remover a cópia antiga.", + "m0693": "Pasta de dados do Android (apps, jogos e snapshots de inicialização rápida)", + "m0694": "Padrão: pasta avd dentro da pasta do ambiente Android", + "m0697": "O maior consumo é da partição de dados (padrão de 6 GB, expansível acima) e dos snapshots de inicialização rápida (cerca de 2 a 3 GB). Selecione outra unidade, como D:, e reinicie para aplicar. A pasta antiga", + "m0698": "pode ser movida inteira antes de excluir a cópia antiga.", + "m0699": "Desinstalar ApkStart", + "m0700": "Desinstalar", + "m0701": "A desinstalação remove a associação de .apk e o programa. Na versão portátil, siga as instruções para excluir a pasta manualmente.", + "m0702": "Atualizações", + "m0703": "Versão atual", + "m0704": "Ainda não verificado", + "m0707": "Obter a versão mais recente do GitHub (RoutineMiku/apkstart). A versão leve baixa um pacote portátil e substitui os arquivos do programa automaticamente, preservando o ambiente Android, os apps instalados e os snapshots.", + "m0708": "Sobre", + "m0709": "QR code da conta oficial no WeChat", + "m0710": "Escaneie para seguir no WeChat", + "m0711": "QR code do Douyin", + "m0712": "Douyin · Daily MIKU", + "m0713": "Inicializador de apps Android para Windows: instalação de APKs, atalhos na área de trabalho, janelas individuais e compartilhamento de arquivos nos dois sentidos.", + "m0714": "Douyin · @Daily MIKU (contatar o autor)", + "m0715": "As alterações são aplicadas imediatamente", + "m0718": "Horizontal / vertical (Ctrl+R)", + "m0719": "Minimizar", + "m0720": "Maximizar", + "m0721": "Fechar", + "settings.language": "Idioma", + "settings.systemLanguage": "Idioma do sistema", + "settings.languageNote": "O idioma da interface muda imediatamente, sem alterar o idioma do sistema Android.", + "profile.summary": "Automático: {0} GB de RAM · {1} núcleos · Renderização {2} · {3} · {4}{5} · Porta {6}", + "profile.accelerated": "Aceleração de hardware", + "profile.snapshot": "Snapshots sob demanda", + "profile.coldBoot": "Inicialização a frio", + "profile.lite": " · Contêiner leve", + "settings.gamePriority": "Jogos / baixa latência · Alta prioridade para jogos de tiro e ritmo", + "settings.gamePriorityNote": "O modo de jogos aumenta a prioridade de CPU da máquina virtual Android e reduz as verificações periódicas no computador para diminuir a latência dos comandos e da imagem. Outros programas podem ficar mais lentos. Sem janelas de apps abertas, o contêiner ainda reduz sua prioridade e entra em espera automaticamente.", + "display.restartingLandscape": "Alternando para horizontal: reiniciando o ambiente Android…", + "display.restartingPortrait": "Alternando para vertical: reiniciando o ambiente Android…", + "v058.m0000": "Alternando “{0}” para {1} (reiniciando o Android, cerca de 40 segundos, uma vez)…", + "v058.m0001": "horizontal", + "v058.m0002": "vertical", + "v058.m0003": "autoDeploy em espera (última falha em {0}); ignorando nova tentativa automática", + "v058.m0004": "Ignorando autoDeploy: ambiente incluído no pacote ({0}); sem necessidade de rede", + "v058.m0005": "; a imagem será extraída localmente na primeira inicialização", + "v058.m0006": "Ignorando download automático: pasta do ambiente incluída no pacote ({0}); usando diagnóstico", + "v058.m0007": "A edição da Store não pode obter privilégios de administrador. Ative manualmente uma vez: ", + "v058.m0008": "Pressione Win+R → digite optionalfeatures → ative “Plataforma do Hipervisor do Windows”", + "v058.m0009": " (HypervisorPlatform, exigida pelo WHPX), confirme e reinicie o computador.", + "v058.m0010": "Fechar app atual ({0})", + "v058.m0011": "Fechar app atual", + "v058.m0012": "Alternar para vertical (requer reiniciar o ambiente)", + "v058.m0013": "Alternar para horizontal (requer reiniciar o ambiente)", + "v058.m0014": "As atualizações da edição da Store são gerenciadas pela Microsoft Store. A página de downloads e atualizações foi aberta.", + "v058.m0015": "inicialização de {0} na fila (aguardando {1} iniciar)", + "v058.m0016": "app iniciado (conexão antecipada da tela)", + "v058.m0017": "orientação diferente (painel={0}, desejada={1}); reiniciando para corrigir", + "v058.m0018": "Alternando para horizontal…", + "v058.m0019": "Alternando para vertical…", + "v058.m0020": "Em execução com emulação por software (muito lenta)", + "v058.m0021": "Ative a Plataforma do Hipervisor do Windows e reinicie uma vez para obter desempenho até 5 a 10 vezes maior.", + "v058.m0022": "Configurações → Verificação do ambiente → Corrigir abre essa janela.", + "v058.m0023": "Configurações → Verificação do ambiente → Corrigir permite ativar (requer permissão de administrador); reinicie depois.", + "v058.m0024": "Nenhum app em execução", + "v058.m0025": "Configuração automática da verificação: {0} driver={1}", + "v058.m0026": "(não salvo)", + "v058.m0027": "Selecionar arquivo de driver (.json)", + "v058.m0028": "JSON de driver", + "v058.m0029": "Driver importado: {0} v{1}", + "v058.m0030": "Exportar modelo de driver para este computador", + "v058.m0032": "ID do driver ausente", + "v058.m0033": "É necessário ativar a Plataforma do Hipervisor do Windows", + "v058.m0034": "Sem ela, a emulação por software pode levar vários minutos para iniciar.", + "v058.m0035": " (A edição da Store não pode solicitar permissão de administrador por você. Ative manualmente e reinicie.)", + "v058.m0036": "Usando emulação por software (funciona, mas é muito lenta).", + "v058.m0037": "Clique em “Corrigir” à direita para ativar automaticamente (requer permissão de administrador; pode exigir reinicialização); ", + "v058.m0038": "se falhar, o driver AEHD será tentado como alternativa.", + "v058.m0039": "Ambiente indisponível; não foi possível consultar a alocação de recursos", + "v058.m0040": "Capacidade de destino inválida", + "v058.m0041": "Foi solicitada a ativação da Plataforma do Hipervisor do Windows. A aceleração de hardware terá efeito após reiniciar o computador.", + "v058.m0042": "Plataforma do Hipervisor do Windows ativada; reinicie o computador para aplicar", + "v058.m0044": "Permissão de administrador cancelada; a aceleração de hardware não foi alterada. Clique em “Corrigir” novamente ou ative a Plataforma do Hipervisor do Windows manualmente.", + "v058.m0045": "Concluindo a atualização anterior…", + "v058.m0046": "\n
    \n
    \n \n
    \n
    Adicionar app
    \n
    Arraste um APK para instalar
    \n
    \n ", + "v058.m0047": "Aceleração de hardware desativada: usando emulação por software (muito lenta). Abra Verificação do ambiente → Corrigir no canto inferior direito para ativar.", + "v058.m0048": "Rede conectada {0}", + "v058.m0049": "Máquina virtual sem conexão", + "v058.m0050": "O Android está conectado; os apps podem carregar conteúdo da internet", + "v058.m0051": "O Android está sem conexão; páginas online podem ficar vazias ou falhar. Abra Configurações → Reparar rede.", + "v058.m0052": "Fechar app", + "v058.m0053": "Mapeamento de teclas…", + "v058.m0054": "Fechado", + "v058.m0055": "Não foi possível fechar", + "v058.m0057": "0. Limpar mapeamento atual", + "v058.m0058": "Escolha um mapeamento de teclas para “{0}”:\n\n{1}\n\nDigite o número:", + "v058.m0059": "Mapeamento de teclas apagado", + "v058.m0060": "Número inválido", + "v058.m0061": "“{0}” aplicado", + "v058.m0062": "{0} · Abra o app para usar os controles do teclado", + "v058.m0063": "Não foi possível salvar o mapeamento de teclas", + "v058.m0064": "Informações de alocação de recursos indisponíveis", + "v058.m0065": "Este computador: {0} de RAM / {1} núcleos; ", + "v058.m0066": "Aloque até {0} de RAM e {1} núcleos (reservando 1/4 da RAM e um núcleo para o Windows).", + "v058.m0067": "Limite da partição de dados: {0} GB{1}.", + "v058.m0068": " (a unidade tem {0} GB livres)", + "v058.m0069": "A verificação não retornou um resultado. Tente novamente.", + "v058.m0070": "Processando…", + "v058.m0071": "Operação incompleta", + "v058.m0072": "Tente novamente mais tarde ou siga as instruções manuais", + "v058.m0073": "Cancelado", + "v058.m0074": "As configurações do sistema não foram alteradas", + "v058.m0075": "A aceleração de hardware já está disponível", + "v058.m0076": "Alterações solicitadas; é necessário reiniciar", + "v058.m0077": "Reinicie o computador para ativar a aceleração de hardware e clique em “Iniciar verificação” para confirmar", + "v058.m0078": "Clique em “Iniciar verificação” para confirmar o resultado", + "v058.m0079": "Não foi possível concluir a configuração automática", + "v058.m0080": "Siga as instruções manuais", + "v058.m0081": "{0}. Recomendado: {1} GB de RAM / ", + "v058.m0082": "{0} núcleos / {1} · Renderização {2}", + "v058.m0083": "(Edição da Store: ative os recursos do sistema manualmente em Recursos do Windows)", + "v058.m0084": "Verificando o sistema…", + "v058.m0085": "Verificando virtualização, placa de vídeo e memória… (cerca de 2 a 3 segundos no primeiro uso)", + "v058.m0086": "Falha na verificação do sistema", + "v058.m0087": "Sem aceleração de hardware", + "v058.m0088": "Este computador: {0}/{1} · Placa de vídeo {2} · {3}", + "v058.m0089": " · emulator {0}; {1} drivers, {2} ativos neste computador.", + "v058.m0090": " Não foi possível carregar {0} arquivos (veja abaixo).", + "v058.m0091": "Tente novamente mais tarde", + "v058.m0092": "Exemplo integrado", + "v058.m0093": " · Compatível: {0}", + "v058.m0094": " · Incompatível com este computador", + "v058.m0095": "Nenhum driver ainda. Exporte um modelo para criar um ou importe um arquivo JSON compartilhado por outra pessoa.", + "v058.m0096": "Lista de drivers indisponível (o ambiente pode não estar configurado)", + "v058.m0097": "Disco diferencial de inicialização rápida (a capacidade real depende de /data no ambiente Android)", + "v058.m0098": "Sistema de arquivos real: {0} GB", + "v058.m0099": " A capacidade desejada de {0} GB ainda não está ativa: o Android usa um disco diferencial de inicialização rápida. Redefina os dados do Android para recriar /data com o novo tamanho (exclui os apps instalados).", + "v058.m0100": "Partição de dados atual: {0}{1} · Espaço livre na unidade: {2}.{3}", + "v058.m0101": "Se um jogo informar falta de armazenamento, aumente este tamanho e clique em “Expandir agora”. Os apps são preservados quando é possível expandir sem recriar os dados.", + "v058.m0102": "Falha ao aplicar", + "v058.m0104": "Configurado para este computador", + "v058.m0105": "{0} GB de RAM / {1} núcleos / {2}", + "v058.m0106": "; driver gerado e aplicado automaticamente na próxima inicialização", + "v058.m0107": "Não foi possível salvar o driver", + "v058.m0108": "Não foi possível abrir a pasta de drivers", + "v058.m0109": "Driver importado e ativado", + "v058.m0110": "Modelo exportado", + "v058.m0111": "Edite effect, salve na pasta de drivers e clique em “Atualizar” para aplicar", + "v058.m0112": "Idioma do sistema atualizado", + "v058.m0113": "Será aplicado após a próxima reinicialização do ambiente Android", + "v058.m0114": "Método de entrada em chinês ativado", + "v058.m0115": "Método de entrada em chinês desativado", + "v058.m0117": "É necessário redefinir os dados do Android para expandir", + "v058.m0118": "O Android usa um disco diferencial de inicialização rápida que não pode ser expandido diretamente. Recrie /data para obter {0} GB.", + "v058.m0119": "Recriar exclui os apps instalados e jogos salvos (o emulador e a imagem são preservados). Continuar?", + "v058.m0120": "Apagar e recriar", + "v058.m0121": "Recriando…", + "v058.m0122": "Recriado com o novo tamanho", + "v058.m0123": "Não foi possível recriar", + "v058.m0124": "A próxima abertura de um app recriará /data com {0} GB (a primeira inicialização levará um pouco mais de tempo)", + "v058.m0125": "Mapeamento de teclado ativado", + "v058.m0126": "Mapeamento de teclado desativado", + "v058.m0127": "Tela cheia automática ativada", + "v058.m0128": "Tela cheia automática desativada", + "v058.m0129": "Será aplicado na próxima abertura de um app", + "v058.m0130": "Configurado para seguir a orientação do app", + "v058.m0131": "Orientação horizontal forçada", + "v058.m0132": "Orientação vertical forçada", + "v058.m0133": "A próxima abertura usará a orientação declarada pelo app e reiniciará o ambiente uma vez se a orientação do painel for diferente.", + "v058.m0134": "A próxima abertura reiniciará o ambiente uma vez para ajustar o painel à orientação selecionada.", + "v058.m0135": "Layout de tablet ativado", + "v058.m0136": "Layout de tablet desativado", + "v058.m0137": "Será aplicado na próxima abertura (uma reinicialização do ambiente para alterar a densidade lógica).", + "v058.m0138": "Painel ajustado para horizontal", + "v058.m0139": "Painel ajustado para vertical", + "v058.m0140": "A próxima abertura reiniciará o ambiente uma vez para alterar a orientação física do painel (cerca de alguns segundos).", + "v058.m0141": "Modo integrado ativado", + "v058.m0142": "Modo de janela separada ativado", + "v058.m0143": "Será aplicado na próxima abertura. No modo separado, o emulador gerencia sua própria janela, orientação e escala.", + "v058.m0144": "Ative manualmente uma vez (configuração única)", + "v058.m0145": "Ative “Plataforma do Hipervisor do Windows” na janela aberta, confirme e reinicie o computador.", + "v058.m0147": "A permissão de administrador não foi concedida; a aceleração de hardware não foi alterada.", + "v058.m0148": "Primeira inicialização · Preparando localmente (sem necessidade de rede)", + "v058.m0149": "
  • Componentes incluídos no instalador; sem downloads adicionais
  • ", + "v058.m0150": "
  • Extrair a imagem para os dados do usuário (cerca de um minuto, uma vez)
  • ", + "v058.m0151": "
  • Preparar a aceleração de hardware e a entrada em chinês
  • ", + "v058.m0152": "
  • Depois, clique duas vezes em um APK ou atalho para abrir um app
  • ", + "v058.m0153": "简体中文", + "v058.m0154": " Memória, núcleos, renderização, portas e aceleração são selecionados automaticamente, com alternativas em caso de falha. O ApkStart usa ", + "v058.m0155": " uma porta exclusiva para o servidor adb, 5044 ", + "v058.m0156": " (o adb do sistema usa 5037), por isso executar ", + "v058.m0157": " não mostra este dispositivo Android. Esse isolamento é intencional. Para conectar, defina ", + "v058.m0158": " antes de executar o adb. Não conecte manualmente à porta 5555 usando ", + "v058.m0159": " , pois isso exibe uma solicitação “Permitir depuração USB?” sobre o app em execução. ", + "v058.m0160": "Tela cheia automática", + "v058.m0161": "Desativada (usar o modo de exibição acima)", + "v058.m0162": "Ativada · Abrir todos os apps em tela cheia", + "v058.m0163": "Os apps abrem em tela cheia sem pressionar F11. Funciona melhor na orientação horizontal, cuja proporção se ajusta à tela sem bordas pretas.", + "v058.m0164": "Orientação da tela", + "v058.m0165": "Seguir app (recomendado · Ajustar automaticamente para vertical ou horizontal)", + "v058.m0166": "Forçar vertical (proporção de celular, para vídeos curtos e leitura)", + "v058.m0167": "Forçar horizontal (tela larga, para vídeos e jogos)", + "v058.m0168": " A orientação do Android depende da ", + "v058.m0169": " orientação física do painel do celular virtual ", + "v058.m0170": " . Se ela for diferente da orientação declarada pelo app, o Android pode exibir uma faixa estreita com bordas pretas. Redimensionar a janela ou alterar a resolução não preenche a tela. Seguir app lê a orientação do APK e seleciona o painel correspondente ao iniciar. O ambiente reinicia apenas quando a orientação muda; as próximas aberturas na mesma orientação são rápidas. ", + "v058.m0171": "Layout de tablet", + "v058.m0172": "Ativado (recomendado · 190 dpi, layout de tablet sw606dp)", + "v058.m0173": "Desativado (densidade padrão da imagem, layout de celular)", + "v058.m0174": "A 190 dpi, 720 pixels equivalem a 606 dp, ultrapassando o limite de 600 dp do Android para tablets. Alguns apps passam a mostrar páginas em duas colunas. Desative para usar o layout de celular (texto maior e menos informações). Será aplicado na próxima abertura.", + "v058.m0175": "Orientação atual do painel", + "v058.m0176": "Painel vertical", + "v058.m0177": "Painel horizontal", + "v058.m0178": " O ambiente ", + "v058.m0179": " atualmente ", + "v058.m0180": " usa esta orientação física do painel, selecionada pela política acima. Apenas os modos forçados permitem defini-la diretamente. ", + "v058.m0181": "Exibição da janela", + "v058.m0182": "Integrada (padrão) · Android dentro da janela do ApkStart", + "v058.m0183": "Janela separada · Emulador gerencia escala e entrada", + "v058.m0184": "O modo integrado oferece uma janela unificada, mas incorporar o emulador pode causar bordas pretas ou cliques incorretos ao redimensionar, girar ou alternar janelas. O modo separado deixa o emulador gerenciar orientação, escala e entrada, com um ícone adicional na barra de tarefas. Será aplicado na próxima abertura.", + "v058.m0185": "Mapeamento do teclado (controles de jogos)", + "v058.m0186": "Ativar mapeamento do teclado", + "v058.m0187": "Mapeie teclas para toques e gestos no Android (por exemplo, WASD para movimento e J/K para habilidades). Configure cada app separadamente: clique com o botão direito no cartão → Mapeamento de teclas para escolher um modelo ou layout personalizado.", + "v058.m0188": "Nenhum mapeamento para o app atual. Clique com o botão direito no cartão para aplicar um modelo.", + "v058.m0189": "64 GB (para jogos de cerca de 50 GB)", + "v058.m0190": "Idioma do sistema", + "v058.m0191": "Chinês simplificado (recomendado)", + "v058.m0192": "繁體中文", + "v058.m0193": "English (padrão da imagem)", + "v058.m0194": "日本語", + "v058.m0195": " Idioma das configurações do sistema, solicitações de permissão e datas. Aplicado durante a inicialização; ", + "v058.m0196": " entra em vigor após reiniciar o ambiente ", + "v058.m0197": " . O método de entrada em chinês é controlado separadamente abaixo. ", + "v058.m0198": "Método de entrada em chinês (recomendado)", + "v058.m0199": "A imagem inclui apenas um teclado em inglês. Ative para instalar e habilitar o Google Pinyin incluído no pacote e digitar em chinês nos apps Android. Desative para manter o método de entrada original.", + "v058.m0200": "Verificação do sistema · Configuração automática", + "v058.m0201": "Verifique a virtualização da CPU, a Plataforma do Hipervisor do Windows, placa de vídeo, memória de vídeo, RAM e versão do sistema. As recomendações de memória, núcleos, qualidade e renderização são salvas com um perfil de compatibilidade. Ações que exigem administrador recebem um botão; mudanças no BIOS incluem instruções manuais.", + "v058.m0202": "Iniciar verificação", + "v058.m0203": "Aplicar configurações recomendadas", + "v058.m0204": "Drivers · Perfis de compatibilidade", + "v058.m0205": " Alguns computadores precisam de parâmetros de inicialização diferentes (placas antigas, aceleração desativada ou drivers de vídeo instáveis). Um driver de compatibilidade é um JSON que define os computadores compatíveis e os ajustes de inicialização. Você pode criar, importar e compartilhar. Apenas configurações permitidas podem mudar; os drivers ", + "v058.m0206": " não executam código ", + "v058.m0207": " e só são aplicados quando as condições correspondem ao computador. ", + "v058.m0208": "Lendo os drivers…", + "v058.m0209": "Importar driver…", + "v058.m0210": "Abrir pasta de drivers", + "v058.m0211": "Exportar modelo do computador", + "v058.m0212": " Exportar modelo do computador preenche as condições de compatibilidade com esta máquina. Edite ", + "v058.m0213": " em ", + "v058.m0214": " para usar. A documentação dos campos está no repositório em ", + "v058.m0215": "Ambiente integrado do ApkStart (QEMU + Android 14, independente)", + "v058.m0216": "O ApkStart baixa e gerencia seu próprio adb, emulador e imagem do sistema. Ele não detecta, assume ou depende de emuladores de terceiros (MuMu, LDPlayer, BlueStacks ou WSA). Outros emuladores e suas atualizações não o afetam.", + "v058.m0217": "Atribuído automaticamente pelo ApkStart (emulator-5554; próxima porta livre em caso de conflito). Não é necessário preencher.", + "v058.m0218": "Inicializador de apps Android para Windows", + "v058.m0219": "Preparando…", + "v058.m0220": "Primeiro uso · Configuração automática", + "v058.m0221": "Baixar ambiente Android (cerca de 200 MB, uma vez)", + "v058.m0222": "Baixar imagem do sistema (cerca de 1,5 GB, uma vez)", + "v058.m0223": "Configurar aceleração de hardware e rede", + "v058.m0224": "Depois, clique duas vezes em um APK ou atalho para abrir apps", + "v062.m0000": "O ambiente aponta para outra instalação ({0}); usando o ambiente incluído no pacote {1}", + "v062.m0001": "Alternando para horizontal (reiniciando o Android, cerca de 40 segundos, uma vez)…", + "v062.m0002": "Alternando para vertical (reiniciando o Android, cerca de 40 segundos, uma vez)…", + "v062.m0003": "conexão da janela nativa: janela de espera fechada (tentativa {0})", + "v062.m0004": "falha ao conectar a janela nativa na tentativa {0}: {1}", + "v062.m0005": "Falha ao conectar a janela nativa após todas as tentativas; usando temporariamente o modo integrado", + "v062.m0006": "Não foi possível exibir a janela nativa do emulador. Usando a janela integrada nesta sessão.", + "v062.m0007": "Manual do usuário do ApkStart · {0}", + "v062.m0008": "A verificação automática encontrou novos problemas: {0} (Configurações → Diagnóstico e reparo)", + "v062.m0009": "A verificação automática encontrou novos problemas", + "v062.m0010": "{0}. Abra Configurações → Diagnóstico e reparo no ApkStart para resolver.", + "v062.m0011": "Manual do usuário", + "v062.m0012": "conexão antecipada da janela nativa concluída (tentativa {0})", + "v062.m0013": "Nome do pacote ausente", + "v062.m0014": "(seguir app)", + "v062.m0015": "Outra instância assumiu o ambiente; ignorando o encerramento para não parar seu emulador", + "v062.m0016": "{0}\nA instalação falhou mesmo com a imagem de compatibilidade ARM ativada. Exporte um relatório em Configurações → Diagnóstico e reparo.", + "v062.m0017": "{0}\nEste pacote contém apenas bibliotecas ARM. O programa mudará para uma imagem compatível e tentará novamente uma vez. Acompanhe as próximas mensagens.", + "v062.m0018": "Horizontal / vertical", + "v062.m0019": "Abrir na vertical (atualmente horizontal)", + "v062.m0020": "Abrir na horizontal (atualmente vertical)", + "v062.m0021": "Abrir na horizontal", + "v062.m0022": "horizontal ao abrir", + "v062.m0023": "vertical ao abrir", + "v062.m0024": "seguir app", + "v062.m0025": "Configurado para {0}", + "v062.m0026": "Será aplicado na próxima abertura deste app; não é necessário reiniciar todo o ambiente.", + "v062.m0027": "Não foi possível definir a orientação", + "v062.m0028": "Geral e instalação", + "v062.m0029": "Tela e janelas", + "v062.m0030": "Controles e entrada", + "v062.m0031": "Desempenho e recursos", + "v062.m0032": "Rede e downloads", + "v062.m0033": "Diagnóstico e reparo", + "v062.m0034": "Integração e arquivos", + "v062.m0035": "Atualizações e sobre", + "v062.m0036": "{0} grupos encontrados", + "v062.m0037": "Conexão do dispositivo", + "v062.m0038": "Armazenamento", + "v062.m0039": "Rede", + "v062.m0040": "Logs", + "v062.m0041": "Ainda não verificado", + "v062.m0042": "Última verificação: {0} · Tudo certo", + "v062.m0043": "Última verificação: {0} · {1} problemas para resolver", + "v062.m0044": "
    \n \n Nenhum problema que afete o uso foi encontrado. Ambiente Android, autorização do adb, espaço em disco, partições de dados, snapshots e conflitos de configurações foram verificados.\n
    ", + "v062.m0045": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n {3}\n
    \n {4}\n \n
    ", + "v062.m0046": "", + "v062.m0047": "Verificando…", + "v062.m0048": "Falha na verificação", + "v062.m0049": "Não foi possível coletar o status. Tente novamente mais tarde.", + "v062.m0050": "Envie o relatório ao autor para ajudar a identificar o problema", + "v062.m0051": "Verificações automáticas ativadas", + "v062.m0052": "Verificações automáticas desativadas", + "v062.m0053": "Verifica periodicamente em segundo plano e avisa apenas sobre problemas novos", + "v062.m0054": "Clique em “Verificar agora” a qualquer momento para verificar manualmente", + "v062.m0055": "Intervalo de verificação atualizado", + "v062.m0056": "Verificar a cada {0} minutos", + "v062.m0057": "Rotação automática da imagem ativada", + "v062.m0058": "Rotação automática da imagem desativada", + "v062.m0059": "Será salvo no Android na próxima abertura de um app. A orientação da tela continua sendo controlada pela política de orientação.", + "v062.m0060": "Modo de janela nativa ativado", + "v062.m0061": "Será aplicado na próxima abertura. O modo integrado oferece uma janela unificada com controles de rotação, mas mudanças de escala e orientação podem causar perda de quadros ou bordas pretas.", + "v062.m0062": "Será aplicado na próxima abertura. O emulador renderiza e organiza a janela nativa para maior estabilidade de escala e quadros. Gire pelo menu da bandeja ou com Ctrl+Alt+R.", + "v062.m0063": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n
    \n {3}\n \n
    ", + "v062.m0064": "Siga as instruções do manual", + "v062.m0065": "Reparo incompleto", + "v062.m0066": "Não foi possível ativar a aceleração de hardware. O tutorial correspondente foi aberto.", + "v062.m0067": "Reiniciando o ambiente Android…", + "v062.m0068": "O Android iniciará novamente; isso leva um pouco mais de tempo", + "v062.m0069": "Ambiente Android reiniciado", + "v062.m0070": "Clique em “Permitir” se aparecer uma solicitação de autorização", + "v062.m0071": "Falha ao reiniciar. O tutorial correspondente foi aberto.", + "v062.m0072": "Processos residuais do emulador removidos", + "v062.m0073": "Snapshot de inicialização rápida invalidado", + "v062.m0074": "A próxima abertura de um app fará uma inicialização completa", + "v062.m0075": "Não foi possível invalidar", + "v062.m0076": "É necessário recriar a partição de dados do Android", + "v062.m0077": "Abra Configurações → Desempenho e recursos → Expandir agora. Confirme a redefinição se solicitado (exclui os apps instalados).", + "v062.m0078": "Atualmente configurado para seguir o app", + "v062.m0079": "A orientação do painel segue cada app. Defina uma orientação individual se algum app abrir na direção errada.", + "v062.m0080": "Painel alterado para horizontal", + "v062.m0081": "Painel alterado para vertical", + "v062.m0082": "Será aplicado na próxima abertura de um app", + "v062.m0083": "Verifique a pasta compartilhada", + "v062.m0084": "Abra Configurações → Integração e arquivos e confirme que a pasta compartilhada local existe e permite gravação.", + "v062.m0085": "Ativando o áudio dos apps Android…", + "v062.m0086": "Reiniciando o ambiente agora para remover -no-audio", + "v062.m0087": "Não foi possível salvar as configurações de áudio. O tutorial correspondente foi aberto.", + "v062.m0088": "Áudio ativado", + "v062.m0089": "Ambiente reiniciado. O áudio dos apps deve estar disponível agora.", + "v062.m0090": "Áudio ativado, mas o ambiente não reiniciou. O tutorial correspondente foi aberto.", + "v062.m0091": "Inicie o Windows Audio manualmente", + "v062.m0092": "O tutorial está aberto. Siga as etapas uma vez.", + "v062.m0093": "Redefinindo a rede do Android…", + "v062.m0094": "A lista de apps será preservada", + "v062.m0095": "Rede do Android redefinida", + "v062.m0096": "A próxima abertura de um app reconectará à rede", + "v062.m0098": "Manual do usuário (incluindo solução de problemas)", + "v062.m0099": "Buscar configurações: orientação / memória / proxy / snapshots…", + "v062.m0100": "Limpar busca", + "v062.m0101": "Categorias de configurações", + "v062.m0110": "Rotação automática da imagem", + "v062.m0111": "Ativada (padrão) · Android mostra a rotação automática como ativada", + "v062.m0112": "Desativada · Usar o comportamento de bloqueio anterior", + "v062.m0113": "No Android, ", + "v062.m0114": "a rotação automática é ativada por padrão", + "v062.m0115": ". Isso não altera a orientação da imagem: a política acima continua definindo o painel e a tela e ignorando solicitações de orientação dos apps, evitando mudanças pelo sensor. Apenas apps que consultam esse ajuste o utilizam.", + "v062.m0116": "Janela nativa (padrão, recomendado) · Renderização e escala estáveis do emulador", + "v062.m0117": "Modo integrado · Android dentro do ApkStart, com controles de rotação", + "v062.m0118": "O emulador renderiza e organiza a janela nativa para responder melhor ao arrastar, redimensionar e girar, com um ícone adicional na barra de tarefas. Gire pelo menu da bandeja ou com Ctrl+Alt+R. O modo integrado oferece aparência unificada com controles de rotação, mas escala, rotação e troca de apps podem causar perda de quadros ou bordas pretas. Será aplicado na próxima abertura.", + "v062.m0119": "Verificações automáticas · Diagnóstico", + "v062.m0120": "Verificar periodicamente em segundo plano o ambiente Android, a autorização do adb, o espaço em disco, os discos diferenciais de dados, snapshots e conflitos de configurações. Avisar uma vez sobre problemas graves ", + "v062.m0121": "novos", + "v062.m0122": "; os demais resultados aparecem abaixo, sem notificações.", + "v062.m0123": "Ativar verificações automáticas (ativado por padrão)", + "v062.m0124": "Desative a verificação periódica; as verificações manuais continuam disponíveis em “Verificar agora”.", + "v062.m0125": "Intervalo de verificação", + "v062.m0126": "A cada minuto", + "v062.m0127": "A cada 5 minutos", + "v062.m0128": "A cada 10 minutos (recomendado)", + "v062.m0129": "A cada 30 minutos", + "v062.m0130": "A cada hora", + "v062.m0131": "Avisar sobre problemas novos", + "v062.m0132": "Avisar apenas sobre problemas graves; não repetir os já conhecidos.", + "v062.m0133": "Verificar agora", + "v062.m0135": "Abrir manual do usuário (incluindo solução de problemas)", + "v064.m0000": "Foi verificada a ausência do Microsoft VC++ 2015–2022 (x64) neste sistema; o ambiente Android depende dele.", + "v064.m0001": "Instale pelo botão. Se o erro 0xC0000135 persistir, consulte a seção 6.8 do manual: a edição da Store também pode ter um problema no caminho das DLLs dos subprocessos.", + "v064.m0002": "Laboratório", + "v064.m0003": "(Este sistema não oferece suporte a este ajuste)", + "v064.m0004": "Padrão do sistema", + "v064.m0005": "GPU dedicada", + "v064.m0006": "GPU integrada", + "v064.m0007": "(Aplicado: {0})", + "v064.m0008": "({0} selecionada; será aplicado na próxima inicialização do Android)", + "v064.m0009": "Preferência de GPU salva", + "v064.m0010": "Será aplicado na próxima inicialização do Android", + "v064.m0011": "Múltiplas janelas de apps ativadas (experimental)", + "v064.m0012": "Modo de app único restaurado", + "v064.m0013": "Será aplicado na próxima abertura: vários apps poderão permanecer abertos com suas próprias janelas nativas.", + "v064.m0014": "Ativando a entrada do microfone…", + "v064.m0015": "Reiniciando o ambiente agora para ativar o dispositivo de gravação", + "v064.m0016": "Não foi possível salvar as configurações do microfone. O tutorial correspondente foi aberto.", + "v064.m0017": "Microfone ativado", + "v064.m0018": "Ambiente reiniciado. Os apps devem conseguir gravar áudio agora.", + "v064.m0019": "Microfone ativado, mas o ambiente não reiniciou. O tutorial correspondente foi aberto.", + "v064.m0021": "Preferência de GPU (dedicada / integrada)", + "v064.m0022": "Padrão do sistema (recomendado · Deixar o Windows escolher)", + "v064.m0023": "Preferir GPU dedicada (jogos / vídeos mais fluidos; maior consumo)", + "v064.m0024": "Preferir GPU integrada (menor consumo e aquecimento)", + "v064.m0025": "Em computadores com os dois tipos de GPU, o Windows pode atribuir o emulador à integrada, causando lentidão. Escolha a GPU explicitamente aqui. Requer Windows 10 1803 ou posterior; será aplicado na próxima inicialização do Android.", + "v064.m0026": "Entrada do microfone (recomendado)", + "v064.m0027": "Permitir que os apps usem o microfone do computador para voz, chamadas e gravação. Quando desativado, os apps não encontram um dispositivo de gravação. Desative apenas se não precisar gravar ou se preferir por privacidade.", + "v064.m0029": "Estes recursos são experimentais e podem mudar entre versões. Relate problemas em Diagnóstico e reparo → Exportar relatório de diagnóstico.", + "v064.m0030": "Janelas nativas do Windows · Vários apps (experimental)", + "v064.m0031": "Abrir um app novo mantém o anterior em execução, permitindo alternar rapidamente e preservar as sessões. O Android tem apenas uma janela de emulador, portanto apenas um app fica visível em primeiro plano por vez; os apps não são exibidos lado a lado. O uso de memória aumenta. Desative para voltar ao modo estável de app único.", + "v064.m0032": "Apps mantidos em segundo plano", + "v064.m0033": "0 · Menor uso de memória (somente app atual)", + "v064.m0034": "1 · Equilibrado (recomendado)", + "v064.m0035": "2 · Alternância entre apps mais estável", + "v064.m0036": "3 · Máximo de apps mantidos", + "v064.m0037": "No modo de vários apps, os apps em segundo plano além desse limite são suspensos para liberar memória, preservando os dados para alternar rapidamente.", + "settings.dnsServers": "Servidores DNS", + "settings.dnsServersCn": "DNS públicos da China (Alibaba / Tencent)", + "settings.dnsServersNote": "Usados quando a aceleração de rede está ativada. Fora da China ou com VPN estrangeira, Cloudflare ou Google resolvem mais rápido. Aplica-se na próxima inicialização do runtime Android.", + "autodebug.accel.softwareEmulation.hint": "Só é possível usar emulação por software: a inicialização leva minutos e pode haver perda de quadros. Ative a “Plataforma do Hipervisor do Windows” e reinicie.", + "autodebug.accel.softwareEmulation.title": "Nenhuma aceleração de hardware disponível no momento", + "autodebug.logs.errors.hint": "A última execução deixou registros de erro; expanda o relatório de diagnóstico para ver o contexto completo.", + "autodebug.logs.errors.title": "{0} erro(s) no log do ambiente de execução", + "autodebug.network.sourcesDown.hint": "A busca de atualizações consulta várias fontes ao mesmo tempo; uma fonte indisponível não impede o funcionamento. Se todas falharem, verifique a rede ou o proxy.", + "autodebug.network.sourcesDown.title": "{0} fonte(s) de download inacessível(is)", + "autodebug.network.guestDown.hint": "A resolução de DNS ou a conexão está falhando no Android, deixando aplicativos de vídeo e notícias carregando sem parar. Use “Reparar rede” para redefinir os dados do Android (a lista de aplicativos é mantida).", + "autodebug.network.guestDown.title": "Android sem conexão de rede", + "autodebug.audio.microphoneDisabled.hint": "Voz, chamadas e gravações nos aplicativos não funcionarão (nenhum dispositivo de gravação encontrado). Clique em “Resolver” para reativar e reiniciar o ambiente de execução; confira também se o Windows permite que aplicativos da área de trabalho usem o microfone.", + "autodebug.audio.microphoneDisabled.title": "Entrada do microfone desativada nas configurações", + "autodebug.audio.windowsServiceStopped.hint": "Isso também deixa outros programas do sistema sem som. Inicie o Windows Audio em services.msc e configure a inicialização automática, ou execute net start Audiosrv em um PowerShell como administrador.", + "autodebug.audio.windowsServiceStopped.title": "O serviço Windows Audio (Audiosrv) não está em execução", + "autodebug.audio.disabled.hint": "O som do Android está desativado, por isso apenas os aplicativos no ApkStart ficam sem áudio. Clique em “Resolver” para reativar e reiniciar o ambiente de execução.", + "autodebug.audio.disabled.title": "Som dos aplicativos Android desativado nas configurações", + "autodebug.settings.snapshotOffLowDisk.hint": "Há menos de 4 GB livres e os snapshots estão desativados: abrir um aplicativo exigirá uma inicialização completa (mais de dez segundos). Se houver espaço suficiente, reative os snapshots.", + "autodebug.settings.snapshotOffLowDisk.title": "Pouco espaço em disco e snapshot de inicialização rápida desativado", + "autodebug.settings.detachedFullscreen.hint": "No modo de janela nativa, o emulador abre a própria janela e controla a tela cheia, por isso esta opção não se aplica. Pressione F11 na janela para ocupar a tela, ou mude o modo de exibição para janela incorporada.", + "autodebug.settings.detachedFullscreen.title": "A tela cheia automática não tem efeito no modo de janela nativa", + "autodebug.settings.orientationConflict.hintLandscape": "A política pede orientação paisagem, mas o painel está em retrato, deixando vídeos e jogos em uma faixa vertical estreita. Ajuste a orientação do painel para corresponder à política.", + "autodebug.settings.orientationConflict.title": "A política de orientação conflita com a orientação atual do painel", + "autodebug.settings.orientationConflict.hintPortrait": "A política pede orientação retrato, mas o painel está em paisagem, deixando os aplicativos em uma faixa estreita com barras pretas nas laterais. Ajuste a orientação do painel para corresponder à política.", + "autodebug.storage.sharedBroken.hint": "A pasta do computador usada para trocar arquivos não existe ou não permite gravação, impedindo a sincronização dos arquivos salvos no Android.", + "autodebug.storage.sharedBroken.title": "Pasta compartilhada indisponível", + "autodebug.storage.dataMismatch.detail": "Configurado: {0} GB · Real: {1} GB", + "autodebug.storage.dataMismatch.hint": "A capacidade disponível no Android é menor que o valor definido nas configurações, por isso jogos grandes podem informar falta de espaço.", + "autodebug.storage.dataMismatch.title": "A partição de dados do Android é menor que o configurado", + "autodebug.storage.dataNeedsReset.detail": "Configurado: {0} GB · Real: {1} GB", + "autodebug.storage.dataNeedsReset.hint": "O disco diferencial da inicialização rápida impede a expansão direta, mantendo a capacidade antiga no Android. Use “Redefinir dados do Android” para recriar a partição com o novo tamanho (os aplicativos instalados serão apagados).", + "autodebug.storage.dataNeedsReset.title": "A expansão da partição de dados não foi aplicada", + "autodebug.storage.diskLow.detail": "Livre: {0} MB", + "autodebug.storage.diskLow.hint": "Há menos de 8 GB livres; snapshots e imagens do sistema ainda precisam de espaço. Considere limpar primeiro os arquivos que podem ser removidos.", + "autodebug.storage.diskLow.title": "O disco do ambiente de execução está ficando sem espaço", + "autodebug.storage.diskCritical.detail": "Livre: {0} MB", + "autodebug.storage.diskCritical.hint": "Há menos de 2 GB livres: a instalação de aplicativos e a gravação de snapshots falharão. Use “Limpeza em um clique” para remover imagens antigas, snapshots antigos e logs.", + "autodebug.storage.diskCritical.title": "O disco do ambiente de execução está quase cheio", + "autodebug.device.missing.hint": "O processo do Android está ativo, mas o adb não encontra o dispositivo, provavelmente porque outro programa está usando a porta do servidor adb ou a inicialização ainda não terminou.", + "autodebug.device.missing.title": "Ambiente de execução ativo, mas o adb não encontra o dispositivo", + "autodebug.device.offline.hint": "O adb encontra o dispositivo, mas não consegue se conectar, geralmente porque a máquina virtual ainda está iniciando ou a comunicação com o servidor adb falhou. Se não voltar após uma breve espera, reinicie o ambiente de execução.", + "autodebug.device.offline.title": "Dispositivo Android em estado offline", + "autodebug.device.unauthorized.hint": "A solicitação “Permitir depuração USB?” apareceu no Android, mas não foi confirmada, impedindo a conexão do adb. Reinicie o ambiente de execução sem snapshot para exibir a solicitação novamente e confirme para restaurar a conexão.", + "autodebug.device.unauthorized.title": "O dispositivo Android não autorizou a depuração", + "autodebug.runtime.staleSnapshot.hint": "O arquivo de snapshot existe, mas não passa na validação, exigindo uma inicialização completa adicional a cada vez. Excluí-lo recupera espaço em disco e exige uma inicialização completa.", + "autodebug.runtime.staleSnapshot.title": "Snapshot de inicialização rápida danificado", + "autodebug.runtime.orphanProcesses.hint": "Processos Android que não foram encerrados corretamente ainda ocupam recursos e mantêm o AVD bloqueado, causando falha na próxima inicialização. É possível limpá-los em um clique (aplicativos e dados salvos são preservados).", + "autodebug.runtime.orphanProcesses.title": "Encontrado(s) {0} processo(s) residual(is) do emulador", + "autodebug.runtime.staleLocks.hint": "Arquivos de bloqueio não removidos causam o erro “AVD already in use” na próxima inicialização. Eles podem ser removidos em um clique.", + "autodebug.runtime.staleLocks.title": "Encontrado(s) {0} arquivo(s) de bloqueio da última execução", + "autodebug.runtime.stuckBoot.detail": "Etapa: {0}", + "autodebug.runtime.stuckBoot.hint": "A inicialização ultrapassou 2,5 minutos sem chegar ao sistema. Um snapshot danificado costuma ser a causa; reiniciar o ambiente de execução sem snapshot geralmente resolve.", + "autodebug.runtime.stuckBoot.title": "A inicialização do Android está travada", + "autodebug.runtime.bootFailed.hint": "O erro real do ambiente de execução foi registrado; seguir as instruções costuma resolver o problema de uma vez.", + "autodebug.runtime.bootFailed.title": "A última inicialização do ambiente Android falhou", + "doctor.report.log": "== Log do ambiente de execução (últimas 300 linhas) ==", + "doctor.report.extra": "== Informações adicionais ==", + "doctor.report.finding": "{0}: {1}", + "doctor.report.diagnosis": "== Diagnóstico ==", + "doctor.report.profile": "== Configuração automática ==", + "doctor.report.host": "== Este computador ==", + "doctor.report.generated": "Gerado em: {0}", + "doctor.report.title": "Relatório de diagnóstico do ApkStart", + "doctor.unknown.hint": "Foram feitas novas tentativas automáticas com várias combinações de parâmetros. Clique em “Exportar relatório de diagnóstico” e envie o log ao autor para análise.", + "doctor.unknown.title": "O ambiente de execução não concluiu a inicialização", + "doctor.rule.SNAPSHOT.hint": "O snapshot antigo foi descartado e será feita uma inicialização completa; o próximo encerramento normal gerará um novo snapshot.", + "doctor.rule.SNAPSHOT.title": "Snapshot do Quick Boot danificado", + "doctor.rule.CPU_FEATURE.hint": "Em alguns processadores antigos, esta mensagem é apenas um aviso e o ambiente ainda inicia. Se ele não iniciar, selecione uma versão anterior compatível do mecanismo em “Ambiente de execução”, ou use um computador com suporte a VT-x/AVX.", + "doctor.rule.CPU_FEATURE.title": "O processador não tem um conjunto de instruções exigido pelo ambiente de execução", + "doctor.rule.AVD_LOCK_UNCLEAN.hint": "O ApkStart limpa os bloqueios residuais automaticamente e tenta novamente; se o problema persistir, verifique se outro emulador está usando o mesmo ambiente de execução.", + "doctor.rule.AVD_LOCK_UNCLEAN.title": "A última execução não terminou corretamente e deixou arquivos de bloqueio", + "doctor.rule.NON_ASCII.hint": "O caminho curto do Windows foi selecionado automaticamente. Se ainda falhar, mova o ApkStart para uma pasta com nome sem acentos ou caracteres especiais (como C:\\ApkStart).", + "doctor.rule.NON_ASCII.title": "O caminho de instalação contém caracteres chineses ou especiais", + "doctor.rule.DISK_FULL.hint": "Mova a pasta do ambiente de execução (Configurações → Integração com o sistema → Diretório de dados do ambiente de execução) para uma unidade com espaço suficiente, ou desative “Manter snapshot do Quick Boot” / reduza a partição de dados nas configurações. Os dados do Android não são apagados automaticamente.", + "doctor.rule.DISK_FULL.title": "Espaço em disco insuficiente para iniciar o Android", + "doctor.rule.DLL.hint": "Causas comuns: a versão da Loja não consegue iniciar processos filhos em um diretório somente leitura, falta o runtime do VC++ ou o antivírus colocou arquivos em quarentena. Abra a seção 6.8 do manual e identifique a causa passo a passo; não reinstale o ambiente apenas com base nesta mensagem.", + "doctor.rule.DLL.title": "Falha ao carregar uma DLL do ambiente de execução (causa ainda não identificada)", + "doctor.rule.IMAGE.hint": "O sistema foi reiniciado automaticamente com dados de usuário limpos. Se ainda falhar, exclua a imagem em “Ambiente de execução” e baixe-a novamente.", + "doctor.rule.IMAGE.title": "Imagem do sistema ausente ou danificada / incompatível com dados antigos do usuário", + "doctor.rule.AVD_LOCK.hint": "Os arquivos de bloqueio do AVD foram limpos automaticamente e o ambiente de execução foi iniciado novamente.", + "doctor.rule.AVD_LOCK.title": "Arquivos de bloqueio deixados pela última execução", + "doctor.rule.PORT_BUSY.hint": "Uma porta livre foi selecionada automaticamente. Se o problema persistir, feche outros emuladores, como Nox/MuMu/BlueStacks, ou reinicie o computador.", + "doctor.rule.PORT_BUSY.title": "A porta do emulador está em uso", + "doctor.rule.MEMORY.hint": "A memória e os núcleos destinados ao Android foram reduzidos automaticamente. Feche programas que consomem muita memória e tente novamente.", + "doctor.rule.MEMORY.title": "Falha ao alocar memória", + "doctor.rule.ACCEL.hint": "A emulação por software foi ativada automaticamente (a primeira inicialização será mais lenta). Para melhorar o desempenho, ative “Plataforma de Máquina Virtual” em “Recursos do Windows”, ou instale o driver AEHD, e reinicie.", + "doctor.rule.ACCEL.title": "Aceleração de hardware indisponível", + "doctor.rule.GPU_MODE.hint": "Uma nova tentativa foi feita automaticamente com um modo de GPU compatível com a versão do ambiente (versões antigas usam swiftshader_indirect; as novas usam software).", + "doctor.rule.GPU_MODE.title": "O ambiente de execução atual não aceita este modo de GPU", + "doctor.rule.GPU_INIT.hint": "A renderização por software foi selecionada automaticamente para uma nova tentativa. Se ainda falhar, atualize o driver de vídeo ou desative o repasse de GPU da área de trabalho remota / máquina virtual e tente novamente.", + "doctor.rule.GPU_INIT.title": "Falha ao inicializar o mecanismo de renderização gráfica", + "doctor.rule.ACCESS_VIOLATION.hint": "Uma nova tentativa foi feita com um mecanismo de renderização mais conservador; a preferência foi salva para as próximas inicializações. Se o problema persistir, atualize o driver de vídeo, ou reduza a qualidade em Configurações → Desempenho e recursos e desative o repasse de GPU da área de trabalho remota / máquina virtual, e tente novamente.", + "doctor.rule.ACCESS_VIOLATION.title": "O mecanismo de renderização falhou (violação de acesso 0xC0000005)", + "preflight.summary.good": "Este computador pode usar aceleração de hardware diretamente; a configuração já está otimizada", + "preflight.summary.warn": "{0} item(ns) recomendado(s) para otimização ({1})", + "preflight.summary.bad": "Encontrado(s) {0} item(ns) que precisam ser resolvidos primeiro ({1})", + "preflight.driverAuthor": "Verificação do ApkStart", + "preflight.driverName": "Configuração automática deste computador ({0})", + "preflight.os-old.detail": "O ApkStart requer no mínimo Windows 10 2004 (build 19041). Em sistemas anteriores, o emulador pode encerrar imediatamente.", + "preflight.os-old.title": "Versão antiga do Windows (build {0})", + "preflight.mem-ok.title": "Memória física: {0} GB", + "preflight.mem-low.detail": "A máquina virtual Android pode usar no máximo 2 GB e 2 núcleos, com qualidade reduzida para 540×960; recomenda-se fechar abas do navegador antes de abrir aplicativos.", + "preflight.mem-low.title": "Pouca memória ({0} GB)", + "preflight.mem-unknown.title": "Não foi possível ler a memória física", + "preflight.gpu-driver-old.detail": "Data do driver: {0} (cerca de {1} anos atrás). Drivers antigos costumam causar tela preta ou imagem corrompida após a inicialização; considere atualizá-los pelo site do fabricante.", + "preflight.gpu-driver-old.title": "O driver de vídeo é bastante antigo", + "preflight.gpu-unknown.detail": "Isso pode ocorrer por uso da Área de Trabalho Remota, de uma máquina virtual ou por problema no driver. O mecanismo de renderização será escolhido automaticamente.", + "preflight.gpu-unknown.title": "Não foi possível ler as informações da placa de vídeo", + "preflight.accel-off.label": "Instalar driver AEHD (administrador)", + "preflight.accel-off.detailPlain": "A emulação por software será usada primeiro para garantir o funcionamento; ela é de 5 a 10 vezes mais lenta que a aceleração de hardware.", + "preflight.accel-off.detailInstaller": "Você pode instalar o driver AEHD (requer administrador), ou ativar a “Plataforma do Hipervisor do Windows” e reiniciar; se nenhuma opção funcionar, só será possível usar emulação por software.", + "preflight.accel-off.title": "Nenhuma aceleração de hardware disponível no momento", + "preflight.accel-ok.detail": "A inicialização usará aceleração de hardware; as opções abaixo são recomendadas para a GPU e a memória deste computador.", + "preflight.accel-ok.title": "Aceleração de hardware disponível ({0})", + "preflight.whpx-off.labelInstaller": "Ativar em um clique (administrador)", + "preflight.whpx-off.detailInstaller": "O botão abaixo ativa HypervisorPlatform + VirtualMachinePlatform automaticamente (requer confirmação de administrador); reinicie o computador ao terminar.", + "preflight.whpx-off.labelStore": "Abrir a janela “Recursos do Windows”", + "preflight.whpx-off.detailStore": "A versão da Loja não pode alterar os recursos do sistema diretamente. Pressione Win+R → digite optionalfeatures → marque “Plataforma do Hipervisor do Windows” (HypervisorPlatform) e “Plataforma de Máquina Virtual” → OK → reinicie.", + "preflight.whpx-ok.detailRestart": "O recurso está ativado; se a aceleração ainda estiver indisponível, reinicie uma vez para iniciar o hipervisor.", + "preflight.whpx-ok.detailRunning": "O hipervisor está em execução e o WHPX está disponível.", + "preflight.whpx-ok.title": "Plataforma do Hipervisor do Windows ativada", + "preflight.vt-unknown.label": "Verificar manualmente", + "preflight.vt-unknown.detail": "Pode haver uma restrição da placa-mãe ou de permissões. Se a inicialização informar falta de aceleração de hardware, entre no BIOS e confirme que VT-x / SVM está ativado.", + "preflight.vt-unknown.title": "Não foi possível ler o estado da virtualização do processador", + "preflight.vt-ok.detail": "{0} · {1} núcleos / {2} threads", + "preflight.vt-ok.title": "Virtualização do processador ativada no BIOS", + "preflight.vt-bios-off.label": "É necessário reiniciar no BIOS; não pode ser feito automaticamente", + "preflight.vt-bios-off.detail": "Reinicie no BIOS/UEFI, ative Intel VT-x (Intel) ou SVM Mode (AMD), salve e execute a verificação novamente. Em Lenovo/Dell/ASUS, a opção costuma ficar em Advanced → CPU Configuration; outros computadores podem chamá-la de Virtualization Technology.", + "preflight.vt-bios-off.title": "Virtualização do processador desativada no BIOS", + "preflight.vt-unsupported.detail": "Só é possível usar emulação por software, de 5 a 10 vezes mais lenta. Aplicativos leves ainda funcionam; jogos pesados não são recomendados.", + "preflight.vt-unsupported.title": "Este processador não oferece virtualização de hardware", + "preflight.why.auto": "A escolha será feita automaticamente entre as opções disponíveis", + "preflight.why.intel": "Em GPUs integradas Intel, o modo host é necessário para usar aceleração de hardware; se ele falhar, outra opção será usada automaticamente", + "preflight.why.amd": "Em GPUs AMD, o modo host é necessário para usar aceleração de hardware; se ele falhar, outra opção será usada automaticamente", + "preflight.why.nvidia": "Os drivers NVIDIA são maduros; o repasse no modo host costuma ser mais rápido", + "preflight.why.lowVram": "Pouquíssima memória de vídeo; swangle é mais estável", + "preflight.why.unknownGpu": "Não foi possível ler o modelo da GPU; a escolha será feita automaticamente", + "preflight.why.noAccel": "Sem aceleração de hardware disponível; a renderização por software será usada primeiro para garantir a exibição", + "preflight.vram": "{0} GB de VRAM{1}", + "preflight.vramIntegrated": " (integrada, o restante é memória compartilhada)", + "preflight.vramUnknown": "VRAM desconhecida", + "preflight.driverVersion": " · driver {0}", + "preflight.driverDate": " ({0})", + "preflight.driverDescription": "Gerado por “Verificação deste computador · configuração automática”: {0}. {1}", + "preflight.driverAccelOk": "Aceleração de hardware disponível.", + "preflight.driverAccelNone": "Nenhuma aceleração de hardware no momento.", + "list.sep": "; ", + "list.sepComma": ", ", + "drivers.fileErrors": "{0}: {1}", + "engine.vmStartFailed": "Não foi possível iniciar a máquina virtual", + "engine.needProvision": "Os componentes do ambiente de execução ainda não estão totalmente configurados", + "engine.needSysimg": "A imagem do sistema ainda está ausente: clique em “Baixar imagem do sistema”", + "engine.bootServices": "O Android iniciou, mas os serviços do sistema ainda não estão prontos (pode estar parado na configuração inicial; conclua o assistente na janela da máquina virtual)", + "engine.bootKernel": "O kernel do Android não concluiu a inicialização; verifique o log do ambiente (a imagem pode estar danificada ou a aceleração pode não estar ativa)", + "engine.adbConnectFailed": "A máquina virtual iniciou, mas o adb não conseguiu se conectar: ative “Opções do desenvolvedor → ADB pela rede” na máquina virtual e tente novamente", + "engine.runtimeStartFailed": "Falha ao iniciar o ambiente de execução Android", + "engine.adbUnauthorized.hint": "O emulador está parado na janela “Permitir depuração USB?”. Marque “Sempre permitir a partir deste computador” e clique em “Permitir”. Se a janela não aceitar cliques ou não aparecer: Configurações → Ambiente de execução → limpe os dados do Android e tente novamente (os aplicativos instalados serão removidos; reinstale-os, os arquivos APK não são afetados).", + "engine.adbUnauthorized.title": "Autorização de depuração do Android incompleta (clique em “Permitir” uma vez)", + "engine.adbMissing": "adb ausente: clique em “Implantar em um clique” para baixá-lo automaticamente", + "preflight.whpx-off.title": "A “Plataforma do Hipervisor do Windows” não está ativada", + "adb.install.INSTALL_FAILED_NO_MATCHING_ABIS": "Falha na instalação: este aplicativo contém apenas bibliotecas nativas ARM (comum em aplicativos chineses), e a imagem atual não tem uma camada de tradução ARM. O ApkStart mudará automaticamente para a imagem de compatibilidade com a camada de tradução mais recente e tentará novamente.", + "adb.install.INSTALL_FAILED_OLDER_SDK": "Falha na instalação: o aplicativo exige uma versão do Android mais recente que a do ambiente atual (é necessária uma imagem de sistema mais recente).", + "adb.install.INSTALL_PARSE_FAILED_NO_CERTIFICATES": "Falha na instalação: o APK não tem uma assinatura válida e não pode ser instalado.", + "adb.install.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES": "Falha na instalação: a assinatura difere da versão instalada; desinstale a versão antiga e tente novamente.", + "adb.install.INSTALL_FAILED_VERSION_DOWNGRADE": "Falha na instalação: já existe uma versão mais recente no dispositivo; não é permitido instalar uma versão anterior por cima dela.", + "adb.install.INSTALL_FAILED_INSUFFICIENT_STORAGE": "Falha na instalação: espaço em disco insuficiente no ambiente de execução; libere espaço e tente novamente.", + "adb.install.INSTALL_FAILED_INVALID_APK": "Falha na instalação: o APK está corrompido ou incompleto (o download pode não ter terminado); baixe-o novamente.", + "adb.install.INSTALL_FAILED_INVALID_URI": "Falha na instalação: o caminho do APK contém caracteres especiais; mova o arquivo para um caminho sem acentos ou caracteres especiais e tente novamente.", + "adb.install.INSTALL_FAILED_ALREADY_EXISTS": "Falha na instalação: já existe um aplicativo com o mesmo nome e outra assinatura; desinstale-o primeiro.", + "adb.install.INSTALL_FAILED_UPDATE_INCOMPATIBLE": "Falha na instalação: a assinatura difere da versão instalada; desinstale a versão antiga primeiro.", + "adb.install.INSTALL_FAILED_DEPRECATED_SDK_VERSION": "Falha na instalação: este aplicativo usa uma versão muito antiga do Android (targetSdk baixo), bloqueada por padrão no Android 14. O ApkStart tentará novamente com a opção oficial para permitir a instalação.", + "adb.install.INSTALL_FAILED_TEST_ONLY": "Falha na instalação: este pacote é apenas para testes; a opção para pacotes de teste foi adicionada automaticamente e a instalação foi repetida.", + "adb.install.INSTALL_FAILED_MISSING_SHARED_LIBRARY": "Falha na instalação: um recurso exigido pelo aplicativo (como uma biblioteca específica do fabricante) não existe no ambiente atual.", + "adb.install.INSTALL_FAILED_USER_RESTRICTION": "Falha na instalação: o sistema restringe a instalação; reinicie o ambiente de execução e tente novamente.", + "adb.install.INSTALL_FAILED_CONFLICTING_PROVIDER": "Falha na instalação: há conflito com o ContentProvider de um aplicativo existente; desinstale o aplicativo conflitante.", + "adb.install.INSTALL_FAILED_INTERNAL_ERROR": "Falha na instalação: erro interno do sistema (geralmente pouco espaço ou inicialização incompleta); reinicie o ambiente e tente novamente.", + "adb.install.withTag": "{0} ({1})", + "adb.install.failedRaw": "Falha na instalação: {0}", + "adb.install.noReason": "nenhum motivo claro foi informado", + "adb.install.missingApk": "APK não encontrado: {0}", + "adb.install.noSplits": "Nenhum APK dividido para instalar", + "adb.install.splitFailed": "Falha na instalação dos APKs divididos", + "adb.exec.failed": "Falha em adb {0}: {1}", + "adb.launch.appName": "O aplicativo", + "adb.launch.antiEmulator": "{0} detectou o emulador / ambiente de tradução e encerrou por conta própria (verificações contra emulação, depuração ou de integridade). Essa é uma limitação do próprio aplicativo, não uma falha; o ApkStart não consegue contorná-la. Consulte a seção 6.3 do manual.", + "adb.launch.translationCrash": "{0} falhou ao iniciar: o aplicativo é incompatível com a camada de tradução ARM (comum com verificações contra depuração / emulação ou conflitos de hooks nativos). Se a imagem de compatibilidade ainda não estiver ativa, o ambiente mudará para ela e tentará novamente automaticamente; se ainda falhar com a imagem ativa, é uma limitação de compatibilidade do aplicativo. Consulte a seção 6.3 do manual.", + "adb.launch.missingNativeLib": "{0} falhou ao iniciar: falta uma biblioteca nativa para este dispositivo (o aplicativo pode ter apenas uma versão ARM). Se a camada de tradução ARM ainda não estiver ativa, o ambiente mudará para a imagem de compatibilidade e tentará novamente; se ainda falhar, provavelmente é uma limitação do aplicativo. Consulte a seção 6.3 do manual.", + "adb.launch.appException": "{0} falhou logo ao iniciar (erro interno do aplicativo, possivelmente relacionado ao ambiente do emulador ou à ausência dos serviços Google).", + "adb.launch.denied": "Falha ao iniciar {0}: o sistema rejeitou a solicitação (problema de permissão ou assinatura).", + "adb.launch.failedWithLog": "Não foi possível iniciar {0}: {1}", + "adb.launch.failedNoProcess": "Não foi possível iniciar {0} (o processo não está ativo)", + "adb.launch.stillLoading": "(O aplicativo ainda está carregando)", + "installer.noSplits": "Nenhum APK dividido foi encontrado neste pacote (talvez não seja um arquivo .apks/.xapk)", + "installer.baseParseFailed": "Falha ao analisar o APK base do pacote dividido", + "installer.compat.downloading": "Primeira instalação de aplicativo ARM: baixando a imagem de compatibilidade (cerca de 1,5 GB, apenas uma vez)…", + "installer.compat.downloadFailed": "Falha ao baixar a imagem de compatibilidade; verifique a rede e tente novamente", + "installer.compat.switching": "Mudando para a imagem de compatibilidade e reiniciando o ambiente de execução…", + "installer.compat.runtimeUnavailable": "O ambiente de execução ficou indisponível após mudar para a imagem de compatibilidade", + "installer.compat.restoring": "Restaurando o aplicativo instalado {0}…", + "installer.parsing": "Analisando o APK…", + "installer.recognized": "Identificado: {0} ({1})", + "installer.preparing": "Preparando o ambiente de execução Android…", + "installer.runtimeUnavailable": "O ambiente de execução está indisponível", + "installer.armSwitching": "Este aplicativo só tem bibliotecas ARM; mudando para a imagem de compatibilidade…", + "installer.updating": "Atualizando o aplicativo…", + "installer.installing": "Instalando o aplicativo…", + "installer.armSwitchingReinstall": "Este aplicativo só tem bibliotecas ARM; mudando para a imagem de compatibilidade e reinstalando…", + "installer.switchedReinstalling": "Imagem de compatibilidade selecionada; reinstalando…", + "installer.stillFailedAfterSwitch": "A imagem de compatibilidade do Android 14 foi selecionada e o ambiente reiniciado, mas a instalação de {0} ainda falhou ({1}). Verifique o espaço em disco e a rede e tente novamente; se persistir, exporte um relatório em “Configurações → Diagnóstico e reparo” e envie como feedback.", + "installer.shortcutCreating": "Criando o atalho na área de trabalho…", + "installer.shortcutFailed": "Falha ao criar o atalho: {0}", + "installer.warn.minSdk": "Este aplicativo exige Android {0}+, uma versão posterior à do ambiente atual; ele pode não funcionar corretamente.", + "installer.warn.iconPlaceholder": "Não foi possível analisar o ícone (talvez use um formato adaptativo especial); o atalho usará um ícone provisório.", + "installer.warn.iconWebp": "Falha ao decodificar o ícone do aplicativo (WebP); o atalho usará um ícone provisório.", + "installer.done": "{0} instalado", + "installer.shortcutDescription": "{0} — executado pelo ApkStart", + "installer.shortcutCreateFailed": "Falha ao criar o atalho", + "installer.displaySkipped": "Adaptação de exibição ignorada: {0}", + "installer.netReady": "Rede da máquina virtual pronta ({0})", + "installer.wifiReconnecting": "A máquina virtual não consegue acessar o Wi-Fi; tentando reconectar…", + "installer.netRestored": "Rede da máquina virtual restaurada ({0})", + "installer.wifiReconnectFailed": "Falha ao reconectar o Wi-Fi automaticamente: {0}", + "installer.netNotReady": "A rede da máquina virtual ainda não está pronta; o aplicativo será iniciado mesmo assim (as páginas online podem demorar um pouco para carregar)", + "installer.reinstalling": "Arquivos do aplicativo ausentes (snapshot e dados não correspondem); reinstalando automaticamente a partir da cópia local…", + "installer.autoInstallFailed": "Falha na instalação automática: {0}", + "installer.exitedRetry": "O aplicativo encerrou após iniciar (tentativa {0}); tentando novamente automaticamente…", + "installer.exitedReset": "O aplicativo continua encerrando; redefinindo os dados e tentando novamente…", + "installer.unstable": "O aplicativo encerra logo ao iniciar; as tentativas automáticas e a redefinição de dados não resolveram", + "installer.armDisabledSwitching": "O ambiente atual não tem uma camada de tradução ARM ativa; mudando automaticamente para a imagem de compatibilidade e tentando novamente…", + "provision.accel.whpx": "Aceleração de hardware WHPX ativada", + "provision.accel.aehd": "Aceleração de hardware AEHD ativada", + "provision.accel.aehdNoCheck": "Aceleração de hardware AEHD ativada (emulator-check ausente; avaliação pelo driver)", + "provision.hv.notWindows": "A plataforma não é Windows", + "provision.hv.present": "Componentes da Plataforma de Máquina Virtual presentes (a disponibilidade é verificada pelo mecanismo de execução)", + "provision.hv.missing": "Componentes da Plataforma do Hipervisor do Windows não detectados: ative “Plataforma de Máquina Virtual” em “Ativar ou desativar recursos do Windows” e reinicie", + "emulator.exit.normal": "Encerrado normalmente", + "emulator.exit.badArgs": "Argumentos de inicialização ou ambiente inválidos", + "emulator.exit.accessViolation": "Violação de acesso 0xC0000005; o mecanismo de renderização falhou", + "emulator.exit.stackOverflow": "Estouro de pilha 0xC00000FD", + "emulator.exit.dllLoad": "Falha ao carregar uma DLL dependente, 0xC0000135 (causa a identificar; consulte a seção 6.8 do manual)", + "emulator.exit.accessDenied": "Acesso negado, 0xC0000022 (problema de driver ou permissão)", + "emulator.exit.badImage": "Arquitetura da imagem incompatível ou DLL corrompida, 0xC000007B", + "emulator.cleanup.leftover": "Limpando {0} processo(s) residual(is) do emulador", + "emulator.qemuImgFailed": "Falha em qemu-img {0}: {1}", + "emulator.resize2fsMissing": "resize2fs.exe ausente", + "emulator.resize2fsFailed": "Falha em resize2fs: {0}", + "emulator.exited": "Ambiente de execução encerrado (código={0})", + "emulator.exitedWithMeaning": "Ambiente de execução encerrado (código={0}, {1})", + "emulator.resize.overlay": "O Android usa o disco diferencial da inicialização rápida, impedindo a expansão direta (destino: {0} GB). É necessário “Redefinir dados do Android” e recriar /data com o novo tamanho — os aplicativos e dados salvos serão apagados; confirme antes de continuar.", + "emulator.resize.fsShort": "A imagem foi expandida para {0} GB, mas o sistema de arquivos só alcança {1} GB (resize2fs não concluiu). Clique em “Expandir agora” novamente ou libere espaço e tente outra vez.", + "emulator.start.relaunch": "O emulador anterior encerrou; iniciando novamente…", + "emulator.start.noEngine": "O mecanismo de execução não está instalado; implante-o primeiro na página “Ambiente de execução”", + "emulator.start.noImage": "A imagem do sistema não está pronta; baixe primeiro a imagem Android na página “Ambiente de execução”", + "emulator.start.diskLowAvd": "Espaço insuficiente: a unidade do diretório de dados do Android ({0}) tem apenas {1} GB livres, e o ambiente precisa de pelo menos {2} GB. Em “Configurações → Integração com o sistema → Diretório de dados do Android”, mova-o para uma unidade com espaço (por exemplo, D:), ou libere espaço primeiro. Aplicativos e dados salvos não serão apagados automaticamente.", + "emulator.start.diskLowRuntime": "A unidade do diretório do ambiente de execução ({0}) tem apenas {1} GB livres, insuficientes até para logs e arquivos temporários. Libere espaço ou mova também o “Diretório de dados do ambiente de execução” para outra unidade.", + "emulator.drivers.loadFailed": "Falha ao carregar drivers (ignorada; iniciando com parâmetros padrão): {0}", + "emulator.drivers.applied": "Drivers aplicados: {0}", + "emulator.drivers.none": "Nenhum driver correspondente; iniciando com os parâmetros padrão", + "emulator.drivers.errors": "Falha ao carregar {0} arquivo(s) de driver (consulte o motivo em Configurações → Drivers)", + "emulator.drivers.gpuFixed": "O driver fixa o mecanismo de renderização em {0}", + "emulator.drivers.softwareLabel": "{0} / emulação por software exigida pelo driver", + "emulator.drivers.forceTcg": "O driver exige desativar a aceleração de hardware (usando emulação por software)", + "emulator.gpu.vulkanRetry": "A última falha de renderização host provavelmente foi causada pelo Vulkan; tentando novamente com aceleração de hardware e -feature -Vulkan", + "emulator.gpu.badBackend": "O mecanismo {0} falhou logo ao iniciar na última vez; tentando {1} primeiro desta vez", + "emulator.boot.attempt": "Iniciando o ambiente de execução (tentativa {0}/{1}: {2})…", + "emulator.boot.diskFull": "Espaço em disco insuficiente; novas tentativas interrompidas (aplicativos e dados salvos preservados).", + "emulator.boot.titleHint": "{0}: {1}", + "emulator.boot.retry": "{0} — tentando novamente automaticamente com outros parâmetros…", + "emulator.boot.waiting": "Iniciando… {0}s", + "emulator.boot.ready": "Ambiente de execução pronto ({0}s, {1})", + "emulator.boot.noNetwork": "⚠ A máquina virtual Android ainda não está conectada à rede (Wi-Fi não associado ou sem endereço). Aplicativos que precisam de internet podem exibir tela preta: reabra-os mais tarde; se continuar sem rede, reconecte em “Configurações → Reparar rede” (os aplicativos instalados são preservados).", + "emulator.boot.timeout": "Tempo de inicialização esgotado (a primeira inicialização pode demorar ou a aceleração de hardware pode não estar ativa)", + "emulator.boot.failed": "O ambiente de execução não iniciou após várias tentativas ({0}).\n{1}\n\nTentativas: {2}\nRelatório de diagnóstico: {3}", + "updater.noInstaller": "Esta versão não tem um pacote para instalação automática; baixe-o manualmente na página de versões do GitHub", + "updater.incrementalUnavailable": "Atualização incremental indisponível ({0}); usando o pacote completo…", + "updater.downloading": "Baixando {0}…", + "updater.downloadProgress": "Baixando {0}", + "updater.downloadPartProgress": "Baixando {0} (parte {1}/{2}){3}", + "updater.reuseFull": "Já existe um pacote de atualização baixado; reutilizando", + "updater.extracted": "Pacote de atualização extraído", + "updater.downloaded": "Instalador baixado", + "updater.fetching": "Obtendo {0}…", + "updater.label.manifest": "manifesto de atualização", + "updater.label.app": "pacote incremental de código", + "updater.manifestMismatch": "A versão do manifesto não corresponde à versão publicada", + "updater.appHashMismatch": "Falha na verificação do pacote incremental de código (sha256 não corresponde)", + "updater.reuseIncremental": "Já existe um pacote incremental baixado; reutilizando", + "updater.appFilesBad": "{0} arquivo(s) do pacote incremental de código não passaram na verificação", + "updater.incrementalVerified": "Pacote incremental verificado", + "updater.partSizeBad": "A parte {0} tem tamanho incorreto ({1} ≠ {2}); operação interrompida, tente novamente", + "updater.assembledSizeBad": "O pacote de atualização montado tem tamanho incorreto ({0} ≠ {1}); operação interrompida, tente novamente", + "updater.extracting": "Extraindo {0}/{1}", + "doctor.plan.hardware": "{0} / aceleração de hardware", + "doctor.plan.software": "{0} / emulação por software", + "doctor.plan.noAccel": "Emulação por software sem aceleração (lenta, mas mais compatível)", + "doctor.plan.conservative": "Inicialização completa conservadora (memória mínima + sem snapshot)", + "sources.tooManyRedirects": "Redirecionamentos em excesso", + "sources.invalidUrl": "Endereço inválido", + "sources.timeout": "Tempo de conexão esgotado", + "sources.skipped": "Ignorada temporariamente (sem novas tentativas por {0} min)", + "sources.hint.rateLimited": " (limite de requisições atingido; esta fonte ficará pausada por um tempo)", + "sources.hint.giteeToken": " (tente mais tarde ou informe um token somente leitura nas configurações para aumentar a cota)", + "sources.noData": "sem dados", + "sources.whySeparator": "; ", + "sources.unreachable": "Não foi possível acessar o servidor de atualização ({0})", + "sources.probe.start": "Testando a velocidade de {0} fontes de download…", + "sources.probe.item": "Testando a fonte {0}/{1}: {2}…", + "sources.probe.best": "Fonte mais rápida selecionada: {0} (cerca de {1} MB/s)", + "incremental.manifestInvalidJson": "O manifesto incremental não é um JSON válido", + "incremental.manifestSchema": "A versão do manifesto incremental não é compatível", + "incremental.manifestNoVersion": "O manifesto incremental não informa a versão", + "incremental.manifestNoApp": "O manifesto incremental não informa o pacote de código", + "download.tooManyRedirects": "Redirecionamentos em excesso", + "download.timeout": "Tempo de conexão esgotado", + "download.resume416": "Não foi possível verificar o arquivo parcial para retomar o download; o servidor retornou HTTP 416", + "download.httpFailed": "Falha no download HTTP {0}: {1}", + "download.resumeRangeMismatch": "O servidor retornou um intervalo incompatível com a retomada do download", + "download.stalled": "Conexão travada (sem dados por muito tempo)", + "download.stalledNoData": "Conexão travada (tempo limite sem dados)", + "download.cancelled": "Cancelado", + "download.interrupted": "Conexão interrompida", + "download.checksumMismatch": "Falha na verificação: esperado {0}… real {1}…", + "download.chunkRequestRejected": "Solicitação de bloco rejeitada, HTTP {0}", + "download.chunkRejected": "Bloco rejeitado, HTTP {0}", + "download.chunkRangeMismatch": "O servidor retornou um intervalo de bloco incompatível", + "download.chunkOverflow": "A resposta do bloco excedeu o intervalo solicitado", + "download.chunkIncomplete": "O bloco não foi retornado por completo", + "download.chunkDownloadFailed": "Falha ao baixar o bloco ({0}-{1}): {2}", + "download.chunkFailed": "Falha no bloco ({0}-{1}): {2}", + "download.incomplete": "Download incompleto: {0}/{1} bytes", + "download.allSourcesFailed": "Todas as fontes de download falharam:\n{0}", + "download.noAddress": "Nenhum endereço de download disponível", + "download.slowSource": "Esta fonte está lenta demais ({0} KB/s); mudando de fonte", + "appwin.rotateLandscape": "Mudando para paisagem (reiniciando o ambiente Android, cerca de 30 a 60 segundos)…", + "appwin.rotatePortrait": "Voltando para retrato (reiniciando o ambiente Android, cerca de 30 a 60 segundos)…", + "manual.topic.overview": "Manual do usuário · Sumário", + "manual.topic.accel": "Aceleração de hardware desativada / inicialização lenta", + "manual.topic.install": "Falha na instalação (INSTALL_FAILED_*)", + "manual.topic.arm": "Camada de tradução ARM / aplicativos ARM não instalam", + "manual.topic.adb": "adb não autorizado (Permitir depuração USB)", + "manual.topic.startup": "Não abre / janela com botão girando", + "manual.topic.other": "Outros problemas de inicialização: referência rápida", + "manual.topic.sound": "Sem som / volume muito baixo", + "manual.topic.dll": "Versão da Loja não inicia / 0xC0000135 (falha ao carregar DLL)", + "manual.topic.mic": "Aplicativos não conseguem usar o microfone / sem chamadas de voz ou gravação", + "manual.topic.gpu": "Renderização por GPU dedicada / integrada (preferência gráfica)", + "manual.topic.diagnose": "Manual integrado e tutoriais automáticos", + "manual.topic.settings": "Navegação nas configurações", + "manual.topic.storage": "Dados e diretórios", + "manual.topic.network": "Verificações automáticas e reparo de rede" +} diff --git a/src/locales/ru.json b/src/locales/ru.json new file mode 100644 index 00000000..d89ebbf6 --- /dev/null +++ b/src/locales/ru.json @@ -0,0 +1,1385 @@ +{ + "m0000": "Только что", + "m0001": "{0} мин назад", + "m0002": "{0} ч назад", + "m0003": "{0} дн. назад", + "m0004": "Первый запуск: откройте Настройки → Среда выполнения → Настроить автоматически, затем установите приложения.", + "m0005": "Совет: все приложения используют одну среду Android, поэтому следующее приложение запускается почти мгновенно.", + "m0006": "", + "m0007": "Запущено", + "m0008": "На передний план", + "m0009": "Открыть", + "m0010": "Приложений: {0}", + "m0011": "Нет установленных приложений", + "m0012": "Среда выполнения не настроена — откройте Настройки → Среда выполнения, чтобы настроить её автоматически", + "m0013": "Требуется настройка", + "m0014": "Среда готова · Android {0}{1}", + "m0015": " · Окна приложений включены", + "m0016": "Загрузка Android…", + "m0017": "Загрузка", + "m0018": "Аппаратное ускорение недоступно: используется программная эмуляция (первый запуск может занять больше времени)", + "m0019": "Программная эмуляция", + "m0020": "Нет универсального образа Android 14 — скачайте его в Настройки → Среда выполнения (около 1,5 ГБ, один раз)", + "m0021": "Нужно скачать образ", + "m0022": "Движок среды не установлен — откройте Настройки → Среда выполнения для автоматической настройки", + "m0024": "Среда готова — установите APK или дважды щёлкните ярлык на рабочем столе", + "m0025": "Готово к запуску", + "m0026": "Идёт установка — завершите её в окне виртуальной машины", + "m0027": "Установка", + "m0028": "Среда в режиме ожидания (запустится автоматически при установке или открытии приложения)", + "m0029": "Android ещё не установлен — продолжите в Настройки → Среда выполнения", + "m0030": "Ожидание", + "m0031": "Требуется установка", + "m0032": "Не удалось проверить состояние: {0}", + "m0033": "Движок", + "m0034": "Системный образ", + "m0035": "Готово · Android {0}", + "m0037": "Компоненты готовы · Запустится при открытии приложения", + "m0038": "Не хватает: {0}{1}", + "m0039": " (нет аппаратного ускорения; будет использована программная эмуляция)", + "m0040": "инструменты adb", + "m0041": "среда Android", + "m0043": "Всё готово", + "m0044": "Настроить автоматически", + "m0045": "Выполнено автоматически", + "m0046": "Автоматически", + "m0047": "Android {0} готов · Окна приложений подстраиваются под экран", + "m0049": "Компоненты готовы. Дважды щёлкните APK или ярлык на рабочем столе, чтобы начать.", + "m0050": "Ещё не хватает: {0}. Нажмите «Настроить автоматически» ниже, чтобы установить и запустить в фоне.", + "m0051": "", + "m0052": "Подготовка…", + "m0053": "Готово · Нажмите, чтобы проверить снова", + "m0055": "Последний запуск не удался: {0}", + "m0056": "Диагностика последнего запуска: {0}", + "m0057": "Полностью автоматически: не нужно настраивать образ, ускорение или память", + "m0058": "Настройка не удалась", + "m0059": "Проверьте подключение к сети и попробуйте снова", + "m0060": "Компоненты готовы. Автоматический запуск…", + "m0061": "Первый запуск занимает 1–3 минуты, следующие — несколько секунд.", + "m0062": "Среда готова", + "m0063": "Перетащите APK в окно или дважды щёлкните ярлык на рабочем столе.", + "m0064": "Запуск не завершён", + "m0065": "Экспортируйте диагностический отчёт, чтобы разобраться", + "m0067": "Настройка уже выполняется", + "m0068": "Установка драйвера аппаратного ускорения…", + "m0069": "Нажмите «Да» в запросе разрешения", + "m0070": "Аппаратное ускорение включено", + "m0071": "Ускорение не включено", + "m0072": "Неизвестный шаг", + "m0073": "Не удалось запустить среду установки", + "m0074": "Окно виртуальной машины открыто", + "m0075": "Выполните шесть шагов ниже, затем нажмите «Установка завершена».", + "m0076": "Установка завершена, среда подключена", + "m0077": "Теперь можно перетащить сюда APK для установки.", + "m0078": "Неизвестная ошибка", + "m0079": "{0}\nРаздел данных Android заполнен: откройте Настройки → Производительность и ресурсы, увеличьте размер раздела и нажмите «Расширить сейчас».", + "m0080": "{0}\nВ пакете есть только ARM-библиотеки. Переключаемся на совместимый образ и повторяем.", + "m0081": "{0}\nИмя пакета совпадает с установленным приложением, но подпись другая. Удалите приложение через контекстное меню и попробуйте снова.", + "m0082": "{0}\nУстановлена более новая версия. Сначала удалите её через контекстное меню.", + "m0083": "{0}\nПакет слишком большой или не хватает памяти. Проверьте свободное место на диске и память, затем повторите;", + "m0084": "если не помогло, используйте короткий путь только из латиницы (например D:\\a.apk).", + "m0085": "Установка уже выполняется", + "m0086": "Дождитесь окончания текущей установки.", + "m0087": "Установка {0}", + "m0088": "Чтение APK…", + "m0091": "{0} установлено", + "m0092": "Ярлык на рабочем столе создан. Дважды щёлкните его, чтобы открыть приложение.", + "m0093": "Создайте ярлык на рабочем столе через контекстное меню приложения.", + "m0094": "{0}: предупреждение о совместимости", + "m0095": "Открытие {0}", + "m0096": "При первом запуске нужно прогреть среду. Подождите…", + "m0097": "Запущено", + "m0098": "Приложение работает в отдельном окне (поворот — через верхнюю панель).", + "m0099": "Запуск не удался", + "m0100": "Ярлык на рабочем столе создан", + "m0101": "Не удалось создать ярлык", + "m0102": "Удалить «{0}»?\n\nДанные приложения и ярлык на рабочем столе тоже будут удалены.", + "m0103": "Удалено", + "m0104": "Не удалось удалить", + "m0105": "Открыть приложение", + "m0106": "Создать ярлык на рабочем столе", + "m0107": "Закрепить вверху", + "m0108": "Показать APK в папке", + "m0109": "Очистить данные приложения", + "m0110": "Удалить", + "m0111": "Открепить", + "m0113": "Удалить все данные «{0}»? Это действие нельзя отменить.", + "m0114": "Данные очищены", + "m0115": "Не удалось очистить данные", + "m0116": "Чтение…", + "m0117": "Среда не готова ({0})", + "m0118": "Среда не запущена", + "m0119": "Wi-Fi включён", + "m0120": "Wi-Fi выключен", + "m0121": "{0} · Громкость {1}%", + "m0122": " · Режим полёта", + "m0123": "Применено", + "m0124": "Ошибка: {0}", + "m0125": "Среда не готова", + "m0126": "Wi-Fi включён", + "m0127": "Wi-Fi выключен", + "m0128": "Режим полёта включён", + "m0129": "Режим полёта выключен", + "m0130": "Системные анимации включены", + "m0131": "Системные анимации отключены для более быстрой работы", + "m0132": "Размер шрифта изменён", + "m0133": "Масштаб экрана изменён", + "m0134": "Громкость изменена", + "m0135": "Оптимизировано: анимации выключены, ограничение фоновых процессов ослаблено, исключение из экономии батареи включено", + "m0136": "Оптимизация не удалась; возможно, среда не запущена", + "m0137": "Сначала откройте приложение, чтобы запустить среду", + "m0138": "Не удалось прочитать сведения о разделе данных", + "m0139": "Ещё не создан", + "m0140": "Неизвестно", + "m0141": "Текущий образ данных: {0}{1} · Свободно на его диске: {2}.", + "m0142": " (автоматически)", + "m0143": "Если игра сообщает о нехватке памяти, увеличьте это значение и нажмите «Расширить сейчас». Установленные приложения и сохранения не пострадают.", + "m0144": "Связано · Нажмите, чтобы отключить", + "m0145": "Не связано · Нажмите, чтобы включить", + "m0146": "Автоматический режим", + "m0147": "Всего {0}{1}", + "m0148": " · Можно освободить {0} (элементов: {1})", + "m0149": " · Уже оптимизировано", + "m0150": "Статистика недоступна", + "m0152": "Проверка не удалась: {0}", + "m0153": "Сеть недоступна", + "m0154": "Открыть страницу загрузки", + "m0155": " (офлайн-кэш; данные могут быть устаревшими)", + "m0156": "Новая версия {0}{1}{2}{3}", + "m0157": "; {0} недоступен", + "m0158": "Обновить сейчас", + "m0160": "Что нового:\n{0}", + "m0161": " (офлайн-кэш)", + "m0162": "Установлена последняя версия (v{0}){1}{2}", + "m0163": " · через {0}", + "m0164": "Обновление не удалось: {0}", + "m0165": "Обновление не удалось", + "m0166": "Обновление…", + "m0167": "Проверка…", + "m0168": "Подключение к GitHub…", + "m0169": "Новая версия {0}", + "m0170": "Нажмите «Обновить сейчас», чтобы скачать и установить автоматически", + "m0171": "Последняя версия", + "m0173": "Обновление…", + "m0177": "Скачана v{0}. Перезапуск для завершения установки…", + "m0178": "Политика ресурсов изменена", + "m0179": "Применится при следующем открытии приложения", + "m0180": "Сначала выберите объём", + "m0181": "«Автоматически» подбирает размер по свободному месту на диске; расширять вручную не нужно", + "m0182": "Расширить раздел данных Android сейчас?", + "m0183": "Размер /data будет изменён до {0} ГБ на месте; установленные приложения и сохранения не пострадают.", + "m0184": "Запущенные Android-приложения нужно закрыть. Следующий запуск снова загрузит Android и займёт чуть больше времени.", + "m0185": "Начать расширение", + "m0186": "Расширение…", + "m0187": "Раздел данных расширен", + "m0188": "Расширение не удалось", + "m0189": "Теперь доступно около {0} ГБ", + "m0191": "Системные компоненты восстановлены", + "m0192": "Глубокая очистка отключена; фоновые пакеты восстанавливаются", + "m0193": "Режим совместимости с ARM включён", + "m0194": "Скачайте совместимый образ с Google Play (Android 14, около 1,5 ГБ) кнопкой ниже", + "m0196": "Применится после перезапуска среды", + "m0197": "Переключено на полноэкранный режим", + "m0198": "Переключено на портретное окно", + "m0199": "Размер экрана изменён", + "m0200": "Применится при открытии или переключении приложений", + "m0201": "Недостающие ярлыки восстановлены", + "m0202": "Все ярлыки уже есть", + "m0203": "Ярлыки на рабочем столе и в меню «Пуск» на месте", + "m0204": "Диагностический отчёт экспортирован", + "m0205": "Экспорт не удался", + "m0206": "Уже оптимизировано", + "m0207": "Нет старых образов или снимков для очистки.", + "m0208": "Очистка завершена", + "m0209": "Освобождено около {0} МБ (элементов: {1}). Установленные приложения сохранены.", + "m0210": "Всего {0} · Можно освободить {1} (элементов: {2})", + "m0211": "Очистка не удалась", + "m0212": "Сбросить данные Android?", + "m0213": "Android будет возвращён к чистой установке:", + "m0214": "• Будут удалены все сторонние приложения (включая игры), их данные и входы в аккаунты\n", + "m0215": "• Будет удалён снимок быстрой загрузки текущего AVD\n", + "m0216": "• Системный образ сохранится; данные будут созданы заново при следующем холодном запуске\n\n", + "m0217": "Это действие нельзя отменить. Продолжить?", + "m0218": "Отмена", + "m0219": "Продолжить", + "m0220": "Подтвердите ещё раз", + "m0221": "Установленные приложения и их данные будут удалены безвозвратно. Сбросить сейчас?", + "m0222": "Системный образ, другие AVD, локальный кэш APK и значки сохранятся.", + "m0224": "Подтвердить сброс", + "m0225": "Сброс не удался", + "m0226": "Попробуйте ещё раз", + "m0227": "Данные Android сброшены", + "m0228": "Освобождено около {0} МБ. Записи об установленных приложениях очищены.", + "m0231": "Починить сеть виртуальной машины?", + "m0232": "Пустые страницы или бесконечная загрузка в приложениях обычно означают, что у виртуальной машины Android нет сети.", + "m0233": "Восстановление пробует шаги по порядку, от самых мягких к самым радикальным:\n\n", + "m0234": "1. Холодный запуск без снимка и ожидание подключения — все данные сохраняются\n", + "m0235": "2. Только при необходимости — сброс данных Android: список приложений сохранится, они переустановятся при открытии,\n", + "m0236": " но входы в аккаунты, история просмотров и другие данные приложений пропадут\n\n", + "m0237": "Затрагивается только текущий AVD. Системный образ и локальный кэш APK сохранятся. Это займёт 1–5 минут. Продолжить?", + "m0239": "Начать восстановление", + "m0240": "Сеть по-прежнему недоступна", + "m0241": "После сброса у виртуальной машины всё ещё нет сети. Проверьте подключение компьютера и брандмауэр.", + "m0242": "Сеть восстановлена", + "m0243": "Подключено", + "m0244": " (данные Android сброшены; приложения переустановятся при открытии)", + "m0245": " (ваши данные сохранены)", + "m0246": "Восстановление не удалось", + "m0247": "Сканирование не удалось", + "m0249": "Нечего очищать", + "m0250": "Файлов от старых версий не осталось.", + "m0251": "…и ещё {0}", + "m0252": "Удалить файлы старых версий?", + "m0253": "Найдено элементов: {0}, около {1} МБ:", + "m0254": "{0}\n\nБудут удалены только старые папки программы, недействительные записи удаления и временные файлы обновлений.", + "m0255": "Запущенная версия и данные ваших приложений сохранятся.", + "m0257": "Начать очистку", + "m0260": "; пропущено занятых элементов: {0}", + "m0261": "Файлы старых версий удалены", + "m0262": "Удалено элементов: {0}, освобождено {1} МБ{2}.", + "m0265": "Ярлыки пересозданы", + "m0266": "Все ярлыки на месте", + "m0267": "Пересоздавать ярлыки не нужно", + "m0268": "Выбрана новая папка", + "m0269": "Нажмите «Сохранить и перенести», чтобы перенести существующие файлы", + "m0270": "Сначала введите или выберите папку", + "m0271": "Общая папка изменена", + "m0272": "Существующие файлы перенесены в новую папку", + "m0273": "Сохранено", + "m0274": "Не удалось сохранить", + "m0275": "Удалить ApkStart?\n\nБудут удалены программа и связь с файлами .apk. Это действие нельзя отменить.", + "m0276": "Портативную версию нельзя удалить автоматически", + "m0277": "Удалите вручную папку программы ({0}) и папку данных ({1})", + "m0279": "Удаление…", + "m0280": "Деинсталлятор запущен. ApkStart скоро закроется.", + "m0281": "Начинается загрузка образа совместимости с ARM", + "m0283": "Скачать образ совместимости с ARM", + "m0284": "Образ совместимости с ARM готов", + "m0286": "Не удалось скачать образ совместимости", + "m0291": "Готово ({0} ГБ)", + "m0292": "Не скачан", + "m0293": "Папка данных изменена", + "m0294": "Перезапустите ApkStart, чтобы применить (существующие данные не переносятся автоматически)", + "m0295": "Папка данных Android изменена", + "m0296": "Перезапустите ApkStart, чтобы применить. Можно перенести всю папку apkstart.avd в новое место, а старую копию удалить.", + "m0297": "Определение…", + "m0298": "Запущенная среда не найдена", + "m0299": "Найдено: {0}", + "m0300": "Запуск…", + "m0301": "Готово: {0}", + "m0302": "Запуск не удался: {0}", + "m0303": "Встроенная виртуальная машина остановлена", + "m0305": "Связь с .apk отключена", + "m0307": "Связь с .apk включена", + "m0308": "Теперь двойной щелчок по APK устанавливает его в ApkStart", + "m0309": "Операция не удалась", + "m0310": "Системный образ импортирован", + "m0311": "Импорт не удался", + "m0312": "Виртуальный диск импортирован", + "m0313": "Теперь можно запустить среду", + "m0315": "Запуск среды…", + "m0316": "При первом запуске нужно загрузить Android", + "m0319": "Сеанс среды завершён", + "m0320": "Общая папка синхронизирована", + "m0321": "Синхронизация не удалась", + "m0322": "Синхронизация пропускается, пока среда не готова", + "m0323": "Сюда можно перетаскивать только файлы .apk", + "m0324": "Установка не удалась: {0}", + "m0325": "Установка не удалась", + "m0327": "Доброй ночи", + "m0328": "Доброе утро", + "m0329": "Добрый день", + "m0330": "Добрый день", + "m0331": "Добрый вечер", + "m0332": "{0}, с возвращением", + "m0333": "Среда готова — откройте приложение, чтобы начать", + "m0334": "Среда будет подготовлена автоматически при необходимости", + "m0335": "Установленные приложения", + "m0336": "Готово", + "m0337": "Ожидание", + "m0338": "Среда Android", + "m0339": "Устройство / порт", + "m0340": "Доступна новая версия {0}. Обновите в Настройки → Обновление программы.", + "m0341": "Перетащите APK в окно, чтобы установить его и автоматически создать ярлык на рабочем столе", + "m0342": "Дважды щёлкните карточку приложения, чтобы открыть его в отдельном окне; поворот, размер и закрытие — справа вверху", + "m0343": "Закрытие окна закрывает только это приложение; Android остаётся готовым для быстрого следующего запуска", + "m0344": "Проблем для исправления: {0}", + "m0345": "Предупреждений: {0}", + "m0346": "\n
    \n \n Проверка окружения пройдена. Проблем, мешающих работе, не найдено.\n \n \n
    ", + "m0347": "\n
    \n Проверка окружения\n {0}\n {1}\n \n \n \n
    \n
    \n {2}\n
    ", + "m0348": "Критических: {0}", + "m0349": "Предупреждений: {0}", + "m0350": "", + "m0351": "Встроенный установщик не найден", + "m0352": "Открыта официальная страница загрузки Microsoft. Скачайте версию x64.", + "m0353": "Среда VC++ установлена", + "m0354": "Установка не завершена", + "m0356": "Включение аппаратного ускорения…", + "m0357": "Нажмите «Да» в запросе", + "m0359": "Перезагрузите компьютер для лучшей производительности", + "m0360": "Не удалось включить", + "m0365": "Освобождено около {0} МБ", + "m0366": "Используйте путь только из латинских символов", + "m0367": "Измените «Папку данных среды» в Настройки → Интеграция с системой, затем перезапустите ApkStart.", + "m0368": "Установка недостающих компонентов среды…", + "m0369": "Оставшиеся файлы блокировки удалены", + "m0371": "Автоматическое исправление пока не поддерживается", + "m0372": "Инициализация не удалась", + "m0373": "Приложение", + "m0374": "Запуск среды Android…", + "m0375": "Загрузка среды с GitHub…", + "m0376": "Пакет среды неполный. Загрузка недостающих компонентов из официальных источников…", + "m0377": "Среда с GitHub недоступна ({0}). Используются официальные источники…", + "m0378": "Подготовка adb…", + "m0379": "Подготовка среды Android…", + "m0380": "Подготовка системного образа Android…", + "m0381": "Не удалось запустить PowerShell", + "m0382": "ApkStart продолжает работать в фоне", + "m0383": "Щёлкните значок в трее, чтобы открыть снова; щёлкните правой кнопкой, чтобы выйти.", + "m0384": "Открыть ApkStart", + "m0385": "Приложения ещё не установлены", + "m0386": "Портретное окно", + "m0387": "Полный экран (по размеру экрана)", + "m0388": "Пересоздать ярлыки на рабочем столе и в «Пуске»", + "m0389": "Синхронизировать общую папку", + "m0390": "Настройки", + "m0392": "Проверить обновления", + "m0393": "Доступна новая версия", + "m0394": "Доступна ApkStart {0}; текущая версия v{1}. Обновить сейчас?", + "m0396": "Позже", + "m0398": "Выход", + "m0399": "ApkStart — запуск Android-приложений", + "m0400": "Этот APK уже устанавливается. Подождите…", + "m0401": "Идёт установка", + "m0402": "Выполняется другая установка. Дождитесь её окончания.", + "m0404": "Установка завершена", + "m0405": "{0} установлено{1}", + "m0406": "; ярлык на рабочем столе создан", + "m0408": "Идёт обновление", + "m0409": "Уже последняя версия", + "m0410": "В этом выпуске нет установочного пакета. Открыта страница выпуска на GitHub.", + "m0411": "Подготовка загрузки…", + "m0412": "Замена файлов программы и перезапуск…", + "m0414": "Открытие приложения…", + "m0416": "Выберите папку данных", + "m0417": "Выберите APK для установки", + "m0418": "Android-приложения", + "m0419": "Приложение не найдено", + "m0420": "Папка не может быть пустой", + "m0421": "Нет среды VC++ (x64)", + "m0422": "Android нужен Microsoft VC++ 2015–2022. Без него эмулятор может не запуститься (0xc0000135).", + "m0423": "Аппаратное ускорение отключено", + "m0424": "Будет использована программная эмуляция (работает, но медленно). Включите виртуализацию для лучшей производительности.", + "m0425": "Мало места на диске среды", + "m0426": "На диске с «{0}» свободно только {1} МБ. Компоненты среды и образы могут его заполнить.", + "m0427": "В пути к папке среды есть не-ASCII символы", + "m0428": "Некоторые компоненты среды не понимают пути с не-ASCII символами и могут не запуститься. Используйте путь только из латиницы.", + "m0429": "Нет инструментов adb", + "m0430": "Не удаётся подключиться к среде Android.", + "m0431": "Движок среды не установлен", + "m0432": "Сначала установите движок среды (около 440 МБ).", + "m0433": "Системный образ не готов", + "m0434": "Сначала скачайте системный образ Android (около 1,5 ГБ).", + "m0435": "Найдены файлы блокировки от прошлого сеанса", + "m0436": "Из-за них при следующем запуске может появиться сообщение, что AVD уже используется.", + "m0437": "Подтвердить", + "m0439": "ОК", + "m0440": "Размер раздела данных изменён", + "m0441": "В Android доступно около {0} ГБ{1}", + "m0442": " (среда перезапущена)", + "m0444": "Очистить ({0})", + "m0445": "Подтвердите очистку кэша среды", + "m0446": "Будет освобождено около {0} МБ", + "m0447": "Перед удалением старых образов, снимка быстрой загрузки текущего AVD, файлов блокировки и кэшей неактивных AVD среда будет остановлена. Установленные приложения сохранятся (удаляются только снимки).", + "m0448": "Удаляются только старые образы, старые снимки, файлы блокировки и кэши неактивных AVD. Установленные приложения сохранятся.", + "m0449": "Это действие нельзя отменить. При необходимости сначала экспортируйте диагностический отчёт.", + "m0450": "Пакет драйвера AEHD не готов", + "m0451": "Запрос прав администратора отменён (нажмите «Да», чтобы установить драйвер)", + "m0452": "Установка драйвера не удалась (код выхода {0})", + "m0453": "Аппаратное ускорение уже доступно; ничего делать не нужно", + "m0454": "Платформа виртуальной машины включена. Перезагрузите компьютер для лучшей производительности.", + "m0455": "Платформа виртуальной машины включена; аппаратное ускорение работает", + "m0456": "Не удалось включить системную виртуализацию", + "m0457": "Не удалось подготовить пакет драйвера AEHD", + "m0460": "Аппаратное ускорение AEHD включено", + "m0461": "Выберите системный образ Android-x86 / Bliss OS", + "m0463": "Выберите виртуальный диск с установленным Android", + "m0464": "Виртуальный диск", + "m0465": "Неизвестная настройка {0}", + "m0466": "область agent пуста: окна не затрагиваются, чтобы не мешать другим программам", + "m0467": "Недостаточно места на диске", + "m0468": "Осталось всего {0} ГБ. Перенесите данные Android / среду на другой диск в Настройки → Интеграция с системой или сначала освободите место.", + "m0469": "Свободно только {0} ГБ; Android может не запуститься (смените диск в Настройки → Интеграция с системой)", + "m0470": "Недостающие ярлыки восстановлены", + "m0471": "Среда настроена автоматически", + "m0472": "[smoke] Не удалось сделать снимок экрана", + "m0473": "Среда отключена", + "m0475": "Поиск установленных приложений", + "m0476": "Установить APK", + "m0477": "Перетащите APK сюда для установки", + "m0478": "При установке автоматически создаётся ярлык на рабочем столе. Дважды щёлкните его, чтобы запустить приложение в отдельном окне, как обычную программу Windows.", + "m0479": "Если включена связь с .apk, двойной щелчок по APK в Проводнике тоже устанавливает его в ApkStart.", + "m0480": "Выбрать файлы APK", + "m0481": "Проверка среды…", + "m0482": "Здравствуйте", + "m0483": "ApkStart готов", + "m0484": "Не показывать автоматически при запуске", + "m0485": "Открыть настройки", + "m0486": "Начать", + "m0487": "Отпустите для установки", + "m0488": "Поддерживается один или несколько файлов .apk", + "m0490": "Среда выполнения и окружение", + "m0491": "Состояние среды", + "m0492": "Проверка…", + "m0494": "Дополнительно: подключиться к существующей среде", + "m0496": "Установка Android на виртуальный диск", + "m0497": "Окно виртуальной машины открыто. Выполните эти шесть шагов один раз; после этого ApkStart будет загружаться с диска без установочного образа.", + "m0498": "Меню загрузки", + "m0499": ": клавишами", + "m0500": "выберите", + "m0501": ", затем нажмите Enter", + "m0502": ": выберите", + "m0503": "; на вопрос о GPT выберите:", + "m0504": "Разметка в cfdisk", + "m0505": "→ Enter для размера по умолчанию →", + "m0506": "→ введите", + "m0507": "Форматирование", + "m0509": "→ на вопрос о форматировании выберите", + "m0510": "Загрузчик и система", + "m0511": "выберите", + "m0513": "Готово", + "m0514": ": когда прогресс дойдёт до 100%, нажмите «Установка завершена» ниже (ApkStart перезапустится и подключится автоматически)", + "m0515": "Если потом adb отключится, нажмите", + "m0516": "в виртуальной машине, чтобы открыть терминал, затем выполните", + "m0517": ", затем нажмите", + "m0518": ", чтобы вернуться в графический интерфейс.", + "m0519": "Установка завершена", + "m0520": "Позже", + "m0521": "Автоматический режим (по умолчанию; настраивать не нужно)", + "m0522": "Настройки подобраны под этот компьютер", + "m0523": "Определение…", + "m0524": "Память, ядра процессора, графика, порты и ускорение выбираются автоматически. При сбое запуска запасные варианты пробуются без ручных изменений.", + "m0525": "Всего занято на диске (среда + данные Android + кэш)", + "m0526": "Подсчёт…", + "m0527": "Очистить освобождаемые файлы", + "m0528": "Найти и удалить старые папки программы, недействительные записи удаления и временные файлы обновлений", + "m0529": "Удалить старые версии", + "m0530": "Исправить проблемы с сетью в виртуальной машине Android. Данные Android могут быть сброшены; список приложений сохранится, приложения переустановятся при открытии.", + "m0531": "Починить сеть", + "m0532": "Удалить /data Android, установленные приложения и снимки быстрой загрузки, чтобы вернуть чистую систему", + "m0533": "Сбросить данные Android", + "m0534": "Также удалить снимок быстрой загрузки текущего AVD (сначала останавливает среду; может освободить несколько ГБ)", + "m0535": "Системный образ общий, а данные приложений хранятся в разностных слоях. Старые образы, снимки, журналы и файлы блокировки можно удалить. Журналы ротируются автоматически. Сброс данных Android удаляет пользовательские данные и сохраняет только систему.", + "m0536": "Экспорт диагностического отчёта", + "m0537": "Пересоздать ярлыки", + "m0538": "Отчёт помогает разобраться в проблемах; пересоздание восстанавливает ярлыки на рабочем столе и в «Пуске»", + "m0539": "Запускать вместе с Windows (включено по умолчанию)", + "m0540": "Оставаться в трее после входа в Windows, чтобы ярлыки на рабочем столе открывали приложения без ручного запуска ApkStart.", + "m0541": "Окна приложений", + "m0542": "Режим отображения", + "m0543": "Портретное окно (размер меняется и запоминается для каждого приложения)", + "m0544": "Полный экран (по размеру экрана с пропорциями телефона)", + "m0545": "Нажмите", + "m0546": "или используйте контекстное меню в трее для переключения. Полный экран сохраняет пропорции и не перезапускает приложение.", + "m0547": "Размер отрисовки в портретном режиме", + "m0548": "Маленький · 720 × 1280", + "m0549": "Средний · 900 × 1600", + "m0550": "Большой · 1080 × 1920", + "m0551": "Очень большой · 1440 × 2560", + "m0552": "Размер окна меняется перетаскиванием границы. Эта настройка меняет внутреннее разрешение Android; меньшие значения требуют меньше ресурсов.", + "m0553": "Управление мышью", + "m0554": "Левая кнопка · Подтвердить / касание", + "m0555": "Эмулятор превращает щелчок левой кнопкой в касание пальцем, а перетаскивание — в свайп. Дополнительно настраивать ничего не нужно.", + "m0556": "Правая кнопка · «Назад» Android", + "m0557": "По умолчанию эмулятор считает правый щелчок тоже касанием. Включите, чтобы правая кнопка работала как «Назад» без касания.", + "m0558": "Колесо мыши · Прокрутка", + "m0559": "Плавно (рекомендуется) · Объединять события колеса в один свайп", + "m0560": "Нативно · Каждый шаг обрабатывает эмулятор", + "m0561": "Выкл. · Не перехватывать колесо", + "m0562": "Плавный режим объединяет близкие события колеса в один свайп, без рывков и без отдельного процесса adb на каждый шаг.", + "m0563": "Боковые кнопки · Назад / вперёд (по умолчанию выкл.)", + "m0564": "Боковым кнопкам нужен глобальный перехват мыши; он ставится, только пока окно приложения ApkStart активно, и снимается при потере фокуса или закрытии окна.", + "m0565": "Эти назначения работают только в окнах приложений. При переходе на рабочий стол или закрытии окна мышь снова работает как обычно в Windows.", + "m0566": "Производительность и ресурсы", + "m0567": "Политика ресурсов", + "m0568": "Экономия · 2 ядра / низкий приоритет / 540p", + "m0569": "Баланс · Половина физических ядер / низкий приоритет / 720p (рекомендуется)", + "m0570": "Плавно · Все ядра / приоритет активного окна (видео, игры)", + "m0571": "Определяет нагрузку на процессор и качество картинки. Для видео и игр с рывками выберите «Плавно», для лёгких фоновых приложений — «Экономия». Применится при следующем открытии приложения.", + "m0572": "Качество картинки (разрешение отрисовки Android)", + "m0573": "Автоматически (по наличию ускорения)", + "m0574": "Плавно · 540 × 960", + "m0575": "Баланс · 720 × 1280", + "m0576": "HD · 1080 × 1920", + "m0577": "Раздел данных Android (приложения и игры)", + "m0579": "Расширить сейчас", + "m0580": "Расширение сохраняет установленные приложения и игровые сохранения. Следующий запуск приложения займёт чуть больше времени.", + "m0581": "Чтение раздела данных…", + "m0582": "Ускорение сети (рекомендуется)", + "m0583": "Использовать для Android публичные DNS-серверы Китая (Alibaba / Tencent). DNS компьютера может работать медленно с VPN или в корпоративной сети. Отключите, если перестанут открываться внутренние домены.", + "m0584": "Звук Android", + "m0585": "Воспроизводить звуки уведомлений и видео. Отключайте, только если звук не нужен и хочется снизить нагрузку на процессор.", + "m0586": "Сохранять снимок быстрой загрузки (рекомендуется)", + "m0587": "Следующие запуски занимают секунды, но снимок занимает около 2–3 ГБ на диске для", + "m0588": ". Отключите, если мало места; это влияет на скорость запуска, а не на приложения или сохранения.", + "m0589": "Параметры контейнера (дополнительно)", + "m0590": "Облегчённый контейнер", + "m0591": "Ограничить число vCPU и понизить приоритет процесса в пользу рабочего стола Windows. Этой настройкой уже управляет политика ресурсов.", + "m0592": "Приоритет виртуальной машины", + "m0593": "Баланс (рекомендуется) · Приоритет активному окну", + "m0594": "Производительность · Тот же приоритет, что у активного окна", + "m0595": "Когда окна приложений закрыты, контейнер автоматически переходит на самый низкий приоритет.", + "m0596": "Глубокая очистка фона", + "m0597": "Отключить лишние фоновые пакеты, например Play Маркет, мастер настройки и службы печати. Если приложение жалуется на отсутствие сервисов Google Play, выключите эту настройку, чтобы вернуть их.", + "m0598": "Прогрев при запуске (рекомендуется)", + "m0599": "Загружать Android в фоне при запуске ApkStart, не показывая эмулятор. Приложения тогда открываются намного быстрее, но в простое занято около 1 ГБ памяти. Отключите, чтобы Android загружался при первом открытии приложения.", + "m0600": "Android загружается один раз и остаётся готовым. Открытие другого приложения запускает только его и останавливает процессы остальных. Закрытие последнего окна очищает фоновые процессы и переводит контейнер в режим ожидания.", + "m0601": "Источники загрузки и обновлений", + "m0602": "Источник обновлений и загрузок", + "m0603": "Автоматически выбирать более быстрый источник (рекомендуется)", + "m0604": "Только Gitee (обычно быстрее в Китае)", + "m0605": "Только GitHub", + "m0606": "Автоматический режим проверяет GitHub и Gitee, тестирует каждую ссылку загрузкой 256 КБ и выбирает самую быструю. Недоступный источник не мешает обновлению.", + "m0607": "Автоматически пробовать публичные зеркала", + "m0608": "Если GitHub медленный, проверять также ghfast.top / gh-proxy.com. Эти сторонние сервисы пересылают публичные файлы выпусков без данных аккаунта. Отключите, чтобы использовать только прямую загрузку и свой префикс.", + "m0609": "Префикс зеркала (необязательно, ускоряет GitHub)", + "m0610": "Например https://ghfast.top/", + "m0611": "Если задан, используется только этот префикс вместо публичных зеркал выше. Оставьте пустым для автоматического выбора. Префикс добавляется перед реальной ссылкой загрузки.", + "m0612": "Число соединений загрузки (1–16, по умолчанию 8)", + "m0613": "Большие файлы скачиваются параллельными частями. Обычно хватает восьми соединений; при стабильной сети можно попробовать шестнадцать.", + "m0614": "Источник обновлений Gitee (необязательно)", + "m0615": "Токен Gitee только для чтения (обычно не нужен)", + "m0616": "Оставьте пустым: публичные репозитории доступны анонимно", + "m0617": "Список выпусков этого публичного репозитория на Gitee читается анонимно. Токен нужен только при ограничениях (403/429) или для закрытых веток: gitee.com → Settings → Personal access tokens, только «projects». Он используется только для чтения выпусков; ничего не загружается.", + "m0618": "Дополнительные настройки (обычно менять не нужно)", + "m0619": "Среда выполнения", + "m0620": "Режим движка", + "m0621": "Встроенная среда (рекомендуется, QEMU + Android-x86)", + "m0622": "Подключиться к существующей среде (дополнительно: WSA / adb-порт другого эмулятора)", + "m0623": "Путь к adb", + "m0624": "Оставьте пустым для автопоиска в PATH / Android SDK", + "m0625": "Адрес устройства", + "m0626": "Найти", + "m0627": "Системный образ (ISO)", + "m0628": "Путь к ISO или IMG Android-x86 / Bliss OS; оставьте пустым для образа по умолчанию", + "m0629": "Память (МБ, 0 = автоматически)", + "m0630": "Ядра процессора (0 = автоматически)", + "m0631": "Выключение при простое (минуты, 0 = отключено)", + "m0632": "Универсальный совместимый образ (управляется автоматически)", + "m0633": "Единый универсальный образ Android 14 поддерживает приложения x86 и ARM и скачивается автоматически, когда впервые понадобится. Переключатель оставлен только для старых настроек.", + "m0634": "Совместимый образ", + "m0636": "Скачать совместимый образ", + "m0637": "Запустить среду", + "m0638": "Остановить встроенную виртуальную машину", + "m0639": "Настройки Android (без открытия рабочего стола Android)", + "m0642": "Обновить", + "m0643": "Оптимизировать производительность", + "m0644": "Отключить анимации, ослабить ограничения фоновых процессов и исключить текущее приложение из оптимизации батареи. Заметнее всего на слабых компьютерах.", + "m0645": "Wi-Fi внутри виртуальной машины Android; выключите, чтобы снизить нагрузку на процессор.", + "m0646": "Режим полёта", + "m0647": "Отключить все сети, включая мобильную передачу данных.", + "m0648": "Системные анимации", + "m0649": "Отключите для более быстрых переходов; на работу это не влияет.", + "m0650": "Громкость медиа", + "m0651": "Размер шрифта", + "m0652": "Маленький", + "m0653": "Обычный", + "m0654": "Большой", + "m0655": "Очень большой", + "m0656": "Масштаб экрана", + "m0657": "Компактный (меньше ресурсов)", + "m0659": "Крупный", + "m0661": "Родные настройки Android", + "m0662": "Настройки экрана", + "m0663": "Настройки звука", + "m0664": "Настройки языка", + "m0665": "Управление приложениями", + "m0666": "Рабочий стол и приложения", + "m0667": "Создавать ярлыки на рабочем столе после установки", + "m0668": "Ярлыки используют настоящие значки приложений и открывают их напрямую", + "m0669": "Также добавлять в меню «Пуск»", + "m0670": "Приложения находятся через поиск Windows; окна на панели задач группируются по приложению", + "m0671": "Папка для ярлыков", + "m0672": "Пусто = рабочий стол", + "m0674": "Восстановить ярлыки по текущим настройкам, если значки случайно удалены или заблокированы антивирусом.", + "m0675": "Обмен файлами", + "m0676": "Общая папка на этом компьютере", + "m0677": "Обзор", + "m0679": "Синхронизировать", + "m0680": "Сохранить и перенести", + "m0681": "Существующие файлы автоматически переносятся из старой папки; обмен файлами не прерывается.", + "m0682": "Соответствующая папка в Android", + "m0683": "Обе папки синхронизируются в обе стороны. Файлы, сохранённые туда Android-приложениями, появляются в общей папке на компьютере.", + "m0684": "Интеграция с системой", + "m0685": "Связать файлы .apk", + "m0686": "Двойной щелчок по APK устанавливает его в ApkStart (только для текущего пользователя; права администратора не нужны)", + "m0688": "Папка данных среды (образы · приложения · снимки)", + "m0689": "По умолчанию: папка данных пользователя на диске C:", + "m0692": "Занимает несколько ГБ. Перенос с системного диска освободит место на C:. После изменения перезапустите программу. Существующие данные не переносятся автоматически; скопируйте их вручную, прежде чем удалять старую копию.", + "m0693": "Папка данных Android (приложения, игры и снимки быстрой загрузки)", + "m0694": "По умолчанию: папка avd внутри папки среды", + "m0697": "Основное место занимают раздел данных (по умолчанию 6 ГБ, расширяется выше) и снимки быстрой загрузки (около 2–3 ГБ). Выберите другой диск, например D:, и перезапустите программу. Старую папку", + "m0698": "можно перенести целиком, а затем удалить старую копию.", + "m0699": "Удалить ApkStart", + "m0700": "Удалить", + "m0701": "Удаление убирает связь с .apk и саму программу. Портативную версию нужно удалить вручную по инструкции.", + "m0702": "Обновление программы", + "m0703": "Текущая версия", + "m0704": "Ещё не проверялось", + "m0707": "Последний выпуск берётся с GitHub (RoutineMiku/apkstart). Облегчённая версия скачивает портативный пакет и автоматически заменяет файлы программы, сохраняя среду, установленные приложения и снимки.", + "m0708": "О программе", + "m0709": "QR-код официального аккаунта WeChat", + "m0710": "Отсканируйте, чтобы подписаться в WeChat", + "m0711": "QR-код Douyin", + "m0712": "Douyin · Daily MIKU", + "m0713": "Запуск Android-приложений в Windows: установка APK, ярлыки на рабочем столе, отдельные окна приложений и двусторонний обмен файлами.", + "m0714": "Douyin · @Daily MIKU (связаться с автором)", + "m0715": "Изменения применяются сразу", + "m0718": "Альбомная / портретная (Ctrl+R)", + "m0719": "Свернуть", + "m0720": "Развернуть", + "m0721": "Закрыть", + "settings.language": "Язык", + "settings.systemLanguage": "Язык системы", + "settings.languageNote": "Язык интерфейса меняется сразу. Язык системы Android не изменяется.", + "profile.summary": "Автоматически: {0} ГБ ОЗУ · ядер: {1} · графика {2} · {3} · {4}{5} · Порт {6}", + "profile.accelerated": "Аппаратное ускорение", + "profile.snapshot": "Снимки по требованию", + "profile.coldBoot": "Холодный запуск", + "profile.lite": " · Облегчённый контейнер", + "settings.gamePriority": "Игры / низкая задержка · Высокий приоритет среды для шутеров и ритм-игр", + "settings.gamePriorityNote": "Игровой режим повышает приоритет процессора для виртуальной машины Android и реже опрашивает её, чтобы снизить задержку ввода и изображения. Другие программы могут замедлиться. Когда окна приложений закрыты, контейнер всё равно автоматически понижает приоритет и переходит в ожидание.", + "display.restartingLandscape": "Переход в альбомный режим: перезапуск среды Android…", + "display.restartingPortrait": "Переход в портретный режим: перезапуск среды Android…", + "v058.m0000": "Переключение «{0}» в {1} режим (перезапуск Android, около 40 секунд, один раз)…", + "v058.m0001": "альбомный", + "v058.m0002": "портретный", + "v058.m0003": "autoDeploy на паузе (последний сбой в {0}); автоматический повтор пропущен", + "v058.m0004": "autoDeploy пропущен: среда встроена в пакет ({0}); сеть не нужна", + "v058.m0005": "; образ будет распакован локально при первом запуске", + "v058.m0006": "Сетевой autoDeploy пропущен: встроенная папка среды ({0}); используется диагностика", + "v058.m0007": "Версия из Store не может сама повысить права. Включите это вручную один раз: ", + "v058.m0008": "Нажмите Win+R → введите optionalfeatures → включите «Платформа низкоуровневой оболочки Windows»", + "v058.m0009": " (HypervisorPlatform, нужна для WHPX), затем подтвердите и перезагрузите компьютер.", + "v058.m0010": "Закрыть текущее приложение ({0})", + "v058.m0011": "Закрыть текущее приложение", + "v058.m0012": "Портретный режим (нужен перезапуск среды)", + "v058.m0013": "Альбомный режим (нужен перезапуск среды)", + "v058.m0014": "Обновлениями версии из Store управляет Microsoft Store. Открыт раздел «Загрузки и обновления».", + "v058.m0015": "запуск {0} поставлен в очередь (ждём запуска {1})", + "v058.m0016": "приложение запущено (раннее подключение дисплея)", + "v058.m0017": "несовпадение ориентации (panel={0}, want={1}); перезапуск для исправления", + "v058.m0018": "Переход в альбомный режим…", + "v058.m0019": "Переход в портретный режим…", + "v058.m0020": "Работа в программной эмуляции (очень медленно)", + "v058.m0021": "Включите «Платформу низкоуровневой оболочки Windows» и перезагрузитесь один раз — скорость вырастет в 5–10 раз.", + "v058.m0022": "Настройки → Проверка окружения → «Исправить» откроет это окно.", + "v058.m0023": "Настройки → Проверка окружения → «Исправить» может включить её (нужны права администратора); затем перезагрузитесь.", + "v058.m0024": "Нет запущенных приложений", + "v058.m0025": "Автоматическая настройка при предпроверке: {0} driver={1}", + "v058.m0026": "(не сохранено)", + "v058.m0027": "Выберите файл драйвера (.json)", + "v058.m0028": "JSON драйвера", + "v058.m0029": "Драйвер импортирован: {0} v{1}", + "v058.m0030": "Экспортировать шаблон драйвера для этого компьютера", + "v058.m0032": "Нет ID драйвера", + "v058.m0033": "Нужно включить «Платформу низкоуровневой оболочки Windows»", + "v058.m0034": "Без неё загрузка в программной эмуляции может занимать несколько минут.", + "v058.m0035": " (Версия из Store не может запросить права администратора за вас. Включите вручную и перезагрузитесь.)", + "v058.m0036": "Переход на программную эмуляцию (работает, но очень медленно).", + "v058.m0037": "Нажмите «Исправить» справа, чтобы включить автоматически (нужны права администратора; может потребоваться перезагрузка); ", + "v058.m0038": "если не получится, будет опробован драйвер AEHD.", + "v058.m0039": "Среда не готова; распределение ресурсов недоступно", + "v058.m0040": "Недопустимый целевой объём", + "v058.m0041": "Запрошено включение «Платформы низкоуровневой оболочки Windows». Аппаратное ускорение заработает после перезагрузки компьютера.", + "v058.m0042": "«Платформа низкоуровневой оболочки Windows» включена; перезагрузите компьютер, чтобы применить", + "v058.m0044": "Запрос прав администратора отменён; аппаратное ускорение не изменилось. Нажмите «Исправить» ещё раз или включите «Платформу низкоуровневой оболочки Windows» вручную.", + "v058.m0045": "Завершение предыдущего обновления…", + "v058.m0046": "\n
    \n
    \n \n
    \n
    Добавить приложение
    \n
    Перетащите APK для установки
    \n
    \n ", + "v058.m0047": "Аппаратное ускорение отключено: используется программная эмуляция (очень медленно). Откройте «Проверка окружения» → «Исправить» справа внизу, чтобы включить его.", + "v058.m0048": "Сеть подключена {0}", + "v058.m0049": "Виртуальная машина без сети", + "v058.m0050": "Android подключён к сети; приложения могут загружать онлайн-контент", + "v058.m0051": "У Android нет подключения к сети; онлайн-страницы могут оставаться пустыми или не загружаться. Откройте Настройки → Починить сеть.", + "v058.m0052": "Закрыть приложение", + "v058.m0053": "Назначение клавиш…", + "v058.m0054": "Закрыто", + "v058.m0055": "Не удалось закрыть", + "v058.m0057": "0. Очистить текущее назначение", + "v058.m0058": "Выберите набор назначения клавиш для «{0}»:\n\n{1}\n\nВведите его номер:", + "v058.m0059": "Назначение клавиш очищено", + "v058.m0060": "Неверный номер", + "v058.m0061": "Применено «{0}»", + "v058.m0062": "{0} · Откройте приложение, чтобы управлять с клавиатуры", + "v058.m0063": "Не удалось сохранить назначение клавиш", + "v058.m0064": "Сведения о распределении ресурсов недоступны", + "v058.m0065": "Этот компьютер: {0} ОЗУ / ядер: {1}; ", + "v058.m0066": "Выделяется до {0} ОЗУ и ядер: {1} (1/4 ОЗУ и одно ядро остаются для Windows).", + "v058.m0067": "Предел раздела данных: {0} ГБ{1}.", + "v058.m0068": " (на диске свободно {0} ГБ)", + "v058.m0069": "Результат предпроверки не получен. Попробуйте ещё раз.", + "v058.m0070": "Обработка…", + "v058.m0071": "Операция не завершена", + "v058.m0072": "Попробуйте позже или следуйте инструкции для ручной настройки", + "v058.m0073": "Отменено", + "v058.m0074": "Системные настройки не изменены", + "v058.m0075": "Аппаратное ускорение уже доступно", + "v058.m0076": "Изменения отправлены; нужна перезагрузка", + "v058.m0077": "Перезагрузите компьютер, чтобы включить аппаратное ускорение, затем нажмите «Начать проверку» для подтверждения", + "v058.m0078": "Нажмите «Начать проверку», чтобы подтвердить результат", + "v058.m0079": "Автоматическая настройка не завершилась", + "v058.m0080": "Следуйте инструкции для ручной настройки", + "v058.m0081": "{0}. Рекомендуется: {1} ГБ ОЗУ / ", + "v058.m0082": "ядер: {0} / {1} · Отрисовка {2}", + "v058.m0083": " (версия из Store: включите системные компоненты вручную в «Компонентах Windows»)", + "v058.m0084": "Проверка системы…", + "v058.m0085": "Проверка виртуализации, графики и памяти… (при первом запуске около 2–3 секунд)", + "v058.m0086": "Проверка системы не удалась", + "v058.m0087": "Нет аппаратного ускорения", + "v058.m0088": "Этот компьютер: {0}/{1} · графика {2} · {3}", + "v058.m0089": " · эмулятор {0}; драйверов: {1}, активно на этом компьютере: {2}.", + "v058.m0090": " Не удалось загрузить файлов: {0} (см. ниже).", + "v058.m0091": "Попробуйте позже", + "v058.m0092": "Встроенный пример", + "v058.m0093": " · Совпадения: {0}", + "v058.m0094": " · Не подходит для этого компьютера", + "v058.m0095": "Драйверов пока нет. Экспортируйте шаблон, чтобы создать драйвер, или импортируйте чужой JSON-файл.", + "v058.m0096": "Список драйверов недоступен (возможно, среда ещё не настроена)", + "v058.m0097": "Разностный диск быстрой загрузки (реальный размер зависит от /data среды)", + "v058.m0098": "Реальная файловая система {0} ГБ", + "v058.m0099": " Целевые {0} ГБ ещё не действуют: Android использует разностный диск быстрой загрузки. Сбросьте данные Android, чтобы пересоздать /data нового размера (установленные приложения будут удалены).", + "v058.m0100": "Текущий раздел данных: {0}{1} · Свободно на диске: {2}.{3}", + "v058.m0101": "Если игра сообщает о нехватке памяти, увеличьте размер и нажмите «Расширить сейчас». Приложения сохранятся, если возможно расширение на месте.", + "v058.m0102": "Не удалось применить", + "v058.m0104": "Настроено для этого компьютера", + "v058.m0105": "{0} ГБ ОЗУ / ядер: {1} / {2}", + "v058.m0106": "; драйвер создан и будет применён автоматически при следующем запуске", + "v058.m0107": "Не удалось сохранить драйвер", + "v058.m0108": "Не удалось открыть папку драйверов", + "v058.m0109": "Драйвер импортирован и включён", + "v058.m0110": "Шаблон экспортирован", + "v058.m0111": "Отредактируйте effect, сохраните в папке драйверов и нажмите «Обновить», чтобы применить", + "v058.m0112": "Язык системы изменён", + "v058.m0113": "Применится после следующего перезапуска среды Android", + "v058.m0114": "Китайский метод ввода включён", + "v058.m0115": "Китайский метод ввода выключен", + "v058.m0117": "Для расширения нужно сбросить данные Android", + "v058.m0118": "Android использует разностный диск быстрой загрузки, который нельзя расширить на месте. Пересоздайте /data, чтобы получить {0} ГБ.", + "v058.m0119": "Пересоздание удалит установленные приложения и игровые сохранения (эмулятор и образ сохранятся). Продолжить?", + "v058.m0120": "Очистить и пересоздать", + "v058.m0121": "Пересоздание…", + "v058.m0122": "Пересоздано с новым размером", + "v058.m0123": "Не удалось пересоздать", + "v058.m0124": "При следующем запуске приложения /data будет пересоздан на {0} ГБ (первая загрузка займёт чуть больше времени)", + "v058.m0125": "Назначение клавиш включено", + "v058.m0126": "Назначение клавиш выключено", + "v058.m0127": "Автоматический полный экран включён", + "v058.m0128": "Автоматический полный экран выключен", + "v058.m0129": "Применится при следующем запуске приложения", + "v058.m0130": "Ориентация как у приложения", + "v058.m0131": "Принудительно альбомная", + "v058.m0132": "Принудительно портретная", + "v058.m0133": "При следующем запуске используется ориентация, указанная в приложении; если ориентация панели другая, среда перезапустится один раз.", + "v058.m0134": "При следующем запуске среда перезапустится один раз, чтобы переключить панель на выбранную ориентацию.", + "v058.m0135": "Планшетная раскладка включена", + "v058.m0136": "Планшетная раскладка выключена", + "v058.m0137": "Применится при следующем запуске (один перезапуск среды для смены логической плотности).", + "v058.m0138": "Панель переведена в альбомный режим", + "v058.m0139": "Панель переведена в портретный режим", + "v058.m0140": "При следующем запуске среда перезапустится один раз, чтобы сменить физическую ориентацию панели (несколько секунд).", + "v058.m0141": "Включён встроенный режим", + "v058.m0142": "Включён режим отдельного окна", + "v058.m0143": "Применится при следующем запуске. В отдельном режиме эмулятор сам управляет окном, ориентацией и масштабом.", + "v058.m0144": "Включите вручную (один раз)", + "v058.m0145": "В открывшемся окне включите «Платформа низкоуровневой оболочки Windows», подтвердите и перезагрузите компьютер.", + "v058.m0147": "Права администратора не выданы; аппаратное ускорение не изменилось.", + "v058.m0148": "Первый запуск · Локальная подготовка (сеть не нужна)", + "v058.m0149": "
  • Компоненты среды уже в пакете; ничего скачивать не нужно
  • ", + "v058.m0150": "
  • Распаковка системного образа в данные пользователя (около минуты, один раз)
  • ", + "v058.m0151": "
  • Подготовка аппаратного ускорения и китайского ввода
  • ", + "v058.m0152": "
  • Затем дважды щёлкните APK или ярлык на рабочем столе, чтобы открыть приложение
  • ", + "v058.m0153": "简体中文", + "v058.m0154": " Память, ядра процессора, графика, порты и ускорение выбираются автоматически, при сбое запуска пробуются запасные варианты. ApkStart использует ", + "v058.m0155": " отдельный порт adb-сервера 5044 ", + "v058.m0156": " (системный adb использует 5037), поэтому команда ", + "v058.m0157": " не показывает это Android-устройство. Такая изоляция сделана намеренно. Чтобы подключиться, задайте ", + "v058.m0158": " перед запуском adb. Не подключайтесь вручную к порту 5555 через ", + "v058.m0159": " — это вызовет запрос «Разрешить отладку по USB?» поверх запущенного приложения. ", + "v058.m0160": "Автоматический полный экран", + "v058.m0161": "Выкл. (используется режим отображения выше)", + "v058.m0162": "Вкл. · Открывать все приложения на весь экран", + "v058.m0163": "Приложения открываются на весь экран без нажатия F11. Лучше всего работает с альбомной ориентацией: её пропорции подходят экрану без чёрных полос.", + "v058.m0164": "Ориентация экрана", + "v058.m0165": "Как у приложения (рекомендуется · автоматически портретная или альбомная)", + "v058.m0166": "Принудительно портретная (пропорции телефона, для коротких видео и чтения)", + "v058.m0167": "Принудительно альбомная (широкий экран, для видео и игр)", + "v058.m0168": " Ориентация Android зависит от ", + "v058.m0169": " физической ориентации панели виртуального телефона ", + "v058.m0170": " . Если она отличается от ориентации, указанной в приложении, Android может показать узкую картинку с чёрными полосами, и изменение размера окна или разрешения этого не исправит. Режим «Как у приложения» читает ориентацию из APK и при запуске выбирает подходящую панель. Среда перезапускается только при смене ориентации; следующие запуски с той же ориентацией быстрые. ", + "v058.m0171": "Планшетная раскладка", + "v058.m0172": "Вкл. (рекомендуется · 190 dpi, планшетная раскладка sw606dp)", + "v058.m0173": "Выкл. (плотность образа по умолчанию, раскладка телефона)", + "v058.m0174": "При 190 dpi 720 пикселей равны 606 dp — это больше планшетного порога Android в 600 dp. Некоторые приложения тогда показывают страницы в две колонки. Выключите для раскладки телефона (крупнее текст, меньше информации). Применится при следующем запуске.", + "v058.m0175": "Текущая ориентация панели", + "v058.m0176": "Портретная панель", + "v058.m0177": "Альбомная панель", + "v058.m0178": " Среда ", + "v058.m0179": " сейчас ", + "v058.m0180": " использует эту физическую ориентацию панели, выбранную политикой выше. Задать её напрямую можно только в принудительных режимах. ", + "v058.m0181": "Размещение окна", + "v058.m0182": "Встроенное (по умолчанию) · Android внутри окна ApkStart", + "v058.m0183": "Отдельное окно · Масштабом и вводом управляет эмулятор", + "v058.m0184": "Встроенный режим даёт единое окно приложения, но встраивание эмулятора может вызывать чёрные полосы или неточные щелчки при масштабировании, повороте или переключении окон. В отдельном режиме ориентацией, масштабом и вводом управляет эмулятор, но на панели задач появляется лишний значок. Применится при следующем запуске.", + "v058.m0185": "Назначение клавиш (игровое управление)", + "v058.m0186": "Включить назначение клавиш", + "v058.m0187": "Назначить клавишам клавиатуры касания и свайпы в Android (например, WASD для движения и J/K для умений). Настраивается для каждого приложения отдельно: правый щелчок по карточке → «Назначение клавиш», чтобы выбрать набор или свою раскладку.", + "v058.m0188": "Для текущего приложения клавиши не назначены. Щёлкните карточку правой кнопкой, чтобы применить набор.", + "v058.m0189": "64 ГБ (для игр около 50 ГБ)", + "v058.m0190": "Язык системы", + "v058.m0191": "Упрощённый китайский (рекомендуется)", + "v058.m0192": "繁體中文", + "v058.m0193": "English (по умолчанию в образе)", + "v058.m0194": "日本語", + "v058.m0195": " Язык системных настроек, запросов разрешений и дат. Применяется при загрузке; ", + "v058.m0196": " вступает в силу после перезапуска среды ", + "v058.m0197": " . Китайский метод ввода настраивается отдельно ниже. ", + "v058.m0198": "Китайский метод ввода (рекомендуется)", + "v058.m0199": "В образе есть только английская клавиатура. Включите, чтобы незаметно установить и активировать встроенный Google Pinyin для ввода китайского в Android-приложениях. Выключите, чтобы оставить исходный метод ввода.", + "v058.m0200": "Проверка системы · Автоматическая настройка", + "v058.m0201": "Проверить виртуализацию процессора, «Платформу низкоуровневой оболочки Windows», графику, видеопамять, ОЗУ и версию ОС. Рекомендуемые память, ядра, качество и графика сохраняются вместе с профилем совместимости. Для действий, требующих прав администратора, появляется кнопка; для изменений в BIOS есть инструкция.", + "v058.m0202": "Начать проверку", + "v058.m0203": "Применить рекомендуемые настройки", + "v058.m0204": "Драйверы · Профили совместимости", + "v058.m0205": " Некоторым компьютерам нужны другие параметры запуска (старая графика, отключённое ускорение или нестабильные видеодрайверы). Драйвер совместимости — это JSON-файл, задающий подходящие компьютеры и переопределения запуска. Их можно создавать, импортировать и делиться ими. Меняться могут только разрешённые параметры запуска; драйверы ", + "v058.m0206": " не выполняют код ", + "v058.m0207": " и применяются, только если совпадают их условия. ", + "v058.m0208": "Чтение драйверов…", + "v058.m0209": "Импортировать драйвер…", + "v058.m0210": "Открыть папку драйверов", + "v058.m0211": "Экспорт шаблона компьютера", + "v058.m0212": " Экспорт шаблона подставляет условия этого компьютера. Отредактируйте ", + "v058.m0213": " в ", + "v058.m0214": ", чтобы использовать его. Описание полей — в файле репозитория ", + "v058.m0215": "Встроенная среда ApkStart (QEMU + Android 14, автономная)", + "v058.m0216": "ApkStart сам скачивает и обслуживает свои adb, эмулятор и системный образ. Он не ищет, не подхватывает и не зависит от сторонних эмуляторов (MuMu, LDPlayer, BlueStacks или WSA). Другие эмуляторы и их обновления на него не влияют.", + "v058.m0217": "Назначается ApkStart автоматически (emulator-5554; при конфликте — следующий свободный порт). Вводить вручную не нужно.", + "v058.m0218": "Запуск Android-приложений в Windows", + "v058.m0219": "Подготовка…", + "v058.m0220": "Первый запуск · Автоматическая настройка", + "v058.m0221": "Скачать среду Android (около 200 МБ, один раз)", + "v058.m0222": "Скачать системный образ (около 1,5 ГБ, один раз)", + "v058.m0223": "Настроить аппаратное ускорение и сеть", + "v058.m0224": "Затем дважды щёлкните APK или ярлык на рабочем столе, чтобы открыть приложение", + "v062.m0000": "Среда указывает на другую установку ({0}); используется встроенная среда {1}", + "v062.m0001": "Переход в альбомный режим (перезапуск Android, около 40 секунд, один раз)…", + "v062.m0002": "Переход в портретный режим (перезапуск Android, около 40 секунд, один раз)…", + "v062.m0003": "attach detached: окно оболочки закрыто (попытка {0})", + "v062.m0004": "attach detached #{0} не удалось: {1}", + "v062.m0005": "Не удалось прикрепить нативное окно после всех попыток; временно используется встроенный режим", + "v062.m0006": "Не удалось показать нативное окно эмулятора. В этом сеансе используется встроенное окно.", + "v062.m0007": "Руководство пользователя ApkStart · {0}", + "v062.m0008": "Автопроверка нашла новые проблемы: {0} (Настройки → Диагностика и восстановление)", + "v062.m0009": "Автопроверка нашла новые проблемы", + "v062.m0010": "{0}. Откройте в ApkStart Настройки → Диагностика и восстановление, чтобы их устранить.", + "v062.m0011": "Руководство пользователя", + "v062.m0012": "pre-attach detached ok (попытка {0})", + "v062.m0013": "Нет имени пакета", + "v062.m0014": "(как у приложения)", + "v062.m0015": "Среду перехватил другой экземпляр; выключение пропущено, чтобы не остановить его эмулятор", + "v062.m0016": "{0}\nУстановка не удалась даже с совместимым ARM-образом. Экспортируйте диагностический отчёт в Настройки → Диагностика и восстановление.", + "v062.m0017": "{0}\nВ пакете есть только ARM-библиотеки. Программа переключится на совместимый образ и повторит один раз. Следите за следующим сообщением о состоянии.", + "v062.m0018": "Альбомная / портретная", + "v062.m0019": "Запускать в портретном режиме (сейчас альбомный)", + "v062.m0020": "Запускать в альбомном режиме (сейчас портретный)", + "v062.m0021": "Альбомный режим при запуске", + "v062.m0022": "альбомный при запуске", + "v062.m0023": "портретный при запуске", + "v062.m0024": "как у приложения", + "v062.m0025": "Установлено: {0}", + "v062.m0026": "Применится при следующем открытии этого приложения; полный перезапуск среды не нужен.", + "v062.m0027": "Не удалось задать ориентацию", + "v062.m0028": "Основное и установка", + "v062.m0029": "Экран и окна", + "v062.m0030": "Управление и ввод", + "v062.m0031": "Производительность и ресурсы", + "v062.m0032": "Сеть и загрузки", + "v062.m0033": "Диагностика и восстановление", + "v062.m0034": "Интеграция и файлы", + "v062.m0035": "Обновления и о программе", + "v062.m0036": "Найдено групп: {0}", + "v062.m0037": "Подключение устройства", + "v062.m0038": "Хранилище", + "v062.m0039": "Сеть", + "v062.m0040": "Журналы", + "v062.m0041": "Ещё не проверялось", + "v062.m0042": "Последняя проверка {0} · Всё в порядке", + "v062.m0043": "Последняя проверка {0} · Требуют внимания: {1}", + "v062.m0044": "
    \n \n Проблем, мешающих работе, не найдено. Проверены среда, авторизация adb, место на диске, разделы данных, снимки и конфликтующие настройки.\n
    ", + "v062.m0045": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n {3}\n
    \n {4}\n \n
    ", + "v062.m0046": "", + "v062.m0047": "Проверка…", + "v062.m0048": "Проверка не удалась", + "v062.m0049": "Не удалось собрать сведения о состоянии. Попробуйте позже.", + "v062.m0050": "Отправьте отчёт автору, чтобы помочь разобраться в проблеме", + "v062.m0051": "Автопроверки включены", + "v062.m0052": "Автопроверки выключены", + "v062.m0053": "Периодическая проверка в фоне; уведомления только о новых проблемах", + "v062.m0054": "Нажмите «Проверить сейчас» в любой момент для ручной проверки", + "v062.m0055": "Интервал проверки изменён", + "v062.m0056": "Проверка каждые {0} мин", + "v062.m0057": "Автоповорот изображения включён", + "v062.m0058": "Автоповорот изображения выключен", + "v062.m0059": "Сохранится в Android при следующем запуске приложения. Ориентацией экрана по-прежнему управляет политика ориентации.", + "v062.m0060": "Включено нативное окно", + "v062.m0061": "Применится при следующем запуске. Встроенный режим даёт единое окно с кнопками поворота, но при масштабировании и повороте возможны пропуски кадров или чёрные полосы.", + "v062.m0062": "Применится при следующем запуске. Эмулятор сам отрисовывает и размещает нативное окно — масштаб и частота кадров стабильнее. Поворот — через меню в трее или Ctrl+Alt+R.", + "v062.m0063": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n
    \n {3}\n \n
    ", + "v062.m0064": "Следуйте инструкции для ручной настройки", + "v062.m0065": "Восстановление не завершено", + "v062.m0066": "Не удалось включить аппаратное ускорение. Открыта соответствующая инструкция.", + "v062.m0067": "Перезапуск среды Android…", + "v062.m0068": "Android загрузится заново; это займёт чуть больше времени", + "v062.m0069": "Среда Android перезапущена", + "v062.m0070": "Если появится запрос авторизации, нажмите «Разрешить»", + "v062.m0071": "Перезапуск не удался. Открыта соответствующая инструкция.", + "v062.m0072": "Оставшиеся процессы эмулятора завершены", + "v062.m0073": "Снимок быстрой загрузки сброшен", + "v062.m0074": "Следующий запуск приложения выполнит полную холодную загрузку", + "v062.m0075": "Не удалось сбросить", + "v062.m0076": "Нужно пересоздать раздел данных Android", + "v062.m0077": "Откройте Настройки → Производительность и ресурсы → Расширить сейчас. Подтвердите сброс, если появится запрос (установленные приложения будут удалены).", + "v062.m0078": "Сейчас: как у приложения", + "v062.m0079": "Ориентация панели следует за каждым приложением. Если у приложения неправильная ориентация, задайте для него отдельную настройку.", + "v062.m0080": "Панель переключена в альбомный режим", + "v062.m0081": "Панель переключена в портретный режим", + "v062.m0082": "Применится при следующем открытии приложения", + "v062.m0083": "Проверьте общую папку", + "v062.m0084": "Откройте Настройки → Интеграция и файлы и убедитесь, что локальная общая папка существует и доступна для записи.", + "v062.m0085": "Включение звука Android-приложений…", + "v062.m0086": "Перезапуск среды, чтобы убрать -no-audio", + "v062.m0087": "Не удалось сохранить настройки звука. Открыта соответствующая инструкция.", + "v062.m0088": "Звук включён", + "v062.m0089": "Среда перезапущена. Звук приложений должен работать.", + "v062.m0090": "Звук включён, но перезапуск среды не удался. Открыта соответствующая инструкция.", + "v062.m0091": "Запустите службу Windows Audio вручную", + "v062.m0092": "Инструкция открыта. Выполните её шаги один раз.", + "v062.m0093": "Сброс сети Android…", + "v062.m0094": "Список приложений сохранится", + "v062.m0095": "Сеть Android сброшена", + "v062.m0096": "При следующем запуске приложения сеть подключится заново", + "v062.m0098": "Руководство пользователя (с устранением неполадок)", + "v062.m0099": "Поиск настроек: ориентация / память / прокси / снимки…", + "v062.m0100": "Очистить поиск", + "v062.m0101": "Разделы настроек", + "v062.m0110": "Автоповорот изображения", + "v062.m0111": "Вкл. (по умолчанию) · В Android автоповорот показан включённым", + "v062.m0112": "Выкл. · Прежнее поведение с блокировкой", + "v062.m0113": "В Android ", + "v062.m0114": "автоповорот включён по умолчанию", + "v062.m0115": ". Ориентацию картинки это не меняет: политика выше по-прежнему задаёт ориентацию панели и экрана и игнорирует запросы приложений, не давая датчику её менять. Учитывают эту настройку только приложения, которые её читают.", + "v062.m0116": "Нативное окно (по умолчанию, рекомендуется) · Стабильная отрисовка и масштаб эмулятора", + "v062.m0117": "Встроенный режим · Android внутри ApkStart, с кнопками поворота", + "v062.m0118": "Эмулятор сам отрисовывает и размещает нативное окно: перетаскивание, масштаб и поворот работают отзывчиво, но на панели задач появляется лишний значок. Поворот — через меню в трее или Ctrl+Alt+R. Встроенный режим выглядит единообразно и имеет кнопки поворота, но при масштабировании, повороте и переключении приложений возможны пропуски кадров или чёрные полосы. Применится при следующем запуске.", + "v062.m0119": "Автопроверки · Диагностика", + "v062.m0120": "Периодически проверять в фоне среду Android, авторизацию adb, свободное место, наложения раздела данных, снимки и конфликтующие настройки. Однократно уведомлять о ", + "v062.m0121": "новых", + "v062.m0122": " серьёзных проблемах; остальные находки тихо показываются ниже.", + "v062.m0123": "Включить автопроверки (по умолчанию вкл.)", + "v062.m0124": "Отключить периодическое сканирование; ручная проверка остаётся доступна через «Проверить сейчас».", + "v062.m0125": "Интервал проверки", + "v062.m0126": "Каждую минуту", + "v062.m0127": "Каждые 5 минут", + "v062.m0128": "Каждые 10 минут (рекомендуется)", + "v062.m0129": "Каждые 30 минут", + "v062.m0130": "Каждый час", + "v062.m0131": "Уведомлять о новых проблемах", + "v062.m0132": "Уведомлять только о серьёзных проблемах и не повторять известные.", + "v062.m0133": "Проверить сейчас", + "v062.m0135": "Открыть руководство пользователя (с устранением неполадок)", + "v064.m0000": "Проверено: в системе нет Microsoft VC++ 2015–2022 (x64), а среде Android он нужен.", + "v064.m0001": "Установите его кнопкой. Если ошибка 0xC0000135 остаётся, см. раздел 6.8 руководства: у версии из Store также может быть проблема с путём DLL у дочерних процессов.", + "v064.m0002": "Лаборатория", + "v064.m0003": "(Система не поддерживает эту настройку)", + "v064.m0004": "По умолчанию системы", + "v064.m0005": "Дискретная видеокарта", + "v064.m0006": "Встроенная видеокарта", + "v064.m0007": "(Применено: {0})", + "v064.m0008": "(Выбрано: {0}; применится при следующем запуске Android)", + "v064.m0009": "Выбор видеокарты сохранён", + "v064.m0010": "Применится при следующем запуске Android", + "v064.m0011": "Несколько окон приложений включено (экспериментально)", + "v064.m0012": "Возврат к режиму одного приложения", + "v064.m0013": "Применится при следующем запуске: несколько приложений смогут оставаться открытыми в своих нативных окнах.", + "v064.m0014": "Включение микрофона…", + "v064.m0015": "Перезапуск среды, чтобы включить устройство записи", + "v064.m0016": "Не удалось сохранить настройки микрофона. Открыта соответствующая инструкция.", + "v064.m0017": "Микрофон включён", + "v064.m0018": "Среда перезапущена. Приложения теперь могут записывать звук.", + "v064.m0019": "Микрофон включён, но перезапуск среды не удался. Открыта соответствующая инструкция.", + "v064.m0021": "Выбор видеокарты (дискретная / встроенная)", + "v064.m0022": "По умолчанию системы (рекомендуется · выбирает Windows)", + "v064.m0023": "Предпочитать дискретную (плавнее игры и видео; больше расход энергии)", + "v064.m0024": "Предпочитать встроенную (меньше расход энергии и нагрев)", + "v064.m0025": "На компьютерах с двумя видеокартами Windows может отдать эмулятор встроенной графике, и отрисовка будет медленной. Здесь можно явно выбрать видеокарту. Нужна Windows 10 1803 или новее; применится при следующем запуске Android.", + "v064.m0026": "Микрофон (рекомендуется)", + "v064.m0027": "Разрешить приложениям использовать микрофон компьютера для голосовых сообщений, звонков и записи. Если выключено, приложения не найдут устройство записи. Выключайте, только если запись не нужна или ради приватности.", + "v064.m0029": "Эти функции экспериментальные и могут меняться от версии к версии. О проблемах сообщайте через Диагностика и восстановление → Экспорт диагностического отчёта.", + "v064.m0030": "Нативные окна Windows · Несколько приложений (экспериментально)", + "v064.m0031": "При открытии нового приложения предыдущее продолжает работать: можно быстро переключаться, не теряя сеансы. У Android только одно окно эмулятора, поэтому на переднем плане видно одно приложение; рядом друг с другом они не показываются. Расход памяти растёт. Отключите, чтобы вернуться к стабильному режиму одного приложения.", + "v064.m0032": "Сколько приложений держать в фоне", + "v064.m0033": "0 · Минимум памяти (только текущее приложение)", + "v064.m0034": "1 · Баланс (рекомендуется)", + "v064.m0035": "2 · Стабильнее переключение", + "v064.m0036": "3 · Максимум приложений в фоне", + "v064.m0037": "В режиме нескольких приложений фоновые приложения сверх этого числа приостанавливаются, чтобы освободить память; данные сохраняются для быстрого переключения.", + "settings.dnsServers": "DNS-серверы", + "settings.dnsServersCn": "Публичные DNS Китая (Alibaba / Tencent)", + "settings.dnsServersNote": "Используются, когда включено «Ускорение сети». За пределами Китая или с зарубежным VPN быстрее работают Cloudflare или Google. Применится при следующем запуске среды Android.", + "autodebug.accel.softwareEmulation.hint": "Only pure software emulation is possible: boot takes minutes and frames drop easily. Enable “Windows Hypervisor Platform” and restart.", + "autodebug.accel.softwareEmulation.title": "No hardware acceleration right now", + "autodebug.logs.errors.hint": "The last run left error records; expand the diagnostic report to see the full context.", + "autodebug.logs.errors.title": "{0} error(s) in the runtime log", + "autodebug.network.sourcesDown.hint": "The update check queries several sources at once; one being down is harmless. If all are down, check your network or proxy.", + "autodebug.network.sourcesDown.title": "{0} download source(s) unreachable", + "autodebug.network.guestDown.hint": "DNS resolution or connectivity fails on the Android side, so video and news apps keep spinning. Use “Repair network” to reset Android data (the app list is kept).", + "autodebug.network.guestDown.title": "Android has no network", + "autodebug.audio.microphoneDisabled.hint": "Voice, calls and recording in apps will fail (no recording device found). Click “Resolve” to turn it back on and restart the runtime once; also make sure Windows microphone permission allows desktop apps.", + "autodebug.audio.microphoneDisabled.title": "Microphone input is turned off in Settings", + "autodebug.audio.windowsServiceStopped.hint": "This silences other software on the system too. Start Windows Audio in services.msc and set it to automatic, or run net start Audiosrv in an administrator PowerShell.", + "autodebug.audio.windowsServiceStopped.title": "Windows Audio service (Audiosrv) is not running", + "autodebug.audio.disabled.hint": "The Android sound switch is off, so only apps inside ApkStart are silent. Click “Resolve” to turn it back on and restart the runtime once.", + "autodebug.audio.disabled.title": "Android app sound is turned off in Settings", + "autodebug.settings.snapshotOffLowDisk.hint": "Free disk space is under 4 GB and snapshots are off: opening an app will do a full cold boot (over ten seconds). If you have enough disk space, turn snapshots back on.", + "autodebug.settings.snapshotOffLowDisk.title": "Disk is tight, quick-boot snapshot is turned off", + "autodebug.settings.detachedFullscreen.hint": "In native window mode the emulator opens its own window and decides fullscreen itself, so this switch does not apply. Press F11 in the window to fill the screen, or switch the window hosting mode to embedded.", + "autodebug.settings.detachedFullscreen.title": "Auto fullscreen on launch has no effect in native window mode", + "autodebug.settings.orientationConflict.hintLandscape": "The policy asks for landscape, but the panel is portrait now, so videos and games appear as a narrow vertical strip. Set the panel orientation to match the policy.", + "autodebug.settings.orientationConflict.title": "Orientation policy conflicts with the current panel orientation", + "autodebug.settings.orientationConflict.hintPortrait": "The policy asks for portrait, but the panel is landscape now, so Android shows apps as a narrow strip with black bars on both sides. Set the panel orientation to match the policy.", + "autodebug.storage.sharedBroken.hint": "The host folder used for file exchange does not exist or is not writable, so files saved in Android cannot sync over.", + "autodebug.storage.sharedBroken.title": "Shared folder unavailable", + "autodebug.storage.dataMismatch.detail": "Configured {0} GB · Actual {1} GB", + "autodebug.storage.dataMismatch.hint": "The usable capacity inside Android is smaller than the value in Settings, so large games will report insufficient storage.", + "autodebug.storage.dataMismatch.title": "Android data partition is smaller than configured", + "autodebug.storage.dataNeedsReset.detail": "Configured {0} GB · Actual {1} GB", + "autodebug.storage.dataNeedsReset.hint": "The quick-boot differential disk blocks in-place expansion, so the guest still sees the old capacity. Use “Reset Android data” to rebuild at the new size (installed apps will be erased).", + "autodebug.storage.dataNeedsReset.title": "Data partition expansion did not take effect", + "autodebug.storage.diskLow.detail": "Free: {0} MB", + "autodebug.storage.diskLow.hint": "Less than 8 GB free; snapshots and system images still need room. Consider cleaning up reclaimable files first.", + "autodebug.storage.diskLow.title": "The runtime disk is getting low on space", + "autodebug.storage.diskCritical.detail": "Free: {0} MB", + "autodebug.storage.diskCritical.hint": "Less than 2 GB free: installing apps and writing snapshots will fail. Use “One-click cleanup” to reclaim old images, old snapshots and logs.", + "autodebug.storage.diskCritical.title": "The runtime disk is almost full", + "autodebug.device.missing.hint": "The Android process is alive but adb cannot see the device, most likely because another program is holding the adb server port, or boot has not finished.", + "autodebug.device.missing.title": "Runtime is running, but adb sees no device", + "autodebug.device.offline.hint": "adb can see the device but cannot connect, usually because the VM is still booting or the adb server handshake failed. If it does not recover after a short wait, restart the runtime.", + "autodebug.device.offline.title": "Android device is in offline state", + "autodebug.device.unauthorized.hint": "The “Allow USB debugging?” prompt appeared on the Android side but was never confirmed, so adb cannot connect. Restarting the runtime (one cold boot) shows the prompt again; confirm it and it recovers.", + "autodebug.device.unauthorized.title": "Android device has not authorized debugging", + "autodebug.runtime.staleSnapshot.hint": "The snapshot file is still there but fails validation, so every boot needs an extra cold start. Deleting it trades one cold start for the disk space back.", + "autodebug.runtime.staleSnapshot.title": "Quick-boot snapshot is damaged", + "autodebug.runtime.orphanProcesses.hint": "Android processes that did not shut down properly are still holding resources and the AVD lock, which makes the next boot fail. You can clean them up in one click (installed apps and saves are untouched).", + "autodebug.runtime.orphanProcesses.title": "Found {0} leftover emulator process(es)", + "autodebug.runtime.staleLocks.hint": "Uncleared lock files make the next start fail with “AVD already in use”. They can be removed in one click.", + "autodebug.runtime.staleLocks.title": "Found {0} leftover lock file(s) from the last run", + "autodebug.runtime.stuckBoot.detail": "Stage: {0}", + "autodebug.runtime.stuckBoot.hint": "Boot has taken more than 2.5 minutes without reaching the system. A damaged quick-boot snapshot is the usual cause; restarting the runtime (one cold boot) usually fixes it.", + "autodebug.runtime.stuckBoot.title": "Android boot is stuck at the boot stage", + "autodebug.runtime.bootFailed.hint": "The actual runtime error was captured; handling it as described usually fixes it in one go.", + "autodebug.runtime.bootFailed.title": "Last Android runtime start failed", + "doctor.report.log": "== Runtime log (last 300 lines) ==", + "doctor.report.extra": "== Additional info ==", + "doctor.report.finding": "{0}: {1}", + "doctor.report.diagnosis": "== Diagnosis ==", + "doctor.report.profile": "== Auto configuration ==", + "doctor.report.host": "== This machine ==", + "doctor.report.generated": "Generated: {0}", + "doctor.report.title": "ApkStart diagnostic report", + "doctor.unknown.hint": "Retried automatically with several parameter combinations. Click “Export diagnostic report” and send the log to the author to investigate.", + "doctor.unknown.title": "Runtime failed to finish booting", + "doctor.rule.SNAPSHOT.hint": "The old snapshot was discarded and a cold boot is used; the next clean exit will regenerate the snapshot.", + "doctor.rule.SNAPSHOT.title": "Quick Boot snapshot is damaged", + "doctor.rule.CPU_FEATURE.hint": "On some older CPUs this message is only a warning and the runtime still boots; if it truly cannot start, downgrade the engine under “Runtime” to an older compatible version, or use a PC that supports VT-x/AVX.", + "doctor.rule.CPU_FEATURE.title": "CPU lacks an instruction set required by the runtime", + "doctor.rule.AVD_LOCK_UNCLEAN.hint": "ApkStart cleans up leftover locks automatically and retries; if it keeps happening, check whether another emulator is using the same runtime.", + "doctor.rule.AVD_LOCK_UNCLEAN.title": "Last run did not exit cleanly and left lock files", + "doctor.rule.NON_ASCII.hint": "Automatically switched to the Windows short path. If it still fails, move ApkStart to a plain-English folder (such as C:\\ApkStart).", + "doctor.rule.NON_ASCII.title": "Install path contains Chinese or special characters", + "doctor.rule.DISK_FULL.hint": "Move the runtime folder (Settings → System integration → Runtime data directory) to a drive with enough space, or turn off “Keep Quick Boot snapshot” / shrink the data partition in Settings. Android data is not cleared automatically.", + "doctor.rule.DISK_FULL.title": "Not enough disk space to start Android", + "doctor.rule.DLL.hint": "Common causes: the Store edition cannot start child processes from a read-only directory, the VC++ runtime is missing, or antivirus quarantined runtime files. Open built-in manual section 6.8 and locate the cause step by step; do not reinstall the runtime based on this message alone.", + "doctor.rule.DLL.title": "Runtime dependency DLL failed to load (cause still to be determined)", + "doctor.rule.IMAGE.hint": "Automatically rebooted with clean user data. If it still fails, delete the image under “Runtime” and download it again.", + "doctor.rule.IMAGE.title": "System image is missing or damaged / incompatible with old user data", + "doctor.rule.AVD_LOCK.hint": "AVD lock files were cleaned up automatically and the runtime was started again.", + "doctor.rule.AVD_LOCK.title": "Leftover lock files from the last run", + "doctor.rule.PORT_BUSY.hint": "Automatically switched to a free port. If it keeps happening, quit other emulators such as Nox/MuMu/BlueStacks, or restart the PC.", + "doctor.rule.PORT_BUSY.title": "Emulator port is in use", + "doctor.rule.MEMORY.hint": "Automatically reduced the memory and cores given to Android. Close memory-hungry programs and try again.", + "doctor.rule.MEMORY.title": "Memory allocation failed", + "doctor.rule.ACCEL.hint": "Automatically fell back to software emulation (the first boot will be noticeably slower). For smooth performance, enable “Virtual Machine Platform” in “Windows Features”, or install the AEHD driver, then restart.", + "doctor.rule.ACCEL.title": "Hardware acceleration unavailable", + "doctor.rule.GPU_MODE.hint": "Automatically retried with a GPU mode that matches the runtime version (older versions use swiftshader_indirect, newer ones use software).", + "doctor.rule.GPU_MODE.title": "The current runtime does not accept this GPU mode", + "doctor.rule.GPU_INIT.hint": "Automatically switched to software rendering and retried. If it still fails, update your graphics driver, or turn off remote-desktop / VM GPU passthrough and try again.", + "doctor.rule.GPU_INIT.title": "Graphics rendering backend failed to initialize", + "doctor.rule.ACCESS_VIOLATION.hint": "Automatically retried with a more conservative rendering backend and remembered not to try this one first next time. If it keeps happening, update your graphics driver, or lower the quality in Settings → Performance and resources and turn off remote-desktop / VM GPU passthrough, then try again.", + "doctor.rule.ACCESS_VIOLATION.title": "Rendering backend crashed (0xC0000005 access violation)", + "preflight.summary.good": "This machine can run with hardware acceleration directly; the configuration is already optimal", + "preflight.summary.warn": "{0} item(s) recommended for optimization ({1})", + "preflight.summary.bad": "Found {0} item(s) that must be handled first ({1})", + "preflight.driverAuthor": "ApkStart health check", + "preflight.driverName": "This PC auto-configuration ({0})", + "preflight.os-old.detail": "ApkStart supports Windows 10 2004 (build 19041) at minimum. On older systems the emulator may exit immediately.", + "preflight.os-old.title": "Windows version is old (build {0})", + "preflight.mem-ok.title": "Physical memory: {0} GB", + "preflight.mem-low.detail": "The Android VM can get at most 2 GB and 2 cores, quality drops to 540×960; closing browser tabs before opening apps is recommended.", + "preflight.mem-low.title": "Low memory ({0} GB)", + "preflight.mem-unknown.title": "Cannot read physical memory", + "preflight.gpu-driver-old.detail": "Driver date {0} (about {1} years ago). Old drivers are a common cause of a black or garbled screen after startup; consider updating from the vendor website.", + "preflight.gpu-driver-old.title": "Graphics driver is rather old", + "preflight.gpu-unknown.detail": "This may be Remote Desktop / a VM / a driver problem. The rendering backend is left to the automatic fallback chain.", + "preflight.gpu-unknown.title": "Cannot read graphics card info", + "preflight.accel-off.label": "Install AEHD driver (administrator)", + "preflight.accel-off.detailPlain": "Software emulation is used first to make sure it runs; it is 5–10 times slower than hardware acceleration.", + "preflight.accel-off.detailInstaller": "You can install the AEHD driver (administrator required), or enable “Windows Hypervisor Platform” first and restart; if neither works, only software emulation is possible.", + "preflight.accel-off.title": "No hardware acceleration available right now", + "preflight.accel-ok.detail": "Startup will use hardware acceleration; the settings below are recommended for this machine’s GPU and memory.", + "preflight.accel-ok.title": "Hardware acceleration available ({0})", + "preflight.whpx-off.labelInstaller": "Enable in one click (administrator)", + "preflight.whpx-off.detailInstaller": "The button below enables HypervisorPlatform + VirtualMachinePlatform automatically (administrator confirmation required); restart the PC when it finishes.", + "preflight.whpx-off.labelStore": "Open the “Windows Features” window", + "preflight.whpx-off.detailStore": "The Store edition cannot change system features itself. Press Win+R → type optionalfeatures → tick “Windows Hypervisor Platform” (HypervisorPlatform) and “Virtual Machine Platform” → OK → restart.", + "preflight.whpx-ok.detailRestart": "The feature is enabled; if acceleration is still unavailable, restart once so the hypervisor starts.", + "preflight.whpx-ok.detailRunning": "The hypervisor is running and WHPX is available.", + "preflight.whpx-ok.title": "Windows Hypervisor Platform is enabled", + "preflight.vt-unknown.label": "Check manually", + "preflight.vt-unknown.detail": "This may be a motherboard/permission restriction. If startup reports no hardware acceleration, enter BIOS manually and confirm VT-x / SVM is enabled.", + "preflight.vt-unknown.title": "Cannot read CPU virtualization status", + "preflight.vt-ok.detail": "{0} · {1} cores / {2} threads", + "preflight.vt-ok.title": "CPU virtualization is enabled in BIOS", + "preflight.vt-bios-off.label": "Restart into BIOS required; cannot be done automatically", + "preflight.vt-bios-off.detail": "Restart into BIOS/UEFI, set Intel VT-x (Intel) or SVM Mode (AMD) to Enabled, save, then come back and re-run the check. On Lenovo/Dell/ASUS it is usually under Advanced → CPU Configuration; branded PCs may call it Virtualization Technology.", + "preflight.vt-bios-off.title": "CPU virtualization is not enabled in BIOS", + "preflight.vt-unsupported.detail": "Only software emulation is possible, which is 5–10 times slower. Light apps still work; big games are not recommended.", + "preflight.vt-unsupported.title": "This CPU does not support hardware virtualization", + "preflight.why.auto": "Leaving it to the automatic fallback chain", + "preflight.why.intel": "On Intel integrated graphics, host mode is needed to use hardware acceleration; it falls back automatically if it crashes", + "preflight.why.amd": "On AMD GPUs, host mode is needed to use hardware acceleration; it falls back automatically if it crashes", + "preflight.why.nvidia": "NVIDIA drivers are mature; host passthrough is usually the fastest", + "preflight.why.lowVram": "Very little video memory; swangle is more stable", + "preflight.why.unknownGpu": "The GPU model cannot be read; leaving it to the automatic fallback chain", + "preflight.why.noAccel": "No hardware acceleration is available; using software rendering first so the picture at least appears", + "preflight.vram": "{0} GB VRAM{1}", + "preflight.vramIntegrated": " (integrated, the rest is shared memory)", + "preflight.vramUnknown": "VRAM unknown", + "preflight.driverVersion": " · driver {0}", + "preflight.driverDate": " ({0})", + "preflight.driverDescription": "Generated by “This PC check · auto-configuration”: {0}. {1}", + "preflight.driverAccelOk": "Hardware acceleration is available.", + "preflight.driverAccelNone": "No hardware acceleration at the moment.", + "list.sep": "; ", + "list.sepComma": ", ", + "drivers.fileErrors": "{0}: {1}", + "engine.vmStartFailed": "The VM could not start", + "engine.needProvision": "Runtime components are not fully set up yet", + "engine.needSysimg": "The system image is still missing: click “Download system image”", + "engine.bootServices": "Android has booted but system services are not ready (it may be stuck at the first-boot setup screen; complete the wizard in the VM window)", + "engine.bootKernel": "The Android kernel did not finish booting; check the runtime log (the image may be damaged or acceleration may not be active)", + "engine.adbConnectFailed": "VM started, but adb could not connect: enable “Developer options → ADB over network” inside the VM and retry", + "engine.runtimeStartFailed": "Android runtime failed to start", + "engine.adbUnauthorized.hint": "The emulator is stuck at the “Allow USB debugging?” dialog. Click “Allow” in that emulator window — tick “Always allow from this computer” first, then click, and it will not ask again. If the window cannot be clicked or never appears: Settings → Runtime → clear Android data and retry (installed apps will be removed; reinstall them, APK files are not affected).", + "engine.adbUnauthorized.title": "Android debugging authorization incomplete (click “Allow” once)", + "engine.adbMissing": "adb is missing: click “One-click deploy” to download it automatically", + "preflight.whpx-off.title": "“Windows Hypervisor Platform” is not enabled", + "adb.install.INSTALL_FAILED_NO_MATCHING_ABIS": "Install failed: this app only ships ARM native libraries (as most Chinese apps do), and the current system image has no ARM translation layer. ApkStart will automatically switch to the compatibility image with the newer built-in translation layer and retry.", + "adb.install.INSTALL_FAILED_OLDER_SDK": "Install failed: the app requires a newer Android version than the current runtime (a newer system image is needed).", + "adb.install.INSTALL_PARSE_FAILED_NO_CERTIFICATES": "Install failed: the APK has no valid signature and cannot be installed.", + "adb.install.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES": "Install failed: the signature differs from the installed version; uninstall the old version first, then install again.", + "adb.install.INSTALL_FAILED_VERSION_DOWNGRADE": "Install failed: a newer version is already installed on the device; downgrading over it is not allowed.", + "adb.install.INSTALL_FAILED_INSUFFICIENT_STORAGE": "Install failed: not enough disk space in the runtime; free up some space and retry.", + "adb.install.INSTALL_FAILED_INVALID_APK": "Install failed: the APK file is corrupt or incomplete (the download may not have finished); get it again.", + "adb.install.INSTALL_FAILED_INVALID_URI": "Install failed: the APK path contains special characters; move the file to a plain English path and retry.", + "adb.install.INSTALL_FAILED_ALREADY_EXISTS": "Install failed: an app with the same name but a different signature already exists; uninstall it first.", + "adb.install.INSTALL_FAILED_UPDATE_INCOMPATIBLE": "Install failed: the signature differs from the installed version; uninstall the old version first.", + "adb.install.INSTALL_FAILED_DEPRECATED_SDK_VERSION": "Install failed: this app targets a very old Android version (targetSdk too low), which Android 14 blocks by default. ApkStart will automatically retry with the official bypass flag.", + "adb.install.INSTALL_FAILED_TEST_ONLY": "Install failed: this is a test-only app package; the test-package flag was added automatically and the install retried.", + "adb.install.INSTALL_FAILED_MISSING_SHARED_LIBRARY": "Install failed: a device feature the app depends on (such as a vendor-specific library) does not exist in the current runtime.", + "adb.install.INSTALL_FAILED_USER_RESTRICTION": "Install failed: the system restricts installation; restart the runtime and retry.", + "adb.install.INSTALL_FAILED_CONFLICTING_PROVIDER": "Install failed: conflicts with an existing app’s ContentProvider; uninstall the conflicting app.", + "adb.install.INSTALL_FAILED_INTERNAL_ERROR": "Install failed: internal system error (usually low storage or boot not finished); restart the runtime and retry.", + "adb.install.withTag": "{0} ({1})", + "adb.install.failedRaw": "Install failed: {0}", + "adb.install.noReason": "no clear reason was reported", + "adb.install.missingApk": "APK not found: {0}", + "adb.install.noSplits": "No split APKs to install", + "adb.install.splitFailed": "Split APK install failed", + "adb.exec.failed": "adb {0} failed: {1}", + "adb.launch.appName": "The app", + "adb.launch.antiEmulator": "{0} detected the emulator / translation environment and exited on its own (anti-emulation, anti-debugging or integrity checks). This is a limit of the app itself, not a fault; ApkStart cannot bypass it. See built-in manual 6.3.", + "adb.launch.translationCrash": "{0} crashed on launch: the app is incompatible with the ARM translation layer (common with anti-debugging / anti-emulation checks or native hook conflicts). If the runtime has not enabled the compatibility image yet it will switch and retry once automatically; if it still crashes with the image enabled, it is an app compatibility limit, not a fault. See built-in manual 6.3.", + "adb.launch.missingNativeLib": "{0} crashed on launch: a native library for this device is missing (the app may only ship an ARM build). If the runtime has not enabled the ARM translation layer yet it will switch to the compatibility image and retry automatically; if it still crashes once enabled, it is mostly an app limit. See built-in manual 6.3.", + "adb.launch.appException": "{0} crashed right at launch (an internal app exception, possibly related to the emulator environment or missing Google services).", + "adb.launch.denied": "{0} failed to launch: the system rejected the launch request (a permission or signature problem).", + "adb.launch.failedWithLog": "{0} could not be launched: {1}", + "adb.launch.failedNoProcess": "{0} could not be launched (the process is not alive)", + "adb.launch.stillLoading": "(The app is still loading)", + "installer.noSplits": "No APK splits were found in this package (it may not be an .apks/.xapk file)", + "installer.baseParseFailed": "Failed to parse the base APK of the split package", + "installer.compat.downloading": "First ARM app install: downloading the compatibility image (about 1.5 GB, one time only)…", + "installer.compat.downloadFailed": "Compatibility image download failed; check your network and retry", + "installer.compat.switching": "Switching to the compatibility image and restarting the runtime…", + "installer.compat.runtimeUnavailable": "The runtime is unavailable after switching to the compatibility image", + "installer.compat.restoring": "Restoring installed app {0}…", + "installer.parsing": "Parsing the APK…", + "installer.recognized": "Recognized {0} ({1})", + "installer.preparing": "Preparing the Android runtime…", + "installer.runtimeUnavailable": "The runtime is unavailable", + "installer.armSwitching": "This app only has ARM libraries; switching to the compatibility image…", + "installer.updating": "Updating the app…", + "installer.installing": "Installing the app…", + "installer.armSwitchingReinstall": "This app only has ARM libraries; switching to the compatibility image, then reinstalling…", + "installer.switchedReinstalling": "Switched to the compatibility image; reinstalling…", + "installer.stillFailedAfterSwitch": "Switched to the Android 14 compatibility image and restarted the runtime, but {0} still failed to install ({1}). Check disk space and network and retry; if it keeps failing, export a diagnostic report from “Settings → Diagnostics and repair” and send it as feedback.", + "installer.shortcutCreating": "Creating the desktop shortcut…", + "installer.shortcutFailed": "Shortcut creation failed: {0}", + "installer.warn.minSdk": "This app requires Android {0}+, which is higher than the current runtime; it may not run correctly.", + "installer.warn.iconPlaceholder": "The app icon could not be parsed (it may be a special adaptive-icon format); the shortcut uses a placeholder icon for now.", + "installer.warn.iconWebp": "The app icon (WebP) failed to decode; the shortcut uses a placeholder icon for now.", + "installer.done": "{0} installed", + "installer.shortcutDescription": "{0} — runs via ApkStart", + "installer.shortcutCreateFailed": "Failed to create the shortcut", + "installer.displaySkipped": "Display adaptation skipped: {0}", + "installer.netReady": "VM network ready ({0})", + "installer.wifiReconnecting": "The VM cannot reach Wi-Fi; trying to reconnect…", + "installer.netRestored": "VM network restored ({0})", + "installer.wifiReconnectFailed": "Automatic Wi-Fi reconnect failed: {0}", + "installer.netNotReady": "The VM network is not ready yet; starting the app anyway (online pages may load a little later)", + "installer.reinstalling": "App files are missing (snapshot and data are out of sync); reinstalling automatically from the local backup…", + "installer.autoInstallFailed": "Automatic install failed: {0}", + "installer.exitedRetry": "The app exited after launch (attempt {0}); retrying automatically…", + "installer.exitedReset": "The app keeps exiting; resetting its data and retrying…", + "installer.unstable": "The app exits right after launch; automatic retries and resetting its data did not help", + "installer.armDisabledSwitching": "The current runtime has no ARM translation layer enabled; switching to the compatibility image automatically and retrying…", + "provision.accel.whpx": "WHPX hardware acceleration enabled", + "provision.accel.aehd": "AEHD hardware acceleration enabled", + "provision.accel.aehdNoCheck": "AEHD hardware acceleration enabled (emulator-check missing; judged from the driver)", + "provision.hv.notWindows": "Not a Windows platform", + "provision.hv.present": "Virtual Machine Platform components are present (availability is checked by the runtime engine)", + "provision.hv.missing": "Windows Hypervisor Platform components not detected: enable \"Virtual Machine Platform\" in \"Turn Windows features on or off\", then restart", + "emulator.exit.normal": "Exited normally", + "emulator.exit.badArgs": "Bad launch arguments or environment", + "emulator.exit.accessViolation": "0xC0000005 access violation, the rendering backend crashed", + "emulator.exit.stackOverflow": "0xC00000FD stack overflow", + "emulator.exit.dllLoad": "0xC0000135 a dependent DLL failed to load (cause to be determined, see built-in manual 6.8)", + "emulator.exit.accessDenied": "0xC0000022 access denied (driver or permission problem)", + "emulator.exit.badImage": "0xC000007B image bitness mismatch or corrupt DLL", + "emulator.cleanup.leftover": "Cleaning up {0} leftover emulator process(es)", + "emulator.qemuImgFailed": "qemu-img {0} failed: {1}", + "emulator.resize2fsMissing": "resize2fs.exe is missing", + "emulator.resize2fsFailed": "resize2fs failed: {0}", + "emulator.exited": "Runtime exited (code={0})", + "emulator.exitedWithMeaning": "Runtime exited (code={0}, {1})", + "emulator.resize.overlay": "Android is using the quick-boot differencing disk, so in-place expansion cannot reach it (target {0} GB). You need to “Reset Android data” and rebuild /data at the new size — installed apps and saves will be erased, so please confirm first.", + "emulator.resize.fsShort": "The image has been expanded to {0} GB, but the file system only reaches {1} GB (resize2fs did not succeed). Click “Expand now” again, or free up disk space and retry.", + "emulator.start.relaunch": "The previous emulator has exited; booting again…", + "emulator.start.noEngine": "The runtime engine is not installed; deploy it first on the “Runtime” page", + "emulator.start.noImage": "The system image is not ready; download the Android system image first on the “Runtime” page", + "emulator.start.diskLowAvd": "Not enough space on disk: the disk holding the Android data directory ({0}) has only {1} GB left, and the runtime needs at least {2} GB free. In “Settings → System integration → Android data directory”, move it to a drive with enough space (for example D:), or free up disk space first. Your apps and saves will not be deleted automatically.", + "emulator.start.diskLowRuntime": "The disk holding the runtime directory ({0}) has only {1} GB left, not even enough for logs and temporary files. Free up disk space, or move the “Runtime data directory” to another drive as well.", + "emulator.drivers.loadFailed": "Driver loading failed (ignored, booting with default parameters): {0}", + "emulator.drivers.applied": "Drivers applied: {0}", + "emulator.drivers.none": "No driver matched; booting with default parameters", + "emulator.drivers.errors": "{0} driver file(s) failed to load (see Settings → Drivers for the reason)", + "emulator.drivers.gpuFixed": "The driver pins the rendering backend to {0}", + "emulator.drivers.softwareLabel": "{0} / software emulation required by driver", + "emulator.drivers.forceTcg": "The driver requires hardware acceleration to be off (using software emulation)", + "emulator.gpu.vulkanRetry": "The last host rendering crash was probably caused by Vulkan; retrying hardware acceleration with -feature -Vulkan this time", + "emulator.gpu.badBackend": "The {0} rendering backend crashed right at launch last time; trying {1} first this time", + "emulator.boot.attempt": "Starting runtime (attempt {0}/{1}: {2})…", + "emulator.boot.diskFull": "Not enough space on disk; retries stopped (your apps and saves are left untouched).", + "emulator.boot.titleHint": "{0}: {1}", + "emulator.boot.retry": "{0} — retrying automatically with another set of parameters…", + "emulator.boot.waiting": "Booting… {0}s", + "emulator.boot.ready": "Runtime ready ({0}s, {1})", + "emulator.boot.noNetwork": "⚠ The Android VM is not connected to the network yet (Wi-Fi not associated or no address obtained). Apps that need the network may show a black screen when opened: just reopen the app a little later; if there is still no network, reconnect via “Settings → Repair network” (installed apps are not deleted).", + "emulator.boot.timeout": "Boot timed out (the first boot may be slow, or hardware acceleration may not be in effect)", + "emulator.boot.failed": "The runtime still failed to start after several attempts ({0}).\n{1}\n\nAttempts: {2}\nDiagnostic report: {3}", + "updater.noInstaller": "This release has no package that can be installed automatically; download it manually from the GitHub releases page", + "updater.incrementalUnavailable": "Incremental update unavailable ({0}); falling back to the full package…", + "updater.downloading": "Downloading {0}…", + "updater.downloadProgress": "Downloading {0}", + "updater.downloadPartProgress": "Downloading {0} (part {1}/{2}){3}", + "updater.reuseFull": "An update package is already downloaded; reusing it", + "updater.extracted": "Update package extracted", + "updater.downloaded": "Installer downloaded", + "updater.fetching": "Fetching the {0}…", + "updater.label.manifest": "update manifest", + "updater.label.app": "incremental code package", + "updater.manifestMismatch": "The manifest version does not match the release", + "updater.appHashMismatch": "Incremental code package verification failed (sha256 mismatch)", + "updater.reuseIncremental": "An incremental package is already downloaded; reusing it", + "updater.appFilesBad": "{0} file(s) in the incremental code package failed verification", + "updater.incrementalVerified": "Incremental package verified", + "updater.partSizeBad": "Part {0} has the wrong size ({1} ≠ {2}); aborted, you can retry", + "updater.assembledSizeBad": "The assembled update package has the wrong size ({0} ≠ {1}); aborted, you can retry", + "updater.extracting": "Extracting {0}/{1}", + "doctor.plan.hardware": "{0} / hardware acceleration", + "doctor.plan.software": "{0} / software emulation", + "doctor.plan.noAccel": "Software emulation with acceleration off (slow, but the most compatible)", + "doctor.plan.conservative": "Conservative cold start (minimum memory + no snapshot)", + "sources.tooManyRedirects": "Too many redirects", + "sources.invalidUrl": "Invalid address", + "sources.timeout": "Connection timed out", + "sources.skipped": "Temporarily skipped (will not retry for {0} min)", + "sources.hint.rateLimited": " (rate limited; this source is paused for a while)", + "sources.hint.giteeToken": " (retry later, or enter a read-only token in Settings to raise the quota)", + "sources.noData": "no data", + "sources.whySeparator": "; ", + "sources.unreachable": "Cannot reach the update server ({0})", + "sources.probe.start": "Testing speed of {0} download sources…", + "sources.probe.item": "Testing source {0}/{1}: {2}…", + "sources.probe.best": "Fastest source selected: {0} (about {1} MB/s)", + "incremental.manifestInvalidJson": "The incremental manifest is not valid JSON", + "incremental.manifestSchema": "The incremental manifest version is not supported", + "incremental.manifestNoVersion": "The incremental manifest is missing version information", + "incremental.manifestNoApp": "The incremental manifest is missing code package information", + "download.tooManyRedirects": "Too many redirects", + "download.timeout": "Connection timed out", + "download.resume416": "Cannot verify the partial file for resuming; the server returned HTTP 416", + "download.httpFailed": "Download failed HTTP {0}: {1}", + "download.resumeRangeMismatch": "The server returned a mismatched resume range", + "download.stalled": "Connection stalled (no data for a long time)", + "download.stalledNoData": "Connection stalled (no-data timeout)", + "download.cancelled": "Cancelled", + "download.interrupted": "Connection interrupted", + "download.checksumMismatch": "Verification failed: expected {0}… actual {1}…", + "download.chunkRequestRejected": "Chunk request rejected HTTP {0}", + "download.chunkRejected": "Chunk rejected HTTP {0}", + "download.chunkRangeMismatch": "The server returned a mismatched chunk range", + "download.chunkOverflow": "The chunk response exceeded the requested range", + "download.chunkIncomplete": "The chunk was not fully returned", + "download.chunkDownloadFailed": "Chunk download failed ({0}-{1}): {2}", + "download.chunkFailed": "Chunk failed ({0}-{1}): {2}", + "download.incomplete": "Download incomplete: {0}/{1} bytes", + "download.allSourcesFailed": "All download sources failed:\n{0}", + "download.noAddress": "No download address available", + "download.slowSource": "This source is too slow ({0} KB/s); switching source", + "appwin.rotateLandscape": "Switching to landscape (restarting the Android runtime, about 30-60 seconds)…", + "appwin.rotatePortrait": "Switching back to portrait (restarting the Android runtime, about 30-60 seconds)…", + "manual.topic.overview": "User manual · Contents", + "manual.topic.accel": "Hardware acceleration not enabled / slow boot", + "manual.topic.install": "Install failed (INSTALL_FAILED_*)", + "manual.topic.arm": "ARM translation layer / ARM apps will not install", + "manual.topic.adb": "adb unauthorized (Allow USB debugging)", + "manual.topic.startup": "Will not open / window with a spinning button", + "manual.topic.other": "Other startup problems: quick reference", + "manual.topic.sound": "No sound / very quiet sound", + "manual.topic.dll": "Store version fails to start / 0xC0000135 (DLL load failure)", + "manual.topic.mic": "Apps cannot use the microphone / no voice calls or recording", + "manual.topic.gpu": "Discrete / integrated GPU rendering (graphics preference)", + "manual.topic.diagnose": "Built-in manual and automatic tutorials", + "manual.topic.settings": "Settings page navigation", + "manual.topic.storage": "Data and directories", + "manual.topic.network": "Automatic checks and network repair" +} diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json new file mode 100644 index 00000000..fed1a578 --- /dev/null +++ b/src/locales/zh-CN.json @@ -0,0 +1,1385 @@ +{ + "m0000": "刚刚", + "m0001": "{0} 分钟前", + "m0002": "{0} 小时前", + "m0003": "{0} 天前", + "m0004": "首次使用:打开右上角设置 → 运行时 → 一键完成,再回来安装应用即可。", + "m0005": "提示:所有应用共享同一个 Android 运行时,所以第二个应用的启动几乎是瞬时的。", + "m0006": "", + "m0007": "运行中", + "m0008": "切换到前台", + "m0009": "打开", + "m0010": "{0} 个应用", + "m0011": "暂无应用", + "m0012": "运行时未部署 —— 打开设置 → 运行时,一键完成", + "m0013": "需要部署", + "m0014": "运行时已就绪 · Android {0}{1}", + "m0015": " · 独立窗口已启用", + "m0016": "正在引导 Android…", + "m0017": "引导中", + "m0018": "未检测到硬件加速:已自动回退软件模拟(首次开机较慢)", + "m0019": "软件模拟", + "m0020": "缺少 Android 14 通用系统镜像 —— 设置 → 运行时里下载(约 1.5GB,只下一次)", + "m0021": "待下载镜像", + "m0022": "运行时引擎未安装 —— 打开设置 → 运行时一键完成", + "m0024": "运行时已就绪 —— 安装 APK 或双击桌面图标会自动开机", + "m0025": "待开机", + "m0026": "安装程序运行中 —— 请在虚拟机窗口里完成安装", + "m0027": "安装中", + "m0028": "运行时待机(安装或打开应用时会自动拉起)", + "m0029": "运行时尚未安装 Android 系统 —— 打开设置 → 运行时继续", + "m0030": "待机", + "m0031": "待安装", + "m0032": "状态检查失败:{0}", + "m0033": "引擎", + "m0034": "系统镜像", + "m0035": "已就绪 · Android {0}", + "m0037": "组件齐全 · 待开机(打开应用时自动拉起)", + "m0038": "缺少 {0}{1}", + "m0039": "(无硬件加速,将回退软件模拟)", + "m0040": "adb 工具链", + "m0041": "Android 运行时", + "m0043": "一切就绪", + "m0044": "一键完成", + "m0045": "已自动完成", + "m0046": "自动", + "m0047": "Android {0} 已就绪 · 应用窗口会按屏幕自动适配", + "m0049": "组件齐全,双击任意 APK 或桌面图标即会自动开机", + "m0050": "还差 {0};点下面「一键完成」,会在后台一次装好并自动开机", + "m0051": "", + "m0052": "准备中…", + "m0053": "已完成 · 点此复查", + "m0055": "上次启动失败:{0}", + "m0056": "上次启动自动诊断:{0}", + "m0057": "全自动:无需选择镜像、无需启用加速、无需调内存", + "m0058": "准备失败", + "m0059": "请检查网络后重试", + "m0060": "组件已就绪,正在自动开机…", + "m0061": "首次约 1-3 分钟,之后几秒即可。", + "m0062": "运行时已就绪", + "m0063": "现在把 APK 拖进窗口,或双击桌面图标即可。", + "m0064": "开机未完成", + "m0065": "请导出诊断报告查看原因", + "m0067": "已有部署任务进行中", + "m0068": "正在安装硬件加速驱动…", + "m0069": "请在弹出的是否允许窗口点「是」", + "m0070": "硬件加速已启用", + "m0071": "加速未启用", + "m0072": "未知步骤", + "m0073": "无法启动安装环境", + "m0074": "虚拟机窗口已打开", + "m0075": "按下方 6 步完成安装;装好后点「我已安装完成」。", + "m0076": "安装完成,运行时已接管", + "m0077": "现在可以直接把 APK 拖进来安装了。", + "m0078": "未知错误", + "m0079": "{0}\n安卓数据分区不够用:设置 → 性能与资源占用 → 安卓数据分区调大后点「立即扩容」。", + "m0080": "{0}\n这个包只有 ARM 库,正在自动切换兼容镜像后重试。", + "m0081": "{0}\n同包名但签名不同(常见于从别的渠道装过)。在应用卡片右键「卸载」后再装。", + "m0082": "{0}\n已装版本更高,先在右键菜单里卸载再装。", + "m0083": "{0}\n这个安装包过大或内存不足,解析被系统拒绝了。请确认磁盘与内存充足后重试;", + "m0084": "仍失败请把安装包路径换成纯英文短路径(如 D:\\a.apk)。", + "m0085": "已有安装任务在进行", + "m0086": "请等当前应用装完再继续。", + "m0087": "正在安装 {0}", + "m0088": "解析 APK…", + "m0091": "{0} 已安装", + "m0092": "桌面快捷方式已创建,双击即可直接打开。", + "m0093": "可在应用卡片右键创建桌面快捷方式。", + "m0094": "{0} 兼容性提示", + "m0095": "正在打开 {0}", + "m0096": "首次启动需要预热运行时,请稍候…", + "m0097": "已启动", + "m0098": "应用正在独立窗口中运行(顶部可旋转屏幕)。", + "m0099": "启动失败", + "m0100": "桌面快捷方式已创建", + "m0101": "创建快捷方式失败", + "m0102": "确定卸载「{0}」?\n\n应用数据会一并被清除,桌面快捷方式也会被删除。", + "m0103": "已卸载", + "m0104": "卸载失败", + "m0105": "打开应用", + "m0106": "创建桌面快捷方式", + "m0107": "固定到顶部", + "m0108": "打开 APK 所在位置", + "m0109": "清除应用数据", + "m0110": "卸载", + "m0111": "取消固定", + "m0113": "清除「{0}」的全部数据?此操作不可撤销。", + "m0114": "数据已清除", + "m0115": "清除失败", + "m0116": "读取中…", + "m0117": "运行时未就绪({0})", + "m0118": "运行时未启动", + "m0119": "Wi-Fi 已开", + "m0120": "Wi-Fi 已关", + "m0121": "{0} · 音量 {1}%", + "m0122": " · 飞行模式", + "m0123": "已生效", + "m0124": "失败:{0}", + "m0125": "运行时未就绪", + "m0126": "Wi-Fi 已开启", + "m0127": "Wi-Fi 已关闭", + "m0128": "已进入飞行模式", + "m0129": "已退出飞行模式", + "m0130": "系统动画已开启", + "m0131": "系统动画已关闭,界面更快", + "m0132": "字体大小已调整", + "m0133": "显示大小已调整", + "m0134": "音量已调整", + "m0135": "已优化:动画关闭、后台放宽、电池白名单", + "m0136": "优化失败,运行时可能未启动", + "m0137": "需要先打开一次应用,让运行时启动", + "m0138": "读取数据分区信息失败", + "m0139": "尚未创建", + "m0140": "未知", + "m0141": "当前数据分区镜像:{0}{1} · 所在磁盘剩余 {2}。", + "m0142": "(自动)", + "m0143": "游戏提示「存储空间不足」就把这里调大后点「立即扩容」——扩容是就地做的,已装应用与存档都保留。", + "m0144": "已关联 · 点击取消", + "m0145": "未关联 · 点击开启", + "m0146": "自动模式", + "m0147": "共 {0}{1}", + "m0148": " · 可回收 {0}({1} 项)", + "m0149": " · 已是精简状态", + "m0150": "统计不可用", + "m0152": "检查失败:{0}", + "m0153": "网络不可用", + "m0154": "打开下载页", + "m0155": "(离线缓存,可能不是最新)", + "m0156": "发现新版本 {0}{1}{2}{3}", + "m0157": ";{0} 不可达", + "m0158": "立即更新", + "m0160": "更新内容:\n{0}", + "m0161": "(离线缓存)", + "m0162": "已是最新版本(v{0}){1}{2}", + "m0163": " · 经由 {0}", + "m0164": "更新失败:{0}", + "m0165": "更新失败", + "m0166": "正在更新…", + "m0167": "检查中…", + "m0168": "正在连接 GitHub…", + "m0169": "发现新版本 {0}", + "m0170": "点「立即更新」自动下载安装", + "m0171": "已是最新版本", + "m0173": "更新中…", + "m0177": "已下载 v{0},正在重启完成安装…", + "m0178": "资源策略已切换", + "m0179": "下一次打开应用生效", + "m0180": "先选一个容量", + "m0181": "「自动」表示由软件按磁盘余量决定,不需要扩容", + "m0182": "立刻把安卓数据分区扩容?", + "m0183": "将把 /data 调整为 {0} GB(就地扩容,已装应用和存档都会保留)。", + "m0184": "扩容需要先关掉正在运行的安卓应用,完成后下次打开应用会重新引导,约多花十几秒。", + "m0185": "开始扩容", + "m0186": "扩容中…", + "m0187": "数据分区已扩容", + "m0188": "扩容失败", + "m0189": "现在约 {0} GB 可用", + "m0191": "已恢复系统组件", + "m0192": "深度裁剪关闭,后台包正在恢复", + "m0193": "ARM 兼容模式已开启", + "m0194": "还需要下载 Google Play 兼容镜像(Android 14,约 1.5GB),点击下方按钮开始", + "m0196": "重启运行时后生效", + "m0197": "已切全屏", + "m0198": "已切竖屏窗口", + "m0199": "画面大小已更新", + "m0200": "下次打开应用或切换应用时生效", + "m0201": "已补齐快捷方式", + "m0202": "快捷方式都还在", + "m0203": "桌面与开始菜单入口正常", + "m0204": "诊断报告已导出", + "m0205": "导出失败", + "m0206": "已经是精简状态", + "m0207": "没有可回收的旧镜像或快照。", + "m0208": "清理完成", + "m0209": "释放约 {0} MB({1} 项),已安装应用保留。", + "m0210": "共 {0} · 可回收 {1}({2} 项)", + "m0211": "清理失败", + "m0212": "重置安卓数据?", + "m0213": "这会把安卓系统还原成「刚装好系统」的干净状态:", + "m0214": "• 删除全部已安装的第三方 app(含红果、游戏等)及其数据、登录态\n", + "m0215": "• 删除当前 AVD 的快速启动快照\n", + "m0216": "• 系统镜像本身不受影响,重新打开应用会再次冷启动建数据\n\n", + "m0217": "此操作不可撤销。是否继续?", + "m0218": "取消", + "m0219": "继续", + "m0220": "再确认一次", + "m0221": "已安装的 app 和它们的数据将被永久删除,确定要重置吗?", + "m0222": "可放心的是:系统镜像、其它 AVD、本机的 APK 缓存和图标都不会动。", + "m0224": "确定重置", + "m0225": "重置失败", + "m0226": "请重试", + "m0227": "安卓数据已重置", + "m0228": "释放约 {0} MB,已安装应用记录已清空。", + "m0231": "修复虚拟机网络?", + "m0232": "应用里需要联网的页面一直黑屏/转圈,通常是安卓虚拟机没有网络。", + "m0233": "修复会按「代价从小到大」依次尝试:\n\n", + "m0234": "1. 冷启动虚拟机(不加载快照)后等待联网 —— 不影响任何数据\n", + "m0235": "2. 仍不行才重置安卓数据 —— 应用清单保留、点开会自动重装,\n", + "m0236": " 但应用内的登录态、追剧记录等会丢失\n\n", + "m0237": "只影响当前 AVD,系统镜像和本机 APK 缓存都不动。整个过程约 1–5 分钟。是否继续?", + "m0239": "开始修复", + "m0240": "网络仍未恢复", + "m0241": "重置后虚拟机还是没网,请检查本机网络/防火墙是否拦住了模拟器。", + "m0242": "网络已恢复", + "m0243": "已联网", + "m0244": "(为修复网络重置过安卓数据,点开应用会自动重装)", + "m0245": "(未动你的数据)", + "m0246": "修复失败", + "m0247": "扫描失败", + "m0249": "很干净", + "m0250": "没有发现旧版本残留。", + "m0251": "…另有 {0} 项", + "m0252": "清理旧版本残留?", + "m0253": "找到 {0} 项残留,约 {1} MB:", + "m0254": "{0}\n\n只删除「旧版本程序目录 / 已失效的卸载项 / 更新临时文件」,", + "m0255": "当前正在运行的版本和你的应用数据都不会动。", + "m0257": "开始清理", + "m0260": ",{0} 项被占用未删", + "m0261": "已清理旧版本残留", + "m0262": "删除 {0} 项,释放 {1} MB{2}。", + "m0265": "快捷方式已重建", + "m0266": "快捷方式都在", + "m0267": "没有需要重建的入口", + "m0268": "已选新目录", + "m0269": "点「保存并迁移」把旧文件搬过去", + "m0270": "请先填写或浏览目录", + "m0271": "共享目录已更新", + "m0272": "旧目录里已有的文件已迁移到新目录", + "m0273": "已保存", + "m0274": "保存失败", + "m0275": "确定卸载 ApkStart?\n\n将取消 .apk 文件关联并移除程序。此操作不可撤销。", + "m0276": "便携版无法自动卸载", + "m0277": "请手动删除程序目录({0})与数据目录({1})", + "m0279": "正在卸载…", + "m0280": "卸载程序已启动,ApkStart 即将退出", + "m0281": "开始下载 ARM 兼容镜像", + "m0283": "下载 ARM 兼容镜像", + "m0284": "ARM 兼容镜像就绪", + "m0286": "兼容镜像下载失败", + "m0291": "已就绪({0} GB)", + "m0292": "未下载", + "m0293": "数据目录已更新", + "m0294": "请重启 ApkStart 使其生效(旧数据不会自动搬移)", + "m0295": "安卓数据目录已更新", + "m0296": "请重启 ApkStart 使其生效。旧目录里的 apkstart.avd 可以整体搬到新目录,再删掉旧的。", + "m0297": "探测中…", + "m0298": "未发现已运行的运行时", + "m0299": "发现:{0}", + "m0300": "正在启动…", + "m0301": "已就绪:{0}", + "m0302": "启动失败:{0}", + "m0303": "已停止内置虚拟机", + "m0305": ".apk 关联已取消", + "m0307": ".apk 关联已开启", + "m0308": "现在双击 APK 会直接安装到 ApkStart", + "m0309": "操作失败", + "m0310": "系统镜像已导入", + "m0311": "导入失败", + "m0312": "虚拟磁盘已导入", + "m0313": "可直接启动运行时", + "m0315": "正在启动运行时…", + "m0316": "首次启动需要引导 Android 系统", + "m0319": "运行时会话已结束", + "m0320": "已同步共享目录", + "m0321": "同步失败", + "m0322": "运行时未就绪时会跳过同步", + "m0323": "只能拖入 .apk 文件", + "m0324": "安装失败:{0}", + "m0325": "安装失败", + "m0327": "夜深了", + "m0328": "早上好", + "m0329": "中午好", + "m0330": "下午好", + "m0331": "晚上好", + "m0332": "{0},欢迎回来", + "m0333": "运行时就绪,点开即用", + "m0334": "运行时会按需自动准备", + "m0335": "已装应用", + "m0336": "就绪", + "m0337": "待命", + "m0338": "安卓运行时", + "m0339": "设备 / 端口", + "m0340": "发现新版本 {0},可在「设置 → 软件更新」一键更新", + "m0341": "把 APK 拖进窗口就能安装,装完会自动生成桌面图标", + "m0342": "双击应用卡片即可在独立窗口中运行,右上角可旋转 / 缩放 / 关闭", + "m0343": "关窗口只是退出那个应用,安卓环境会留着,下次点开更快", + "m0344": "{0} 项待修复", + "m0345": "{0} 项提示", + "m0346": "\n
    \n \n 环境自检通过,没有发现会影响运行的问题。\n \n \n
    ", + "m0347": "\n
    \n 环境自检\n {0}\n {1}\n \n \n \n
    \n
    \n {2}\n
    ", + "m0348": "{0} 个严重", + "m0349": "{0} 个提示", + "m0350": "", + "m0351": "未找到内置安装包", + "m0352": "已打开微软官方下载页,请下载 x64 版本", + "m0353": "VC++ 运行库已安装", + "m0354": "安装未完成", + "m0356": "正在开启硬件加速…", + "m0357": "请在弹出的窗口点「是」", + "m0359": "请重启电脑以获得最佳性能", + "m0360": "未能开启", + "m0365": "释放约 {0} MB", + "m0366": "建议改到纯英文目录", + "m0367": "在 设置 → 系统集成 里修改「运行时数据目录」,再重启软件。", + "m0368": "正在补齐缺失的运行时组件…", + "m0369": "已清理残留锁文件", + "m0371": "暂不支持自动修复", + "m0372": "初始化失败", + "m0373": "应用", + "m0374": "正在启动安卓运行时…", + "m0375": "正在从 GitHub 下载运行时…", + "m0376": "运行时整包不完整,改用官方源补齐…", + "m0377": "GitHub 运行时不可用({0}),改用官方源…", + "m0378": "正在准备 adb…", + "m0379": "正在准备 Android 运行时…", + "m0380": "正在准备 Android 系统镜像…", + "m0381": "无法启动 PowerShell", + "m0382": "ApkStart 仍在后台运行", + "m0383": "点击托盘图标可重新打开;右键托盘可退出。", + "m0384": "打开 ApkStart", + "m0385": "还没有安装应用", + "m0386": "切回竖屏窗口", + "m0387": "全屏(自适应屏幕)", + "m0388": "重建桌面/开始菜单快捷方式", + "m0389": "同步共享目录", + "m0390": "设置", + "m0392": "检查更新", + "m0393": "发现新版本", + "m0394": "ApkStart {0} 已发布,当前版本 v{1}。现在更新吗?", + "m0396": "稍后", + "m0398": "退出", + "m0399": "ApkStart — 安卓应用运行器", + "m0400": "这个 APK 正在安装中,请稍等…", + "m0401": "正在安装中", + "m0402": "已有安装任务在进行,请等它装完。", + "m0404": "安装完成", + "m0405": "{0} 已安装{1}", + "m0406": ",桌面快捷方式已创建", + "m0408": "正在更新中", + "m0409": "已经是最新版本", + "m0410": "该版本没有可直接安装的包,已打开 GitHub 发布页", + "m0411": "准备下载…", + "m0412": "正在替换程序并重启…", + "m0414": "正在打开应用…", + "m0416": "选择数据存放目录", + "m0417": "选择要安装的 APK", + "m0418": "Android 应用", + "m0419": "应用不存在", + "m0420": "目录不能为空", + "m0421": "缺少 VC++ 运行库(x64)", + "m0422": "安卓运行时依赖微软 VC++ 2015-2022,缺失会导致模拟器无法启动(0xc0000135)。", + "m0423": "未启用硬件加速", + "m0424": "将回退软件模拟(能跑但很慢)。开启虚拟化后可获得最佳性能。", + "m0425": "运行时磁盘空间紧张", + "m0426": "「{0}」所在盘仅剩 {1} MB,运行时与镜像可能撑爆硬盘。", + "m0427": "运行时目录含中文/特殊字符", + "m0428": "部分运行时组件对中文路径敏感,可能引发启动失败。建议改到纯英文目录。", + "m0429": "adb 工具链缺失", + "m0430": "无法连接安卓运行时。", + "m0431": "运行时引擎未安装", + "m0432": "需要先部署运行时引擎(约 440MB)。", + "m0433": "系统镜像未就绪", + "m0434": "需要先下载 Android 系统镜像(约 1.5GB)。", + "m0435": "检测到上次残留的锁文件", + "m0436": "可能导致下一次启动被判定为「AVD 已被占用」。", + "m0437": "确认", + "m0439": "确定", + "m0440": "数据分区已调整", + "m0441": "安卓可用空间约 {0} GB{1}", + "m0442": "(运行时已重启)", + "m0444": "清理 {0} 项", + "m0445": "确认清理运行时缓存", + "m0446": "将释放约 {0} MB", + "m0447": "会先停止运行时,再删除旧镜像、当前 AVD 的快速启动快照、锁文件和非活动 AVD 的缓存。已安装的应用本身保留(只清快照),", + "m0448": "只删除旧镜像、旧快照、锁文件和非活动 AVD 的缓存,已安装的应用会保留。", + "m0449": "此操作不可撤销,建议先导出诊断报告。", + "m0450": "AEHD 驱动包未就绪", + "m0451": "已取消管理员授权(需要点「是」才能安装驱动)", + "m0452": "驱动安装失败(退出码 {0})", + "m0453": "硬件加速已可用,无需额外操作", + "m0454": "已开启「虚拟机平台」,请重启电脑后获得最佳性能", + "m0455": "「虚拟机平台」已开启,硬件加速即时生效", + "m0456": "无法开启系统虚拟化功能", + "m0457": "AEHD 驱动包准备失败", + "m0460": "AEHD 硬件加速已启用", + "m0461": "选择 Android-x86 / Bliss OS 系统镜像", + "m0463": "选择已安装 Android 的虚拟磁盘", + "m0464": "虚拟磁盘", + "m0465": "未知设置项 {0}", + "m0466": "agent scope 为空:不压制任何窗口(避免误伤其他软件)", + "m0467": "磁盘空间不足", + "m0468": "只剩 {0} GB。请到「设置 → 系统集成」把安卓数据目录/运行时目录改到其他盘,或先清理磁盘。", + "m0469": "磁盘只剩 {0} GB,安卓可能无法启动(设置 → 系统集成 可换盘)", + "m0470": "快捷方式已补齐", + "m0471": "运行时已自动准备完成", + "m0472": "[smoke] 截图失败", + "m0473": "未连接运行时", + "m0475": "搜索已安装应用", + "m0476": "安装 APK", + "m0477": "把 APK 拖进来就能装", + "m0478": "安装完成后会自动生成桌面图标,双击即以独立窗口运行,和普通 Windows 软件一样。", + "m0479": "已注册 .apk 关联时,在资源管理器里双击 APK 也会直接装到 ApkStart。", + "m0480": "选择 APK 文件", + "m0481": "正在检查运行时…", + "m0482": "你好", + "m0483": "ApkStart 已就绪", + "m0484": "下次启动不再自动弹出", + "m0485": "打开设置", + "m0486": "开始使用", + "m0487": "松手开始安装", + "m0488": "支持单个或多个 .apk 文件", + "m0490": "运行时与环境", + "m0491": "运行状态", + "m0492": "正在检查…", + "m0494": "高级:连接已有运行时", + "m0496": "安装 Android 到虚拟磁盘", + "m0497": "虚拟机窗口已打开。按下面 6 步操作一次,之后 ApkStart 会直接从磁盘启动,不再需要镜像。", + "m0498": "启动菜单", + "m0499": ":用", + "m0500": "选到", + "m0501": ",回车", + "m0502": ":选", + "m0503": ";询问是否使用 GPT 时选", + "m0504": "cfdisk 分区", + "m0505": "→ 容量直接回车 →", + "m0506": "→ 输入", + "m0507": "格式化", + "m0509": "→ 提示格式化时选", + "m0510": "引导与系统", + "m0511": "选", + "m0513": "完成", + "m0514": ":进度到 100% 后点下面的「我已安装完成」(ApkStart 会自动重启并接管)", + "m0515": "如果之后提示 adb 未连接:在虚拟机窗口按", + "m0516": "进入终端,执行", + "m0517": ",\n 再按", + "m0518": "回到图形界面。", + "m0519": "我已安装完成", + "m0520": "稍后再说", + "m0521": "自动模式(默认,无需设置)", + "m0522": "本机自适应参数", + "m0523": "正在检测…", + "m0524": "内存、核心数、渲染后端、端口、加速方式全部自动选择;启动失败会自动降级重试,不需要手动改。", + "m0525": "磁盘总占用(运行时 + 安卓数据 + 缓存)", + "m0526": "正在统计…", + "m0527": "清理可回收文件", + "m0528": "扫描并清掉旧版本留下的程序目录、失效的卸载项和更新临时文件", + "m0529": "清理旧版本残留", + "m0530": "安卓虚拟机没有网络时(应用里联网页面一直黑屏/转圈),用这个把安卓数据重置掉来修网络。应用清单会保留,点开应用会自动重装", + "m0531": "修复网络", + "m0532": "清空安卓 /data 用户数据 + 已装应用 + 快速启动快照,还原成刚装好系统的干净状态", + "m0533": "重置安卓数据", + "m0534": "连当前 AVD 的快速启动快照也一起清(会先停运行时,能真正回收几 GB 快照)", + "m0535": "系统镜像全机共享一份,应用数据用差分层保存;旧镜像、旧快照、日志和锁文件都可回收。日志超过上限会自动滚动,不会无限增长。「重置安卓数据」会真实删除数 GB 用户数据,仅保留系统本身。", + "m0536": "导出诊断报告", + "m0537": "重建快捷方式", + "m0538": "诊断报告用于排障;重建会补齐桌面 + 开始菜单入口", + "m0539": "开机自动启动(默认开启)", + "m0540": "随 Windows 登录常驻托盘,双击桌面图标秒开应用,无需手动启动。", + "m0541": "应用窗口", + "m0542": "显示模式", + "m0543": "竖屏窗口(可自由拉伸,记住每个应用的大小)", + "m0544": "全屏(铺满屏幕,保持手机比例两侧留黑)", + "m0545": "随时按", + "m0546": "或右键托盘切换;全屏只放大窗口,不改变画面比例,切换不重启应用。", + "m0547": "竖屏画面大小", + "m0548": "小 · 720 × 1280", + "m0549": "中 · 900 × 1600", + "m0550": "大 · 1080 × 1920", + "m0551": "超大 · 1440 × 2560", + "m0552": "窗口模式下可拖动边框任意缩放;这里调的是 Android 内部渲染尺寸,越小越省性能。", + "m0553": "鼠标键位", + "m0554": "左键 · 确认 / 点击", + "m0555": "模拟器原生把左键当成手指点击,按住拖动就是滑动,无需额外设置。", + "m0556": "右键 · 安卓返回", + "m0557": "模拟器默认把右键也当成一次点击(容易误触)。开启后右键只执行返回,不再触发点击。", + "m0558": "滚轮 · 滑动", + "m0559": "平滑(推荐)· 合并多次滚动为一次流畅滑动", + "m0560": "原生 · 交给模拟器逐格处理", + "m0561": "关闭 · 不拦截滚轮", + "m0562": "平滑模式把一小段时间内的滚动合并成一次滑动手势,避免逐格抽搐,也不会每格都拉起一个 adb 进程。", + "m0563": "鼠标侧键 · 返回 / 前进(默认关闭)", + "m0564": "侧键映射需要全局鼠标钩子。钩子只在 ApkStart 应用窗口处于前台时安装,失焦或关闭立即卸载,不会拖慢桌面。", + "m0565": "以上映射只在应用窗口前台生效;切回桌面或关闭窗口后,鼠标行为完全恢复 Windows 原生。", + "m0566": "性能与资源占用", + "m0567": "资源策略", + "m0568": "省资源 · 2 核 / 让出前台 / 540p(老机器、挂机)", + "m0569": "均衡 · 一半物理核 / 让出前台 / 720p(推荐)", + "m0570": "流畅 · 不限核数 / 与前台同优先级(视频、游戏)", + "m0571": "决定安卓虚拟机吃多少 CPU、画面多细腻。红果/抖音发卡就切「流畅」,只想挂着跑小应用就切「省资源」。改完下一次打开应用生效。", + "m0572": "画质(安卓内部渲染分辨率)", + "m0573": "自动(按加速状态)", + "m0574": "流畅 · 540 × 960", + "m0575": "均衡 · 720 × 1280", + "m0576": "高清 · 1080 × 1920", + "m0577": "安卓数据分区(应用与游戏装这里)", + "m0579": "立即扩容", + "m0580": "扩容是就地做的:已装应用与存档都保留,只是下次打开应用会多花十几秒。", + "m0581": "正在读取数据分区…", + "m0582": "网络加速(推荐)", + "m0583": "给安卓指定国内公共 DNS(阿里 / 腾讯)。安卓默认走主机的 DNS,主机挂着 VPN 或走公司网时解析会拖到几百毫秒,视频类应用首屏发慢。内网域名访问异常时可关掉。", + "m0584": "安卓声音", + "m0585": "让应用提示音、视频声音正常播放。仅在你完全不需要声音、想再省一点 CPU 时关闭。", + "m0586": "保留快速启动快照(推荐)", + "m0587": "第二次打开应用只要几秒,代价是磁盘上多一份约 2–3 GB 的", + "m0588": "。磁盘紧张可以关掉:只影响启动速度,不影响应用与存档。", + "m0589": "容器细节(高级)", + "m0590": "轻量容器", + "m0591": "收敛 vCPU 配额并降低进程优先级,CPU 优先让给 Windows 桌面。上面的「资源策略」已经会自动设置这一项。", + "m0592": "虚拟机优先级", + "m0593": "均衡(推荐)· 运行时让着前台窗口", + "m0594": "性能优先 · 运行时与前台同等优先级", + "m0595": "没有应用窗口时,容器一律自动降到最低优先级停放。", + "m0596": "深度裁剪系统后台", + "m0597": "额外禁用 Play 商店、设置向导、打印服务等后台包,只留打开应用必需的环境。若遇到应用提示缺少 Google Play 服务,关掉此开关会自动恢复。", + "m0598": "开机预热(推荐)", + "m0599": "启动 ApkStart 后就在后台把安卓环境引导好(窗口全程隐藏,不会看到模拟器)。之后点任何应用只剩一次「打开」,实测从 20 多秒降到几乎不用等。代价是空闲时常驻约 1GB 内存,关掉后第一次打开应用需要冷启动。", + "m0600": "安卓环境只开机一次并常驻;之后打开应用不再重跑整个系统,只启动该应用并停掉其他应用进程。关掉最后一个窗口会清后台、停放容器,下次点开仍是秒进。", + "m0601": "下载与更新源", + "m0602": "更新与下载源", + "m0603": "自动选择较快的源(推荐)", + "m0604": "只用 Gitee(国内通常最快)", + "m0605": "只用 GitHub", + "m0606": "「自动」会同时问 GitHub 与 Gitee 的最新版本,把每个下载地址都真下 256KB 测一次速度,再从最快的那个地址下载;其中一个源不通不影响更新。", + "m0607": "自动尝试公共加速镜像", + "m0608": "GitHub 直连太慢时,额外测速 ghfast.top / gh-proxy.com 这两个公开转发服务(只转发公开的发布文件,不涉及账号)。关掉后只用直连和你自己填的前缀。", + "m0609": "下载镜像前缀(可选,加速 GitHub)", + "m0610": "例如 https://ghfast.top/", + "m0611": "填了就只用你填的前缀,不再尝试上面那两个公共镜像;留空则由「自动」逻辑决定。下载器会把它拼在真实地址前面。", + "m0612": "下载线程数(1–16,默认 8)", + "m0613": "大文件按块并行下载。默认 8 线程已经能跑满大多数家宽;网络稳定时可以试 16。", + "m0614": "Gitee 更新源(可选)", + "m0615": "Gitee 只读 token(一般不用填)", + "m0616": "留空即可:公开仓库匿名也能读", + "m0617": "本项目仓库已公开,Gitee 的发行版列表匿名就能读,留空也能用 Gitee 源。\n 只有在「Gitee 被限流(返回 403/429)」或你想读私有分支时才需要填:\n gitee.com → 设置 → 私人令牌,只勾「projects」即可,它只用于读取发行版列表,\n 不会上传任何东西。", + "m0618": "高级参数(一般无需修改)", + "m0619": "运行时", + "m0620": "引擎模式", + "m0621": "自带运行时(推荐,QEMU + Android-x86,无第三方依赖)", + "m0622": "连接已有运行时(高级:复用 WSA / 其他模拟器的 adb 端口)", + "m0623": "adb 路径", + "m0624": "留空则自动在 PATH / Android SDK 中查找", + "m0625": "设备地址", + "m0626": "探测", + "m0627": "系统镜像(ISO)", + "m0628": "Android-x86 / Bliss OS 的 ISO 或 IMG 路径,留空使用默认位置", + "m0629": "内存 (MB,0 = 自动)", + "m0630": "CPU 核心(0 = 自动)", + "m0631": "空闲回收(分钟,0 = 不回收)", + "m0632": "通用兼容镜像(自动管理)", + "m0633": "现在只有一个 Android 14 通用镜像,x86 与 ARM 应用都能跑,首次遇到 ARM 应用时会自动下载,不需要手动切换。此开关仅用于旧配置兼容。", + "m0634": "兼容镜像", + "m0636": "下载兼容镜像", + "m0637": "启动运行时", + "m0638": "停止内置虚拟机", + "m0639": "安卓系统设置(不用进安卓桌面)", + "m0642": "刷新", + "m0643": "一键流畅优化", + "m0644": "关闭系统动画、放开后台进程上限并把当前应用加入电池白名单,低配电脑体感最明显。", + "m0645": "安卓虚拟机内部的无线网,关掉可省一点 CPU。", + "m0646": "飞行模式", + "m0647": "彻底断网(含移动数据),需要安静时打开。", + "m0648": "系统动画", + "m0649": "关掉后界面切换明显更快,功能不受影响。", + "m0650": "媒体音量", + "m0651": "字体大小", + "m0652": "小", + "m0653": "标准", + "m0654": "大", + "m0655": "特大", + "m0656": "显示大小", + "m0657": "紧凑(省性能)", + "m0659": "宽松", + "m0661": "安卓原生设置", + "m0662": "显示设置", + "m0663": "声音设置", + "m0664": "语言设置", + "m0665": "应用管理", + "m0666": "桌面与应用", + "m0667": "安装后自动创建桌面快捷方式", + "m0668": "快捷方式带真实应用图标,双击直接进应用", + "m0669": "同时添加到开始菜单", + "m0670": "Windows 搜索能搜到应用名,任务栏也按应用分组", + "m0671": "快捷方式目录", + "m0672": "留空 = 桌面", + "m0674": "桌面图标被误删或被安全软件拦掉时,点这里按当前设置全部补齐。", + "m0675": "文件互通", + "m0676": "本机共享目录", + "m0677": "浏览", + "m0679": "立即同步", + "m0680": "保存并迁移", + "m0681": "修改后旧目录里已有的文件会自动搬到新目录;正在运行的文件互通不受影响。", + "m0682": "安卓内对应目录", + "m0683": "两侧目录会持续双向同步;在安卓应用里保存到该目录的文件,会出现在本机共享目录中。", + "m0684": "系统集成", + "m0685": "关联 .apk 文件", + "m0686": "双击 APK 直接安装到 ApkStart(仅写入当前用户,无需管理员)", + "m0688": "运行时数据目录(系统镜像 · 已装应用 · 快照)", + "m0689": "默认:C 盘用户数据目录", + "m0692": "这里占用空间最大(数 GB)。改到非系统盘可大幅减轻 C 盘压力;修改后需重启软件,已存在的数据不会自动搬移(请手动复制后删除旧目录)。", + "m0693": "安卓数据目录(应用、游戏与快速启动快照)", + "m0694": "默认:运行时目录下的 avd 文件夹", + "m0697": "真正吃盘的是这一块:数据分区(默认 6 GB,可在上面对大)+ 快速启动快照(约 2–3 GB)。\n 磁盘紧张时把它指到另一个盘(如 D:),重启软件后生效;旧目录里的", + "m0698": "可整体搬过去再删。", + "m0699": "卸载 ApkStart", + "m0700": "一键卸载", + "m0701": "卸载会取消 .apk 关联并移除程序;便携版请按提示手动删除目录。", + "m0702": "软件更新", + "m0703": "当前版本", + "m0704": "尚未检查", + "m0707": "从 GitHub(RoutineMiku/apkstart)获取最新版本;轻量版会下载便携包并自动替换程序文件,\n 运行时、已装应用与快照都不受影响。", + "m0708": "关于", + "m0709": "微信公众号二维码", + "m0710": "扫码关注公众号", + "m0711": "抖音二维码", + "m0712": "抖音 · 日常MIKU", + "m0713": "双击即装的 Windows 安卓应用启动器:APK 安装、桌面快捷方式、独立窗口运行、文件双向互通。", + "m0714": "抖音 · @日常MIKU(联系作者)", + "m0715": "设置修改后立即生效", + "m0718": "横屏 / 竖屏(Ctrl+R)", + "m0719": "最小化", + "m0720": "最大化", + "m0721": "关闭", + "settings.language": "界面语言", + "settings.systemLanguage": "跟随系统", + "settings.languageNote": "界面语言立即生效,不会改变 Android 系统语言。", + "profile.summary": "自动:{0}GB 内存 · {1} 核 · {2} 渲染 · {3} · {4}{5} · 端口 {6}", + "profile.accelerated": "硬件加速", + "profile.snapshot": "按需快照", + "profile.coldBoot": "冷启动", + "profile.lite": " · 轻量容器", + "settings.gamePriority": "游戏 / 低延迟 · 运行时高优先级,适合 FPS、音游", + "settings.gamePriorityNote": "游戏模式会让安卓虚拟机保持较高 CPU 优先级并减少宿主侧轮询,输入与画面延迟最低;代价是整机其他程序会变慢。没有应用窗口时容器仍会自动降优先级停放。", + "display.restartingLandscape": "切换到横屏:正在重启安卓运行时…", + "display.restartingPortrait": "切换回竖屏:正在重启安卓运行时…", + "v058.m0000": "正在为《{0}》切换到{1}(重启安卓环境,约 40 秒,只需一次)…", + "v058.m0001": "横屏", + "v058.m0002": "竖屏", + "v058.m0003": "autoDeploy 冷却中(上次失败于 {0}),跳过自动重试", + "v058.m0004": "autoDeploy 跳过:运行时随包内置({0}),无需联网", + "v058.m0005": ",镜像将在首次启动时本地展开", + "v058.m0006": "autoDeploy 跳过联网下载:运行时目录随包内置({0}),交给诊断流程", + "v058.m0007": "商店版无法自行提权。请手动开启一次:", + "v058.m0008": "按 Win+R → 输入 optionalfeatures → 勾选「Windows 虚拟机监控程序平台」", + "v058.m0009": "(HypervisorPlatform,WHPX 真正需要的那个),确定后重启电脑。", + "v058.m0010": "关闭当前应用({0})", + "v058.m0011": "关闭当前应用", + "v058.m0012": "切回竖屏(需重启运行时)", + "v058.m0013": "切换横屏(需重启运行时)", + "v058.m0014": "商店版更新由 Microsoft Store 负责,已打开商店的「下载和更新」", + "v058.m0015": "launch queued {0}(等待 {1} 启动完成)", + "v058.m0016": "app up (提前接画面)", + "v058.m0017": "orientation mismatch (panel={0}, want={1}) 重启校正", + "v058.m0018": "正在切换到横屏…", + "v058.m0019": "正在切换到竖屏…", + "v058.m0020": "正在以软件模拟运行(很慢)", + "v058.m0021": "开启「Windows 虚拟机监控程序平台」后重启一次,速度可提升 5~10 倍。", + "v058.m0022": "设置 → 环境自检 → 修复 会直接打开该窗口。", + "v058.m0023": "设置 → 环境自检 → 修复 可一键开启(需管理员授权),之后重启一次。", + "v058.m0024": "没有正在运行的应用", + "v058.m0025": "体检自动配置:{0} driver={1}", + "v058.m0026": "(未写入)", + "v058.m0027": "选择驱动文件(.json)", + "v058.m0028": "驱动 JSON", + "v058.m0029": "已导入驱动:{0} v{1}", + "v058.m0030": "导出本机驱动模板", + "v058.m0032": "缺少驱动 id", + "v058.m0033": "需要开启「Windows 虚拟机监控程序平台」", + "v058.m0034": "没有它只能跑纯软件模拟,开机会慢到几分钟。", + "v058.m0035": "(商店版无法代你提权,需要你手动操作一次,之后重启。)", + "v058.m0036": "将回退软件模拟(能跑但很慢)。", + "v058.m0037": "点右侧「修复」会自动开启(需要管理员授权,可能要重启一次);", + "v058.m0038": "失败时会自动改装 AEHD 驱动。", + "v058.m0039": "运行时未就绪,暂时读不到资源分配", + "v058.m0040": "目标容量不合法", + "v058.m0041": "已请求开启「Windows 虚拟机监控程序平台」,重启电脑后硬件加速才会生效", + "v058.m0042": "已开启「Windows 虚拟机监控程序平台」,重启电脑后生效", + "v058.m0044": "你取消了管理员授权,硬件加速没有改动。可以再点一次「修复」,或手动开启「Windows 虚拟机监控程序平台」。", + "v058.m0045": "正在完成上次未完成的更新…", + "v058.m0046": "\n
    \n
    \n \n
    \n
    添加应用
    \n
    拖入 APK 即可安装
    \n
    \n ", + "v058.m0047": "未启用硬件加速:已回退软件模拟(很慢)。点右下角「环境自检 → 修复」开启", + "v058.m0048": "网络正常 {0}", + "v058.m0049": "虚拟机未联网", + "v058.m0050": "安卓虚拟机已联网,联网类应用可以正常加载", + "v058.m0051": "安卓虚拟机没有网络,联网页面会一直是空白/报错。可在「设置 → 修复网络」处理", + "v058.m0052": "关闭应用", + "v058.m0053": "按键映射…", + "v058.m0054": "已关闭", + "v058.m0055": "关闭失败", + "v058.m0057": "0. 清除当前映射", + "v058.m0058": "为「{0}」选择按键映射预设:\n\n{1}\n\n输入编号:", + "v058.m0059": "已清除按键映射", + "v058.m0060": "无效编号", + "v058.m0061": "已套用「{0}」", + "v058.m0062": "{0} · 打开应用后键盘即可操控", + "v058.m0063": "按键映射设置失败", + "v058.m0064": "暂时读不到资源分配信息", + "v058.m0065": "本机 {0} 内存 / {1} 核;", + "v058.m0066": "内存最多可分 {0},核心最多 {1} 个(各留 1/4 内存与 1 核给 Windows)。", + "v058.m0067": "数据分区上限 {0} GB{1}。", + "v058.m0068": "(所在磁盘剩余 {0} GB)", + "v058.m0069": "体检没有返回结果,请重试", + "v058.m0070": "正在处理…", + "v058.m0071": "操作没有完成", + "v058.m0072": "可以稍后重试,或手动按提示操作", + "v058.m0073": "已取消", + "v058.m0074": "没有修改系统设置", + "v058.m0075": "硬件加速已经可用", + "v058.m0076": "已提交,需要重启", + "v058.m0077": "重启电脑后硬件加速才会生效,回来点「开始体检」确认", + "v058.m0078": "可以点「开始体检」确认结果", + "v058.m0079": "没能自动完成", + "v058.m0080": "请按提示手动操作", + "v058.m0081": "{0}。推荐配置:{1} GB 内存 / ", + "v058.m0082": "{0} 核 / {1} · 渲染 {2}", + "v058.m0083": "(商店版:系统功能只能在「Windows 功能」里手动开)", + "v058.m0084": "体检中…", + "v058.m0085": "正在检查虚拟化、显卡、内存…(第一次约 2~3 秒)", + "v058.m0086": "体检失败", + "v058.m0087": "无硬件加速", + "v058.m0088": "本机:{0}/{1} · {2} 显卡 · {3}", + "v058.m0089": " · emulator {0};驱动 {1} 个,本机已生效 {2} 个。", + "v058.m0090": " {0} 个文件加载失败(见下)。", + "v058.m0091": "请稍后再试", + "v058.m0092": "内置示例", + "v058.m0093": " · 命中:{0}", + "v058.m0094": " · 本机不匹配", + "v058.m0095": "还没有任何驱动。可以点「导出本机模板」做一个,或导入别人做好的 JSON。", + "v058.m0096": "读不到驱动列表(运行时可能还没部署)", + "v058.m0097": "快速启动差量盘(实际容量以运行时 /data 为准)", + "v058.m0098": "实际文件系统 {0} GB", + "v058.m0099": " 目标 {0} GB 还没生效:安卓正在用快速启动差量盘,需要「重置安卓数据」后按新容量重建(会清空已装应用)。", + "v058.m0100": "当前数据分区:{0}{1} · 所在磁盘剩余 {2}。{3}", + "v058.m0101": "游戏提示「存储空间不足」就把这里调大后点「立即扩容」;能就地扩容时不丢已装应用。", + "v058.m0102": "应用失败", + "v058.m0104": "已按这台机器配置好", + "v058.m0105": "内存 {0} GB / {1} 核 / {2}", + "v058.m0106": ";已生成驱动,下次开机会自动套用", + "v058.m0107": "驱动没写成功", + "v058.m0108": "打不开驱动目录", + "v058.m0109": "驱动已导入并启用", + "v058.m0110": "模板已导出", + "v058.m0111": "改完 effect 后放到驱动目录,点「刷新」即可生效", + "v058.m0112": "系统语言已更新", + "v058.m0113": "下次重启安卓运行时后生效", + "v058.m0114": "已开启中文输入法", + "v058.m0115": "已关闭中文输入法", + "v058.m0117": "需要重置安卓数据才能扩容", + "v058.m0118": "安卓正在使用快速启动差量盘,就地扩容改不到它。要拿到 {0} GB 空间,必须按新容量重建 /data。", + "v058.m0119": "重建会清空已安装的应用与存档(模拟器本身和镜像不受影响)。确定继续吗?", + "v058.m0120": "清空并重建", + "v058.m0121": "重建中…", + "v058.m0122": "已按新容量重建", + "v058.m0123": "重建失败", + "v058.m0124": "下次打开应用会按 {0} GB 重建 /data(首次进入会多等几十秒)", + "v058.m0125": "键盘映射已开启", + "v058.m0126": "键盘映射已关闭", + "v058.m0127": "已开启自动全屏", + "v058.m0128": "已关闭自动全屏", + "v058.m0129": "下次打开应用时生效", + "v058.m0130": "已设为跟随应用", + "v058.m0131": "已强制横屏", + "v058.m0132": "已强制竖屏", + "v058.m0133": "下次打开应用时会按应用自己的方向选面板,方向不一致的话会重启一次运行时。", + "v058.m0134": "下次打开应用时会重启一次运行时把面板切到指定方向,之后不再重启。", + "v058.m0135": "已打开平板排版", + "v058.m0136": "已关闭平板排版", + "v058.m0137": "下次打开应用时生效(会重启一次运行时来改逻辑密度)。", + "v058.m0138": "面板已设为横屏", + "v058.m0139": "面板已设为竖屏", + "v058.m0140": "下次打开应用时会重启一次运行时来切换物理面板方向(约十几秒),之后就不会再重启。", + "v058.m0141": "已切回嵌入模式", + "v058.m0142": "已切到独立窗口模式", + "v058.m0143": "下次打开应用时生效。独立模式下安卓画面由模拟器自己开窗口,方向与缩放都由它处理。", + "v058.m0144": "需要手动开启一次(仅此一次)", + "v058.m0145": "在打开的窗口里勾选「Windows 虚拟机监控程序平台」,确定后重启电脑。", + "v058.m0147": "没有拿到管理员授权,硬件加速没有改动。", + "v058.m0148": "首次启动 · 本地准备中(无需联网)", + "v058.m0149": "
  • 运行时组件已随安装包内置,不再下载任何东西
  • ", + "v058.m0150": "
  • 把系统镜像展开到用户目录(约 1 分钟,只需一次)
  • ", + "v058.m0151": "
  • 准备硬件加速与中文输入法
  • ", + "v058.m0152": "
  • 完成后双击 APK 或桌面图标即可秒开应用
  • ", + "v058.m0153": "简体中文", + "v058.m0154": "内存、核心数、渲染后端、端口、加速方式全部自动选择;启动失败会自动降级重试,不需要手动改。\n ApkStart 用", + "v058.m0155": "专用 adb 服务端口 5044", + "v058.m0156": "(你系统里自己的 adb 是 5037),所以命令行里", + "v058.m0157": "看不到这台安卓设备 —— 这是刻意的隔离。想连的话用", + "v058.m0158": "再执行 adb。\n 注意:别对着 5555 端口手动", + "v058.m0159": ",那会在正在运行的应用上弹出\n 「允许 USB 调试吗」的系统弹窗。", + "v058.m0160": "自动全屏", + "v058.m0161": "关闭(按上面选的显示模式走)", + "v058.m0162": "打开 · 每次启动应用都自动全屏", + "v058.m0163": "打开后,每次点开应用直接铺满屏幕,不用再按 F11。配合下面的「横屏」使用效果最好\n —— 横屏面板的宽高比本来就贴合屏幕,全屏不会留黑边。", + "v058.m0164": "屏幕方向", + "v058.m0165": "跟随应用(推荐 · 自动选横竖屏,画面铺满不留黑边)", + "v058.m0166": "强制竖屏(手机比例,适合刷短视频、看小说)", + "v058.m0167": "强制横屏(宽屏铺满,适合看剧、玩游戏)", + "v058.m0168": "安卓的横竖屏是", + "v058.m0169": "虚拟手机面板的真实方向", + "v058.m0170": "决定的。面板方向和应用自己声明的方向不一致时,\n 安卓只会给应用中间一条窄画面、两侧补黑 —— 换窗口大小、改分辨率都填不满。\n 「跟随应用」会在安装 APK 时读出应用的方向,启动时自动把面板换成一致的那个,\n 所以红果、墨读这类应用会正立且铺满。方向不对时才重启一次运行时(约十几秒),\n 之后再打开同一方向的应用都是秒进。", + "v058.m0171": "平板排版", + "v058.m0172": "打开(推荐 · 逻辑密度 190dpi,sw606dp 走平板排版)", + "v058.m0173": "关闭(镜像默认密度,手机排版)", + "v058.m0174": "720 宽按 190dpi 算等于 606dp,正好越过 Android 的 600dp 平板断点,\n 红果短剧的双列剧集页、设置页的分栏都只在这个排版下出现。关掉会回到手机排版\n (字更大、信息更少)。切换后下次打开应用生效。", + "v058.m0175": "当前面板方向", + "v058.m0176": "竖屏面板", + "v058.m0177": "横屏面板", + "v058.m0178": "这是运行时", + "v058.m0179": "现在", + "v058.m0180": "用的物理面板方向,由上面那条策略自动写入。\n 只有在「强制」模式下它才完全由你决定。", + "v058.m0181": "窗口承载方式", + "v058.m0182": "嵌入模式(默认)· 安卓画面嵌在 ApkStart 窗口里,观感统一", + "v058.m0183": "独立窗口 · 由模拟器自己开窗口,避开花屏/黑边/点不准", + "v058.m0184": "嵌入模式最像「一个应用一个窗口」,但需要把模拟器的窗口塞进我们自己的窗口,\n 容易在缩放、旋转、多窗口切换时出现黑边或点击错位。独立模式下方向、缩放、输入都由模拟器原生处理,\n 这类问题不会出现,代价是多一个任务栏图标。改动在下次打开应用时生效。", + "v058.m0185": "键盘映射(游戏手柄)", + "v058.m0186": "启用键盘映射", + "v058.m0187": "把键盘按键映射成安卓触屏点击/滑动。适合用键盘玩手游(WASD 移动、J/K 技能等)。\n 每个应用可以单独配置,右键应用卡片 → 「按键映射」选择预设模板或自定义。", + "v058.m0188": "当前应用未配置按键映射。右键应用卡片可快速套用预设模板。", + "v058.m0189": "64 GB(50GB 级游戏)", + "v058.m0190": "系统语言", + "v058.m0191": "简体中文(推荐)", + "v058.m0192": "繁體中文", + "v058.m0193": "English(镜像原生)", + "v058.m0194": "日本語", + "v058.m0195": "系统设置、权限弹窗、日期格式的语言。开机时注入到虚拟机,", + "v058.m0196": "下次重启运行时生效", + "v058.m0197": "。中文输入法不受此项影响,单独在下面开关。", + "v058.m0198": "中文输入法(推荐)", + "v058.m0199": "镜像只带英文键盘,勾上会静默安装并启用随包的谷歌拼音输入法,\n 这样在安卓应用里能直接打中文。关掉则保持系统原生输入法。", + "v058.m0200": "本机体检 · 自动配置", + "v058.m0201": "先查一遍这台机器:CPU 虚拟化有没有开、Windows 的虚拟机监控程序平台在不在、\n 显卡是什么、显存多大、内存和系统版本够不够。能自动改的(内存 / 核心 / 画质 / 渲染后端)直接写进设置,\n 并把结果固化成一份驱动;必须管理员权限的给按钮;只能在 BIOS 里改的会告诉你怎么改。", + "v058.m0202": "开始体检", + "v058.m0203": "应用推荐配置", + "v058.m0204": "驱动 · 兼容补丁", + "v058.m0205": "有些机器要改启动参数才跑得起来(老显卡 GLES 版本低、没开硬件加速、某版驱动一开硬件渲染就崩)。\n 驱动就是一份 JSON:声明「匹配哪些机器」+「命中后改哪些启动参数」。你可以自己写、导入、分享。\n 驱动只改白名单里的启动项,", + "v058.m0206": "不执行任何代码", + "v058.m0207": ";匹配不上就不生效。", + "v058.m0208": "正在读取驱动…", + "v058.m0209": "导入驱动…", + "v058.m0210": "打开驱动目录", + "v058.m0211": "导出本机模板", + "v058.m0212": "「导出本机模板」会把匹配条件按这台机器填好,改", + "v058.m0213": "里的", + "v058.m0214": "就能用。字段说明见仓库里的", + "v058.m0215": "ApkStart 自带运行时(QEMU + Android 14,独立运行)", + "v058.m0216": "ApkStart 只跑自己的运行时:adb / emulator / 系统镜像都由它自己下载和管理,\n 不探测、不接管、不依赖你电脑上装的任何模拟器(MuMu / 雷电 / 蓝叠 / WSA 都不会被使用)。\n 这样换机器、别人装没装模拟器、模拟器怎么升级,都不影响这里。", + "v058.m0217": "由 ApkStart 自己分配(emulator-5554,端口冲突时自动顺延),无需填写。", + "v058.m0218": "Windows 上的安卓应用运行器", + "v058.m0219": "正在准备…", + "v058.m0220": "首次使用 · 自动配置中", + "v058.m0221": "下载 Android 运行时引擎(约 200MB,只需一次)", + "v058.m0222": "下载系统镜像(约 1.5GB,只需一次)", + "v058.m0223": "配置硬件加速与网络", + "v058.m0224": "完成后即可双击 APK 或桌面图标秒开应用", + "v062.m0000": "运行时目录指向别的安装包({0}),改用随包内置运行时 {1}", + "v062.m0001": "正在切换到横屏(重启安卓环境,约 40 秒,只需一次)…", + "v062.m0002": "正在切换回竖屏(重启安卓环境,约 40 秒,只需一次)…", + "v062.m0003": "attach detached: 壳窗口已关闭(第 {0} 轮)", + "v062.m0004": "attach detached #{0} 失败: {1}", + "v062.m0005": "attach detached: 重试全部失败,临时退回嵌入模式", + "v062.m0006": "模拟器原生窗口没能显示,本次临时用内置窗口接管画面", + "v062.m0007": "ApkStart 使用手册 · {0}", + "v062.m0008": "自动检测发现新问题:{0}(设置 → 诊断与修复)", + "v062.m0009": "自动检测发现新问题", + "v062.m0010": "{0}。打开 ApkStart 的「设置 → 诊断与修复」可以一键处理。", + "v062.m0011": "使用手册", + "v062.m0012": "pre-attach detached ok(第 {0} 次)", + "v062.m0013": "缺少包名", + "v062.m0014": "(跟随应用)", + "v062.m0015": "另一个实例已接管运行时,跳过停止(否则会误杀它的模拟器)", + "v062.m0016": "{0}\nARM 兼容镜像已启用仍装不上,请到「设置 → 诊断与修复」导出诊断报告反馈。", + "v062.m0017": "{0}\n这个包只有 ARM 库。程序会自动切到兼容镜像重装一次,请留意后续提示。", + "v062.m0018": "横屏 / 竖屏", + "v062.m0019": "竖屏启动(当前横屏)", + "v062.m0020": "横屏启动(当前竖屏)", + "v062.m0021": "设为横屏启动", + "v062.m0022": "横屏启动", + "v062.m0023": "竖屏启动", + "v062.m0024": "跟随应用", + "v062.m0025": "已设为{0}", + "v062.m0026": "下次打开该应用时生效,无需重启整个环境。", + "v062.m0027": "设置方向失败", + "v062.m0028": "常用与安装", + "v062.m0029": "显示与窗口", + "v062.m0030": "操作与输入", + "v062.m0031": "性能与资源", + "v062.m0032": "网络与下载", + "v062.m0033": "诊断与修复", + "v062.m0034": "集成与文件", + "v062.m0035": "更新与关于", + "v062.m0036": "{0} 项命中", + "v062.m0037": "设备连接", + "v062.m0038": "存储", + "v062.m0039": "网络", + "v062.m0040": "日志", + "v062.m0041": "尚未检测", + "v062.m0042": "上次检测 {0} · 一切正常", + "v062.m0043": "上次检测 {0} · {1} 项待处理", + "v062.m0044": "
    \n \n 没有发现影响使用的问题。运行时、adb 授权、磁盘、数据分区、快照与设置冲突都检查过了。\n
    ", + "v062.m0045": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n {3}\n
    \n {4}\n \n
    ", + "v062.m0046": "", + "v062.m0047": "检测中…", + "v062.m0048": "检测失败", + "v062.m0049": "采集状态时出错,稍后再试一次", + "v062.m0050": "把报告发给作者可以最快定位问题", + "v062.m0051": "已开启自动检测", + "v062.m0052": "已关闭自动检测", + "v062.m0053": "后台会定时检查,发现新问题才提醒", + "v062.m0054": "随时可以点「立即检测」手动跑一次", + "v062.m0055": "检测间隔已更新", + "v062.m0056": "每 {0} 分钟检测一次", + "v062.m0057": "已打开镜像自动旋转", + "v062.m0058": "已关闭镜像自动旋转", + "v062.m0059": "下次打开应用时写进安卓镜像。画面方向仍由屏幕方向策略决定,不受此开关影响。", + "v062.m0060": "已切到原生窗口", + "v062.m0061": "下次打开应用时生效。嵌入模式观感统一、标题栏带旋转按钮,但缩放/旋转时更容易掉帧或出现黑边。", + "v062.m0062": "下次打开应用时生效。原生窗口由模拟器自己渲染与排布,帧率和缩放更稳,横屏可用托盘菜单或 Ctrl+Alt+R。", + "v062.m0063": "\n
    \n \n
    \n
    {1}
    \n
    {2}
    \n
    \n {3}\n \n
    ", + "v062.m0064": "请按教程手动处理", + "v062.m0065": "修复未完成", + "v062.m0066": "未能开启硬件加速,已打开对应教程", + "v062.m0067": "正在重启安卓运行时…", + "v062.m0068": "会重新引导一次,大约十几秒", + "v062.m0069": "安卓运行时已重启", + "v062.m0070": "授权弹窗请点「允许」", + "v062.m0071": "重启失败,已打开对应教程", + "v062.m0072": "已清理残留的模拟器进程", + "v062.m0073": "已作废快速启动快照", + "v062.m0074": "下次打开应用会走一次完整冷启动", + "v062.m0075": "作废失败", + "v062.m0076": "需要重建安卓数据分区", + "v062.m0077": "到「设置 → 性能与资源」点「立即扩容」;提示需要重置时确认一次(会清空已装应用)。", + "v062.m0078": "当前是「跟随应用」", + "v062.m0079": "面板方向会按应用自动切换;若某个应用方向不对,可对它单独指定。", + "v062.m0080": "面板已切成横屏", + "v062.m0081": "面板已切成竖屏", + "v062.m0082": "下次打开应用生效", + "v062.m0083": "请检查共享目录", + "v062.m0084": "到「设置 → 集成与文件」确认本机共享目录存在且可写。", + "v062.m0085": "正在打开安卓应用声音…", + "v062.m0086": "马上重启运行时让 -no-audio 失效", + "v062.m0087": "没能保存声音设置,已打开对应教程", + "v062.m0088": "声音已打开", + "v062.m0089": "运行时已重启,现在应该能听到应用声音了", + "v062.m0090": "声音开关已打开,但运行时重启失败,已打开对应教程", + "v062.m0091": "需要手动启动 Windows Audio", + "v062.m0092": "已打开教程,照着做一次即可", + "v062.m0093": "正在重置安卓网络…", + "v062.m0094": "应用清单会保留", + "v062.m0095": "安卓网络已重置", + "v062.m0096": "下次打开应用重新联网", + "v062.m0098": "使用手册(含故障解决方案)", + "v062.m0099": "搜索设置项:横屏 / 内存 / 代理 / 快照…", + "v062.m0100": "清除搜索", + "v062.m0101": "设置分类", + "v062.m0110": "镜像自动旋转", + "v062.m0111": "打开(默认)· 系统设置里显示自动旋转已开启", + "v062.m0112": "关闭 · 回到旧的锁定行为", + "v062.m0113": "安卓里", + "v062.m0114": "自动旋转开关默认打开", + "v062.m0115": "。注意这不影响画面方向:面板方向和屏幕方向仍由上面的\n 策略 + 忽略应用方向请求决定,不会被传感器带歪。只有个别应用读取这个开关值时才会用到。", + "v062.m0116": "原生窗口(默认·推荐)· 模拟器自己开窗口,帧率与缩放最稳", + "v062.m0117": "嵌入模式 · 安卓画面嵌在 ApkStart 窗口里,标题栏带旋转按钮", + "v062.m0118": "原生窗口由模拟器直接渲染和排布,拖拽、缩放、旋转都跟手,不会出现黑边或点击错位,\n 代价是多一个任务栏图标(横屏用托盘菜单或 Ctrl+Alt+R)。嵌入模式会把模拟器窗口塞进我们的窗口,\n 观感更统一、自带旋转按钮,但在缩放/旋转/切换应用时容易掉帧并出现黑边。改动在下次打开应用时生效。", + "v062.m0119": "自动检测 · 智能诊断", + "v062.m0120": "后台定时把这台机器查一遍:安卓运行时有没有起来、adb 授权是否正常、磁盘还剩多少、\n 数据分区是不是被差量盘挡住、快照有没有坏、设置之间有没有互相打架。\n 只在发现", + "v062.m0121": "新", + "v062.m0122": "的严重问题时弹一次通知,其余都安静地列在下面。", + "v062.m0123": "启用自动检测(默认开启)", + "v062.m0124": "关掉后不再定时扫描;随时可以点「立即检测」手动跑一次。", + "v062.m0125": "检测间隔", + "v062.m0126": "每 1 分钟", + "v062.m0127": "每 5 分钟", + "v062.m0128": "每 10 分钟(推荐)", + "v062.m0129": "每 30 分钟", + "v062.m0130": "每 1 小时", + "v062.m0131": "发现新问题时通知我", + "v062.m0132": "只对严重问题弹通知;已知的老问题不重复打扰。", + "v062.m0133": "立即检测", + "v062.m0135": "打开使用手册(含故障解决方案)", + "v064.m0000": "实测系统缺少微软 VC++ 2015-2022(x64),安卓运行时依赖它。", + "v064.m0001": "可一键安装;若装完仍报 0xC0000135,见内置手册 6.8——商店版还可能是子进程 DLL 路径问题。", + "v064.m0002": "实验室", + "v064.m0003": "(当前系统不支持此设置)", + "v064.m0004": "系统默认", + "v064.m0005": "独显", + "v064.m0006": "核显", + "v064.m0007": "(已生效:{0})", + "v064.m0008": "(已选 {0},下次启动安卓后生效)", + "v064.m0009": "显卡偏好已保存", + "v064.m0010": "下一次启动安卓时生效", + "v064.m0011": "多窗口多开已开启(实验性)", + "v064.m0012": "已回到单应用模式", + "v064.m0013": "下次打开应用生效:多个应用可并存、各自独立原生窗口。", + "v064.m0014": "正在打开麦克风输入…", + "v064.m0015": "马上重启运行时让录音设备生效", + "v064.m0016": "没能保存麦克风设置,已打开对应教程", + "v064.m0017": "麦克风已打开", + "v064.m0018": "运行时已重启,应用现在应该能录音了", + "v064.m0019": "麦克风开关已打开,但运行时重启失败,已打开对应教程", + "v064.m0021": "显卡偏好(独显 / 核显)", + "v064.m0022": "系统默认(推荐 · 让 Windows 决定)", + "v064.m0023": "独显优先(游戏 / 视频更流畅,更耗电)", + "v064.m0024": "核显优先(省电、发热低)", + "v064.m0025": "电脑同时有独显和核显时,Windows 有时会把模拟器分到核显,导致画面卡。这里可以明确指定用哪块显卡渲染;仅 Windows 10 1803+ 生效,改动在下次启动安卓时应用。", + "v064.m0026": "麦克风输入(推荐)", + "v064.m0027": "让应用能用电脑的麦克风语音、通话、录音。关掉后应用里查不到录音设备。仅在你担心隐私、完全不需要录音时关闭。", + "v064.m0029": "这里的功能还在实验阶段,行为可能随版本变化。遇到问题可在「诊断与修复 → 导出诊断报告」反馈。", + "v064.m0030": "Windows 原生多窗口 · 多开(实验性)", + "v064.m0031": "开启后打开新应用不再强制关闭上一个:多个应用可同时驻留、随时快速切回(保留登录态,不必重新加载),切回体验接近多窗口。\n 受限于安卓运行时只有一个模拟器窗口,同一时刻仍只有一个应用画面在前台显示,并非真正的同时并排多窗口。\n 会明显增加内存占用;关闭则回到「一次只显示一个应用」的稳定模式。", + "v064.m0032": "后台保留应用数", + "v064.m0033": "0 · 最省内存(只留当前应用)", + "v064.m0034": "1 · 平衡(推荐)", + "v064.m0035": "2 · 多开更稳", + "v064.m0036": "3 · 最多并存", + "v064.m0037": "多开模式下,超过这个数量的后台应用会被挂起(保留数据、秒切回),释放内存。", + "settings.dnsServers": "DNS 服务器", + "settings.dnsServersCn": "国内公共 DNS(阿里 / 腾讯)", + "settings.dnsServersNote": "「网络加速」开启时使用。在国外或使用海外 VPN 时,选 Cloudflare 或 Google 解析更快。下次启动安卓运行时后生效。", + "autodebug.accel.softwareEmulation.hint": "只能跑纯软件模拟,开机慢到几分钟、画面也容易掉帧。开启「Windows 虚拟机监控程序平台」后重启即可。", + "autodebug.accel.softwareEmulation.title": "当前没有硬件加速", + "autodebug.logs.errors.hint": "最近一次运行留下了错误记录,展开诊断报告可以看到完整上下文。", + "autodebug.logs.errors.title": "运行日志里有 {0} 条错误", + "autodebug.network.sourcesDown.hint": "更新检查会同时问多个源,有一个不通不影响使用;如果全都不通,请检查网络或代理。", + "autodebug.network.sourcesDown.title": "{0} 个下载源连不上", + "autodebug.network.guestDown.hint": "安卓侧解析或联网失败,视频/资讯类应用会一直转圈。可以用「修复网络」重置安卓数据解决(应用清单会保留)。", + "autodebug.network.guestDown.title": "安卓里没有网络", + "autodebug.audio.microphoneDisabled.hint": "应用里的语音、通话、录音会失败(查不到录音设备)。点「处理」重新打开并重启一次运行时即可;同时确认 Windows 的麦克风权限已允许桌面应用访问。", + "autodebug.audio.microphoneDisabled.title": "麦克风输入已在设置里关闭", + "autodebug.audio.windowsServiceStopped.hint": "这会连系统其它软件一起没声音。到 services.msc 启动 Windows Audio 并设为自动,或在管理员 PowerShell 里执行 net start Audiosrv。", + "autodebug.audio.windowsServiceStopped.title": "Windows 音频服务(Audiosrv)未运行", + "autodebug.audio.disabled.hint": "安卓声音开关被关掉了,所以只有 ApkStart 里的应用没声音。点「处理」重新打开,并重启一次运行时即可。", + "autodebug.audio.disabled.title": "安卓应用声音已在设置里关闭", + "autodebug.settings.snapshotOffLowDisk.hint": "当前磁盘余量不到 4 GB,快照又被关掉:打开应用会走一次完整冷启动(十几秒)。磁盘够的话建议重新打开快照。", + "autodebug.settings.snapshotOffLowDisk.title": "磁盘偏紧,快速启动快照已关闭", + "autodebug.settings.detachedFullscreen.hint": "原生窗口由模拟器自己开窗,全屏由它自己决定,不受这里的开关控制。想铺满屏幕可在窗口里按 F11,或把窗口承载方式改成嵌入模式。", + "autodebug.settings.detachedFullscreen.title": "原生窗口模式下的「启动时自动全屏」不会生效", + "autodebug.settings.orientationConflict.hintLandscape": "策略要求横屏,但面板现在是竖屏,看剧/游戏会是一条竖着的窄画面。把面板方向改成与策略一致即可。", + "autodebug.settings.orientationConflict.title": "屏幕方向策略与当前面板方向相反", + "autodebug.settings.orientationConflict.hintPortrait": "策略要求竖屏,但面板现在是横屏,安卓只会给应用一条窄画面加两侧黑边。把面板方向改成与策略一致即可。", + "autodebug.storage.sharedBroken.hint": "文件互通用的本机目录不存在或没有写权限,安卓里保存的文件同步不过去。", + "autodebug.storage.sharedBroken.title": "共享目录不可用", + "autodebug.storage.dataMismatch.detail": "配置 {0} GB · 实际 {1} GB", + "autodebug.storage.dataMismatch.hint": "安卓里实际可用容量小于设置里写的值,装大游戏会提示存储空间不足。", + "autodebug.storage.dataMismatch.title": "安卓数据分区比配置的小", + "autodebug.storage.dataNeedsReset.detail": "配置 {0} GB · 实际 {1} GB", + "autodebug.storage.dataNeedsReset.hint": "快速启动用的差量盘挡着就地扩容,guest 里看到的还是旧容量。需要「重置安卓数据」后按新容量重建(会清掉已装应用)。", + "autodebug.storage.dataNeedsReset.title": "数据分区扩容没有真正生效", + "autodebug.storage.diskLow.detail": "剩余 {0} MB", + "autodebug.storage.diskLow.hint": "剩余不足 8 GB,快照和系统镜像还需要空间。建议先清理一次可回收文件。", + "autodebug.storage.diskLow.title": "运行时所在磁盘空间偏紧", + "autodebug.storage.diskCritical.detail": "剩余 {0} MB", + "autodebug.storage.diskCritical.hint": "剩余空间不足 2 GB,装应用和写快照都会失败。点「一键清理」回收旧镜像、旧快照和日志。", + "autodebug.storage.diskCritical.title": "运行时所在磁盘快满了", + "autodebug.device.missing.hint": "安卓进程活着、adb 却看不到设备,多半是 adb 服务端口被别的程序占了,或者引导还没完成。", + "autodebug.device.missing.title": "运行时在跑,但 adb 没看到设备", + "autodebug.device.offline.hint": "adb 能看到设备但连不上,通常是虚拟机还在引导或 adb 服务没握手成功。等一会儿仍不恢复就重启运行时。", + "autodebug.device.offline.title": "安卓设备处于 offline 状态", + "autodebug.device.unauthorized.hint": "安卓侧弹过「允许 USB 调试吗」但没被确认,adb 一直连不上。重启运行时(走一次冷启动)会重新弹出确认框,确认后即恢复。", + "autodebug.device.unauthorized.title": "安卓设备未授权调试", + "autodebug.runtime.staleSnapshot.hint": "快照文件还在但校验不通过,每次开机都要额外冷启动一次。删掉它会用一次冷启动换回磁盘空间。", + "autodebug.runtime.staleSnapshot.title": "快速启动快照已损坏", + "autodebug.runtime.orphanProcesses.hint": "上次没有正常关机的安卓进程还占着资源与 AVD 锁,会让下次开机失败。可以一键清理(不会动已装应用与存档)。", + "autodebug.runtime.orphanProcesses.title": "有 {0} 个残留的模拟器进程", + "autodebug.runtime.staleLocks.hint": "锁文件没清会让下一次启动被判定为「AVD 已被占用」而直接失败。可以一键清掉。", + "autodebug.runtime.staleLocks.title": "检测到 {0} 个上次残留的锁文件", + "autodebug.runtime.stuckBoot.detail": "阶段:{0}", + "autodebug.runtime.stuckBoot.hint": "已经引导超过 2 分半还没进系统。常见原因是快速启动快照损坏,重启运行时(会走一次冷启动)通常能解决。", + "autodebug.runtime.stuckBoot.title": "安卓开机卡在引导阶段", + "autodebug.runtime.bootFailed.hint": "运行时的真实报错已经拿到,按这条原因处理通常一次就能恢复。", + "autodebug.runtime.bootFailed.title": "安卓运行时上次启动失败", + "doctor.report.log": "== 运行时日志(末尾 300 行)==", + "doctor.report.extra": "== 附加信息 ==", + "doctor.report.finding": "{0}:{1}", + "doctor.report.diagnosis": "== 诊断 ==", + "doctor.report.profile": "== 自动配置 ==", + "doctor.report.host": "== 本机 ==", + "doctor.report.generated": "生成时间:{0}", + "doctor.report.title": "ApkStart 诊断报告", + "doctor.unknown.hint": "已自动按多种参数组合重试。可点「导出诊断报告」把日志发给作者定位。", + "doctor.unknown.title": "运行时未能完成开机", + "doctor.rule.SNAPSHOT.hint": "已自动丢弃旧快照走冷启动;下一次正常退出会重新生成快照。", + "doctor.rule.SNAPSHOT.title": "快速启动快照损坏", + "doctor.rule.CPU_FEATURE.hint": "这类提示在部分老 CPU 上只是警告、仍能开机;若确实起不来,请把「运行时」里的引擎更新到较旧兼容版本,或换一台支持 VT-x/AVX 的电脑。", + "doctor.rule.CPU_FEATURE.title": "CPU 缺少运行时要求的指令集", + "doctor.rule.AVD_LOCK_UNCLEAN.hint": "ApkStart 会自动清掉残留锁并重试;若反复出现,请检查是否有别的模拟器正在用同一套运行时。", + "doctor.rule.AVD_LOCK_UNCLEAN.title": "上一次运行没有正常退出,残留了锁文件", + "doctor.rule.NON_ASCII.hint": "已自动改用 Windows 短路径。若仍失败,请把 ApkStart 移到纯英文目录(如 C:\\ApkStart)。", + "doctor.rule.NON_ASCII.title": "安装路径含中文或特殊字符", + "doctor.rule.DISK_FULL.hint": "请把运行时目录(设置 → 系统集成 → 运行时数据目录)改到空间充足的盘,或在设置里关掉「保留快速启动快照」/ 调小数据分区。安卓数据不会被自动清除。", + "doctor.rule.DISK_FULL.title": "磁盘空间不足,无法启动安卓", + "doctor.rule.DLL.hint": "常见原因:商店版从只读目录启动子进程的路径限制、VC++ 运行库缺失、杀毒隔离了运行时文件。请打开内置手册 6.8 按步骤定位;不要只凭这一条就重装运行库。", + "doctor.rule.DLL.title": "运行时依赖 DLL 加载失败(具体原因待定位)", + "doctor.rule.IMAGE.hint": "已自动用干净的用户数据重新开机。若仍失败,请在「运行时」里删除镜像后重新下载。", + "doctor.rule.IMAGE.title": "系统镜像缺失或损坏 / 与旧用户数据不兼容", + "doctor.rule.AVD_LOCK.hint": "已自动清理 AVD 锁文件并重新拉起。", + "doctor.rule.AVD_LOCK.title": "上次运行残留了锁文件", + "doctor.rule.PORT_BUSY.hint": "已自动换用空闲端口。若反复出现,请退出夜神/MuMu/蓝叠等模拟器,或重启电脑。", + "doctor.rule.PORT_BUSY.title": "模拟器端口被占用", + "doctor.rule.MEMORY.hint": "已自动下调分配给 Android 的内存与核心数。请关闭占内存的程序后重试。", + "doctor.rule.MEMORY.title": "内存分配失败", + "doctor.rule.ACCEL.hint": "已自动回退软件模拟(首次启动会明显变慢)。想要流畅可用,请在「Windows 功能」勾选「虚拟机平台」,或安装 AEHD 驱动后重启。", + "doctor.rule.ACCEL.title": "硬件加速不可用", + "doctor.rule.GPU_MODE.hint": "已自动按运行时版本挑选可用的 GPU 模式重试(老版本用 swiftshader_indirect,新版本用 software)。", + "doctor.rule.GPU_MODE.title": "当前运行时不接受该 GPU 模式", + "doctor.rule.GPU_INIT.hint": "已自动切换软件渲染重试。若仍失败,请更新显卡驱动,或关闭远程桌面/虚拟机显卡直通后再试。", + "doctor.rule.GPU_INIT.title": "显卡渲染后端初始化失败", + "doctor.rule.ACCESS_VIOLATION.hint": "已自动改用更保守的渲染后端重试,并记住这个后端下次不再先试。若反复出现,请更新显卡驱动;或在设置 → 性能与资源里把画质调低、关闭远程桌面/虚拟机显卡直通后再试。", + "doctor.rule.ACCESS_VIOLATION.title": "渲染后端崩溃(0xC0000005 访问冲突)", + "preflight.summary.good": "这台机器可以直接跑硬件加速,配置已经是最优", + "preflight.summary.warn": "有 {0} 项建议优化({1})", + "preflight.summary.bad": "发现 {0} 项必须先处理({1})", + "preflight.driverAuthor": "ApkStart 体检", + "preflight.driverName": "本机自动配置({0})", + "preflight.os-old.detail": "ApkStart 最低支持 Windows 10 2004(build 19041)。更旧的系统上 emulator 可能直接退出。", + "preflight.os-old.title": "Windows 版本较旧(build {0})", + "preflight.mem-ok.title": "物理内存 {0} GB", + "preflight.mem-low.detail": "安卓虚拟机最多只能分 2 GB、2 核,画质降到 540×960,并建议关掉浏览器标签页再开应用。", + "preflight.mem-low.title": "内存偏小({0} GB)", + "preflight.mem-unknown.title": "读不到物理内存", + "preflight.gpu-driver-old.detail": "驱动日期 {0}(约 {1} 年前)。老驱动是「起来后黑屏 / 花屏」的常见原因,建议去厂商官网更新。", + "preflight.gpu-driver-old.title": "显卡驱动比较旧", + "preflight.gpu-unknown.detail": "可能是远程桌面 / 虚拟机 / 驱动异常。渲染后端交给自动降级链处理。", + "preflight.gpu-unknown.title": "读不到显卡信息", + "preflight.accel-off.label": "安装 AEHD 驱动(需管理员)", + "preflight.accel-off.detailPlain": "会先用软件模拟保证能跑;速度比硬件加速慢 5~10 倍。", + "preflight.accel-off.detailInstaller": "可以装 AEHD 驱动(需管理员),或先开「虚拟机监控程序平台」后重启;两者都不行就只能软件模拟。", + "preflight.accel-off.title": "当前没有可用的硬件加速", + "preflight.accel-ok.detail": "启动会走硬件加速;下面的配置按这台机器的显卡与内存推荐。", + "preflight.accel-ok.title": "硬件加速可用({0})", + "preflight.whpx-off.labelInstaller": "一键开启(需管理员)", + "preflight.whpx-off.detailInstaller": "点下面的按钮会自动开启 HypervisorPlatform + VirtualMachinePlatform(需要管理员确认),完成后重启电脑。", + "preflight.whpx-off.labelStore": "打开「Windows 功能」窗口", + "preflight.whpx-off.detailStore": "商店版不能自行改系统功能。按 Win+R → 输入 optionalfeatures → 勾选「Windows 虚拟机监控程序平台」(HypervisorPlatform)与「虚拟机平台」→ 确定 → 重启。", + "preflight.whpx-ok.detailRestart": "功能已启用;如果加速仍不可用,重启一次让 Hypervisor 起来。", + "preflight.whpx-ok.detailRunning": "Hypervisor 正在运行,WHPX 可用。", + "preflight.whpx-ok.title": "Windows 虚拟机监控程序平台已启用", + "preflight.vt-unknown.label": "手动确认", + "preflight.vt-unknown.detail": "可能是主板/权限限制。若启动时提示没有硬件加速,请手动进 BIOS 确认 VT-x / SVM 已开启。", + "preflight.vt-unknown.title": "读不到 CPU 虚拟化状态", + "preflight.vt-ok.detail": "{0} · {1} 核 / {2} 线程", + "preflight.vt-ok.title": "CPU 虚拟化已在 BIOS 开启", + "preflight.vt-bios-off.label": "需要重启进 BIOS,无法自动完成", + "preflight.vt-bios-off.detail": "重启进 BIOS/UEFI,把 Intel VT-x(Intel)或 SVM Mode(AMD)设为 Enabled,保存后回来重新体检。联想/戴尔/华硕一般在 Advanced → CPU Configuration 里;品牌机可能叫 Virtualization Technology。", + "preflight.vt-bios-off.title": "CPU 虚拟化在 BIOS 里没开", + "preflight.vt-unsupported.detail": "只能走软件模拟,速度会慢 5~10 倍。轻量应用还能用,大型游戏不建议。", + "preflight.vt-unsupported.title": "这颗 CPU 不支持硬件虚拟化", + "preflight.why.auto": "交给自动降级链去试", + "preflight.why.intel": "Intel 核显走 host 才能用上硬件加速;若崩溃会自动降级", + "preflight.why.amd": "AMD 显卡走 host 才能用上硬件加速;若崩溃会自动降级", + "preflight.why.nvidia": "NVIDIA 驱动成熟,host 直通通常最快", + "preflight.why.lowVram": "显存很小,用 swangle 更稳", + "preflight.why.unknownGpu": "显卡型号读不到,交给自动降级链去试", + "preflight.why.noAccel": "没有可用的硬件加速,先用软件渲染保证画面能出来", + "preflight.vram": "{0} GB 显存{1}", + "preflight.vramIntegrated": "(核显,其余走共享内存)", + "preflight.vramUnknown": "显存未知", + "preflight.driverVersion": " · 驱动 {0}", + "preflight.driverDate": "({0})", + "preflight.driverDescription": "由「本机体检 · 自动配置」生成:{0}。{1}", + "preflight.driverAccelOk": "硬件加速可用。", + "preflight.driverAccelNone": "当前无硬件加速。", + "list.sep": ";", + "list.sepComma": "、", + "drivers.fileErrors": "{0}:{1}", + "engine.vmStartFailed": "虚拟机没能启动", + "engine.needProvision": "运行时组件尚未部署完成", + "engine.needSysimg": "还差系统镜像:点「下载系统镜像」即可", + "engine.bootServices": "Android 已引导但系统服务未就绪(可能停在首次开机设置界面,请在虚拟机窗口里完成向导)", + "engine.bootKernel": "Android 内核未完成引导,请查看运行时日志(可能镜像损坏或加速未生效)", + "engine.adbConnectFailed": "虚拟机已启动,但 adb 未能连接:请在虚拟机里开启「开发者选项 → ADB over network」后重试", + "engine.runtimeStartFailed": "安卓运行时未能启动", + "engine.adbUnauthorized.hint": "模拟器停在「允许 USB 调试?」对话框。请在那个模拟器窗口里点「允许」——勾选「一律允许使用这台计算机进行调试」再点,之后就不会再问。若窗口点不动或一直不出现:设置 → 运行时 → 清空安卓数据后重试(会清掉已装应用,重新安装即可,不会影响 APK 文件)。", + "engine.adbUnauthorized.title": "安卓调试授权未完成(需要点一次「允许」)", + "engine.adbMissing": "缺少 adb:点击「一键部署」自动下载", + "preflight.whpx-off.title": "「虚拟机监控程序平台」没有启用", + "adb.install.INSTALL_FAILED_NO_MATCHING_ABIS": "安装失败:这个应用只提供 ARM 原生库(多数国产应用如此),当前系统镜像没有 ARM 转译层。ApkStart 会自动切换到内置新版翻译层的兼容镜像并重试。", + "adb.install.INSTALL_FAILED_OLDER_SDK": "安装失败:应用要求的 Android 版本高于当前运行时(需更高系统镜像)。", + "adb.install.INSTALL_PARSE_FAILED_NO_CERTIFICATES": "安装失败:APK 没有有效签名,无法安装。", + "adb.install.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES": "安装失败:与已安装版本签名不一致,请先卸载旧版再装。", + "adb.install.INSTALL_FAILED_VERSION_DOWNGRADE": "安装失败:设备上已安装更高版本,不能降级覆盖。", + "adb.install.INSTALL_FAILED_INSUFFICIENT_STORAGE": "安装失败:运行时磁盘空间不足,请清理后重试。", + "adb.install.INSTALL_FAILED_INVALID_APK": "安装失败:APK 文件损坏或不完整(可能下载未完成),请重新获取。", + "adb.install.INSTALL_FAILED_INVALID_URI": "安装失败:APK 路径含特殊字符,请把文件移到纯英文路径后重试。", + "adb.install.INSTALL_FAILED_ALREADY_EXISTS": "安装失败:已存在同名应用且签名不同,请先卸载。", + "adb.install.INSTALL_FAILED_UPDATE_INCOMPATIBLE": "安装失败:与已安装版本签名不一致,请先卸载旧版。", + "adb.install.INSTALL_FAILED_DEPRECATED_SDK_VERSION": "安装失败:这是面向很老 Android 版本的应用(targetSdk 过低),Android 14 默认禁止安装。ApkStart 会自动用官方绕过参数重试。", + "adb.install.INSTALL_FAILED_TEST_ONLY": "安装失败:这是仅供测试的应用包,已自动加上测试包参数重试。", + "adb.install.INSTALL_FAILED_MISSING_SHARED_LIBRARY": "安装失败:应用依赖的设备特性(如特定厂商库)在当前运行时不存在。", + "adb.install.INSTALL_FAILED_USER_RESTRICTION": "安装失败:系统限制了安装,请重启运行时后重试。", + "adb.install.INSTALL_FAILED_CONFLICTING_PROVIDER": "安装失败:与已有应用的 ContentProvider 冲突,请卸载冲突应用。", + "adb.install.INSTALL_FAILED_INTERNAL_ERROR": "安装失败:系统内部错误(常见于存储空间不足或开机未完成),请重启运行时后重试。", + "adb.install.withTag": "{0}({1})", + "adb.install.failedRaw": "安装失败:{0}", + "adb.install.noReason": "安装失败,未获得明确原因", + "adb.install.missingApk": "APK 不存在: {0}", + "adb.install.noSplits": "没有可安装的分片 APK", + "adb.install.splitFailed": "拆分 APK 安装失败", + "adb.exec.failed": "adb {0} 失败: {1}", + "adb.launch.appName": "应用", + "adb.launch.antiEmulator": "{0} 检测到模拟器 / 转译环境后主动退出(反模拟、反调试或安全校验),属于应用自身限制,不是故障;ApkStart 无法绕过,详见内置手册 6.3。", + "adb.launch.translationCrash": "{0} 启动后崩溃:应用与 ARM 翻译层不兼容(常见于反调试 / 反模拟检测或 native hook 冲突)。若运行时尚未启用兼容镜像会自动切换重试一次;已启用仍崩溃则属于应用兼容性限制,不是故障,详见内置手册 6.3。", + "adb.launch.missingNativeLib": "{0} 启动后崩溃:缺少设备原生库(应用可能只提供 ARM 版本)。若运行时尚未启用 ARM 翻译层会自动切换兼容镜像重试;已启用仍崩溃多为应用限制,详见内置手册 6.3。", + "adb.launch.appException": "{0} 启动即崩溃(应用内部异常,可能与模拟器环境或缺少 Google 服务有关)。", + "adb.launch.denied": "{0} 启动失败:系统拒绝了启动请求(权限或签名问题)。", + "adb.launch.failedWithLog": "{0} 未能启动:{1}", + "adb.launch.failedNoProcess": "{0} 未能启动(进程未存活)", + "adb.launch.stillLoading": "(应用仍在加载中)", + "installer.noSplits": "这个安装包里没有找到 APK 分片(可能不是 .apks/.xapk)", + "installer.baseParseFailed": "拆分包的 base APK 解析失败", + "installer.compat.downloading": "首次安装 ARM 应用:正在下载兼容镜像(约 1.5GB,只需一次)…", + "installer.compat.downloadFailed": "兼容镜像下载失败,请检查网络后重试", + "installer.compat.switching": "正在切换到兼容镜像并重启运行时…", + "installer.compat.runtimeUnavailable": "切换兼容镜像后运行时不可用", + "installer.compat.restoring": "正在恢复已装应用 {0}…", + "installer.parsing": "正在解析 APK…", + "installer.recognized": "已识别 {0}({1})", + "installer.preparing": "正在准备安卓运行时…", + "installer.runtimeUnavailable": "运行时不可用", + "installer.armSwitching": "这个应用只有 ARM 库,正在切换到兼容镜像…", + "installer.updating": "正在更新应用…", + "installer.installing": "正在安装应用…", + "installer.armSwitchingReinstall": "这个应用只有 ARM 库,正在切换到兼容镜像后重装…", + "installer.switchedReinstalling": "已切换兼容镜像,正在重新安装…", + "installer.stillFailedAfterSwitch": "已切换到 Android 14 兼容镜像并重启运行时,但 {0} 仍然安装失败({1})。请检查磁盘空间与网络后重试;若一直失败,到「设置 → 诊断与修复」导出诊断报告反馈。", + "installer.shortcutCreating": "正在创建桌面快捷方式…", + "installer.shortcutFailed": "快捷方式创建失败:{0}", + "installer.warn.minSdk": "此应用要求 Android {0}+,高于当前运行时,可能无法正常运行。", + "installer.warn.iconPlaceholder": "应用图标无法解析(可能是特殊格式的自适应图标),快捷方式暂时使用占位图标。", + "installer.warn.iconWebp": "应用图标(WebP)解码失败,快捷方式暂时使用占位图标。", + "installer.done": "{0} 安装完成", + "installer.shortcutDescription": "{0} — 由 ApkStart 运行", + "installer.shortcutCreateFailed": "创建快捷方式失败", + "installer.displaySkipped": "显示适配跳过:{0}", + "installer.netReady": "虚拟机网络就绪({0})", + "installer.wifiReconnecting": "虚拟机连不上 Wi-Fi,正在尝试重新连接…", + "installer.netRestored": "虚拟机网络已恢复({0})", + "installer.wifiReconnectFailed": "自动重连 Wi-Fi 失败:{0}", + "installer.netNotReady": "虚拟机网络还没就绪,先启动应用(联网页面可能稍后才加载出来)", + "installer.reinstalling": "应用文件缺失(快照与数据不一致),正在用本地备份自动重装…", + "installer.autoInstallFailed": "自动安装失败:{0}", + "installer.exitedRetry": "应用启动后退出(第 {0} 次),正在自动重试…", + "installer.exitedReset": "应用连续退出,正在重置应用数据后重试…", + "installer.unstable": "应用启动后立即退出,已自动重试并重置应用数据仍未成功", + "installer.armDisabledSwitching": "当前运行时未启用 ARM 翻译层,正在自动切换兼容镜像后重试…", + "provision.accel.whpx": "WHPX 硬件加速已启用", + "provision.accel.aehd": "AEHD 硬件加速已启用", + "provision.accel.aehdNoCheck": "AEHD 硬件加速已启用(emulator-check 缺失,按驱动判定)", + "provision.hv.notWindows": "非 Windows 平台", + "provision.hv.present": "虚拟机平台组件存在(可用性由运行时引擎检测)", + "provision.hv.missing": "未检测到 Windows Hypervisor Platform 组件:可在「启用或关闭 Windows 功能」中勾选「虚拟机平台」后重启", + "emulator.exit.normal": "正常退出", + "emulator.exit.badArgs": "启动参数或环境错误", + "emulator.exit.accessViolation": "0xC0000005 访问冲突,渲染后端崩溃", + "emulator.exit.stackOverflow": "0xC00000FD 栈溢出", + "emulator.exit.dllLoad": "0xC0000135 依赖 DLL 加载失败(原因待查,见内置手册 6.8)", + "emulator.exit.accessDenied": "0xC0000022 拒绝访问(驱动或权限问题)", + "emulator.exit.badImage": "0xC000007B 镜像位数不匹配或 DLL 损坏", + "emulator.cleanup.leftover": "清理 {0} 个残留模拟器进程", + "emulator.qemuImgFailed": "qemu-img {0} 失败: {1}", + "emulator.resize2fsMissing": "缺少 resize2fs.exe", + "emulator.resize2fsFailed": "resize2fs 失败: {0}", + "emulator.exited": "运行时已退出(code={0})", + "emulator.exitedWithMeaning": "运行时已退出(code={0},{1})", + "emulator.resize.overlay": "安卓正在用快速启动的差量盘,就地扩容改不到它(目标 {0} GB)。需要「重置安卓数据」后按新容量重建 /data —— 已装应用和存档会被清空,请先确认。", + "emulator.resize.fsShort": "镜像已扩到 {0} GB,但文件系统只到 {1} GB(resize2fs 没成功)。可以再点一次「立即扩容」,或清理磁盘后重试。", + "emulator.start.relaunch": "上一次的模拟器已经退出,重新开机…", + "emulator.start.noEngine": "未安装运行时引擎,请先在「运行时」页完成部署", + "emulator.start.noImage": "系统镜像未就绪,请先在「运行时」页下载 Android 系统镜像", + "emulator.start.diskLowAvd": "磁盘空间不足:安卓数据目录({0})所在磁盘只剩 {1} GB,运行时至少要 {2} GB 可用。请在「设置 → 系统集成 → 安卓数据目录」把它改到空间充足的盘(例如 D:),或先清理磁盘。你的应用与存档不会被自动删除。", + "emulator.start.diskLowRuntime": "运行时目录({0})所在磁盘只剩 {1} GB,连日志和临时文件都写不下。请清理磁盘,或把「运行时数据目录」也换到别的盘。", + "emulator.drivers.loadFailed": "驱动加载失败(已忽略,按默认参数启动):{0}", + "emulator.drivers.applied": "已应用驱动:{0}", + "emulator.drivers.none": "未匹配到任何驱动,按默认参数启动", + "emulator.drivers.errors": "有 {0} 个驱动文件没加载成功(设置 → 驱动 里能看到原因)", + "emulator.drivers.gpuFixed": "驱动把渲染后端固定为 {0}", + "emulator.drivers.softwareLabel": "{0} / 驱动要求软件模拟", + "emulator.drivers.forceTcg": "驱动要求关闭硬件加速(走软件模拟)", + "emulator.gpu.vulkanRetry": "上次 host 渲染崩溃疑似 Vulkan 导致,本次以 -feature -Vulkan 重试硬件加速", + "emulator.gpu.badBackend": "上次 {0} 渲染后端启动即崩溃,本次改用 {1} 先试", + "emulator.boot.attempt": "启动运行时(第 {0}/{1} 次:{2})…", + "emulator.boot.diskFull": "磁盘空间不足,已停止重试(不会动你的应用与存档)。", + "emulator.boot.titleHint": "{0}:{1}", + "emulator.boot.retry": "{0},自动换一组参数重试…", + "emulator.boot.waiting": "正在开机… {0}s", + "emulator.boot.ready": "运行时就绪({0}s,{1})", + "emulator.boot.noNetwork": "⚠ 安卓虚拟机暂时没连上网(Wi-Fi 未关联或没拿到地址)。需要联网的应用打开后可能一直黑屏:稍后重开应用即可;若持续无网,可在「设置 → 修复网络」重连(不会删除已装应用)。", + "emulator.boot.timeout": "开机超时(可能是首次引导较慢或硬件加速未生效)", + "emulator.boot.failed": "运行时多次尝试仍未能启动({0})。\n{1}\n\n已尝试:{2}\n诊断报告:{3}", + "updater.noInstaller": "这个版本没有可自动安装的安装包,请到 GitHub 发布页手动下载", + "updater.incrementalUnavailable": "增量更新不可用({0}),改用完整包…", + "updater.downloading": "正在下载 {0}…", + "updater.downloadProgress": "下载中 {0}", + "updater.downloadPartProgress": "下载中 {0}(第 {1}/{2} 片){3}", + "updater.reuseFull": "已有下载好的更新包,直接复用", + "updater.extracted": "更新包已解压完成", + "updater.downloaded": "安装包已下载完成", + "updater.fetching": "正在获取{0}…", + "updater.label.manifest": "更新清单", + "updater.label.app": "增量代码包", + "updater.manifestMismatch": "清单版本与发行版不一致", + "updater.appHashMismatch": "增量代码包校验失败(sha256 不符)", + "updater.reuseIncremental": "已有下载好的增量包,直接复用", + "updater.appFilesBad": "增量代码包有 {0} 个文件校验不通过", + "updater.incrementalVerified": "增量包已校验完成", + "updater.partSizeBad": "分片 {0} 大小不对({1} ≠ {2}),已中止,可重试", + "updater.assembledSizeBad": "更新包拼装后大小不对({0} ≠ {1}),已中止,可重试", + "updater.extracting": "正在解压 {0}/{1}", + "doctor.plan.hardware": "{0} / 硬件加速", + "doctor.plan.software": "{0} / 软件模拟", + "doctor.plan.noAccel": "关闭加速的软件模拟(慢,但兼容性最好)", + "doctor.plan.conservative": "保守冷启动(最小内存 + 清快照)", + "sources.tooManyRedirects": "重定向次数过多", + "sources.invalidUrl": "地址无效", + "sources.timeout": "连接超时", + "sources.skipped": "暂时跳过({0} 分钟内不再尝试)", + "sources.hint.rateLimited": "(被限流,已暂停使用该源一段时间)", + "sources.hint.giteeToken": "(可稍后重试,或在设置里填只读 token 提高额度)", + "sources.noData": "无数据", + "sources.whySeparator": ";", + "sources.unreachable": "连不上更新服务器({0})", + "sources.probe.start": "正在测速 {0} 个下载源…", + "sources.probe.item": "正在测速第 {0}/{1} 个源:{2}…", + "sources.probe.best": "已选最快的源:{0}(约 {1} MB/s)", + "incremental.manifestInvalidJson": "增量清单不是合法 JSON", + "incremental.manifestSchema": "增量清单版本不支持", + "incremental.manifestNoVersion": "增量清单缺少版本信息", + "incremental.manifestNoApp": "增量清单缺少代码包信息", + "download.tooManyRedirects": "重定向次数过多", + "download.timeout": "连接超时", + "download.resume416": "无法验证续传文件,服务器返回 HTTP 416", + "download.httpFailed": "下载失败 HTTP {0}: {1}", + "download.resumeRangeMismatch": "服务器返回了不匹配的续传范围", + "download.stalled": "连接停滞(长时间无数据)", + "download.stalledNoData": "连接停滞(无数据超时)", + "download.cancelled": "已取消", + "download.interrupted": "连接被中断", + "download.checksumMismatch": "校验失败:期望 {0}… 实际 {1}…", + "download.chunkRequestRejected": "分块请求被拒绝 HTTP {0}", + "download.chunkRejected": "分块被拒绝 HTTP {0}", + "download.chunkRangeMismatch": "服务器返回了不匹配的分块范围", + "download.chunkOverflow": "分块响应超出请求范围", + "download.chunkIncomplete": "分块未完整返回", + "download.chunkDownloadFailed": "分块下载失败({0}-{1}):{2}", + "download.chunkFailed": "分块失败({0}-{1}):{2}", + "download.incomplete": "下载不完整:{0}/{1} 字节", + "download.allSourcesFailed": "所有下载源均失败:\n{0}", + "download.noAddress": "没有可用的下载地址", + "download.slowSource": "该源速度过低({0} KB/s),换源重试", + "appwin.rotateLandscape": "正在切换到横屏(重启安卓运行时,约 30-60 秒)…", + "appwin.rotatePortrait": "正在切回竖屏(重启安卓运行时,约 30-60 秒)…", + "manual.topic.overview": "使用手册 · 目录", + "manual.topic.accel": "未启用硬件加速 / 开机很慢", + "manual.topic.install": "安装失败(INSTALL_FAILED_*)", + "manual.topic.arm": "ARM 转译层 / ARM 应用装不上", + "manual.topic.adb": "adb 未授权(允许 USB 调试)", + "manual.topic.startup": "打不开 / 带旋转按钮的窗口", + "manual.topic.other": "其它启动类问题速查表", + "manual.topic.sound": "应用没有声音 / 声音很小", + "manual.topic.dll": "商店版启动失败 / 0xC0000135(DLL 加载失败)", + "manual.topic.mic": "应用用不到麦克风 / 无法语音通话录音", + "manual.topic.gpu": "独显 / 核显渲染(显卡偏好)", + "manual.topic.diagnose": "内置手册与自动教程", + "manual.topic.settings": "设置页导航", + "manual.topic.storage": "数据与目录说明", + "manual.topic.network": "自动检测与网络修复" +} diff --git a/src/main.js b/src/main.js index 70741b12..b3950c91 100644 --- a/src/main.js +++ b/src/main.js @@ -1,4 +1,5 @@ 'use strict'; +const { t, resolveLocale, getCatalog } = require('./core/i18n'); /** * ApkStart 主进程 * 职责:窗口 / 托盘 / 单实例 / 命令行分发(双击 apk、桌面快捷方式启动)/ IPC @@ -177,7 +178,7 @@ function bootstrapBundledRuntime() { if (looksForeignBundle && fs.existsSync(path.join(bundled, 'emulator', 'emulator.exe'))) { store.saveSettings({ runtime: { dir: bundled } }); bundledRuntimeDir = bundled; - appLog(`运行时目录指向别的安装包(${current}),改用随包内置运行时 ${bundled}`); + appLog(t('v062.m0000', [current, bundled])); return; } const currentExe = path.join(current, 'emulator', 'emulator.exe'); @@ -487,14 +488,14 @@ async function restartForOrientation(landscape, { reloadApp = true } = {}) { if (!appWin || !appWin.isOpen) return false; const pkg = appWin.pkg; store.saveSettings({ display: { landscape: !!landscape } }); - send('runtime:log', landscape ? '切换到横屏:正在重启安卓运行时…' : '切换回竖屏:正在重启安卓运行时…'); + send('runtime:log', t(landscape ? 'display.restartingLandscape' : 'display.restartingPortrait')); try { // 重启会把模拟器窗口销毁、再重新建一个。这段时间屏幕上不能空着, // 独立窗口模式下先把带提示的壳窗口亮出来(新窗口接上后 openDetached 会收掉)。 try { appWin.showWaiting(landscape - ? '正在切换到横屏(重启安卓环境,约 40 秒,只需一次)…' - : '正在切换回竖屏(重启安卓环境,约 40 秒,只需一次)…'); + ? t('v062.m0001') + : t('v062.m0002')); } catch (_) { /* 窗口可能刚关 */ } // 先把嵌入窗口摘下来,避免重启过程中在桌面留下黑窗 try { await appWin.agent.detach(); } catch (_) { /* ignore */ } @@ -589,7 +590,7 @@ async function attachAppWindow() { const fallback = await appWin.embed().catch(() => false); if (fallback) { try { - send('toast', { type: 'info', message: '模拟器原生窗口没能显示,本次临时用内置窗口接管画面' }); + send('toast', { type: 'info', message: t('v062.m0006') }); } catch (_) { /* 主窗口可能已关闭 */ } } return fallback; @@ -667,8 +668,8 @@ async function openAppWindow(pkg, tip) { appWin.setState({ // 需要重启换面板时,直接把「为什么慢」写在提示里,别让用户对着 40 秒空屏猜 tip: willRestart - ? `正在为《${String(label).slice(0, 20)}》切换到${land ? '横屏' : '竖屏'}(重启安卓环境,约 40 秒,只需一次)…` - : (tip || '正在启动安卓运行时…'), + ? t('v058.m0000', [String(label).slice(0, 20), land ? t('v058.m0001') : t('v058.m0002')]) + : (tip || t('m0374')), ready: false, landscape: land, }); @@ -707,7 +708,7 @@ async function autoDeploy({ force = false } = {}) { const COOLDOWN_MS = 30 * 60 * 1000; const lastFail = Number(store.getSettings().runtime.deployFailedAt || 0); if (!force && lastFail && Date.now() - lastFail < COOLDOWN_MS) { - appLog(`autoDeploy 冷却中(上次失败于 ${new Date(lastFail).toISOString()}),跳过自动重试`); + appLog(t('v058.m0003', [new Date(lastFail).toISOString()])); return { ok: false, error: 'cooldown', cooldown: true, until: lastFail + COOLDOWN_MS }; } deploying = true; @@ -724,8 +725,8 @@ async function autoDeploy({ force = false } = {}) { // 镜像已经在包里(压缩形态),第一次开机由 engine.ensure() 就地展开; // 这里再下一套 1.5GB 纯属浪费,也正是用户抱怨的「装完还在下镜像」。 if (bundledRuntimeDir && env.adb.ok && env.emulator.ok && env.sysimg.ok) { - appLog(`autoDeploy 跳过:运行时随包内置(${bundledRuntimeDir}),无需联网` - + (env.needsExtract ? ',镜像将在首次启动时本地展开' : '')); + appLog(t('v058.m0004', [bundledRuntimeDir]) + + (env.needsExtract ? t('v058.m0005') : '')); // 这是**成功**,不是失败。以前这里直接 return 没置 succeeded,finally 就按 // 失败写了 deployFailedAt —— 随包内置运行时的机器每 30 分钟被记一次 // 「部署失败」,日志里那句「上次失败于 …」其实来自一次正常的跳过, @@ -734,7 +735,7 @@ async function autoDeploy({ force = false } = {}) { return { ok: true, source: 'bundled', needsExtract: !!env.needsExtract }; } if (bundledRuntimeDir && !env.emulator.ok) { - appLog(`autoDeploy 跳过联网下载:运行时目录随包内置(${bundledRuntimeDir}),交给诊断流程`); + appLog(t('v058.m0006', [bundledRuntimeDir])); // 交回诊断流程同样不是「下载失败」,别进冷却。 succeeded = true; return { ok: false, error: 'bundled', bundled: true }; @@ -744,28 +745,28 @@ async function autoDeploy({ force = false } = {}) { // 整包拿不到(没网 / 还没发过该资产 / 被限流)再逐个从官方源装。 if (needEngine && store.getSettings().runtime.preferGithubRuntime !== false) { try { - progress({ message: '正在从 GitHub 下载运行时…' }); + progress({ message: t('m0375') }); await runtime.provisioner.installRuntimePack(progress); const afterPack = await runtime.provisioner.checkEnv(); if (afterPack.emulator.ok && afterPack.sysimg.ok) { succeeded = true; return { ok: true, source: 'github' }; } - progress({ message: '运行时整包不完整,改用官方源补齐…' }); + progress({ message: t('m0376') }); } catch (e) { - progress({ message: `GitHub 运行时不可用(${e.message}),改用官方源…` }); + progress({ message: t('m0377', [e.message]) }); } } if (!env.adb.ok) { - progress({ message: '正在准备 adb…' }); + progress({ message: t('m0378') }); await runtime.provisioner.installAdb(progress); } if (!env.emulator.ok) { - progress({ message: '正在准备 Android 运行时…' }); + progress({ message: t('m0379') }); await runtime.provisioner.installEmulator(progress); } if (!env.sysimg.ok) { - progress({ message: '正在准备 Android 系统镜像…' }); + progress({ message: t('m0380') }); await runtime.provisioner.installSystemImage(progress); } const after = await runtime.provisioner.checkEnv(); @@ -823,7 +824,7 @@ function enableWindowsFeature(feature) { proc.on('exit', (code) => resolve({ ok: code === 0, cancelled: code === 1223, restart: true, code, feature, })); - proc.on('error', () => resolve({ ok: false, feature, error: '无法启动 PowerShell' })); + proc.on('error', () => resolve({ ok: false, feature, error: t('m0381') })); }); } @@ -849,9 +850,9 @@ async function enableWhpxFeatures() { } /** 商店版专用的手动引导文案:MSIX 包固定 mediumIL,提权通常拿不到 */ -const MSIX_ACCEL_HINT = '商店版无法自行提权。请手动开启一次:' - + '按 Win+R → 输入 optionalfeatures → 勾选「Windows 虚拟机监控程序平台」' - + '(HypervisorPlatform,WHPX 真正需要的那个),确定后重启电脑。'; +const MSIX_ACCEL_HINT = () => t('v058.m0007') + + t('v058.m0008') + + t('v058.m0009'); // ---------------- 主窗口 ---------------- @@ -902,7 +903,7 @@ function createWindow({ show = true } = {}) { if (quitting) return; e.preventDefault(); mainWindow.hide(); - notify('ApkStart 仍在后台运行', '点击托盘图标可重新打开;右键托盘可退出。'); + notify(t('m0382'), t('m0383')); }); if (IS_DEV) mainWindow.webContents.openDevTools({ mode: 'detach' }); @@ -972,8 +973,10 @@ function openManual(payload = {}) { if (/^https?:\/\//i.test(url)) shell.openExternal(url); }); } - manualWindow.setTitle(i18n.t('ApkStart 使用手册 · {title}', { title: i18n.t(target.title) })); - manualWindow.loadFile(path.join(__dirname, 'ui', 'manual.html'), { hash: target.anchor }); + manualWindow.setTitle(t('v062.m0007', [target.title])); + let manualFile = path.join(__dirname, 'ui', manual.fileForLocale(resolveLocale(i18n.getLanguage()))); + if (!fs.existsSync(manualFile)) manualFile = path.join(__dirname, 'ui', 'manual.html'); + manualWindow.loadFile(manualFile, { hash: target.anchor }); manualWindow.once('ready-to-show', () => { if (!manualWindow || manualWindow.isDestroyed()) return; manualWindow.show(); @@ -1048,9 +1051,9 @@ async function runAutodebug({ force = false } = {}) { // 只有「新的 error」才提醒:warn/info 留给设置页自己看,不打断用户。 const fresh = added.filter((i) => i.severity === 'error'); if (fresh.length) { - const text = fresh.map((i) => i.title).join(';'); - send('toast', { type: 'error', message: `自动检测发现新问题:${text}(设置 → 诊断与修复)` }); - notify('自动检测发现新问题', `${text}。打开 ApkStart 的「设置 → 诊断与修复」可以一键处理。`); + const text = fresh.map((i) => i.title).join(t('list.sep')); + send('toast', { type: 'error', message: t('v062.m0008', [text]) }); + notify(t('v062.m0009'), t('v062.m0010', [text])); appLog(`autodebug new issues: ${fresh.map((i) => i.code).join(',')}`); } } @@ -1125,17 +1128,15 @@ function buildTray() { ? ((store.getApp(currentAppPkg) || {}).label || currentAppPkg) : ''; const menu = Menu.buildFromTemplate([ - { label: i18n.t('打开 ApkStart'), click: () => showWindow() }, - { label: i18n.t('使用手册'), click: () => openManual({ topic: 'overview', reason: 'tray' }) }, + { label: t('m0384'), click: () => showWindow() }, + { label: t('v062.m0011'), click: () => openManual({ topic: 'overview', reason: 'tray' }) }, { type: 'separator' }, ...(apps.length ? apps.map((a) => ({ label: a.label, click: () => runLaunch(a.package) })) - : [{ label: i18n.t('还没有安装应用'), enabled: false }]), + : [{ label: t('m0385'), enabled: false }]), { type: 'separator' }, { - label: hasRunning - ? i18n.t('关闭当前应用({name})', { name: runningLabel }) - : i18n.t('关闭当前应用'), + label: hasRunning ? t('v058.m0010', [runningLabel]) : t('v058.m0011'), enabled: !!hasRunning, click: () => { const pkg = currentAppPkg; @@ -1145,25 +1146,19 @@ function buildTray() { }, }, { - label: wantLandscapeFor(currentAppPkg) - ? i18n.t('切回竖屏(需重启运行时)') - : i18n.t('切换横屏(需重启运行时)'), + label: wantLandscapeFor(currentAppPkg) ? t('v058.m0012') : t('v058.m0013'), enabled: !!currentAppPkg, click: () => { rotateCurrentApp().catch(() => {}); }, }, { - label: displaySettings().mode === 'fullscreen' - ? i18n.t('切回竖屏窗口') - : i18n.t('全屏(自适应屏幕)'), + label: displaySettings().mode === 'fullscreen' ? t('m0386') : t('m0387'), click: () => { toggleDisplayMode(); }, }, - { label: i18n.t('重建桌面/开始菜单快捷方式'), click: () => { installer.ensureShortcuts().catch(() => {}); } }, - { label: i18n.t('同步共享目录'), click: () => sharer.sync() }, - { label: i18n.t('设置'), click: () => { showWindow(); send('ui:navigate', 'settings'); } }, + { label: t('m0388'), click: () => { installer.ensureShortcuts().catch(() => {}); } }, + { label: t('m0389'), click: () => sharer.sync() }, + { label: t('m0390'), click: () => { showWindow(); send('ui:navigate', 'settings'); } }, { - label: updateInfo && updateInfo.hasUpdate - ? i18n.t('发现新版本 {tag}', { tag: updateInfo.tag }) - : i18n.t('检查更新'), + label: updateInfo && updateInfo.hasUpdate ? t('m0169', [updateInfo.tag]) : t('m0392'), click: async () => { showWindow(); send('ui:navigate', 'settings'); @@ -1172,25 +1167,22 @@ function buildTray() { if (info && info.hasUpdate && info.asset) { const r = await dialog.showMessageBox(mainWindow || undefined, { type: 'question', - title: i18n.t('发现新版本'), - message: i18n.t('ApkStart {tag} 已发布,当前版本 v{version}。现在更新吗?', { - tag: info.tag, - version: app.getVersion(), - }), + title: t('m0393'), + message: t('m0394', [info.tag, app.getVersion()]), detail: (info.notes || '').slice(0, 600), - buttons: [i18n.t('立即更新'), i18n.t('稍后')], + buttons: [t('m0158'), t('m0396')], defaultId: 0, cancelId: 1, }); if (r.response === 0) runUpdate(); } else if (info && !info.hasUpdate) { - notify('已是最新版本', `ApkStart v${app.getVersion()}`); + notify(t('m0171'), `ApkStart v${app.getVersion()}`); } }, }, { type: 'separator' }, { - label: i18n.t('退出'), + label: t('m0398'), click: async () => { try { appWin.close({ keepApp: true }); } catch (_) { /* ignore */ } quitting = true; @@ -1200,7 +1192,7 @@ function buildTray() { ]); tray.setContextMenu(menu); }; - tray.setToolTip(i18n.t('ApkStart — 安卓应用运行器')); + tray.setToolTip(t('m0399')); // Windows 托盘的惯例是单击就打开主窗口(双击当然也可以)。 // 之前只绑了 double-click,用户单击没反应,会以为托盘图标坏了。 // 右键才出菜单,所以这里单击直接 showWindow 不会和菜单冲突。 @@ -1221,11 +1213,11 @@ async function runInstall(filePath) { // 同一个包正在装(用户连点了几次图标 / 拖了好几次)→ 只提示一次,别重复跑一遍安装 if (installBusy) { if (installBusy === filePath) { - send('toast', { type: 'info', message: '这个 APK 正在安装中,请稍等…' }); - return { ok: false, error: '正在安装中' }; + send('toast', { type: 'info', message: t('m0400') }); + return { ok: false, error: t('m0401') }; } - send('toast', { type: 'info', message: '已有安装任务在进行,请等它装完。' }); - return { ok: false, error: '已有安装任务在进行' }; + send('toast', { type: 'info', message: t('m0402') }); + return { ok: false, error: t('m0085') }; } installBusy = filePath; send('install:start', { file: filePath }); @@ -1234,10 +1226,10 @@ async function runInstall(filePath) { send('install:done', result); // 新建的桌面图标要让资源管理器立刻刷新,否则用户会以为「没创建快捷方式」 windowctl.refreshShell().catch(() => {}); - notify('安装完成', `${result.app.label} 已安装${result.app.shortcutPath ? ',桌面快捷方式已创建' : ''}`); + notify(t('m0404'), t('m0405', [result.app.label, result.app.shortcutPath ? t('m0406') : ''])); return result; } catch (e) { - send('install:error', { message: e.message, file: filePath }); + send('install:error', { message: e.message, file: filePath, abiRetried: !!e.abiRetried }); if (e.needsSetup) send('ui:navigate', 'setup'); // 同一条错误 8 秒内只弹一次系统通知:连续重试时不会在右下角刷屏 const now = Date.now(); @@ -1245,7 +1237,7 @@ async function runInstall(filePath) { lastInstallErr = { msg: e.message, at: now }; // 窗口在前台时用户已经看到界面里的提示,不必再弹系统通知 if (!mainWindow || !mainWindow.isVisible() || mainWindow.isMinimized()) { - notify('安装失败', e.message.slice(0, 120)); + notify(t('m0325'), e.message.slice(0, 120)); } } throw e; @@ -1259,27 +1251,27 @@ async function runInstall(filePath) { * 界面与托盘菜单共用这一条路径。 */ async function runUpdate() { - if (updateBusy) return { ok: false, error: '正在更新中' }; + if (updateBusy) return { ok: false, error: t('m0408') }; // 商店(MSIX)版不能自更新:安装目录 C:\Program Files\WindowsApps 是只读的, // 覆盖 exe 不仅会失败,还可能让包完整性校验失效、应用直接起不来。 // 更新走 Microsoft Store(ms-windows-store: 协议)。 if (store.STORE_BUILD) { shell.openExternal('ms-windows-store://downloadsandupdates').catch(() => {}); - return { ok: false, error: '商店版更新由 Microsoft Store 负责,已打开商店的「下载和更新」', manual: true }; + return { ok: false, error: t('v058.m0014'), manual: true }; } updateBusy = true; const sendProgress = (p) => send('update:progress', p); try { const info = updateInfo && updateInfo.hasUpdate ? updateInfo : await updater.check(); updateInfo = info; - if (!info.hasUpdate) return { ok: false, error: '已经是最新版本' }; + if (!info.hasUpdate) return { ok: false, error: t('m0409') }; if (!info.asset) { shell.openExternal(info.htmlUrl || Updater.repoUrl()).catch(() => {}); - return { ok: false, error: '该版本没有可直接安装的包,已打开 GitHub 发布页', manual: true }; + return { ok: false, error: t('m0410'), manual: true }; } - sendProgress({ stage: 'download', percent: 0, message: '准备下载…' }); + sendProgress({ stage: 'download', percent: 0, message: t('m0411') }); const job = await updater.prepare(info); - sendProgress({ stage: 'apply', percent: 100, message: '正在替换程序并重启…' }); + sendProgress({ stage: 'apply', percent: 100, message: t('m0412') }); updater.apply(job); // 给界面一点时间显示「即将重启」,然后走正常退出流程(before-quit 会把模拟器窗口藏好) setTimeout(() => { quitting = true; app.quit(); }, 900); @@ -1314,7 +1306,7 @@ async function runLaunch(pkg) { appLog(`launch reused in-flight ${pkg}`); return launchInFlight.promise; } - appLog(`launch queued ${pkg}(等待 ${launchInFlight.pkg} 启动完成)`); + appLog(`launch queued ${pkg} (waiting for ${launchInFlight.pkg} to finish)`); await launchInFlight.promise.catch(() => {}); } const entry = { pkg }; @@ -1358,7 +1350,7 @@ async function launchOne(pkg) { // 应用窗口(+ 开机动画)」是同时在屏幕上的 —— 用户看到的就是多个窗口乱飞。 if (mainWindow && mainWindow.isVisible() && !IS_DEV) mainWindow.hide(); // 1) 再把「应用窗口」打开显示启动动画:整个过程看不到安卓桌面,也看不到模拟器窗口 - await openAppWindow(pkg, '正在启动安卓运行时…'); + await openAppWindow(pkg, t('m0374')); /** * 原生窗口模式:**尽早、反复**把模拟器自己的窗口接出来,别让用户先对着 * 我们那张「正在启动」的壳窗口干等。 @@ -1412,7 +1404,7 @@ async function launchOne(pkg) { // 这里故意不 await:接画面和存活判定并行,谁先完成都不影响另一边。 onAppUp: () => { attachDoneEarly = true; - mark('app up (提前接画面)'); + mark(t('v058.m0016')); attachAppWindow() .then(async (ok) => { earlyAttachOk = ok; @@ -1462,8 +1454,8 @@ async function launchOne(pkg) { ? runtime.emulator.panelLandscape() : null; if (cur !== null && cur !== wantLand) { - mark(`orientation mismatch (panel=${cur ? 'landscape' : 'portrait'}, want=${wantLand}) 重启校正`); - appWin.setState({ tip: wantLand ? '正在切换到横屏…' : '正在切换到竖屏…' }); + mark(`orientation mismatch (panel=${cur ? 'landscape' : 'portrait'}, want=${wantLand}); restarting`); + appWin.setState({ tip: wantLand ? t('v058.m0018') : t('v058.m0019') }); // restartForOrientation 重启运行时后返回新的 rt(旧 client 已失效)。 // 把它返回给 installer.launch,后续的 resetDisplayOverrides / startApp // 都用新 client,否则全部静默失败(catch 吞掉,应用起不来画面)。 @@ -1471,7 +1463,7 @@ async function launchOne(pkg) { mark('orientation fixed'); if (newRt && newRt.ok) return newRt; } - appWin.setState({ tip: '正在打开应用…' }); + appWin.setState({ tip: t('m0414') }); // 沉浸式 + 关动画 + 收起锁屏:只做一次,之后每次启动都秒进 await rt.client.prepareForeground().catch(() => {}); mark('foreground ready'); @@ -1538,10 +1530,10 @@ async function launchOne(pkg) { runtime.provisioner.emulatorAccel().then((a) => { if (!a || a.ok) return; accelWarned = true; - notify('正在以软件模拟运行(很慢)', store.STORE_BUILD - ? '开启「Windows 虚拟机监控程序平台」后重启一次,速度可提升 5~10 倍。' - + '设置 → 环境自检 → 修复 会直接打开该窗口。' - : '设置 → 环境自检 → 修复 可一键开启(需管理员授权),之后重启一次。'); + notify(t('v058.m0020'), store.STORE_BUILD + ? t('v058.m0021') + + t('v058.m0022') + : t('v058.m0023')); }).catch(() => {}); } // 兜底:如果 early attach 没触发(比如嵌入模式),这里补一次。幂等,已收则无事。 @@ -1554,7 +1546,7 @@ async function launchOne(pkg) { // 下次点应用还是走同一条隐藏 → embed 的路径。 if (winAgent) armAgent(winAgent).catch(() => {}); showWindow(); - send('toast', { type: 'error', message: `启动失败:${e.message}` }); + send('toast', { type: 'error', message: t('m0302', [e.message]) }); return { ok: false, error: e.message }; } } @@ -1590,7 +1582,7 @@ function onContainerActive(on) { */ async function stopApp(pkg, opts = {}) { const target = pkg || currentAppPkg; - if (!target) return { ok: false, error: '没有正在运行的应用' }; + if (!target) return { ok: false, error: t('v058.m0024') }; const detached = displaySettings().windowEmbed === false; try { await runtime.endApp(target, { onIdle: (idle) => onContainerActive(idle) }).catch(() => {}); @@ -1667,7 +1659,7 @@ function registerIpc() { // 选文件夹(用于把运行时/镜像/已装应用挪到非系统盘) ipcMain.handle('dialog:openDir', async (_e, defaultPath) => { const r = await dialog.showOpenDialog(mainWindow, { - title: i18n.t('选择数据存放目录'), + title: t('m0416'), defaultPath: defaultPath || store.DATA_DIR, properties: ['openDirectory', 'createDirectory'], }); @@ -1697,8 +1689,8 @@ function registerIpc() { ipcMain.handle('apk:pick', async () => { const r = await dialog.showOpenDialog(mainWindow, { - title: i18n.t('选择要安装的 APK'), - filters: [{ name: i18n.t('Android 应用'), extensions: ['apk', 'apks', 'xapk'] }], + title: t('m0417'), + filters: [{ name: t('m0418'), extensions: ['apk', 'apks', 'xapk'] }], properties: ['openFile', 'multiSelections'], }); if (r.canceled) return []; @@ -1730,7 +1722,7 @@ function registerIpc() { ipcMain.handle('app:shortcut', async (_e, pkg) => { const appRecord = store.getApp(pkg); - if (!appRecord) throw new Error('应用不存在'); + if (!appRecord) throw new Error(t('m0419')); const p = installer.createShortcut(appRecord); store.upsertApp({ package: pkg, shortcutPath: p }); return { ok: true, path: p }; @@ -1755,10 +1747,10 @@ function registerIpc() { * 传 null 表示清除覆盖,回到 APK 清单解析出的天然方向。 */ ipcMain.handle('app:setOrientation', async (_e, { pkg, orientation: value }) => { - if (!pkg) return { ok: false, error: '缺少包名' }; + if (!pkg) return { ok: false, error: t('v062.m0013') }; const next = value === 'landscape' || value === 'portrait' ? value : null; store.upsertApp({ package: pkg, orientationOverride: next }); - appLog(`orientation override ${pkg} = ${next || '(跟随应用)'}`); + appLog(`orientation override ${pkg} = ${next || t('v062.m0014')}`); // 主界面列表要立刻显示新的方向文字 send('apps:changed'); return { ok: true, orientation: next, landscape: wantLandscapeFor(pkg) }; @@ -1774,6 +1766,7 @@ function registerIpc() { shell.openPath(store.APK_DIR); }); + /** * 内存 / CPU / 数据分区这几项会直接决定虚拟机怎么开、能装多大的游戏, * 保存前统一收敛一次:手改 settings.json、旧版本残留的离谱值都在这里被拉回来, @@ -1802,7 +1795,7 @@ function registerIpc() { const next = store.saveSettings(patch); // 界面语言变了:主进程词典 + 托盘菜单 + 所有已打开窗口即时切换。 // 不重载窗口,正在运行的应用和未保存的界面状态都不受影响。 - if (patch && patch.uiLanguage !== undefined) { + if (patch && (patch.uiLanguage !== undefined || patch.language !== undefined)) { i18n.setLanguage(i18n.resolveLanguage( next.uiLanguage, app.getPreferredSystemLanguages ? app.getPreferredSystemLanguages() : [app.getLocale()], @@ -1852,7 +1845,7 @@ function registerIpc() { * 再保存设置。Sharer 每次同步都动态读 store.getSettings().sharedDir,无需重启即可生效。 */ ipcMain.handle('settings:setSharedDir', async (_e, dir) => { - if (!dir || !dir.trim()) return { ok: false, error: '目录不能为空' }; + if (!dir || !dir.trim()) return { ok: false, error: t('m0420') }; const newDir = dir.trim(); const oldDir = store.getSettings().sharedDir; try { @@ -1934,7 +1927,7 @@ function registerIpc() { let driverError = ''; try { const v = drv.validateDriver(report.driver); - if (!v.ok) throw new Error(v.errors.join(';')); + if (!v.ok) throw new Error(v.errors.join(t('list.sep'))); const dir = drv.userDir(store); fs.mkdirSync(dir, { recursive: true }); driverFile = path.join(dir, `${v.driver.id}.json`); @@ -1945,7 +1938,7 @@ function registerIpc() { driverError = e.message; } - appLog(`体检自动配置:${JSON.stringify(patch.engine)} driver=${driverFile || '(未写入)'}`); + appLog(t('v058.m0025', [JSON.stringify(patch.engine), driverFile || t('v058.m0026')])); return { ok: true, settings: store.getSettings(), @@ -2024,8 +2017,8 @@ function registerIpc() { ipcMain.handle('drivers:import', async () => { const drv = require('./core/drivers'); const r = await dialog.showOpenDialog(mainWindow, { - title: i18n.t('选择驱动文件(.json)'), - filters: [{ name: i18n.t('驱动 JSON'), extensions: ['json'] }], + title: t('v058.m0027'), + filters: [{ name: t('v058.m0028'), extensions: ['json'] }], properties: ['openFile'], }); if (r.canceled || !r.filePaths.length) return { ok: false, canceled: true }; @@ -2034,7 +2027,7 @@ function registerIpc() { // 导入即启用:用户特意导入的补丁,默认应该立刻生效 const s = store.getSettings(); store.saveSettings({ drivers: { state: { ...(s.drivers.state || {}), [out.driver.id]: true } } }); - send('runtime:log', `已导入驱动:${out.driver.name} v${out.driver.version}`); + send('runtime:log', t('v058.m0029', [out.driver.name, out.driver.version])); } return { ...out, overview: await driverOverview() }; }); @@ -2044,9 +2037,9 @@ function registerIpc() { const overview = await driverOverview(); const tpl = drv.templateFromHost(overview.host); const r = await dialog.showSaveDialog(mainWindow, { - title: i18n.t('导出本机驱动模板'), + title: t('v058.m0030'), defaultPath: path.join(drv.userDir(store), `${tpl.id}.json`), - filters: [{ name: i18n.t('驱动 JSON'), extensions: ['json'] }], + filters: [{ name: t('v058.m0028'), extensions: ['json'] }], }); if (r.canceled || !r.filePath) return { ok: false, canceled: true }; fs.mkdirSync(path.dirname(r.filePath), { recursive: true }); @@ -2056,7 +2049,7 @@ function registerIpc() { ipcMain.handle('drivers:setEnabled', async (_e, { id, enabled } = {}) => { const did = String(id || ''); - if (!did) return { ok: false, error: '缺少驱动 id' }; + if (!did) return { ok: false, error: t('v058.m0032') }; const s = store.getSettings(); const prev = (s.drivers && s.drivers.state) || {}; store.saveSettings({ drivers: { state: { ...prev, [did]: !!enabled } } }); @@ -2113,12 +2106,12 @@ function registerIpc() { try { if (!doctor.vcRedistOk()) { issues.push({ - code: 'vcRedist', severity: 'error', title: '缺少 VC++ 运行库(x64)', + code: 'vcRedist', severity: 'error', title: t('m0421'), // 这一条是实测 dll 文件不存在才报,可信。但要说清:0xC0000135 不等于 // 一定是缺 VC++——商店版从 WindowsApps 起子进程也会报同码。装完若仍 // 起不来,按内置手册 6.8 继续定位,别反复重装运行库。 - hint: '实测系统缺少微软 VC++ 2015-2022(x64),安卓运行时依赖它。' - + '可一键安装;若装完仍报 0xC0000135,见内置手册 6.8——商店版还可能是子进程 DLL 路径问题。', fix: 'vcRedist', + hint: t('v064.m0000') + + t('v064.m0001'), fix: 'vcRedist', }); } accel = await runtime.provisioner.emulatorAccel().catch(() => ({ ok: false })); @@ -2133,52 +2126,52 @@ function registerIpc() { ? { code: 'accel', severity: 'error', - title: '需要开启「Windows 虚拟机监控程序平台」', - hint: '没有它只能跑纯软件模拟,开机会慢到几分钟。' - + MSIX_ACCEL_HINT - + '(商店版无法代你提权,需要你手动操作一次,之后重启。)', + title: t('v058.m0033'), + hint: t('v058.m0034') + + MSIX_ACCEL_HINT() + + t('v058.m0035'), fix: 'virtualization', } : { code: 'accel', severity: 'warn', - title: '未启用硬件加速', - hint: `${accel.note || '将回退软件模拟(能跑但很慢)。'}` - + ' 点右侧「修复」会自动开启(需要管理员授权,可能要重启一次);' - + '失败时会自动改装 AEHD 驱动。', + title: t('m0423'), + hint: `${accel.note || t('v058.m0036')}` + + t('v058.m0037') + + t('v058.m0038'), fix: 'virtualization', }); } free = doctor.freeDiskMB(runtime.provisioner.paths().root); if (free && free < 8192) { issues.push({ - code: 'disk', severity: free < 2048 ? 'error' : 'warn', title: '运行时磁盘空间紧张', - hint: `「${runtime.provisioner.paths().root}」所在盘仅剩 ${free} MB,运行时与镜像可能撑爆硬盘。`, fix: 'disk', + code: 'disk', severity: free < 2048 ? 'error' : 'warn', title: t('m0425'), + hint: t('m0426', [runtime.provisioner.paths().root, free]), fix: 'disk', }); } const rtDir = runtime.provisioner.paths().root; if (!doctor.isAsciiPath(rtDir)) { issues.push({ - code: 'pathRuntime', severity: 'warn', title: '运行时目录含中文/特殊字符', - hint: '部分运行时组件对中文路径敏感,可能引发启动失败。建议改到纯英文目录。', fix: 'path', + code: 'pathRuntime', severity: 'warn', title: t('m0427'), + hint: t('m0428'), fix: 'path', }); } const env = await runtime.provisioner.checkEnv().catch(() => ({})); if (!env.adb || !env.adb.ok) { - issues.push({ code: 'adb', severity: 'error', title: 'adb 工具链缺失', hint: '无法连接安卓运行时。', fix: 'deploy' }); + issues.push({ code: 'adb', severity: 'error', title: t('m0429'), hint: t('m0430'), fix: 'deploy' }); } if (!env.emulator || !env.emulator.ok) { - issues.push({ code: 'emulator', severity: 'error', title: '运行时引擎未安装', hint: '需要先部署运行时引擎(约 440MB)。', fix: 'deploy' }); + issues.push({ code: 'emulator', severity: 'error', title: t('m0431'), hint: t('m0432'), fix: 'deploy' }); } if (!env.sysimg || !env.sysimg.ok) { - issues.push({ code: 'sysimg', severity: 'warn', title: '系统镜像未就绪', hint: '需要先下载 Android 系统镜像(约 1.5GB)。', fix: 'deploy' }); + issues.push({ code: 'sysimg', severity: 'warn', title: t('m0433'), hint: t('m0434'), fix: 'deploy' }); } // 残留锁文件:会让下一次启动被判定为「AVD 已被占用」而 FATAL const avdHome = runtime.provisioner.paths().avdHome; let locked = false; try { for (const f of fs.readdirSync(avdHome)) { if (/\.lock$/i.test(f)) { locked = true; break; } } } catch (_) { /* ignore */ } if (locked) { - issues.push({ code: 'lock', severity: 'warn', title: '检测到上次残留的锁文件', hint: '可能导致下一次启动被判定为「AVD 已被占用」。', fix: 'lock' }); + issues.push({ code: 'lock', severity: 'warn', title: t('m0435'), hint: t('m0436'), fix: 'lock' }); } } catch (_) { /* 自检失败不阻断使用 */ } return { issues, accel, free }; @@ -2273,10 +2266,10 @@ function registerIpc() { ipcMain.handle('app:confirm', async (_e, opts = {}) => { const { response } = await dialog.showMessageBox(mainWindow || undefined, { type: opts.type || 'question', - title: i18n.t(opts.title || '确认'), - message: i18n.t(opts.message || ''), - detail: i18n.t(opts.detail || ''), - buttons: [i18n.t('取消'), i18n.t(opts.okLabel || '确定')], + title: opts.title || t('m0437'), + message: opts.message || '', + detail: opts.detail || '', + buttons: [t('m0218'), opts.okLabel || t('m0439')], defaultId: 1, cancelId: 0, noLink: true, @@ -2292,7 +2285,7 @@ function registerIpc() { try { const backend = runtime.backend; if (backend && typeof backend.resources === 'function') return await backend.resources(); - return { backend: backend ? backend.id : '', ok: false, note: '运行时未就绪,暂时读不到资源分配' }; + return { backend: backend ? backend.id : '', ok: false, note: t('v058.m0039') }; } catch (e) { return { ok: false, error: e.message }; } @@ -2307,7 +2300,7 @@ function registerIpc() { const doctor = require('./core/doctor'); const freeMB = doctor.freeDiskMB(runtime.provisioner.paths().root); const want = res.clampDataGB(gb, freeMB).gb; - if (!want) return { ok: false, error: '目标容量不合法' }; + if (!want) return { ok: false, error: t('v058.m0040') }; store.saveSettings({ engine: { dataPartitionGB: want } }); await runtime.stop().catch(() => {}); const r = await runtime.resetAndroidData().catch((e) => ({ ok: false, error: e.message })); @@ -2350,7 +2343,7 @@ function registerIpc() { try { const r = runtime.emulator.resizeDataPartition(mb); appLog(`data partition -> ${want}GB: ${JSON.stringify(r)}`); - if (r && r.ok) notify('数据分区已调整', `安卓可用空间约 ${want} GB${stopped ? '(运行时已重启)' : ''}`); + if (r && r.ok) notify(t('m0440'), t('m0441', [want, stopped ? t('m0442') : ''])); return { ok: !!(r && r.ok), stopped, ...r, ...runtime.emulator.dataInfo() }; } catch (e) { return { ok: false, error: e.message }; @@ -2364,15 +2357,15 @@ function registerIpc() { const preview = await runtime.cleanup(pass); const { response } = await dialog.showMessageBox(mainWindow, { type: 'warning', - buttons: [i18n.t('取消'), i18n.t('清理 {n} 项', { n: preview.candidates.length })], + buttons: [t('m0218'), t('m0444', [preview.candidates.length])], defaultId: 0, cancelId: 0, - title: i18n.t('确认清理运行时缓存'), - message: i18n.t('将释放约 {mb} MB', { mb: (preview.candidates.reduce((n, c) => n + c.size, 0) / 1048576).toFixed(0) }), - detail: i18n.t((opts.includeSnapshots - ? '会先停止运行时,再删除旧镜像、当前 AVD 的快速启动快照、锁文件和非活动 AVD 的缓存。已安装的应用本身保留(只清快照),' - : '只删除旧镜像、旧快照、锁文件和非活动 AVD 的缓存,已安装的应用会保留。') - + '此操作不可撤销,建议先导出诊断报告。'), + title: t('m0445'), + message: t('m0446', [(preview.candidates.reduce((n, c) => n + c.size, 0) / 1048576).toFixed(0)]), + detail: (opts.includeSnapshots + ? t('m0447') + : t('m0448')) + + t('m0449'), }); if (response !== 1) return { ...preview, cancelled: true }; return runtime.cleanup({ apply: true, aggressive: !!opts.aggressive, includeSnapshots: !!opts.includeSnapshots }); @@ -2494,7 +2487,7 @@ function registerIpc() { const r = await runtime.provisioner.installAehd( (x) => send('provision:progress', { ...x, component: 'aehd' }), ); - if (!fs.existsSync(bat)) throw new Error(r.error || 'AEHD 驱动包未就绪'); + if (!fs.existsSync(bat)) throw new Error(r.error || t('m0450')); } await new Promise((resolve, reject) => { @@ -2505,7 +2498,7 @@ function registerIpc() { windowsHide: true, }); proc.on('exit', (code) => (code === 0 ? resolve() : reject(new Error( - code === 2 ? '已取消管理员授权(需要点「是」才能安装驱动)' : `驱动安装失败(退出码 ${code})`, + code === 2 ? t('m0451') : t('m0452', [code]), )))); proc.on('error', (e) => reject(e)); }); @@ -2525,7 +2518,7 @@ function registerIpc() { ipcMain.handle('provision:enableVirtualization', async () => { try { const accel = await runtime.provisioner.emulatorAccel(); - if (accel.ok) return { ok: true, already: true, accel, note: '硬件加速已可用,无需额外操作' }; + if (accel.ok) return { ok: true, already: true, accel, note: t('m0453') }; // ---------------- 商店(MSIX)版:只能走系统自带的 WHPX ---------------- // MSIX 包由 AppX 部署模型拉起,固定 mediumIL,既不能装内核驱动(AEHD), @@ -2539,7 +2532,7 @@ function registerIpc() { return { ok: true, restartNeeded: true, steps: whpx.steps, accel: await runtime.provisioner.emulatorAccel().catch(() => accel), - note: '已请求开启「Windows 虚拟机监控程序平台」,重启电脑后硬件加速才会生效', + note: t('v058.m0041'), }; } return { @@ -2548,7 +2541,7 @@ function registerIpc() { settingsUri: 'ms-settings:optionalfeatures', steps: whpx.steps, accel, - note: MSIX_ACCEL_HINT, + note: MSIX_ACCEL_HINT(), }; } @@ -2562,15 +2555,15 @@ function registerIpc() { ok: true, restartNeeded: true, steps: whpx.steps, accel: await runtime.provisioner.emulatorAccel().catch(() => accel), note: whpx.steps.some((s) => s.cancelled) - ? '已开启「Windows 虚拟机监控程序平台」,重启电脑后生效' - : '已开启「Windows 虚拟机监控程序平台」,重启电脑后生效', + ? t('v058.m0042') + : t('v058.m0042'), }; } if (whpx.cancelled) { return { ok: false, cancelled: true, - error: '你取消了管理员授权,硬件加速没有改动。可以再点一次「修复」,或手动开启「Windows 虚拟机监控程序平台」。', + error: t('v058.m0044'), }; } @@ -2578,7 +2571,7 @@ function registerIpc() { const ae = await runtime.provisioner.installAehd( (x) => send('provision:progress', { ...x, component: 'aehd' }), ).catch((e) => ({ ok: false, error: e.message })); - if (!ae.ok) return { ok: false, error: ae.error || 'AEHD 驱动包准备失败' }; + if (!ae.ok) return { ok: false, error: ae.error || t('m0457') }; const bat = path.join(runtime.provisioner.paths().aehdDir, 'silent_install.bat'); await new Promise((resolve, reject) => { const { spawn: sp } = require('child_process'); @@ -2586,13 +2579,13 @@ function registerIpc() { const ps = `try { $p = Start-Process -FilePath '${esc}' -WorkingDirectory '${path.dirname(bat).replace(/'/g, "''")}' -Verb RunAs -Wait -PassThru; exit $p.ExitCode } catch { exit 2 }`; const proc = sp('powershell', ['-NoProfile', '-NonInteractive', '-Command', ps], { windowsHide: true }); proc.on('exit', (code) => (code === 0 ? resolve() : reject(new Error( - code === 2 ? '已取消管理员授权(需要点「是」才能安装驱动)' : `驱动安装失败(退出码 ${code})`, + code === 2 ? t('m0451') : t('m0452', [code]), )))); proc.on('error', (e) => reject(e)); }); runtime.provisioner.invalidateEnvCache?.(); const after = await runtime.provisioner.emulatorAccel(); - return { ok: after.ok, accel: after, note: after.ok ? 'AEHD 硬件加速已启用' : after.note }; + return { ok: after.ok, accel: after, note: after.ok ? t('m0460') : after.note }; } catch (e) { return { ok: false, error: e.message }; } @@ -2651,8 +2644,8 @@ function registerIpc() { ipcMain.handle('provision:importIso', async () => { const r = await dialog.showOpenDialog(mainWindow, { - title: i18n.t('选择 Android-x86 / Bliss OS 系统镜像'), - filters: [{ name: i18n.t('系统镜像'), extensions: ['iso', 'img'] }], + title: t('m0461'), + filters: [{ name: t('m0034'), extensions: ['iso', 'img'] }], properties: ['openFile'], }); if (r.canceled) return { ok: false, canceled: true }; @@ -2665,8 +2658,8 @@ function registerIpc() { ipcMain.handle('provision:importDisk', async () => { const r = await dialog.showOpenDialog(mainWindow, { - title: i18n.t('选择已安装 Android 的虚拟磁盘'), - filters: [{ name: i18n.t('虚拟磁盘'), extensions: ['qcow2', 'img', 'vmdk', 'raw'] }], + title: t('m0463'), + filters: [{ name: t('m0464'), extensions: ['qcow2', 'img', 'vmdk', 'raw'] }], properties: ['openFile'], }); if (r.canceled) return { ok: false, canceled: true }; @@ -2881,7 +2874,7 @@ function registerIpc() { case 'animations': return { ok: true, ...(await androidSet.setAnimations(!!value)) }; case 'fontScale': return { ok: true, ...(await androidSet.setFontScale(value)) }; case 'density': return { ok: true, ...(await androidSet.setDensity(value)) }; - default: return { ok: false, error: `未知设置项 ${key}` }; + default: return { ok: false, error: t('m0465', [key]) }; } } catch (e) { return { ok: false, error: e.message }; } }); @@ -2991,6 +2984,11 @@ if (!gotLock) { }); app.whenReady().then(async () => { + ipcMain.handle('i18n:get', () => ({ + locale: resolveLocale(i18n.getLanguage()), + preference: store.getSettings().uiLanguage, + messages: getCatalog(resolveLocale(i18n.getLanguage())), + })); store.ensureDirs(); /** * 界面语言必须在任何窗口创建之前定下来:preload 会在窗口加载时同步问一次 @@ -3200,7 +3198,7 @@ if (!gotLock) { const dirs = agentScope(); // 第二个参数是本进程 pid:代理据此拒绝把窗口嵌进「不是我们的」窗口 await agent.scope(dirs, process.pid).catch(() => null); - if (!dirs.length) appLog('agent scope 为空:不压制任何窗口(避免误伤其他软件)'); + if (!dirs.length) appLog(t('m0466')); return agent.bootHide().catch(() => ({ ok: false })); }; @@ -3274,8 +3272,8 @@ if (!gotLock) { if (freeMB && freeMB < 3072) { appLog(`LOW_DISK free=${freeMB}MB dir=${store.DATA_DIR}`); setTimeout(() => { - notify('磁盘空间不足', `只剩 ${(freeMB / 1024).toFixed(1)} GB。请到「设置 → 系统集成」把安卓数据目录/运行时目录改到其他盘,或先清理磁盘。`); - send('toast', { type: 'error', message: `磁盘只剩 ${(freeMB / 1024).toFixed(1)} GB,安卓可能无法启动(设置 → 系统集成 可换盘)` }); + notify(t('m0467'), t('m0468', [(freeMB / 1024).toFixed(1)])); + send('toast', { type: 'error', message: t('m0469', [(freeMB / 1024).toFixed(1)]) }); }, 3000).unref?.(); } } @@ -3284,7 +3282,7 @@ if (!gotLock) { installer.ensureShortcuts().then((fixed) => { if (fixed && fixed.length) { windowctl.refreshShell().catch(() => {}); - notify('快捷方式已补齐', fixed.join('、')); + notify(t('m0470'), fixed.join(t('list.sepComma'))); } }).catch(() => {}); @@ -3348,7 +3346,7 @@ if (!gotLock) { // 再并发下载解压只会让桌面更卡。真有应用要打开时 ensure() 自会准备。 setTimeout(() => { autoDeploy().then((r) => { - if (r && r.ok) send('toast', { type: 'ok', message: '运行时已自动准备完成' }); + if (r && r.ok) send('toast', { type: 'ok', message: t('m0471') }); }).catch(() => {}); }, 20000).unref?.(); @@ -3366,7 +3364,7 @@ if (!gotLock) { if (job) { resuming = true; appLog(`resuming pending update ${job.version} from cached payload`); - send('update:progress', { stage: 'apply', percent: 100, message: '正在完成上次未完成的更新…' }); + send('update:progress', { stage: 'apply', percent: 100, message: t('v058.m0045') }); updater.apply(job); setTimeout(() => { quitting = true; app.quit(); }, 900); } @@ -3451,7 +3449,7 @@ if (!gotLock) { await snap(out.replace(/\.png$/i, '-about.png')); } } catch (e) { - console.error('[smoke] 截图失败', e); + console.error(t('m0472'), e); } quitting = true; app.quit(); @@ -3498,7 +3496,7 @@ if (!gotLock) { if (mine) { runtime?.dispose(); } else { - appLog('另一个实例已接管运行时,跳过停止(否则会误杀它的模拟器)'); + appLog(t('v062.m0015')); } }; app.on('before-quit', (e) => { diff --git a/src/preload.js b/src/preload.js index 1e976762..087722fc 100644 --- a/src/preload.js +++ b/src/preload.js @@ -20,6 +20,7 @@ ipcRenderer.on('i18n:lang', (_e, next) => { contextBridge.exposeInMainWorld('apkstart', { info: () => invoke('app:info'), + getI18n: () => invoke('i18n:get'), listApps: () => invoke('apps:list'), pickApk: () => invoke('apk:pick'), parseApk: (p) => invoke('apk:parse', p), diff --git a/src/splash-preload.js b/src/splash-preload.js index b4afe281..cb168c21 100644 --- a/src/splash-preload.js +++ b/src/splash-preload.js @@ -24,6 +24,7 @@ contextBridge.exposeInMainWorld('apkstartSplash', { }, }, version: () => ipcRenderer.invoke('splash:version'), + getI18n: () => ipcRenderer.invoke('i18n:get'), isFirstRun: () => ipcRenderer.invoke('splash:isFirstRun'), // 运行组件是随包带来的(完整版 / 商店 MSIX 版)还是需要联网下载(轻量版)。 // 开机动画据此换掉「下载 xx MB」那套文案 —— 明明已经内置了还写「正在下载」, diff --git a/src/ui/app.js b/src/ui/app.js index 938e2d5b..cb9d36b9 100644 --- a/src/ui/app.js +++ b/src/ui/app.js @@ -1,4 +1,5 @@ 'use strict'; +const tr = (key, values) => window.i18n.t(key, values); const api = window.apkstart; const $ = (id) => document.getElementById(id); @@ -35,11 +36,11 @@ function fmtSize(bytes) { function relTime(ts) { if (!ts) return ''; const d = Date.now() - ts; - if (d < 60000) return '刚刚'; - if (d < 3600000) return `${Math.floor(d / 60000)} 分钟前`; - if (d < 86400000) return `${Math.floor(d / 3600000)} 小时前`; - if (d < 86400000 * 30) return `${Math.floor(d / 86400000)} 天前`; - return new Date(ts).toLocaleDateString('zh-CN'); + if (d < 60000) return tr('m0000'); + if (d < 3600000) return tr('m0001', [Math.floor(d / 60000)]); + if (d < 86400000) return tr('m0002', [Math.floor(d / 3600000)]); + if (d < 86400000 * 30) return tr('m0003', [Math.floor(d / 86400000)]); + return new Date(ts).toLocaleDateString(window.i18n.locale); } /** @@ -158,8 +159,8 @@ function renderGrid() { if (!hasAny) { const s = state.status; $('emptyHint').textContent = s && s.adbOk === false - ? '首次使用:打开右上角设置 → 运行时 → 一键完成,再回来安装应用即可。' - : '提示:所有应用共享同一个 Android 运行时,所以第二个应用的启动几乎是瞬时的。'; + ? tr('m0004') + : tr('m0005'); grid.innerHTML = ''; return; } @@ -170,26 +171,17 @@ function renderGrid() { grid.innerHTML = apps.map((a) => `
    ${a.pinned ? '★' : ''} - ${a.running ? '' : ''} + ${a.running ? tr('m0006') : ''}
    ${a.iconUrl ? `` : `
    ${esc(initialOf(a.label))}
    `}
    ${esc(a.label)}
    -
    ${a.running ? '运行中' : `v${esc(a.versionName)}${a.lastLaunchAt ? ' · ' + relTime(a.lastLaunchAt) : ''}`}
    -
    ${a.running ? '切换到前台' : '打开'}
    +
    ${a.running ? tr('m0007') : `v${esc(a.versionName)}${a.lastLaunchAt ? ' · ' + relTime(a.lastLaunchAt) : ''}`}
    +
    ${a.running ? tr('m0008') : tr('m0009')}
    - `).join('') + ` -
    - -
    添加应用
    -
    拖入 APK 即可安装
    -
    - `; + `).join('') + tr('v058.m0046'); } /* ---------------- 数据刷新 ---------------- */ @@ -206,7 +198,7 @@ async function refreshApps() { function updateStats() { const n = state.apps.length; - $('statusStats').textContent = n ? `${n} 个应用` : '暂无应用'; + $('statusStats').textContent = n ? tr('m0010', [n]) : tr('m0011'); } async function refreshStatus() { @@ -219,51 +211,51 @@ async function refreshStatus() { if (!s.adbOk) { dot.className = 'dot err'; - text.textContent = '运行时未部署 —— 打开设置 → 运行时,一键完成'; - tag.textContent = '需要部署'; + text.textContent = tr('m0012'); + tag.textContent = tr('m0013'); tag.className = 'brand-tag'; } else if (s.deviceOnline) { dot.className = 'dot ok'; - text.textContent = `运行时已就绪 · Android ${s.android || '?'}${s.freeform ? ' · 独立窗口已启用' : ''}`; + text.textContent = tr('m0014', [s.android || '?', s.freeform ? tr('m0015') : '']); tag.textContent = `Android ${s.android || ''}`.trim(); tag.className = 'brand-tag ok'; } else if (s.phase === 'booting' || s.vmStarting) { dot.className = 'dot warn'; - text.textContent = '正在引导 Android…'; - tag.textContent = '引导中'; + text.textContent = tr('m0016'); + tag.textContent = tr('m0017'); tag.className = 'brand-tag'; } else if (s.needsSetup === 'accel') { dot.className = 'dot warn'; // 说清「怎么修」而不是只说「没开」——这句是状态条上最容易被看到的位置 - text.textContent = '未启用硬件加速:已回退软件模拟(很慢)。点右下角「环境自检 → 修复」开启'; - tag.textContent = '软件模拟'; + text.textContent = tr('v058.m0047'); + tag.textContent = tr('m0019'); tag.className = 'brand-tag'; } else if (s.needsSetup === 'sysimg') { dot.className = 'dot err'; - text.textContent = '缺少 Android 14 通用系统镜像 —— 设置 → 运行时里下载(约 1.5GB,只下一次)'; - tag.textContent = '待下载镜像'; + text.textContent = tr('m0020'); + tag.textContent = tr('m0021'); tag.className = 'brand-tag'; } else if (s.needsSetup === 'emulator') { dot.className = 'dot err'; - text.textContent = '运行时引擎未安装 —— 打开设置 → 运行时一键完成'; - tag.textContent = '需要部署'; + text.textContent = tr('m0022'); + tag.textContent = tr('m0013'); tag.className = 'brand-tag'; } else if (s.needsSetup === 'boot') { dot.className = 'dot warn'; - text.textContent = '运行时已就绪 —— 安装 APK 或双击桌面图标会自动开机'; - tag.textContent = '待开机'; + text.textContent = tr('m0024'); + tag.textContent = tr('m0025'); tag.className = 'brand-tag'; } else if (s.installing) { dot.className = 'dot warn'; - text.textContent = '安装程序运行中 —— 请在虚拟机窗口里完成安装'; - tag.textContent = '安装中'; + text.textContent = tr('m0026'); + tag.textContent = tr('m0027'); tag.className = 'brand-tag'; } else { dot.className = 'dot'; text.textContent = s.installed - ? '运行时待机(安装或打开应用时会自动拉起)' - : '运行时尚未安装 Android 系统 —— 打开设置 → 运行时继续'; - tag.textContent = s.installed ? '待机' : '待安装'; + ? tr('m0028') + : tr('m0029'); + tag.textContent = s.installed ? tr('m0030') : tr('m0031'); tag.className = 'brand-tag'; } $('statusDevice').textContent = s.deviceOnline ? (s.serial || '') : ''; @@ -276,17 +268,17 @@ async function refreshStatus() { netEl.hidden = !show; if (netSep) netSep.hidden = !show; if (show) { - netEl.textContent = s.network.ok ? `网络正常 ${s.network.ip || ''}`.trim() : '虚拟机未联网'; + netEl.textContent = s.network.ok ? tr('v058.m0048', [s.network.ip || '']).trim() : tr('v058.m0049'); netEl.className = 'status-item status-net ' + (s.network.ok ? 'ok' : 'warn'); netEl.title = s.network.ok - ? '安卓虚拟机已联网,联网类应用可以正常加载' - : '安卓虚拟机没有网络,联网页面会一直是空白/报错。可在「设置 → 修复网络」处理'; + ? tr('v058.m0050') + : tr('v058.m0051'); } } renderSetup(s); } catch (e) { - $('statusText').textContent = `状态检查失败:${e.message}`; + $('statusText').textContent = tr('m0032', [e.message]); } } @@ -338,15 +330,15 @@ function renderSetup(s) { if (stateText) { const missing = []; if (!adbDone) missing.push('adb'); - if (!emuDone0) missing.push('引擎'); - if (!imgDone0) missing.push('系统镜像'); + if (!emuDone0) missing.push(tr('m0033')); + if (!imgDone0) missing.push(tr('m0034')); stateText.textContent = s.deviceOnline - ? `已就绪 · Android ${s.android || ''}` + ? tr('m0035', [s.android || '']) : s.phase === 'booting' || s.vmStarting - ? '正在引导 Android…' + ? tr('m0016') : allDone0 - ? '组件齐全 · 待开机(打开应用时自动拉起)' - : `缺少 ${missing.join('、')}${accelOk ? '' : '(无硬件加速,将回退软件模拟)'}`; + ? tr('m0037') + : tr('m0038', [missing.join(', '), accelOk ? '' : tr('m0039')]); stateText.title = s.autoProfile || accel.note || hv.note || ''; } @@ -359,39 +351,39 @@ function renderSetup(s) { // 且首次启动会在后台自动跑,用户不需要逐步点击。 const allDone = !!(env.adb && env.adb.ok) && emuDone && imgDone; const left = []; - if (!(env.adb && env.adb.ok)) left.push('adb 工具链'); - if (!emuDone) left.push('Android 运行时'); - if (!imgDone) left.push('系统镜像'); + if (!(env.adb && env.adb.ok)) left.push(tr('m0040')); + if (!emuDone) left.push(tr('m0041')); + if (!imgDone) left.push(tr('m0034')); const step = { key: 'all', index: 1, - title: allDone ? '一切就绪' : '一键完成', - tag: allDone ? '已自动完成' : '自动', + title: allDone ? tr('m0043') : tr('m0044'), + tag: allDone ? tr('m0045') : tr('m0046'), done: allDone, busy: !!busy, desc: s.deviceOnline - ? `Android ${s.android || ''} 已就绪 · 应用窗口会按屏幕自动适配` + ? tr('m0047', [s.android || '']) : booting - ? '正在引导 Android…' + ? tr('m0016') : allDone - ? '组件齐全,双击任意 APK 或桌面图标即会自动开机' - : `还差 ${left.join('、')};点下面「一键完成」,会在后台一次装好并自动开机`, + ? tr('m0049') + : tr('m0050', [left.join(', ')]), actions: s.deviceOnline - ? '' + ? tr('m0051') : '', }; $('setupSteps').innerHTML = stepRow(step); $('btnDeployAll').disabled = !!busy; - $('btnDeployAll').textContent = busy ? '准备中…' : (allDone ? '已完成 · 点此复查' : '一键完成'); + $('btnDeployAll').textContent = busy ? tr('m0052') : (allDone ? tr('m0053') : tr('m0044')); // 「上次为什么没起来」优先显示落盘的失败记录:进程重启后内存里的 diagnosis 是空的, // 只显示 autoProfile 会让用户完全看不出原因(issue #20/#25 的报告就是这样)。 const lf = s.lastFailure; const lastMsg = (lf && lf.diagnosis && lf.diagnosis.title) - ? `上次启动失败:${lf.diagnosis.title}` - : (s.diagnosis ? `上次启动自动诊断:${s.diagnosis.title}` : ''); + ? tr('m0055', [lf.diagnosis.title]) + : (s.diagnosis ? tr('m0056', [s.diagnosis.title]) : ''); $('setupNote').textContent = lastMsg - || s.autoProfile || '全自动:无需选择镜像、无需启用加速、无需调内存'; + || s.autoProfile || tr('m0057'); } function store_getDiskSize() { @@ -433,18 +425,18 @@ async function deployAll() { // 用户点「一键部署」属于明确的手动重试,绕过失败冷却 const r = await api.autoDeploy({ force: true }); if (!r || !r.ok) { - toast({ title: '准备失败', body: (r && r.error) || '请检查网络后重试', type: 'error', sticky: true }); + toast({ title: tr('m0058'), body: (r && r.error) || tr('m0059'), type: 'error', sticky: true }); return; } await refreshStatus(); - toast({ title: '组件已就绪,正在自动开机…', body: '首次约 1-3 分钟,之后几秒即可。', type: 'info' }); + toast({ title: tr('m0060'), body: tr('m0061'), type: 'info' }); const started = await api.runtimeStart(); await refreshStatus(); toast(started && started.ok - ? { title: '运行时已就绪', body: '现在把 APK 拖进窗口,或双击桌面图标即可。', type: 'ok' } - : { title: '开机未完成', body: (started && started.error) || '请导出诊断报告查看原因', type: 'error', sticky: true }); + ? { title: tr('m0062'), body: tr('m0063'), type: 'ok' } + : { title: tr('m0064'), body: (started && started.error) || tr('m0065'), type: 'error', sticky: true }); } catch (e) { - toast({ title: '准备失败', body: e.message, type: 'error', sticky: true }); + toast({ title: tr('m0058'), body: e.message, type: 'error', sticky: true }); } finally { setStepBusy('all', false); await refreshStatus(); @@ -453,7 +445,7 @@ async function deployAll() { } async function runStep(key) { - if (state.setupBusy) return { ok: false, error: '已有部署任务进行中' }; + if (state.setupBusy) return { ok: false, error: tr('m0067') }; setStepBusy(key, true); let r; try { @@ -462,18 +454,18 @@ async function runStep(key) { else if (key === 'sysimg') r = await api.installSysimg(); else if (key === 'accel') { const t = toast({ - title: '正在安装硬件加速驱动…', - body: '请在弹出的是否允许窗口点「是」', + title: tr('m0068'), + body: tr('m0069'), sticky: true, spinner: true, }); r = await api.enableAccel(); - if (r.ok) t.update({ title: '硬件加速已启用', type: 'ok' }); - else t.update({ title: '加速未启用', body: r.error, type: 'error', sticky: true }); + if (r.ok) t.update({ title: tr('m0070'), type: 'ok' }); + else t.update({ title: tr('m0071'), body: r.error, type: 'error', sticky: true }); } else if (key === 'qemu') r = await api.installQemu(); else if (key === 'iso') r = await api.downloadIso(); else if (key === 'disk') r = await api.createDisk(store_getDiskSize()); - else r = { ok: false, error: '未知步骤' }; + else r = { ok: false, error: tr('m0072') }; } catch (e) { r = { ok: false, error: e.message }; } @@ -485,12 +477,12 @@ async function runStep(key) { async function startInstall() { const r = await api.startInstaller(); if (!r.ok) { - toast({ title: '无法启动安装环境', body: r.error, type: 'error', sticky: true }); + toast({ title: tr('m0073'), body: r.error, type: 'error', sticky: true }); return; } $('setupGuide').hidden = false; $('setupGuide').scrollIntoView({ behavior: 'smooth', block: 'start' }); - toast({ title: '虚拟机窗口已打开', body: '按下方 6 步完成安装;装好后点「我已安装完成」。', type: 'ok', sticky: true }); + toast({ title: tr('m0074'), body: tr('m0075'), type: 'ok', sticky: true }); } async function markInstalled() { @@ -498,7 +490,7 @@ async function markInstalled() { await api.runtimeStop(); $('setupGuide').hidden = true; await refreshStatus(); - toast({ title: '安装完成,运行时已接管', body: '现在可以直接把 APK 拖进来安装了。', type: 'ok' }); + toast({ title: tr('m0076'), body: tr('m0077'), type: 'ok' }); } @@ -506,25 +498,25 @@ async function markInstalled() { /* ---------------- 安装 ---------------- */ /** 把安装失败翻译成「下一步该做什么」,只对最常见的几种做提示,其它原样显示 */ -function friendlyInstallErrorText(msg) { - const s = String(msg || '未知错误'); +function friendlyInstallErrorText(msg, abiRetried = false) { + const s = String(msg || tr('m0078')); if (/INSUFFICIENT_STORAGE|not enough space|空间不足|ENOSPC/i.test(s)) { - return `${s}\n安卓数据分区不够用:设置 → 性能与资源占用 → 安卓数据分区调大后点「立即扩容」。`; + return tr('m0079', [s]); } // 只有真正失败才走到这里:切换镜像是「进行中」的进度提示(install:progress), // 绝不能在红色失败横幅里再说「正在重试」——那会让用户以为还在处理,其实是真的失败了。 if (/NO_MATCHING_ABIS/i.test(s)) { - return /已切换到.*仍然安装失败|abiRetried/i.test(s) - ? `${s}\nARM 兼容镜像已启用仍装不上,请到「设置 → 诊断与修复」导出诊断报告反馈。` - : `${s}\n这个包只有 ARM 库。程序会自动切到兼容镜像重装一次,请留意后续提示。`; + return abiRetried || /已切换到.*仍然安装失败|abiRetried/i.test(s) + ? tr('v062.m0016', [s]) + : tr('v062.m0017', [s]); } if (/INSTALL_FAILED_ALREADY_EXISTS|signatures do not match/i.test(s)) { - return `${s}\n同包名但签名不同(常见于从别的渠道装过)。在应用卡片右键「卸载」后再装。`; + return tr('m0081', [s]); } - if (/INSTALL_FAILED_VERSION_DOWNGRADE/i.test(s)) return `${s}\n已装版本更高,先在右键菜单里卸载再装。`; + if (/INSTALL_FAILED_VERSION_DOWNGRADE/i.test(s)) return tr('m0082', [s]); if (/ERR_FS_FILE_TOO_LARGE|greater than possible Buffer|Cannot allocate|ENOMEM|out of memory/i.test(s)) { - return `${s}\n这个安装包过大或内存不足,解析被系统拒绝了。请确认磁盘与内存充足后重试;` - + '仍失败请把安装包路径换成纯英文短路径(如 D:\\a.apk)。'; + return tr('m0083', [s]) + + tr('m0084'); } return s; } @@ -537,7 +529,7 @@ let installToast = null; async function installFiles(paths) { if (!paths || !paths.length) return; if (state.installing) { - toast({ title: '已有安装任务在进行', body: '请等当前应用装完再继续。' }); + toast({ title: tr('m0085'), body: tr('m0086') }); return; } state.installing = true; @@ -546,21 +538,21 @@ async function installFiles(paths) { for (const p of paths) { const name = p.split(/[\\/]/).pop(); - const t = toast({ title: `正在安装 ${name}`, body: '解析 APK…', progress: 8, sticky: true, spinner: true }); + const t = toast({ title: tr('m0087', [name]), body: tr('m0088'), progress: 8, sticky: true, spinner: true }); installToast = t; let off = () => {}; try { off = api.on('install:progress', (pr) => { const base = { parse: 12, 'parse-done': 24, runtime: 38, install: 62, shortcut: 88, done: 100 }[pr.stage] || 50; const pct = pr.percent != null ? Math.min(60, Math.round((pr.percent / 100) * 60)) : base; - t.update({ title: pr.meta ? `正在安装 ${pr.meta.label}` : `正在安装 ${name}`, body: pr.message, progress: pct }); + t.update({ title: pr.meta ? tr('m0087', [pr.meta.label]) : tr('m0087', [name]), body: pr.message, progress: pct }); }); const r = await api.installApk(p); - t.update({ title: `${r.app.label} 已安装`, body: r.app.shortcutPath ? '桌面快捷方式已创建,双击即可直接打开。' : '可在应用卡片右键创建桌面快捷方式。', progress: 100, type: 'ok' }); + t.update({ title: tr('m0091', [r.app.label]), body: r.app.shortcutPath ? tr('m0092') : tr('m0093'), progress: 100, type: 'ok' }); t.el.querySelector('.spinner')?.remove(); setTimeout(t.dismiss, 3600); if (r.warnings && r.warnings.length) { - toast({ title: `${r.app.label} 兼容性提示`, body: r.warnings.join(' '), type: 'error', sticky: false }); + toast({ title: tr('m0094', [r.app.label]), body: r.warnings.join(' '), type: 'error', sticky: false }); } ok++; } catch (e) { @@ -588,20 +580,20 @@ async function launchApp(pkg) { const app = state.apps.find((a) => a.package === pkg); state.launchPkg = pkg; const t = toast({ - title: `正在打开 ${app ? app.label : pkg}`, - body: '首次启动需要预热运行时,请稍候…', + title: tr('m0095', [app ? app.label : pkg]), + body: tr('m0096'), sticky: true, spinner: true, }); const r = await api.launch(pkg); if (r.ok) { // 应用有自己的窗口,主界面自动收起;这里只留一句提示,然后隐藏窗口 - t.update({ title: '已启动', body: '应用正在独立窗口中运行(顶部可旋转屏幕)。', type: 'ok' }); + t.update({ title: tr('m0097'), body: tr('m0098'), type: 'ok' }); setTimeout(t.dismiss, 1600); setTimeout(() => api.winHide(), 900); setTimeout(refreshApps, 1200); } else { - t.update({ title: '启动失败', body: r.error, type: 'error' }); + t.update({ title: tr('m0099'), body: r.error, type: 'error' }); setTimeout(t.dismiss, 6000); } } @@ -609,57 +601,57 @@ async function launchApp(pkg) { async function createShortcut(pkg) { try { const r = await api.createShortcut(pkg); - toast({ title: '桌面快捷方式已创建', body: r.path, type: 'ok' }); + toast({ title: tr('m0100'), body: r.path, type: 'ok' }); refreshApps(); } catch (e) { - toast({ title: '创建快捷方式失败', body: e.message, type: 'error' }); + toast({ title: tr('m0101'), body: e.message, type: 'error' }); } } async function uninstall(pkg) { const app = state.apps.find((a) => a.package === pkg); if (!app) return; - const ok = window.confirm(`确定卸载「${app.label}」?\n\n应用数据会一并被清除,桌面快捷方式也会被删除。`); + const ok = window.confirm(tr('m0102', [app.label])); if (!ok) return; try { await api.uninstall(pkg); - toast({ title: '已卸载', body: app.label, type: 'ok' }); + toast({ title: tr('m0103'), body: app.label, type: 'ok' }); refreshApps(); } catch (e) { - toast({ title: '卸载失败', body: e.message, type: 'error' }); + toast({ title: tr('m0104'), body: e.message, type: 'error' }); } } /* ---------------- 右键菜单 ---------------- */ -const MENU_ITEMS = [ - { key: 'open', label: '打开应用', kbd: 'Enter' }, +const menuItems = () => [ + { key: 'open', label: tr('m0105'), kbd: 'Enter' }, // 只在应用真的在运行时才出现(见 showMenu 里的过滤)。 // 以前完全没有这一项,独立窗口模式下又没有可点的关闭按钮, // 应用一起来就关不掉,只能退到托盘退出整个 ApkStart。 - { key: 'stop', label: '关闭应用', onlyRunning: true }, - { key: 'shortcut', label: '创建桌面快捷方式' }, - { key: 'orientation', label: '横屏 / 竖屏' }, - { key: 'pin', label: '固定到顶部' }, - { key: 'keymap', label: '按键映射…' }, + { key: 'stop', label: tr('v058.m0052'), onlyRunning: true }, + { key: 'shortcut', label: tr('m0106') }, + { key: 'orientation', label: tr('v062.m0018') }, + { key: 'pin', label: tr('m0107') }, + { key: 'keymap', label: tr('v058.m0053') }, { divider: true }, - { key: 'reveal', label: '打开 APK 所在位置' }, - { key: 'clear', label: '清除应用数据' }, + { key: 'reveal', label: tr('m0108') }, + { key: 'clear', label: tr('m0109') }, { divider: true }, - { key: 'uninstall', label: '卸载', danger: true }, + { key: 'uninstall', label: tr('m0110'), danger: true }, ]; function showMenu(x, y, pkg) { const menu = $('ctxmenu'); state.menuPkg = pkg; const app = state.apps.find((a) => a.package === pkg); - const items = MENU_ITEMS.filter((it) => !it.onlyRunning || (app && app.running)); + const items = menuItems().filter((it) => !it.onlyRunning || (app && app.running)); menu.innerHTML = items.map((it) => { if (it.divider) return '
    '; - const label = it.key === 'pin' ? (app && app.pinned ? '取消固定' : '固定到顶部') + const label = it.key === 'pin' ? (app && app.pinned ? tr('m0111') : tr('m0107')) : (it.key === 'orientation' - ? (app && app.orientationOverride === 'landscape' ? '竖屏启动(当前横屏)' - : (app && app.orientationOverride === 'portrait' ? '横屏启动(当前竖屏)' : '设为横屏启动')) + ? (app && app.orientationOverride === 'landscape' ? tr('v062.m0019') + : (app && app.orientationOverride === 'portrait' ? tr('v062.m0020') : tr('v062.m0021'))) : it.label); return `
    ${esc(label)}${it.kbd ? `${it.kbd}` : ''} @@ -688,12 +680,12 @@ async function handleMenu(act) { try { const r = await api.stop(pkg); if (r && r.ok) { - toast({ title: '已关闭', body: app.label, type: 'ok' }); + toast({ title: tr('v058.m0054'), body: app.label, type: 'ok' }); } else { - toast({ title: '关闭失败', body: (r && r.error) || '未知错误', type: 'error' }); + toast({ title: tr('v058.m0055'), body: (r && r.error) || tr('m0078'), type: 'error' }); } } catch (e) { - toast({ title: '关闭失败', body: e.message, type: 'error' }); + toast({ title: tr('v058.m0055'), body: e.message, type: 'error' }); } return refreshApps(); } @@ -705,14 +697,14 @@ async function handleMenu(act) { const next = cur === 'landscape' ? 'portrait' : (cur === 'portrait' ? null : 'landscape'); try { const r = await api.setAppOrientation(pkg, next); - const txt = next === 'landscape' ? '横屏启动' : (next === 'portrait' ? '竖屏启动' : '跟随应用'); - toast({ title: `已设为${txt}`, body: '下次打开该应用时生效,无需重启整个环境。', type: 'ok' }); + const txt = next === 'landscape' ? tr('v062.m0022') : (next === 'portrait' ? tr('v062.m0023') : tr('v062.m0024')); + toast({ title: tr('v062.m0025', [txt]), body: tr('v062.m0026'), type: 'ok' }); if (r && typeof r.landscape === 'boolean' && state.apps) { const rec = state.apps.find((a) => a.package === pkg); if (rec) rec.orientationOverride = next; } } catch (e) { - toast({ title: '设置方向失败', body: e.message, type: 'error' }); + toast({ title: tr('v062.m0027'), body: e.message, type: 'error' }); } return refreshApps(); } @@ -720,12 +712,12 @@ async function handleMenu(act) { case 'keymap': return showKeymapPicker(pkg, app.label); case 'reveal': return api.revealApk(pkg); case 'clear': { - if (!window.confirm(`清除「${app.label}」的全部数据?此操作不可撤销。`)) return; + if (!window.confirm(tr('m0113', [app.label]))) return; try { await api.clearData(pkg); - toast({ title: '数据已清除', body: app.label, type: 'ok' }); + toast({ title: tr('m0114'), body: app.label, type: 'ok' }); } catch (e) { - toast({ title: '清除失败', body: e.message, type: 'error' }); + toast({ title: tr('m0115'), body: e.message, type: 'error' }); } return; } @@ -744,26 +736,26 @@ async function showKeymapPicker(pkg, label) { const current = await api.keymap.getMap(pkg); const hasCurrent = current && current.length > 0; const lines = presets.map((p, i) => `${i + 1}. ${p.label} — ${p.desc}`); - if (hasCurrent) lines.unshift('0. 清除当前映射'); - const msg = `为「${label}」选择按键映射预设:\n\n${lines.join('\n')}\n\n输入编号:`; + if (hasCurrent) lines.unshift(tr('v058.m0057')); + const msg = tr('v058.m0058', [label, lines.join('\n')]); const input = window.prompt(msg, hasCurrent ? '0' : '1'); if (input === null) return; // 取消 const idx = parseInt(input, 10); if (hasCurrent && idx === 0) { await api.keymap.setMap(pkg, []); - toast({ title: '已清除按键映射', body: label, type: 'ok' }); + toast({ title: tr('v058.m0059'), body: label, type: 'ok' }); return; } const presetIdx = hasCurrent ? idx - 1 : idx; if (presetIdx < 1 || presetIdx > presets.length) { - toast({ title: '无效编号', type: 'error' }); + toast({ title: tr('v058.m0060'), type: 'error' }); return; } const chosen = presets[presetIdx - 1]; await api.keymap.applyPreset(pkg, chosen.id); - toast({ title: `已套用「${chosen.label}」`, body: `${label} · 打开应用后键盘即可操控`, type: 'ok' }); + toast({ title: tr('v058.m0061', [chosen.label]), body: tr('v058.m0062', [label]), type: 'ok' }); } catch (e) { - toast({ title: '按键映射设置失败', body: e.message, type: 'error' }); + toast({ title: tr('v058.m0063'), body: e.message, type: 'error' }); } } @@ -776,14 +768,14 @@ let volumeTimer = null; async function refreshAndroid() { const el = $('androidStatus'); if (!el) return; - el.textContent = '读取中…'; + el.textContent = tr('m0116'); const r = await api.android.status().catch(() => null); if (!r || !r.ok) { - el.textContent = r && r.error ? `运行时未就绪(${String(r.error).slice(0, 36)})` : '运行时未启动'; + el.textContent = r && r.error ? tr('m0117', [String(r.error).slice(0, 36)]) : tr('m0118'); return; } - el.textContent = `Android ${r.sdk || '?'} · ${r.wifi ? 'Wi-Fi 已开' : 'Wi-Fi 已关'}` + - `${r.airplane ? ' · 飞行模式' : ''} · 音量 ${r.volume}%`; + el.textContent = `Android ${r.sdk || '?'} · ${r.wifi ? tr('m0119') : tr('m0120')}` + + tr('m0121', [r.airplane ? tr('m0122') : '', r.volume]); $('setAndroidWifi').checked = !!r.wifi; $('setAndroidAirplane').checked = !!r.airplane; $('setAndroidAnim').checked = !r.animationsOff; @@ -801,30 +793,30 @@ function bindAndroid() { const r = await api.android.set(key, value).catch(() => null); toast({ type: r && r.ok ? 'ok' : 'error', - title: r && r.ok ? (msg || '已生效') : `失败:${(r && r.error) || '运行时未就绪'}`, + title: r && r.ok ? (msg || tr('m0123')) : tr('m0124', [(r && r.error) || tr('m0125')]), }); if (r && r.ok) refreshAndroid(); }; - $('setAndroidWifi').addEventListener('change', (e) => set('wifi', e.target.checked, e.target.checked ? 'Wi-Fi 已开启' : 'Wi-Fi 已关闭')); - $('setAndroidAirplane').addEventListener('change', (e) => set('airplane', e.target.checked, e.target.checked ? '已进入飞行模式' : '已退出飞行模式')); - $('setAndroidAnim').addEventListener('change', (e) => set('animations', e.target.checked, e.target.checked ? '系统动画已开启' : '系统动画已关闭,界面更快')); - $('setAndroidFont').addEventListener('change', (e) => set('fontScale', Number(e.target.value), '字体大小已调整')); - $('setAndroidDensity').addEventListener('change', (e) => set('density', Number(e.target.value), '显示大小已调整')); + $('setAndroidWifi').addEventListener('change', (e) => set('wifi', e.target.checked, e.target.checked ? tr('m0126') : tr('m0127'))); + $('setAndroidAirplane').addEventListener('change', (e) => set('airplane', e.target.checked, e.target.checked ? tr('m0128') : tr('m0129'))); + $('setAndroidAnim').addEventListener('change', (e) => set('animations', e.target.checked, e.target.checked ? tr('m0130') : tr('m0131'))); + $('setAndroidFont').addEventListener('change', (e) => set('fontScale', Number(e.target.value), tr('m0132'))); + $('setAndroidDensity').addEventListener('change', (e) => set('density', Number(e.target.value), tr('m0133'))); $('setAndroidVolume').addEventListener('input', (e) => { $('androidVolumeText').textContent = `${e.target.value}%`; clearTimeout(volumeTimer); - volumeTimer = setTimeout(() => set('volume', Number(e.target.value), '音量已调整'), 260); + volumeTimer = setTimeout(() => set('volume', Number(e.target.value), tr('m0134')), 260); }); $('btnAndroidRefresh').addEventListener('click', () => refreshAndroid()); $('btnAndroidTune').addEventListener('click', async () => { const r = await api.android.tune(state.launchPkg || '').catch(() => null); - toast({ type: r && r.ok ? 'ok' : 'error', title: r && r.ok ? '已优化:动画关闭、后台放宽、电池白名单' : '优化失败,运行时可能未启动' }); + toast({ type: r && r.ok ? 'ok' : 'error', title: r && r.ok ? tr('m0135') : tr('m0136') }); if (r && r.ok) refreshAndroid(); }); const open = async (action) => { const r = await api.android.open(action).catch(() => null); if (!r || !r.ok) { - toast({ type: 'error', title: '需要先打开一次应用,让运行时启动' }); + toast({ type: 'error', title: tr('m0137') }); } }; $('btnAndroidSettings').addEventListener('click', () => open('settings')); @@ -845,18 +837,18 @@ function syncBackendFields() { async function refreshResources() { const bNote = $('builtinResNote'); if (!bNote) return; - const gb = (mb) => (Number(mb) > 0 ? `${Math.round(Number(mb) / 1024)} GB` : '未知'); + const gb = (mb) => (Number(mb) > 0 ? `${Math.round(Number(mb) / 1024)} GB` : tr('m0140')); const r = await api.resources().catch(() => null); if (!r || r.ok === false) { - bNote.textContent = (r && (r.note || r.error)) || '暂时读不到资源分配信息'; + bNote.textContent = (r && (r.note || r.error)) || tr('v058.m0064'); return; } const host = r.host || {}; const lim = r.limits || {}; const free = Number(r.freeMB) || Number((r.current && r.current.freeMB) || 0); - bNote.textContent = `本机 ${gb(host.totalMB)} 内存 / ${host.cores} 核;` - + `内存最多可分 ${gb(lim.maxMB)},核心最多 ${Math.max(1, (host.cores || 1) - 1)} 个(各留 1/4 内存与 1 核给 Windows)。` - + `数据分区上限 ${lim.maxGB || 0} GB${free ? `(所在磁盘剩余 ${(free / 1024).toFixed(1)} GB)` : ''}。` + bNote.textContent = tr('v058.m0065', [gb(host.totalMB), host.cores]) + + tr('v058.m0066', [gb(lim.maxMB), Math.max(1, (host.cores || 1) - 1)]) + + tr('v058.m0067', [lim.maxGB || 0, free ? tr('v058.m0068', [(free / 1024).toFixed(1)]) : '']) + (r.verdict && r.verdict.note ? ` ${r.verdict.note}` : ''); } @@ -868,7 +860,7 @@ function renderPreflight(res) { if (!list) return; list.textContent = ''; if (!res || !res.report) { - if (sum) sum.textContent = (res && res.error) || '体检没有返回结果,请重试'; + if (sum) sum.textContent = (res && res.error) || tr('v058.m0069'); return; } const { report, edition } = res; @@ -899,24 +891,24 @@ function renderPreflight(res) { btn.addEventListener('click', async () => { btn.disabled = true; const old = btn.textContent; - btn.textContent = '正在处理…'; + btn.textContent = tr('v058.m0070'); let r = null; if (it.action.id === 'accel') r = await api.enableAccel().catch(() => null); else r = await api.enableVirtualization().catch(() => null); btn.disabled = false; btn.textContent = old; - if (!r) { toast({ type: 'error', title: '操作没有完成', body: '可以稍后重试,或手动按提示操作' }); return; } - if (r.cancelled) toast({ type: 'warn', title: '已取消', body: '没有修改系统设置' }); + if (!r) { toast({ type: 'error', title: tr('v058.m0071'), body: tr('v058.m0072') }); return; } + if (r.cancelled) toast({ type: 'warn', title: tr('v058.m0073'), body: tr('v058.m0074') }); else if (r.ok || r.already) { const reboot = r.restartNeeded === true; toast({ type: 'ok', - title: r.already ? '硬件加速已经可用' : (reboot ? '已提交,需要重启' : '已生效'), - body: r.already ? '' : (reboot ? '重启电脑后硬件加速才会生效,回来点「开始体检」确认' : '可以点「开始体检」确认结果'), + title: r.already ? tr('v058.m0075') : (reboot ? tr('v058.m0076') : tr('m0123')), + body: r.already ? '' : (reboot ? tr('v058.m0077') : tr('v058.m0078')), }); if (r.already || !reboot) setTimeout(() => runPreflight().catch(() => {}), 1200); } else { - toast({ type: 'error', title: '没能自动完成', body: (r.error || r.note || '请按提示手动操作') }); + toast({ type: 'error', title: tr('v058.m0079'), body: (r.error || r.note || tr('v058.m0080')) }); } }); wrap.append(btn); @@ -931,9 +923,9 @@ function renderPreflight(res) { } const rec = report.recommended || {}; if (sum) { - sum.textContent = `${report.summary}。推荐配置:${Math.round((rec.memoryMB || 0) / 1024)} GB 内存 / ` - + `${rec.cores || 2} 核 / ${rec.renderSize || 'auto'} · 渲染 ${rec.gpuMode || 'auto'}` - + (edition === 'store' ? '(商店版:系统功能只能在「Windows 功能」里手动开)' : ''); + sum.textContent = tr('v058.m0081', [report.summary, Math.round((rec.memoryMB || 0) / 1024)]) + + tr('v058.m0082', [rec.cores || 2, rec.renderSize || 'auto', rec.gpuMode || 'auto']) + + (edition === 'store' ? tr('v058.m0083') : ''); } if (applyBtn) applyBtn.hidden = false; } @@ -944,13 +936,13 @@ async function runPreflight() { if (!btn) return null; const old = btn.textContent; btn.disabled = true; - btn.textContent = '体检中…'; - if (sum) sum.textContent = '正在检查虚拟化、显卡、内存…(第一次约 2~3 秒)'; + btn.textContent = tr('v058.m0084'); + if (sum) sum.textContent = tr('v058.m0085'); let r = null; try { r = await api.preflightRun(); } catch (e) { - r = { error: e.message || '体检失败' }; + r = { error: e.message || tr('v058.m0086') }; } btn.disabled = false; btn.textContent = old; @@ -968,10 +960,10 @@ function renderDrivers(r) { const errors = (r && r.errors) || []; const onCount = drivers.filter((d) => d.enabled && d.matched).length; if (sum) { - const accel = host.accel === 'none' ? '无硬件加速' : (host.accel || '未知'); - sum.textContent = `本机:${host.platform || ''}/${host.arch || ''} · ${host.gpuVendor || '未知'} 显卡 · ${accel}` - + ` · emulator ${host.emulatorVersion || '未知'};驱动 ${drivers.length} 个,本机已生效 ${onCount} 个。` - + (errors.length ? ` ${errors.length} 个文件加载失败(见下)。` : ''); + const accel = host.accel === 'none' ? tr('v058.m0087') : (host.accel || tr('m0140')); + sum.textContent = tr('v058.m0088', [host.platform || '', host.arch || '', host.gpuVendor || tr('m0140'), accel]) + + tr('v058.m0089', [host.emulatorVersion || tr('m0140'), drivers.length, onCount]) + + (errors.length ? tr('v058.m0090', [errors.length]) : ''); } list.textContent = ''; for (const d of drivers) { @@ -986,7 +978,7 @@ function renderDrivers(r) { cb.addEventListener('change', async () => { const res = await api.driversSetEnabled(d.id, cb.checked).catch(() => null); if (res && res.ok && res.overview) renderDrivers(res.overview); - else { cb.checked = !cb.checked; toast({ type: 'error', title: '保存失败', body: (res && res.error) || '请稍后再试' }); } + else { cb.checked = !cb.checked; toast({ type: 'error', title: tr('m0274'), body: (res && res.error) || tr('v058.m0091') }); } }); const name = document.createElement('span'); name.className = 'drv-name'; @@ -996,13 +988,13 @@ function renderDrivers(r) { if (d.matched && d.enabled) { const b = document.createElement('span'); b.className = 'drv-badge hit'; - b.textContent = '已生效'; + b.textContent = tr('m0123'); head.append(b); } if (d.builtin) { const b = document.createElement('span'); b.className = 'drv-badge'; - b.textContent = '内置示例'; + b.textContent = tr('v058.m0092'); head.append(b); } item.append(head); @@ -1012,7 +1004,7 @@ function renderDrivers(r) { meta.textContent = `v${d.version || '?'}` + (d.author ? ` · ${d.author}` : '') + ` · priority ${d.priority}` - + (d.hits && d.hits.length ? ` · 命中:${d.hits.join(' / ')}` : ' · 本机不匹配'); + + (d.hits && d.hits.length ? tr('v058.m0093', [d.hits.join(' / ')]) : tr('v058.m0094')); item.append(meta); if (d.description) { @@ -1026,13 +1018,13 @@ function renderDrivers(r) { for (const e of errors) { const err = document.createElement('div'); err.className = 'drv-err'; - err.textContent = `${String(e.file || '').split(/[\\/]/).pop()}:${(e.errors || []).join(';')}`; + err.textContent = tr('drivers.fileErrors', [String(e.file || '').split(/[\\/]/).pop(), (e.errors || []).join(tr('list.sep'))]); list.append(err); } if (!drivers.length && !errors.length) { const empty = document.createElement('div'); empty.className = 'drv-meta'; - empty.textContent = '还没有任何驱动。可以点「导出本机模板」做一个,或导入别人做好的 JSON。'; + empty.textContent = tr('v058.m0095'); list.append(empty); } } @@ -1041,7 +1033,7 @@ async function refreshDrivers() { if (!$('drvList')) return; const r = await api.driversList().catch(() => null); if (!r) { - if ($('drvSummary')) $('drvSummary').textContent = '读不到驱动列表(运行时可能还没部署)'; + if ($('drvSummary')) $('drvSummary').textContent = tr('v058.m0096'); return; } renderDrivers(r); @@ -1113,19 +1105,19 @@ async function refreshDataInfo() { const el = $('dataNote'); if (!el) return; const info = await api.dataInfo().catch(() => null); - if (!info) { el.textContent = '读取数据分区信息失败'; return; } + if (!info) { el.textContent = tr('m0138'); return; } const auto = Number(($('setDataGB') || {}).value || 0) === 0; // 有 quickboot 差量盘时底座镜像的大小不等于 guest 看到的容量(实测 8GB 镜像、guest 5.7GB), // 与其显示一个会误导人的数字,不如明确说「以运行时为准」。 const img = info.overlay - ? '快速启动差量盘(实际容量以运行时 /data 为准)' - : (info.fsGB ? `实际文件系统 ${info.fsGB} GB` : (info.imageGB ? `${info.imageGB} GB` : '尚未创建')); - const free = info.freeDiskMB ? `${(info.freeDiskMB / 1024).toFixed(1)} GB` : '未知'; + ? tr('v058.m0097') + : (info.fsGB ? tr('v058.m0098', [info.fsGB]) : (info.imageGB ? `${info.imageGB} GB` : tr('m0139'))); + const free = info.freeDiskMB ? `${(info.freeDiskMB / 1024).toFixed(1)} GB` : tr('m0140'); const pending = Number(info.pendingGB) > 0 - ? ` 目标 ${info.configuredGB} GB 还没生效:安卓正在用快速启动差量盘,需要「重置安卓数据」后按新容量重建(会清空已装应用)。` + ? tr('v058.m0099', [info.configuredGB]) : ''; - el.textContent = `当前数据分区:${img}${auto ? '(自动)' : ''} · 所在磁盘剩余 ${free}。${pending}` - + '游戏提示「存储空间不足」就把这里调大后点「立即扩容」;能就地扩容时不丢已装应用。'; + el.textContent = tr('v058.m0100', [img, auto ? tr('m0142') : '', free, pending]) + + tr('v058.m0101'); } /* ---------------- 设置页:分类导航 + 搜索 ---------------- */ @@ -1138,15 +1130,15 @@ async function refreshDataInfo() { * test/settings-categories-test.js 会校验这一致性。 */ const SETTINGS_CATS = [ - { id: 'basic', name: '常用与安装' }, - { id: 'display', name: '显示与窗口' }, - { id: 'input', name: '操作与输入' }, - { id: 'perf', name: '性能与资源' }, - { id: 'net', name: '网络与下载' }, - { id: 'diag', name: '诊断与修复' }, - { id: 'files', name: '集成与文件' }, - { id: 'about', name: '更新与关于' }, - { id: 'lab', name: '实验室' }, + { id: 'basic', get name() { return tr('v062.m0028'); } }, + { id: 'display', get name() { return tr('v062.m0029'); } }, + { id: 'input', get name() { return tr('v062.m0030'); } }, + { id: 'perf', get name() { return tr('v062.m0031'); } }, + { id: 'net', get name() { return tr('v062.m0032'); } }, + { id: 'diag', get name() { return tr('v062.m0033'); } }, + { id: 'files', get name() { return tr('v062.m0034'); } }, + { id: 'about', get name() { return tr('v062.m0035'); } }, + { id: 'lab', get name() { return tr('v064.m0002'); } }, ]; const settingsCatState = { cat: 'basic', query: '' }; @@ -1199,7 +1191,7 @@ function applySettingsFilter() { document.querySelectorAll('#setNav .set-nav-item').forEach((b) => { const n = hitPerCat[b.dataset.cat] || 0; b.classList.toggle('dim', !!q && n === 0); - b.title = q ? `${n} 项命中` : ''; + b.title = q ? tr('v062.m0036', [n]) : ''; }); // 最后一个可见分组不画分隔线(分组被隐藏后 :last-child 会选错对象) const visible = groups.filter((g) => !g.hidden); @@ -1269,12 +1261,12 @@ function bindSettingsCategory() { /** 自动检测的问题分类名(与 src/core/autodebug.js 的 CATEGORIES 对应) */ const DEBUG_CATS = [ - { id: 'runtime', name: '运行时' }, - { id: 'device', name: '设备连接' }, - { id: 'storage', name: '存储' }, - { id: 'settings', name: '设置' }, - { id: 'network', name: '网络' }, - { id: 'logs', name: '日志' }, + { id: 'runtime', get name() { return tr('m0619'); } }, + { id: 'device', get name() { return tr('v062.m0037'); } }, + { id: 'storage', get name() { return tr('v062.m0038'); } }, + { id: 'settings', get name() { return tr('m0390'); } }, + { id: 'network', get name() { return tr('v062.m0039'); } }, + { id: 'logs', get name() { return tr('v062.m0040'); } }, ]; let autodebugLast = null; @@ -1288,17 +1280,14 @@ function renderAutodebug(res) { const at = res && res.at; if (txt) { - if (res && res.running) txt.textContent = '正在检测…'; - else if (!at) txt.textContent = '尚未检测'; - else if (!issues.length) txt.textContent = `上次检测 ${relTime(at)} · 一切正常`; - else txt.textContent = `上次检测 ${relTime(at)} · ${issues.length} 项待处理`; + if (res && res.running) txt.textContent = tr('m0523'); + else if (!at) txt.textContent = tr('v062.m0041'); + else if (!issues.length) txt.textContent = tr('v062.m0042', [relTime(at)]); + else txt.textContent = tr('v062.m0043', [relTime(at), issues.length]); } if (!issues.length) { - list.innerHTML = `
    - - 没有发现影响使用的问题。运行时、adb 授权、磁盘、数据分区、快照与设置冲突都检查过了。 -
    `; + list.innerHTML = tr('v062.m0044'); updateCatBadges(); return; } @@ -1320,17 +1309,7 @@ function renderAutodebug(res) { const items = byCat.get(key); return `
    ${esc(name)}${items.length}
    - ${items.map((it) => ` -
    - -
    -
    ${esc(it.title || '')}
    -
    ${esc(it.hint || '')}
    - ${it.detail ? `
    ${esc(it.detail)}
    ` : ''} -
    - ${it.fix ? `` : ''} - -
    `).join('')} + ${items.map((it) => tr('v062.m0045', [esc(it.severity || 'info'), esc(it.title || ''), esc(it.hint || ''), it.detail ? `
    ${esc(it.detail)}
    ` : '', it.fix ? tr('v062.m0046', [esc(it.code)]) : '', esc(it.code)])).join('')}
    `; }).join(''); @@ -1369,11 +1348,11 @@ function bindAutodebug() { btn.addEventListener('click', async () => { btn.disabled = true; const old = btn.textContent; - btn.textContent = '检测中…'; + btn.textContent = tr('v062.m0047'); try { const r = await api.autodebugRun().catch(() => null); if (r) renderAutodebug(r); - else toast({ title: '检测失败', body: '采集状态时出错,稍后再试一次', type: 'error' }); + else toast({ title: tr('v062.m0048'), body: tr('v062.m0049'), type: 'error' }); } finally { btn.disabled = false; btn.textContent = old; @@ -1385,8 +1364,8 @@ function bindAutodebug() { if (report) { report.addEventListener('click', async () => { const r = await api.doctorReport().catch(() => null); - if (r && r.ok !== false) toast({ title: '诊断报告已导出', body: '把报告发给作者可以最快定位问题', type: 'ok' }); - else toast({ title: '导出失败', body: (r && r.error) || '请重试', type: 'error' }); + if (r && r.ok !== false) toast({ title: tr('m0204'), body: tr('v062.m0050'), type: 'ok' }); + else toast({ title: tr('m0205'), body: (r && r.error) || tr('m0226'), type: 'error' }); }); } @@ -1396,8 +1375,8 @@ function bindAutodebug() { const r = await api.autodebugConfig({ auto: auto.checked }).catch(() => null); if (r) fillAutodebugSettings(r); toast({ - title: auto.checked ? '已开启自动检测' : '已关闭自动检测', - body: auto.checked ? '后台会定时检查,发现新问题才提醒' : '随时可以点「立即检测」手动跑一次', + title: auto.checked ? tr('v062.m0051') : tr('v062.m0052'), + body: auto.checked ? tr('v062.m0053') : tr('v062.m0054'), type: 'info', }); }); @@ -1408,7 +1387,7 @@ function bindAutodebug() { interval.addEventListener('change', async () => { const r = await api.autodebugConfig({ intervalMin: Number(interval.value) }).catch(() => null); if (r) fillAutodebugSettings(r); - toast({ title: '检测间隔已更新', body: `每 ${r ? r.intervalMin : interval.value} 分钟检测一次`, type: 'ok' }); + toast({ title: tr('v062.m0055'), body: tr('v062.m0056', [r ? r.intervalMin : interval.value]), type: 'ok' }); }); } @@ -1447,29 +1426,29 @@ async function openSettings() { if (curVerEl && info.version) curVerEl.textContent = `v${info.version}`; const assoc = await api.assocStatus(); const btn = $('btnAssoc'); - btn.textContent = assoc.registered ? '已关联 · 点击取消' : '未关联 · 点击开启'; + btn.textContent = assoc.registered ? tr('m0144') : tr('m0145'); btn.dataset.on = assoc.registered ? '1' : '0'; api.doctorProfile().then((r) => { if (r && r.text) $('autoProfileText').textContent = r.text; - }).catch(() => { $('autoProfileText').textContent = '自动模式'; }); + }).catch(() => { $('autoProfileText').textContent = tr('m0146'); }); // 显卡偏好:显示 Windows 是否真的应用了(支持但没生效时提示重启安卓) if ($('gpuPrefNote') && api.gpuStatus) { api.gpuStatus().then((g) => { - if (!g || !g.supported) { $('gpuPrefNote').textContent = '(当前系统不支持此设置)'; return; } + if (!g || !g.supported) { $('gpuPrefNote').textContent = tr('v064.m0003'); return; } const applied = g.applied || 'auto'; const want = g.mode || 'auto'; - const label = { auto: '系统默认', discrete: '独显', integrated: '核显' }; + const label = { auto: tr('v064.m0004'), discrete: tr('v064.m0005'), integrated: tr('v064.m0006') }; $('gpuPrefNote').textContent = applied === want || want === 'auto' - ? `(已生效:${label[applied] || applied})` - : `(已选 ${label[want] || want},下次启动安卓后生效)`; + ? tr('v064.m0007', [label[applied] || applied]) + : tr('v064.m0008', [label[want] || want]); }).catch(() => {}); } api.runtimeUsage().then((u) => { $('usageText').textContent = u - ? `共 ${u.totalText}${u.reclaimable ? ` · 可回收 ${u.reclaimableText}(${u.count} 项)` : ' · 已是精简状态'}` - : '统计不可用'; - }).catch(() => { $('usageText').textContent = '统计不可用'; }); + ? tr('m0147', [u.totalText, u.reclaimable ? tr('m0148', [u.reclaimableText, u.count]) : tr('m0149')]) + : tr('m0150'); + }).catch(() => { $('usageText').textContent = tr('m0150'); }); $('settingsMask').classList.add('on'); refreshAndroid(); @@ -1499,11 +1478,11 @@ function renderUpdate(info) { if (info.current) cur.textContent = `v${info.current}`; if (info.ok === false) { - st.textContent = `检查失败:${info.error || '网络不可用'}`; + st.textContent = tr('m0152', [info.error || tr('m0153')]); // 检查失败也要给一条出路:直接把发布页打开,用户至少能手动下载。 // 以前这里是「什么都不显示」,用户只会觉得「更新功能坏了」。 showUpdateBtn(true); - btn.textContent = '打开下载页'; + btn.textContent = tr('m0154'); btn.dataset.mode = 'manual'; lastUpdate = { htmlUrl: info.htmlUrl || '' }; if (bar) bar.hidden = true; @@ -1513,22 +1492,22 @@ function renderUpdate(info) { // 如实说明这次是哪个源给出的版本、另一个源为什么没参与 —— // 用户排查「为什么检查更新很慢」时,这一行比任何日志都直接。 const src = (info.sources || []).map((x) => `${x.name} ${x.tag || ''}`.trim()).join(' / '); - const bad = (info.unreachable || []).map((x) => x.name).join('、'); - const stale = info.stale ? '(离线缓存,可能不是最新)' : ''; - st.textContent = `发现新版本 ${info.tag}${src ? `(${src})` : ''}${bad ? `;${bad} 不可达` : ''}${stale}`; + const bad = (info.unreachable || []).map((x) => x.name).join(', '); + const stale = info.stale ? tr('m0155') : ''; + st.textContent = tr('m0156', [info.tag, src ? `(${src})` : '', bad ? tr('m0157', [bad]) : '', stale]); showUpdateBtn(true); - btn.textContent = info.asset ? '立即更新' : '打开下载页'; + btn.textContent = info.asset ? tr('m0158') : tr('m0154'); btn.dataset.mode = info.asset ? 'auto' : 'manual'; const note = $('updateNote'); if (note && info.notes) { const brief = String(info.notes).split('\n').slice(0, 8).join('\n').trim(); - if (brief) note.textContent = `更新内容:\n${brief}`; + if (brief) note.textContent = tr('m0160', [brief]); } if (bar) bar.hidden = true; } else { const src = (info.sources || []).map((x) => x.name).join(' / '); - const stale = info.stale ? '(离线缓存)' : ''; - st.textContent = `已是最新版本(v${info.current})${src ? ` · 经由 ${src}` : ''}${stale}`; + const stale = info.stale ? tr('m0161') : ''; + st.textContent = tr('m0162', [info.current, src ? tr('m0163', [src]) : '', stale]); showUpdateBtn(false); if (bar) bar.hidden = true; } @@ -1548,12 +1527,12 @@ function renderUpdateProgress(p) { const bar = $('updateBar'); const fill = $('updateBarFill'); if (p.stage === 'error') { - if (st) st.textContent = `更新失败:${p.message || ''}`; + if (st) st.textContent = tr('m0164', [p.message || '']); if (bar) bar.hidden = true; - toast({ title: '更新失败', body: p.message || '', type: 'error' }); + toast({ title: tr('m0165'), body: p.message || '', type: 'error' }); return; } - if (st) st.textContent = p.message || '正在更新…'; + if (st) st.textContent = p.message || tr('m0166'); if (bar && fill) { bar.hidden = false; fill.style.width = `${Math.max(0, Math.min(100, p.percent || 0))}%`; @@ -1569,15 +1548,15 @@ function bindUpdate() { if (!silent) { check.disabled = true; const old = check.textContent; - check.textContent = '检查中…'; - $('updateState').textContent = '正在连接 GitHub…'; + check.textContent = tr('m0167'); + $('updateState').textContent = tr('m0168'); try { const info = await api.updateCheck(); renderUpdate(info); - if (info && info.hasUpdate) toast({ title: `发现新版本 ${info.tag}`, body: '点「立即更新」自动下载安装', type: 'info' }); - else if (info && info.ok !== false) toast({ title: '已是最新版本', body: `v${info.current}`, type: 'ok' }); + if (info && info.hasUpdate) toast({ title: tr('m0169', [info.tag]), body: tr('m0170'), type: 'info' }); + else if (info && info.ok !== false) toast({ title: tr('m0171'), body: `v${info.current}`, type: 'ok' }); } catch (e) { - $('updateState').textContent = `检查失败:${e.message}`; + $('updateState').textContent = tr('m0152', [e.message]); } finally { check.disabled = false; check.textContent = old; @@ -1596,17 +1575,17 @@ function bindUpdate() { return; } go.disabled = true; - go.textContent = '更新中…'; + go.textContent = tr('m0173'); const r = await api.updateApply().catch((e) => ({ ok: false, error: e.message })); if (!r || !r.ok) { go.disabled = false; - go.textContent = '立即更新'; + go.textContent = tr('m0158'); if (r && r.error && !r.manual) { - $('updateState').textContent = `更新失败:${r.error}`; - toast({ title: '更新失败', body: r.error, type: 'error' }); + $('updateState').textContent = tr('m0164', [r.error]); + toast({ title: tr('m0165'), body: r.error, type: 'error' }); } } else { - $('updateState').textContent = `已下载 v${r.version},正在重启完成安装…`; + $('updateState').textContent = tr('m0177', [r.version]); } }); @@ -1639,17 +1618,17 @@ function bindSettings() { const r = await api.preflightApply().catch(() => null); btn.disabled = false; if (!r || !r.ok) { - toast({ type: 'error', title: '应用失败', body: (r && r.error) || '请稍后再试' }); + toast({ type: 'error', title: tr('v058.m0102'), body: (r && r.error) || tr('v058.m0091') }); return; } state.settings = r.settings; toast({ type: 'ok', - title: '已按这台机器配置好', - body: `内存 ${Math.round((r.recommended.memoryMB || 0) / 1024)} GB / ${r.recommended.cores} 核 / ${r.recommended.renderSize}` - + (r.driverFile ? ';已生成驱动,下次开机会自动套用' : ''), + title: tr('v058.m0104'), + body: tr('v058.m0105', [Math.round((r.recommended.memoryMB || 0) / 1024), r.recommended.cores, r.recommended.renderSize]) + + (r.driverFile ? tr('v058.m0106') : ''), }); - if (r.driverError) toast({ type: 'warn', title: '驱动没写成功', body: r.driverError }); + if (r.driverError) toast({ type: 'warn', title: tr('v058.m0107'), body: r.driverError }); fillSettings(r.settings); refreshStatus(); }); @@ -1658,7 +1637,7 @@ function bindSettings() { if ($('btnDrvFolder')) { $('btnDrvFolder').addEventListener('click', async () => { const r = await api.driversOpenFolder().catch(() => null); - if (!r || !r.ok) toast({ type: 'error', title: '打不开驱动目录' }); + if (!r || !r.ok) toast({ type: 'error', title: tr('v058.m0108') }); }); } if ($('btnDrvImport')) { @@ -1666,10 +1645,10 @@ function bindSettings() { const r = await api.driversImport().catch(() => null); if (!r || r.canceled) return; if (!r.ok) { - toast({ type: 'error', title: '导入失败', body: (r.errors || []).slice(0, 3).join(';') }); + toast({ type: 'error', title: tr('m0311'), body: (r.errors || []).slice(0, 3).join(tr('list.sep')) }); return; } - toast({ type: 'ok', title: '驱动已导入并启用', body: `${r.driver.name} v${r.driver.version}` }); + toast({ type: 'ok', title: tr('v058.m0109'), body: `${r.driver.name} v${r.driver.version}` }); if (r.overview) renderDrivers(r.overview); }); } @@ -1677,8 +1656,8 @@ function bindSettings() { $('btnDrvExport').addEventListener('click', async () => { const r = await api.driversExportTemplate().catch(() => null); if (!r || r.canceled) return; - if (!r.ok) { toast({ type: 'error', title: '导出失败' }); return; } - toast({ type: 'ok', title: '模板已导出', body: '改完 effect 后放到驱动目录,点「刷新」即可生效' }); + if (!r.ok) { toast({ type: 'error', title: tr('m0205') }); return; } + toast({ type: 'ok', title: tr('v058.m0110'), body: tr('v058.m0111') }); refreshDrivers(); }); } @@ -1717,13 +1696,13 @@ function bindSettings() { // 资源策略会连带改 liteMode / priorityMode / renderSize(主进程里翻译) state.settings = await api.setSettings({ engine: { resourceMode: e.target.value } }); fillSettings(state.settings); - toast({ title: '资源策略已切换', body: '下一次打开应用生效', type: 'ok' }); + toast({ title: tr('m0178'), body: tr('m0179'), type: 'ok' }); }); } if ($('setGpuPreference')) { $('setGpuPreference').addEventListener('change', (e) => { save({ engine: { gpuPreference: e.target.value } }); - toast({ title: '显卡偏好已保存', body: '下一次启动安卓时生效', type: 'ok' }); + toast({ title: tr('v064.m0009'), body: tr('v064.m0010'), type: 'ok' }); }); } if ($('setRenderSize')) { @@ -1735,15 +1714,15 @@ function bindSettings() { if ($('setLocale')) { $('setLocale').addEventListener('change', async (e) => { state.settings = await api.setSettings({ engine: { locale: e.target.value } }); - toast({ title: '系统语言已更新', body: '下次重启安卓运行时后生效', type: 'ok' }); + toast({ title: tr('v058.m0112'), body: tr('v058.m0113'), type: 'ok' }); }); } if ($('setChineseIme')) { $('setChineseIme').addEventListener('change', async (e) => { state.settings = await api.setSettings({ engine: { chineseIme: e.target.checked } }); toast({ - title: e.target.checked ? '已开启中文输入法' : '已关闭中文输入法', - body: '下次重启安卓运行时后生效', + title: e.target.checked ? tr('v058.m0114') : tr('v058.m0115'), + body: tr('v058.m0113'), type: 'ok', }); }); @@ -1760,17 +1739,17 @@ function bindSettings() { if ($('btnGrowData')) { $('btnGrowData').addEventListener('click', async () => { const gb = Number($('setDataGB').value) || 0; - if (!gb) { toast({ title: '先选一个容量', body: '「自动」表示由软件按磁盘余量决定,不需要扩容', type: 'info' }); return; } + if (!gb) { toast({ title: tr('m0180'), body: tr('m0181'), type: 'info' }); return; } const { response } = await api.confirm({ - title: '立刻把安卓数据分区扩容?', - message: `将把 /data 调整为 ${gb} GB(就地扩容,已装应用和存档都会保留)。`, - detail: '扩容需要先关掉正在运行的安卓应用,完成后下次打开应用会重新引导,约多花十几秒。', - okLabel: '开始扩容', + title: tr('m0182'), + message: tr('m0183', [gb]), + detail: tr('m0184'), + okLabel: tr('m0185'), }); if (response !== 1) return; $('btnGrowData').disabled = true; const old = $('btnGrowData').textContent; - $('btnGrowData').textContent = '扩容中…'; + $('btnGrowData').textContent = tr('m0186'); const r = await api.setDataSize(gb).catch((e) => ({ ok: false, error: e.message })); $('btnGrowData').disabled = false; $('btnGrowData').textContent = old; @@ -1778,31 +1757,31 @@ function bindSettings() { // 快速启动的差量盘挡着:就地扩容做不到,只能按新容量重建 /data。 // 这是明确的数据丢失操作,必须单独再确认一次。 const again = await api.confirm({ - title: '需要重置安卓数据才能扩容', - message: `安卓正在使用快速启动差量盘,就地扩容改不到它。要拿到 ${gb} GB 空间,必须按新容量重建 /data。`, - detail: '重建会清空已安装的应用与存档(模拟器本身和镜像不受影响)。确定继续吗?', - okLabel: '清空并重建', + title: tr('v058.m0117'), + message: tr('v058.m0118', [gb]), + detail: tr('v058.m0119'), + okLabel: tr('v058.m0120'), }); if (again.response !== 1) { refreshDataInfo(); return; } $('btnGrowData').disabled = true; - $('btnGrowData').textContent = '重建中…'; + $('btnGrowData').textContent = tr('v058.m0121'); const rr = await api.resetAndResize(gb).catch((e) => ({ ok: false, error: e.message })); $('btnGrowData').disabled = false; $('btnGrowData').textContent = old; toast({ type: rr && rr.ok ? 'ok' : 'error', - title: rr && rr.ok ? '已按新容量重建' : '重建失败', + title: rr && rr.ok ? tr('v058.m0122') : tr('v058.m0123'), body: rr && rr.ok - ? `下次打开应用会按 ${gb} GB 重建 /data(首次进入会多等几十秒)` - : (rr && rr.error) || '未知错误', + ? tr('v058.m0124', [gb]) + : (rr && rr.error) || tr('m0078'), }); refreshDataInfo(); return; } toast({ type: r && r.ok ? 'ok' : 'error', - title: r && r.ok ? '数据分区已扩容' : '扩容失败', - body: r && r.ok ? `现在约 ${r.fsGB || r.imageGB || gb} GB 可用` : (r && r.error) || '未知错误', + title: r && r.ok ? tr('m0187') : tr('m0188'), + body: r && r.ok ? tr('m0189', [r.fsGB || r.imageGB || gb]) : (r && r.error) || tr('m0078'), }); refreshDataInfo(); }); @@ -1845,7 +1824,7 @@ function bindSettings() { if ($('setKeymapEnabled')) { $('setKeymapEnabled').addEventListener('change', async (e) => { await api.keymap.setEnabled(e.target.checked); - toast({ title: e.target.checked ? '键盘映射已开启' : '键盘映射已关闭', type: 'ok' }); + toast({ title: e.target.checked ? tr('v058.m0125') : tr('v058.m0126'), type: 'ok' }); }); } // 实验室:多开开关与后台保留数。改完提示下次打开应用生效(切换应用路径才读它)。 @@ -1853,8 +1832,8 @@ function bindSettings() { $('setMultiWindow').addEventListener('change', (e) => { save({ engine: { multiWindow: e.target.checked } }); toast({ - title: e.target.checked ? '多窗口多开已开启(实验性)' : '已回到单应用模式', - body: e.target.checked ? '下次打开应用生效:多个应用可并存、各自独立原生窗口。' : '', + title: e.target.checked ? tr('v064.m0011') : tr('v064.m0012'), + body: e.target.checked ? tr('v064.m0013') : '', type: 'ok', }); }); @@ -1869,7 +1848,7 @@ function bindSettings() { // 关掉深度裁剪必须把之前 pm disable-user 的包恢复回来,否则影响是持久的 if (!e.target.checked) { api.restoreSystemApps().catch(() => {}); - toast({ title: '已恢复系统组件', body: '深度裁剪关闭,后台包正在恢复', type: 'info' }); + toast({ title: tr('m0191'), body: tr('m0192'), type: 'info' }); } }); $('setCompat').addEventListener('change', async (e) => { @@ -1878,8 +1857,8 @@ function bindSettings() { const env = ((state.status = await api.runtimeStatus()).env) || {}; const ok = env.playImage && env.playImage.ok; $('compatInstallField').hidden = !on || !!ok; - if (on && !ok) toast({ title: 'ARM 兼容模式已开启', body: '还需要下载 Google Play 兼容镜像(Android 14,约 1.5GB),点击下方按钮开始', type: 'info' }); - else if (on) toast({ title: 'ARM 兼容模式已开启', body: '重启运行时后生效', type: 'info' }); + if (on && !ok) toast({ title: tr('m0193'), body: tr('m0194'), type: 'info' }); + else if (on) toast({ title: tr('m0193'), body: tr('m0196'), type: 'info' }); }); $('setAutoShortcut').addEventListener('change', (e) => save({ createShortcutOnInstall: e.target.checked })); $('setStartMenuShortcut').addEventListener('change', (e) => save({ createStartMenuShortcut: e.target.checked })); @@ -1890,13 +1869,13 @@ function bindSettings() { const mode = e.target.value; $('portraitField').hidden = mode === 'fullscreen'; state.settings = await api.setSettings({ display: { mode } }); - toast({ title: mode === 'fullscreen' ? '已切全屏' : '已切竖屏窗口', type: 'ok' }); + toast({ title: mode === 'fullscreen' ? tr('m0197') : tr('m0198'), type: 'ok' }); }); if ($('setAutoFullscreen')) { $('setAutoFullscreen').addEventListener('change', async (e) => { const on = e.target.value === 'on'; state.settings = await api.setSettings({ display: { autoFullscreenOnLaunch: on } }); - toast({ title: on ? '已开启自动全屏' : '已关闭自动全屏', body: '下次打开应用时生效', type: 'ok' }); + toast({ title: on ? tr('v058.m0127') : tr('v058.m0128'), body: tr('v058.m0129'), type: 'ok' }); }); } if ($('setOrientationMode')) { @@ -1904,10 +1883,10 @@ function bindSettings() { const mode = e.target.value; state.settings = await api.setSettings({ display: { orientationMode: mode } }); toast({ - title: mode === 'auto' ? '已设为跟随应用' : (mode === 'landscape' ? '已强制横屏' : '已强制竖屏'), + title: mode === 'auto' ? tr('v058.m0130') : (mode === 'landscape' ? tr('v058.m0131') : tr('v058.m0132')), body: mode === 'auto' - ? '下次打开应用时会按应用自己的方向选面板,方向不一致的话会重启一次运行时。' - : '下次打开应用时会重启一次运行时把面板切到指定方向,之后不再重启。', + ? tr('v058.m0133') + : tr('v058.m0134'), type: 'ok', }); }); @@ -1917,8 +1896,8 @@ function bindSettings() { const on = e.target.value === 'on'; state.settings = await api.setSettings({ display: { autoRotate: on } }); toast({ - title: on ? '已打开镜像自动旋转' : '已关闭镜像自动旋转', - body: '下次打开应用时写进安卓镜像。画面方向仍由屏幕方向策略决定,不受此开关影响。', + title: on ? tr('v062.m0057') : tr('v062.m0058'), + body: tr('v062.m0059'), type: 'ok', }); }); @@ -1928,8 +1907,8 @@ function bindSettings() { const on = e.target.value === 'on'; state.settings = await api.setSettings({ display: { tabletMode: on } }); toast({ - title: on ? '已打开平板排版' : '已关闭平板排版', - body: '下次打开应用时生效(会重启一次运行时来改逻辑密度)。', + title: on ? tr('v058.m0135') : tr('v058.m0136'), + body: tr('v058.m0137'), type: 'ok', }); }); @@ -1939,15 +1918,15 @@ function bindSettings() { const landscape = e.target.value === 'landscape'; state.settings = await api.setSettings({ display: { landscape } }); toast({ - title: landscape ? '面板已设为横屏' : '面板已设为竖屏', - body: '下次打开应用时会重启一次运行时来切换物理面板方向(约十几秒),之后就不会再重启。', + title: landscape ? tr('v058.m0138') : tr('v058.m0139'), + body: tr('v058.m0140'), type: 'ok', }); }); } $('setPortrait').addEventListener('change', async (e) => { state.settings = await api.setSettings({ display: { portrait: e.target.value } }); - toast({ title: '画面大小已更新', body: '下次打开应用或切换应用时生效', type: 'ok' }); + toast({ title: tr('m0199'), body: tr('m0200'), type: 'ok' }); }); $('setWindowEmbed').addEventListener('change', async (e) => { const embed = e.target.value === 'embed'; @@ -1956,18 +1935,18 @@ function bindSettings() { display: { windowEmbed: embed, windowEmbedChosen: true }, }); toast({ - title: embed ? '已切回嵌入模式' : '已切到原生窗口', + title: embed ? tr('v058.m0141') : tr('v062.m0060'), body: embed - ? '下次打开应用时生效。嵌入模式观感统一、标题栏带旋转按钮,但缩放/旋转时更容易掉帧或出现黑边。' - : '下次打开应用时生效。原生窗口由模拟器自己渲染与排布,帧率和缩放更稳,横屏可用托盘菜单或 Ctrl+Alt+R。', + ? tr('v062.m0061') + : tr('v062.m0062'), type: 'ok', }); }); $('btnRebuildShortcuts').addEventListener('click', async () => { const r = await api.rebuildShortcuts(); toast({ - title: r && r.fixed && r.fixed.length ? '已补齐快捷方式' : '快捷方式都还在', - body: r && r.fixed && r.fixed.length ? r.fixed.join('、') : '桌面与开始菜单入口正常', + title: r && r.fixed && r.fixed.length ? tr('m0201') : tr('m0202'), + body: r && r.fixed && r.fixed.length ? r.fixed.join(', ') : tr('m0203'), type: 'ok', }); }); @@ -1975,9 +1954,9 @@ function bindSettings() { $('btnDiagnostics').addEventListener('click', async () => { try { const r = await api.doctorReport(); - toast({ title: '诊断报告已导出', body: `${r.diagnosis.title} · ${r.file}`, type: 'ok', sticky: true }); + toast({ title: tr('m0204'), body: `${r.diagnosis.title} · ${r.file}`, type: 'ok', sticky: true }); } catch (e) { - toast({ title: '导出失败', body: e.message, type: 'error' }); + toast({ title: tr('m0205'), body: e.message, type: 'error' }); } }); @@ -1988,20 +1967,20 @@ function bindSettings() { try { const preview = await api.runtimeCleanup({ apply: false, includeSnapshots }); if (!preview.candidates.length) { - toast({ title: '已经是精简状态', body: '没有可回收的旧镜像或快照。', type: 'ok' }); + toast({ title: tr('m0206'), body: tr('m0207'), type: 'ok' }); return; } const r = await api.runtimeCleanup({ apply: true, includeSnapshots }); if (r.cancelled) return; toast({ - title: '清理完成', - body: `释放约 ${(r.saved / 1048576).toFixed(0)} MB(${r.removed.length} 项),已安装应用保留。`, + title: tr('m0208'), + body: tr('m0209', [(r.saved / 1048576).toFixed(0), r.removed.length]), type: 'ok', }); const u = await api.runtimeUsage(); - $('usageText').textContent = `共 ${u.totalText} · 可回收 ${u.reclaimableText}(${u.count} 项)`; + $('usageText').textContent = tr('m0210', [u.totalText, u.reclaimableText, u.count]); } catch (e) { - toast({ title: '清理失败', body: e.message, type: 'error' }); + toast({ title: tr('m0211'), body: e.message, type: 'error' }); } finally { btn.disabled = false; } @@ -2014,41 +1993,41 @@ function bindSettings() { try { const first = await api.confirm({ type: 'warning', - title: '重置安卓数据?', - message: '这会把安卓系统还原成「刚装好系统」的干净状态:', - detail: '• 删除全部已安装的第三方 app(含红果、游戏等)及其数据、登录态\n' - + '• 删除当前 AVD 的快速启动快照\n' - + '• 系统镜像本身不受影响,重新打开应用会再次冷启动建数据\n\n' - + '此操作不可撤销。是否继续?', - buttons: ['取消', '继续'], + title: tr('m0212'), + message: tr('m0213'), + detail: tr('m0214') + + tr('m0215') + + tr('m0216') + + tr('m0217'), + buttons: [tr('m0218'), tr('m0219')], defaultId: 0, cancelId: 0, }); if (!first || first.response !== 1) return; const second = await api.confirm({ type: 'warning', - title: '再确认一次', - message: '已安装的 app 和它们的数据将被永久删除,确定要重置吗?', - detail: '可放心的是:系统镜像、其它 AVD、本机的 APK 缓存和图标都不会动。', - buttons: ['取消', '确定重置'], + title: tr('m0220'), + message: tr('m0221'), + detail: tr('m0222'), + buttons: [tr('m0218'), tr('m0224')], defaultId: 0, cancelId: 0, }); if (!second || second.response !== 1) return; const r = await api.runtimeResetData(); if (!r || !r.ok) { - toast({ title: '重置失败', body: (r && r.error) || '请重试', type: 'error' }); + toast({ title: tr('m0225'), body: (r && r.error) || tr('m0226'), type: 'error' }); return; } toast({ - title: '安卓数据已重置', - body: `释放约 ${r.reclaimedMB} MB,已安装应用记录已清空。`, + title: tr('m0227'), + body: tr('m0228', [r.reclaimedMB]), type: 'ok', }); const u = await api.runtimeUsage(); - $('usageText').textContent = `共 ${u.totalText} · 可回收 ${u.reclaimableText}(${u.count} 项)`; + $('usageText').textContent = tr('m0210', [u.totalText, u.reclaimableText, u.count]); } catch (e) { - toast({ title: '重置失败', body: e.message, type: 'error' }); + toast({ title: tr('m0225'), body: e.message, type: 'error' }); } finally { btn.disabled = false; } @@ -2063,14 +2042,14 @@ function bindSettings() { try { const ok = await api.confirm({ type: 'warning', - title: '修复虚拟机网络?', - message: '应用里需要联网的页面一直黑屏/转圈,通常是安卓虚拟机没有网络。', - detail: '修复会按「代价从小到大」依次尝试:\n\n' - + '1. 冷启动虚拟机(不加载快照)后等待联网 —— 不影响任何数据\n' - + '2. 仍不行才重置安卓数据 —— 应用清单保留、点开会自动重装,\n' - + ' 但应用内的登录态、追剧记录等会丢失\n\n' - + '只影响当前 AVD,系统镜像和本机 APK 缓存都不动。整个过程约 1–5 分钟。是否继续?', - buttons: ['取消', '开始修复'], + title: tr('m0231'), + message: tr('m0232'), + detail: tr('m0233') + + tr('m0234') + + tr('m0235') + + tr('m0236') + + tr('m0237'), + buttons: [tr('m0218'), tr('m0239')], defaultId: 0, cancelId: 0, }); @@ -2078,19 +2057,19 @@ function bindSettings() { const r = await api.runtimeRepairNetwork(); if (!r || !r.ok) { toast({ - title: '网络仍未恢复', - body: (r && r.error) || '重置后虚拟机还是没网,请检查本机网络/防火墙是否拦住了模拟器。', + title: tr('m0240'), + body: (r && r.error) || tr('m0241'), type: 'error', }); return; } toast({ - title: '网络已恢复', - body: `${(r.network && r.network.ip) || '已联网'}${r.wiped ? '(为修复网络重置过安卓数据,点开应用会自动重装)' : '(未动你的数据)'}`, + title: tr('m0242'), + body: `${(r.network && r.network.ip) || tr('m0243')}${r.wiped ? tr('m0244') : tr('m0245')}`, type: 'ok', }); } catch (e) { - toast({ title: '修复失败', body: e.message, type: 'error' }); + toast({ title: tr('m0246'), body: e.message, type: 'error' }); } finally { btn.disabled = false; } @@ -2103,43 +2082,43 @@ function bindSettings() { try { const r = await api.leftoversScan(); if (!r || !r.ok) { - toast({ title: '扫描失败', body: (r && r.error) || '请重试', type: 'error' }); + toast({ title: tr('m0247'), body: (r && r.error) || tr('m0226'), type: 'error' }); return; } const items = r.items || []; if (!items.length) { - toast({ title: '很干净', body: '没有发现旧版本残留。', type: 'ok' }); + toast({ title: tr('m0249'), body: tr('m0250'), type: 'ok' }); return; } const mb = Math.round((r.totalBytes || 0) / 1048576); const lines = items.slice(0, 8).map((x) => `• ${x.note}:${x.path}`); - if (items.length > 8) lines.push(`…另有 ${items.length - 8} 项`); + if (items.length > 8) lines.push(tr('m0251', [items.length - 8])); const ok = await api.confirm({ type: 'warning', - title: '清理旧版本残留?', - message: `找到 ${items.length} 项残留,约 ${mb} MB:`, - detail: `${lines.join('\n')}\n\n只删除「旧版本程序目录 / 已失效的卸载项 / 更新临时文件」,` - + '当前正在运行的版本和你的应用数据都不会动。', - buttons: ['取消', '开始清理'], + title: tr('m0252'), + message: tr('m0253', [items.length, mb]), + detail: tr('m0254', [lines.join('\n')]) + + tr('m0255'), + buttons: [tr('m0218'), tr('m0257')], defaultId: 1, cancelId: 0, }); if (!ok || ok.response !== 1) return; const c = await api.leftoversClean(items); if (!c || !c.ok) { - toast({ title: '清理失败', body: (c && c.error) || '请重试', type: 'error' }); + toast({ title: tr('m0211'), body: (c && c.error) || tr('m0226'), type: 'error' }); return; } - const failNote = (c.failed && c.failed.length) ? `,${c.failed.length} 项被占用未删` : ''; + const failNote = (c.failed && c.failed.length) ? tr('m0260', [c.failed.length]) : ''; toast({ - title: '已清理旧版本残留', - body: `删除 ${c.removed.length} 项,释放 ${c.freedMB || 0} MB${failNote}。`, + title: tr('m0261'), + body: tr('m0262', [c.removed.length, c.freedMB || 0, failNote]), type: 'ok', }); const u = await api.runtimeUsage(); - $('usageText').textContent = `共 ${u.totalText} · 可回收 ${u.reclaimableText}(${u.count} 项)`; + $('usageText').textContent = tr('m0210', [u.totalText, u.reclaimableText, u.count]); } catch (e) { - toast({ title: '清理失败', body: e.message, type: 'error' }); + toast({ title: tr('m0211'), body: e.message, type: 'error' }); } finally { btn.disabled = false; } @@ -2155,8 +2134,8 @@ function bindSettings() { const r = await api.rebuildShortcuts().catch(() => ({ ok: false })); const fixed = (r && r.fixed) || []; toast(fixed.length - ? { title: '快捷方式已重建', body: fixed.join('、'), type: 'ok' } - : { title: '快捷方式都在', body: '没有需要重建的入口', type: 'info' }); + ? { title: tr('m0265'), body: fixed.join(', '), type: 'ok' } + : { title: tr('m0266'), body: tr('m0267'), type: 'info' }); } finally { btn.disabled = false; } @@ -2167,26 +2146,26 @@ function bindSettings() { const picked = await api.openDir(); if (!picked) return; $('setSharedDir').value = picked; - toast({ title: '已选新目录', body: '点「保存并迁移」把旧文件搬过去', type: 'info' }); + toast({ title: tr('m0268'), body: tr('m0269'), type: 'info' }); }); $('btnSaveShared').addEventListener('click', async () => { const dir = $('setSharedDir').value.trim(); - if (!dir) { toast({ title: '请先填写或浏览目录', type: 'error' }); return; } + if (!dir) { toast({ title: tr('m0270'), type: 'error' }); return; } const btn = $('btnSaveShared'); btn.disabled = true; const r = await api.setSharedDir(dir).catch(() => ({ ok: false })); btn.disabled = false; if (r.ok) { const moved = r.oldDir && r.oldDir !== r.newDir; - toast({ title: '共享目录已更新', body: moved ? '旧目录里已有的文件已迁移到新目录' : '已保存', type: 'ok' }); + toast({ title: tr('m0271'), body: moved ? tr('m0272') : tr('m0273'), type: 'ok' }); } else { - toast({ title: '保存失败', body: r.error, type: 'error' }); + toast({ title: tr('m0274'), body: r.error, type: 'error' }); } }); // 一键卸载 ApkStart 本体(取消 .apk 关联 + 启动卸载程序;便携版手动删除) $('btnUninstall').addEventListener('click', async () => { - const ok = window.confirm('确定卸载 ApkStart?\n\n将取消 .apk 文件关联并移除程序。此操作不可撤销。'); + const ok = window.confirm(tr('m0275')); if (!ok) return; const btn = $('btnUninstall'); btn.disabled = true; @@ -2194,44 +2173,44 @@ function bindSettings() { if (r.ok && r.portable) { btn.disabled = false; toast({ - title: '便携版无法自动卸载', - body: `请手动删除程序目录(${r.exeDir})与数据目录(${r.dataDir})`, + title: tr('m0276'), + body: tr('m0277', [r.exeDir, r.dataDir]), type: 'info', sticky: true, }); return; } if (!r.ok) { btn.disabled = false; - toast({ title: '卸载失败', body: r.error, type: 'error' }); + toast({ title: tr('m0104'), body: r.error, type: 'error' }); return; } - toast({ title: '正在卸载…', body: '卸载程序已启动,ApkStart 即将退出', type: 'ok', sticky: true }); + toast({ title: tr('m0279'), body: tr('m0280'), type: 'ok', sticky: true }); }); // ARM 兼容镜像下载(带进度 toast) $('btnInstallPlay').addEventListener('click', async () => { const btn = $('btnInstallPlay'); btn.disabled = true; - const t = toast({ title: '开始下载 ARM 兼容镜像', body: '准备中…', sticky: true, spinner: true, progress: 3 }); + const t = toast({ title: tr('m0281'), body: tr('m0052'), sticky: true, spinner: true, progress: 3 }); const un = api.on('provision:progress', (p) => { if (p.component !== 'playimg') return; - t.update({ title: '下载 ARM 兼容镜像', body: p.message || '', progress: p.percent }); + t.update({ title: tr('m0283'), body: p.message || '', progress: p.percent }); }); try { const r = await api.installPlayImage(); if (r && r.ok) { - t.update({ title: 'ARM 兼容镜像就绪', body: '重启运行时后生效', progress: 100 }); + t.update({ title: tr('m0284'), body: tr('m0196'), progress: 100 }); setTimeout(() => t.dismiss(), 3000); $('compatInstallField').hidden = true; refreshStatus(); } else { - t.update({ title: '兼容镜像下载失败', body: (r && r.error) || '未知错误', progress: null }); + t.update({ title: tr('m0286'), body: (r && r.error) || tr('m0078'), progress: null }); t.dismiss(); - toast({ title: '兼容镜像下载失败', body: (r && r.error) || '未知错误', type: 'error' }); + toast({ title: tr('m0286'), body: (r && r.error) || tr('m0078'), type: 'error' }); } } catch (e) { t.dismiss(); - toast({ title: '兼容镜像下载失败', body: e.message, type: 'error' }); + toast({ title: tr('m0286'), body: e.message, type: 'error' }); } finally { un(); btn.disabled = false; @@ -2247,7 +2226,7 @@ function bindSettings() { $('compatInstallField').hidden = !on || !!ok; if (env.playImage) { $('compatImgStatus').textContent = ok - ? `已就绪(${(env.playImage.size / 1073741824).toFixed(2)} GB)` : '未下载'; + ? tr('m0291', [(env.playImage.size / 1073741824).toFixed(2)]) : tr('m0292'); } })(); $('btnOpenData').addEventListener('click', async () => { @@ -2261,7 +2240,7 @@ function bindSettings() { if (!picked) return; await api.setSettings({ runtime: { dir: picked } }); $('setRuntimeDir').value = picked; - toast({ title: '数据目录已更新', body: '请重启 ApkStart 使其生效(旧数据不会自动搬移)', type: 'ok', sticky: true }); + toast({ title: tr('m0293'), body: tr('m0294'), type: 'ok', sticky: true }); }); // 安卓数据目录(AVD + 快照):真正吃盘的那块,单独指到别的盘 @@ -2272,8 +2251,8 @@ function bindSettings() { await api.setSettings({ runtime: { avdDir: picked } }); $('setAvdDir').value = picked; toast({ - title: '安卓数据目录已更新', - body: '请重启 ApkStart 使其生效。旧目录里的 apkstart.avd 可以整体搬到新目录,再删掉旧的。', + title: tr('m0295'), + body: tr('m0296'), type: 'ok', sticky: true, }); @@ -2289,15 +2268,15 @@ function bindSettings() { $('btnRuntimeStart').addEventListener('click', async () => { const el = $('probeResult'); - el.textContent = '正在启动…'; + el.textContent = tr('m0300'); const r = await api.runtimeStart(); - el.textContent = r.ok ? `已就绪:${r.engine}` : `启动失败:${r.error}`; + el.textContent = r.ok ? tr('m0301', [r.engine]) : tr('m0302', [r.error]); refreshStatus(); }); $('btnRuntimeStop').addEventListener('click', async () => { await api.runtimeStop(); - $('probeResult').textContent = '已停止内置虚拟机'; + $('probeResult').textContent = tr('m0303'); refreshStatus(); }); @@ -2305,14 +2284,14 @@ function bindSettings() { const btn = $('btnAssoc'); if (btn.dataset.on === '1') { await api.assocUnregister(); - btn.textContent = '未关联 · 点击开启'; + btn.textContent = tr('m0145'); btn.dataset.on = '0'; - toast({ title: '.apk 关联已取消' }); + toast({ title: tr('m0305') }); } else { const r = await api.assocRegister(); - btn.textContent = '已关联 · 点击取消'; + btn.textContent = tr('m0144'); btn.dataset.on = '1'; - toast({ title: '.apk 关联已开启', body: r.ok ? '现在双击 APK 会直接安装到 ApkStart' : '', type: r.ok ? 'ok' : 'error' }); + toast({ title: tr('m0307'), body: r.ok ? tr('m0308') : '', type: r.ok ? 'ok' : 'error' }); } }); } @@ -2368,33 +2347,33 @@ function bindEvents() { if (act === 'emulator' || act === 'sysimg' || act === 'accel' || act === 'adb' || act === 'qemu' || act === 'iso' || act === 'disk') { const r = await runStep(act); - if (!r.ok) toast({ title: '操作失败', body: r.error, type: 'error', sticky: true }); + if (!r.ok) toast({ title: tr('m0309'), body: r.error, type: 'error', sticky: true }); return; } if (act === 'isoImport') { const r = await api.importIso(); - if (r.ok) { toast({ title: '系统镜像已导入', body: r.path, type: 'ok' }); refreshStatus(); } - else if (!r.canceled) toast({ title: '导入失败', body: r.error, type: 'error' }); + if (r.ok) { toast({ title: tr('m0310'), body: r.path, type: 'ok' }); refreshStatus(); } + else if (!r.canceled) toast({ title: tr('m0311'), body: r.error, type: 'error' }); return; } if (act === 'diskImport') { const r = await api.importDisk(); - if (r.ok) { toast({ title: '虚拟磁盘已导入', body: '可直接启动运行时', type: 'ok' }); refreshStatus(); } - else if (!r.canceled) toast({ title: '导入失败', body: r.error, type: 'error' }); + if (r.ok) { toast({ title: tr('m0312'), body: tr('m0313'), type: 'ok' }); refreshStatus(); } + else if (!r.canceled) toast({ title: tr('m0311'), body: r.error, type: 'error' }); return; } if (act === 'install') { await startInstall(); return; } if (act === 'vmStart') { - const t = toast({ title: '正在启动运行时…', body: '首次启动需要引导 Android 系统', sticky: true, spinner: true }); + const t = toast({ title: tr('m0315'), body: tr('m0316'), sticky: true, spinner: true }); const r = await api.runtimeStart(); - if (r.ok) { t.update({ title: '运行时已就绪', type: 'ok' }); setTimeout(t.dismiss, 2200); } - else t.update({ title: '启动失败', body: r.error, type: 'error' }); + if (r.ok) { t.update({ title: tr('m0062'), type: 'ok' }); setTimeout(t.dismiss, 2200); } + else t.update({ title: tr('m0099'), body: r.error, type: 'error' }); refreshStatus(); return; } if (act === 'vmStop') { await api.runtimeStop(); - toast({ title: '运行时会话已结束' }); + toast({ title: tr('m0319') }); refreshStatus(); } }); @@ -2411,9 +2390,9 @@ function bindEvents() { btnSync.disabled = true; try { await api.syncShared(); - toast({ title: '已同步共享目录', type: 'ok' }); + toast({ title: tr('m0320'), type: 'ok' }); } catch (_) { - toast({ title: '同步失败', body: '运行时未就绪时会跳过同步', type: 'error' }); + toast({ title: tr('m0321'), body: tr('m0322'), type: 'error' }); } finally { btnSync.disabled = false; } @@ -2487,7 +2466,7 @@ function bindEvents() { .map((f) => { try { return api.pathForFile(f); } catch (_) { return null; } }) .filter((p) => p && /\.apk$/i.test(p)); if (paths.length) installFiles(paths); - else toast({ title: '只能拖入 .apk 文件', type: 'error' }); + else toast({ title: tr('m0323'), type: 'error' }); }); // 主进程事件 @@ -2495,10 +2474,10 @@ function bindEvents() { // 报错了就别再让「正在安装…」那条一直转圈(可能来自双击 APK 的另一条链路) if (installToast) { try { installToast.dismiss(); } catch (_) { /* ignore */ } installToast = null; } const name = p && p.file ? String(p.file).split(/[\\/]/).pop() : ''; - const raw = (p && p.message) || '未知错误'; + const raw = (p && p.message) || tr('m0078'); toast({ - title: name ? `安装失败:${name}` : '安装失败', - body: friendlyInstallErrorText(raw), + title: name ? tr('m0324', [name]) : tr('m0325'), + body: friendlyInstallErrorText(raw, p.abiRetried), type: 'error', }); // 0.6.2:安装失败自动把对应章节推到用户面前(ARM / 签名 / 空间…) @@ -2526,7 +2505,7 @@ function bindEvents() { api.on('autodebug:state', (r) => { if (r && r.running) { const txt = $('autodebugStateText'); - if (txt) txt.textContent = '正在检测…'; + if (txt) txt.textContent = tr('m0523'); return; } renderAutodebug(r); @@ -2536,6 +2515,7 @@ function bindEvents() { /* ---------------- 启动 ---------------- */ async function init() { + await window.i18n.ready; bindEvents(); bindSettings(); bindSettingsCategory(); @@ -2632,11 +2612,11 @@ async function maybeShowLanguagePicker() { let startupInfo = null; function greetingOf(h) { - if (h < 5) return '夜深了'; - if (h < 11) return '早上好'; - if (h < 13) return '中午好'; - if (h < 18) return '下午好'; - return '晚上好'; + if (h < 5) return tr('m0327'); + if (h < 11) return tr('m0328'); + if (h < 13) return tr('m0329'); + if (h < 18) return tr('m0330'); + return tr('m0331'); } function bindWelcome() { @@ -2666,17 +2646,17 @@ async function maybeShowWelcome() { if (!(startupInfo && startupInfo.autostart) && cfg.lastDate === today) return; const h = new Date().getHours(); - $('welcomeHi').textContent = `${greetingOf(h)},欢迎回来`; + $('welcomeHi').textContent = tr('m0332', [greetingOf(h)]); const ver = (startupInfo && startupInfo.version) || (state.status && state.status.version) || ''; const ready = state.status && state.status.ready; - $('welcomeSub').textContent = `ApkStart${ver ? ` v${ver}` : ''} · ${ready ? '运行时就绪,点开即用' : '运行时会按需自动准备'}`; + $('welcomeSub').textContent = `ApkStart${ver ? ` v${ver}` : ''} · ${ready ? tr('m0333') : tr('m0334')}`; const apps = (state.apps || []).length; const dev = $('statusDevice') ? $('statusDevice').textContent.trim() : ''; const chips = [ - { k: String(apps), v: '已装应用' }, - { k: ready ? '就绪' : '待命', v: '安卓运行时' }, - { k: dev ? dev.replace(/^.*?(\d+)/, '$1') : '—', v: '设备 / 端口' }, + { k: String(apps), v: tr('m0335') }, + { k: ready ? tr('m0336') : tr('m0337'), v: tr('m0338') }, + { k: dev ? dev.replace(/^.*?(\d+)/, '$1') : '—', v: tr('m0339') }, ]; $('welcomeStats').innerHTML = chips .map((c) => `
    ${esc(c.k)}${esc(c.v)}
    `) @@ -2696,14 +2676,14 @@ function renderWelcomeTips() { const apps = (state.apps || []).length; const tips = []; if (lastUpdate && lastUpdate.hasUpdate) { - tips.push(`发现新版本 ${esc(lastUpdate.tag || '')},可在「设置 → 软件更新」一键更新`); + tips.push(tr('m0340', [esc(lastUpdate.tag || '')])); } if (!apps) { - tips.push('把 APK 拖进窗口就能安装,装完会自动生成桌面图标'); + tips.push(tr('m0341')); } else { - tips.push('双击应用卡片即可在独立窗口中运行,右上角可旋转 / 缩放 / 关闭'); + tips.push(tr('m0342')); } - tips.push('关窗口只是退出那个应用,安卓环境会留着,下次点开更快'); + tips.push(tr('m0343')); box.innerHTML = tips .map((t, i) => `
    ${i + 1}${t}
    `) .join(''); @@ -2736,20 +2716,14 @@ function renderEnvCheck(r) { if (chip) { const errs = issues.filter((i) => i.severity === 'error').length; chip.hidden = issues.length === 0; - chip.textContent = errs ? `${errs} 项待修复` : `${issues.length} 项提示`; + chip.textContent = errs ? tr('m0344', [errs]) : tr('m0345', [issues.length]); chip.className = `status-chip${errs ? ' err' : ''}`; - chip.title = issues.map((i) => i.title).join(';'); + chip.title = issues.map((i) => i.title).join(tr('list.sep')); } if (!issues.length) { box.hidden = false; - box.innerHTML = ` -
    - - 环境自检通过,没有发现会影响运行的问题。 - - -
    `; + box.innerHTML = tr('m0346'); const re = $('btnEnvRecheck'); if (re) re.addEventListener('click', selfCheck); return; @@ -2757,27 +2731,7 @@ function renderEnvCheck(r) { const errs = issues.filter((i) => i.severity === 'error').length; const warns = issues.length - errs; box.hidden = false; - box.innerHTML = ` -
    - 环境自检 - ${errs ? `${errs} 个严重` : ''} - ${warns ? `${warns} 个提示` : ''} - - - -
    -
    - ${issues.map((i) => ` -
    - -
    -
    ${esc(i.title)}
    -
    ${esc(i.hint || '')}
    -
    - ${i.fix ? `` : ''} - -
    `).join('')} -
    `; + box.innerHTML = tr('m0347', [errs ? tr('m0348', [errs]) : '', warns ? tr('m0349', [warns]) : '', issues.map((i) => tr('v062.m0063', [i.severity, esc(i.title), esc(i.hint || ''), i.fix ? tr('m0350', [esc(i.code)]) : '', esc(i.code)])).join('')]); const re = $('btnEnvRecheck'); if (re) re.addEventListener('click', selfCheck); const fixAll = $('btnEnvFixAll'); @@ -2798,9 +2752,9 @@ function renderEnvCheck(r) { /** 修复没成功:如实报错,并把对应教程自动打开(同一章节主进程 60 秒内只弹一次) */ function failFix(issue, ctl, body) { - const msg = body || '请按教程手动处理'; + const msg = body || tr('v062.m0064'); if (ctl && typeof ctl.update === 'function') ctl.update({ body: msg, type: 'error', sticky: true }); - else toast({ title: '修复未完成', body: msg, type: 'error' }); + else toast({ title: tr('v062.m0065'), body: msg, type: 'error' }); openManualForIssue(issue, 'fix-failed'); } @@ -2810,19 +2764,19 @@ async function fixIssue(issue) { const r = await api.installVcRedist().catch(() => ({ ok: false })); if (!r.ok && r.reason === 'no-installer') { api.openExternal('https://learn.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022'); - toast({ title: '未找到内置安装包', body: '已打开微软官方下载页,请下载 x64 版本', type: 'info' }); + toast({ title: tr('m0351'), body: tr('m0352'), type: 'info' }); break; } toast(r.ok - ? { title: 'VC++ 运行库已安装', type: 'ok' } - : { title: '安装未完成', body: r.error || '请重试', type: 'error' }); + ? { title: tr('m0353'), type: 'ok' } + : { title: tr('m0354'), body: r.error || tr('m0226'), type: 'error' }); break; } case 'virtualization': { - const t = toast({ title: '正在开启硬件加速…', body: '请在弹出的窗口点「是」', sticky: true, spinner: true }); + const t = toast({ title: tr('m0356'), body: tr('m0357'), sticky: true, spinner: true }); const r = await api.enableVirtualization().catch(() => ({ ok: false })); if (r.ok) { - t.update({ title: '硬件加速已启用', body: r.restartNeeded ? '请重启电脑以获得最佳性能' : (r.note || ''), type: 'ok' }); + t.update({ title: tr('m0070'), body: r.restartNeeded ? tr('m0359') : (r.note || ''), type: 'ok' }); setTimeout(t.dismiss, 3200); } else if (r.manual) { // 商店(MSIX)版:包固定 mediumIL,通常拿不到管理员授权。 @@ -2831,76 +2785,76 @@ async function fixIssue(issue) { t.dismiss(); await api.openWindowsFeatures?.().catch(() => null); toast({ - title: '需要手动开启一次(仅此一次)', - body: r.note || '在打开的窗口里勾选「Windows 虚拟机监控程序平台」,确定后重启电脑。', + title: tr('v058.m0144'), + body: r.note || tr('v058.m0145'), type: 'info', sticky: true, }); // 自动提权走不通时,同步把图文教程打开,避免用户对着系统窗口不知道勾哪个 openManualForIssue(issue, 'fix-failed'); } else if (r.cancelled) { - t.update({ title: '已取消', body: r.error || '没有拿到管理员授权,硬件加速没有改动。', type: 'info', spinner: false }); + t.update({ title: tr('v058.m0073'), body: r.error || tr('v058.m0147'), type: 'info', spinner: false }); setTimeout(t.dismiss, 4200); } else { - failFix(issue, t, r.error || r.note || '未能开启硬件加速,已打开对应教程'); + failFix(issue, t, r.error || r.note || tr('v062.m0066')); } break; } case 'disk': { // 主进程会弹出原生确认框(含可释放空间预览),这里不再重复 confirm const r = await api.runtimeCleanup({ apply: true }).catch(() => null); - if (!r) { toast({ title: '清理失败', body: '请重试', type: 'error' }); break; } + if (!r) { toast({ title: tr('m0211'), body: tr('m0226'), type: 'error' }); break; } if (r.cancelled) break; - toast({ title: '清理完成', body: `释放约 ${((r.saved || 0) / 1048576).toFixed(0)} MB`, type: 'ok' }); + toast({ title: tr('m0208'), body: tr('m0365', [((r.saved || 0) / 1048576).toFixed(0)]), type: 'ok' }); break; } case 'path': { - toast({ title: '建议改到纯英文目录', body: '在 设置 → 系统集成 里修改「运行时数据目录」,再重启软件。', type: 'info', sticky: true }); + toast({ title: tr('m0366'), body: tr('m0367'), type: 'info', sticky: true }); openSettings(); break; } case 'deploy': { - toast({ title: '正在补齐缺失的运行时组件…', type: 'info', sticky: true, spinner: true }); + toast({ title: tr('m0368'), type: 'info', sticky: true, spinner: true }); await deployAll(); break; } case 'lock': { const r = await api.clearLocks().catch(() => ({ ok: false })); - toast(r.ok ? { title: '已清理残留锁文件', type: 'ok' } : { title: '清理失败', body: r.error, type: 'error' }); + toast(r.ok ? { title: tr('m0369'), type: 'ok' } : { title: tr('m0211'), body: r.error, type: 'error' }); break; } // ---- 自动检测(自动 debug)新增的修复动作 ---- case 'restartRuntime': { // unauthorized / 引导卡死 / 孤儿锁的首选自愈动作:停一次再拉起来(走冷启动) - const t = toast({ title: '正在重启安卓运行时…', body: '会重新引导一次,大约十几秒', type: 'info', sticky: true, spinner: true }); + const t = toast({ title: tr('v062.m0067'), body: tr('v062.m0068'), type: 'info', sticky: true, spinner: true }); const r = await api.restartRuntime().catch(() => ({ ok: false })); if (r && r.ok) { - t.update({ title: '安卓运行时已重启', body: '授权弹窗请点「允许」', type: 'ok' }); + t.update({ title: tr('v062.m0069'), body: tr('v062.m0070'), type: 'ok' }); setTimeout(t.dismiss, 3000); } else { - failFix(issue, t, (r && r.error) || '重启失败,已打开对应教程'); + failFix(issue, t, (r && r.error) || tr('v062.m0071')); } break; } case 'orphans': { const r = await api.clearOrphans().catch(() => ({ ok: false })); toast(r && r.ok - ? { title: '已清理残留的模拟器进程', type: 'ok' } - : { title: '清理失败', body: (r && r.error) || '请重试', type: 'error' }); + ? { title: tr('v062.m0072'), type: 'ok' } + : { title: tr('m0211'), body: (r && r.error) || tr('m0226'), type: 'error' }); break; } case 'snapshots': { const r = await api.clearSnapshot().catch(() => ({ ok: false })); toast(r && r.ok - ? { title: '已作废快速启动快照', body: '下次打开应用会走一次完整冷启动', type: 'ok' } - : { title: '作废失败', body: (r && r.error) || '请重试', type: 'error' }); + ? { title: tr('v062.m0073'), body: tr('v062.m0074'), type: 'ok' } + : { title: tr('v062.m0075'), body: (r && r.error) || tr('m0226'), type: 'error' }); break; } case 'dataReset': { // 扩容被差量盘挡住时必须重建:会清掉已装应用,所以只引导、不自动做。 toast({ - title: '需要重建安卓数据分区', - body: '到「设置 → 性能与资源」点「立即扩容」;提示需要重置时确认一次(会清空已装应用)。', + title: tr('v062.m0076'), + body: tr('v062.m0077'), type: 'info', sticky: true, }); @@ -2912,77 +2866,77 @@ async function fixIssue(issue) { const s = (state.settings && state.settings.display) || {}; const mode = s.orientationMode || 'auto'; if (mode === 'auto') { - toast({ title: '当前是「跟随应用」', body: '面板方向会按应用自动切换;若某个应用方向不对,可对它单独指定。', type: 'info' }); + toast({ title: tr('v062.m0078'), body: tr('v062.m0079'), type: 'info' }); break; } const wantLandscape = mode === 'landscape'; state.settings = await api.setSettings({ display: { landscape: wantLandscape } }); fillSettings(state.settings); toast({ - title: wantLandscape ? '面板已切成横屏' : '面板已切成竖屏', - body: '下次打开应用生效', + title: wantLandscape ? tr('v062.m0080') : tr('v062.m0081'), + body: tr('v062.m0082'), type: 'ok', }); break; } case 'shared': { - toast({ title: '请检查共享目录', body: '到「设置 → 集成与文件」确认本机共享目录存在且可写。', type: 'info', sticky: true }); + toast({ title: tr('v062.m0083'), body: tr('v062.m0084'), type: 'info', sticky: true }); openSettings().then(() => focusGroup(document.querySelector('#settingsBody [data-cat="files"]'))).catch(() => {}); break; } // ---- 0.6.2 声音检测对应的修复动作 ---- case 'audio': { - const t = toast({ title: '正在打开安卓应用声音…', body: '马上重启运行时让 -no-audio 失效', type: 'info', sticky: true, spinner: true }); + const t = toast({ title: tr('v062.m0085'), body: tr('v062.m0086'), type: 'info', sticky: true, spinner: true }); const s = await api.setSettings({ engine: { audio: true } }).catch(() => null); - if (!s) { failFix(issue, t, '没能保存声音设置,已打开对应教程'); break; } + if (!s) { failFix(issue, t, tr('v062.m0087')); break; } state.settings = s; fillSettings(s); const r = await api.restartRuntime().catch(() => ({ ok: false })); if (r && r.ok !== false) { - t.update({ title: '声音已打开', body: '运行时已重启,现在应该能听到应用声音了', type: 'ok' }); + t.update({ title: tr('v062.m0088'), body: tr('v062.m0089'), type: 'ok' }); setTimeout(t.dismiss, 3600); } else { - failFix(issue, t, '声音开关已打开,但运行时重启失败,已打开对应教程'); + failFix(issue, t, tr('v062.m0090')); } break; } case 'audioService': { // MSIX / 普通权限都拿不到系统服务的提权操作,直接把教程送到用户面前 - toast({ title: '需要手动启动 Windows Audio', body: '已打开教程,照着做一次即可', type: 'info', sticky: true }); + toast({ title: tr('v062.m0091'), body: tr('v062.m0092'), type: 'info', sticky: true }); openManualForIssue(issue, 'clicked'); break; } case 'microphone': { - const t = toast({ title: '正在打开麦克风输入…', body: '马上重启运行时让录音设备生效', type: 'info', sticky: true, spinner: true }); + const t = toast({ title: tr('v064.m0014'), body: tr('v064.m0015'), type: 'info', sticky: true, spinner: true }); const s = await api.setSettings({ engine: { microphone: true } }).catch(() => null); - if (!s) { failFix(issue, t, '没能保存麦克风设置,已打开对应教程'); break; } + if (!s) { failFix(issue, t, tr('v064.m0016')); break; } state.settings = s; fillSettings(s); const r = await api.restartRuntime().catch(() => ({ ok: false })); if (r && r.ok !== false) { - t.update({ title: '麦克风已打开', body: '运行时已重启,应用现在应该能录音了', type: 'ok' }); + t.update({ title: tr('v064.m0017'), body: tr('v064.m0018'), type: 'ok' }); setTimeout(t.dismiss, 3600); } else { - failFix(issue, t, '麦克风开关已打开,但运行时重启失败,已打开对应教程'); + failFix(issue, t, tr('v064.m0019')); } break; } case 'repairNetwork': { - const t = toast({ title: '正在重置安卓网络…', body: '应用清单会保留', type: 'info', sticky: true, spinner: true }); + const t = toast({ title: tr('v062.m0093'), body: tr('v062.m0094'), type: 'info', sticky: true, spinner: true }); const r = await api.runtimeRepairNetwork().catch(() => ({ ok: false })); if (r && r.ok !== false) { - t.update({ title: '安卓网络已重置', body: '下次打开应用重新联网', type: 'ok' }); + t.update({ title: tr('v062.m0095'), body: tr('v062.m0096'), type: 'ok' }); setTimeout(t.dismiss, 3000); } else { - t.update({ title: '重置失败', body: (r && r.error) || '请重试', type: 'error' }); + t.update({ title: tr('m0225'), body: (r && r.error) || tr('m0226'), type: 'error' }); } break; } case 'report': { const r = await api.doctorReport().catch(() => null); toast(r && r.ok !== false - ? { title: '诊断报告已导出', body: '把报告发给作者可以最快定位问题', type: 'ok' } - : { title: '导出失败', body: (r && r.error) || '请重试', type: 'error' }); + ? { title: tr('m0204'), body: tr('v062.m0050'), type: 'ok' } + : { title: tr('m0205'), body: (r && r.error) || tr('m0226'), type: 'error' }); break; } case 'settings': { @@ -2990,7 +2944,7 @@ async function fixIssue(issue) { break; } default: - toast({ title: '暂不支持自动修复', body: issue.hint || '', type: 'info' }); + toast({ title: tr('m0371'), body: issue.hint || '', type: 'info' }); } // 修复后重新自检,刷新横幅与状态 setTimeout(selfCheck, 600); @@ -3009,5 +2963,14 @@ async function fixAllIssues(issues) { init().catch((e) => { console.error(e); - toast({ title: '初始化失败', body: e.message, type: 'error', sticky: true }); + toast({ title: tr('m0372'), body: e.message, type: 'error', sticky: true }); +}); + +window.addEventListener('apkstart:language', async () => { + state.settings = await api.getSettings(); + fillSettings(state.settings); + renderGrid(); + applySettingsFilter(); + refreshStatus(); + selfCheck(); }); diff --git a/src/ui/i18n-dom.js b/src/ui/i18n-dom.js index 3e11a1cc..58eca991 100644 --- a/src/ui/i18n-dom.js +++ b/src/ui/i18n-dom.js @@ -33,7 +33,7 @@ function skipped(el) { for (let n = el; n && n.nodeType === 1; n = n.parentElement) { if (SKIP_TAGS.has(n.tagName)) return true; - if (n.hasAttribute && n.hasAttribute('data-i18n-skip')) return true; + if (n.hasAttribute && (n.hasAttribute('data-i18n-skip') || n.hasAttribute('data-i18n'))) return true; } return false; } @@ -66,7 +66,7 @@ if (src === undefined) { src = value; textOrigin.set(node, src); - } else if (textApplied.has(node) && value !== textApplied.get(node) && value !== src) { + } else if (value !== textApplied.get(node) && value !== src) { // 运行时用新的中文文案覆盖了这个节点:把新文案当作原文重新翻译 src = value; textOrigin.set(node, src); @@ -90,7 +90,7 @@ } function translateAttr(el, name) { - if (!el || el.nodeType !== 1 || !el.hasAttribute(name)) return; + if (!el || el.nodeType !== 1 || !el.hasAttribute(name) || el.hasAttribute('data-i18n-' + name)) return; if (skipped(el)) return; const value = el.getAttribute(name); if (!value || !value.trim()) return; @@ -104,7 +104,7 @@ if (src === undefined) { src = value; originMap.set(name, src); - } else if (appliedMap.has(name) && value !== appliedMap.get(name) && value !== src) { + } else if (value !== appliedMap.get(name) && value !== src) { src = value; originMap.set(name, src); } diff --git a/src/ui/i18n.js b/src/ui/i18n.js new file mode 100644 index 00000000..a4da4ce1 --- /dev/null +++ b/src/ui/i18n.js @@ -0,0 +1,40 @@ +'use strict'; + +window.i18n = { + locale: 'zh-CN', + preference: 'auto', + messages: {}, + t(key, values = []) { + const message = this.messages[key] ?? key; + return message.replace(/\{(\d+)\}/g, (match, index) => ( + index < values.length ? String(values[index]) : match + )); + }, + apply(root = document) { + root.querySelectorAll('[data-i18n]').forEach((el) => { + el.textContent = this.t(el.dataset.i18n); + }); + for (const attr of ['title', 'placeholder', 'alt', 'aria-label', 'value']) { + root.querySelectorAll(`[data-i18n-${attr}]`).forEach((el) => { + el.setAttribute(attr, this.t(el.getAttribute(`data-i18n-${attr}`))); + }); + } + document.documentElement.lang = this.locale; + }, +}; + +const i18nApi = window.apkstart || window.apkstartSplash; +async function loadCatalog() { + const config = await i18nApi.getI18n(); + Object.assign(window.i18n, config); + window.i18n.apply(); +} +window.i18n.ready = loadCatalog(); +if (i18nApi.i18n && typeof i18nApi.i18n.onLanguageChange === 'function') { + i18nApi.i18n.onLanguageChange(() => { + window.i18n.ready = loadCatalog().then(() => { + window.dispatchEvent(new Event('apkstart:language')); + }); + window.i18n.ready.catch(console.error); + }); +} diff --git a/src/ui/index.html b/src/ui/index.html index 8181f67e..e0488310 100644 --- a/src/ui/index.html +++ b/src/ui/index.html @@ -31,14 +31,14 @@
    ApkStart - 未连接运行时 + 未连接运行时
    - -
    @@ -48,12 +48,12 @@
    @@ -71,9 +71,9 @@ -

    把 APK 拖进来就能装

    -

    安装完成后会自动生成桌面图标,双击即以独立窗口运行,和普通 Windows 软件一样。
    已注册 .apk 关联时,在资源管理器里双击 APK 也会直接装到 ApkStart。

    - +

    把 APK 拖进来就能装

    +

    安装完成后会自动生成桌面图标,双击即以独立窗口运行,和普通 Windows 软件一样。
    已注册 .apk 关联时,在资源管理器里双击 APK 也会直接装到 ApkStart。

    +

    @@ -81,7 +81,7 @@

    把 APK 拖进来就能装