From 6dae0e65f37bc12d86e0ca8fb869c8eaba74882d Mon Sep 17 00:00:00 2001 From: AbinGanlary <87361454+AbinGanlary@users.noreply.github.com> Date: Thu, 26 Nov 2026 13:45:22 +0530 Subject: [PATCH 1/2] =?UTF-8?q?feat(i18n):=20=E8=8B=B1=E6=96=87=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=20/=20add=20English=20(en-US)=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 词典以中文原文为 key(src/i18n/en-US.json,1695 条),显示时翻译; 上游照常写中文,未翻译的文字原样显示中文 - 渲染层 src/ui/i18n-dom.js 统一翻译 DOM 文字与属性;主进程包装 dialog / Menu / Tray / 通知 - 设置 → 常规与安装 新增「界面语言」:自动(跟随系统)/ 简体中文 / English - 英文界面且用户未设置时:Android 语言 en-US、不装中文输入法、 DNS 用 1.1.1.1 / 8.8.8.8 - npm run i18n 提取新文案,npm run i18n -- --missing 列出未翻译项; 新增 test/i18n-test.js Co-Authored-By: Claude Opus 5.5 --- CONTRIBUTING.md | 3 + package.json | 3 +- scripts/i18n-extract.js | 193 +++++ src/core/assoc.js | 7 +- src/core/emulator.js | 5 +- src/core/installer.js | 2 +- src/core/store.js | 17 +- src/i18n/electron.js | 43 + src/i18n/en-US.json | 1741 +++++++++++++++++++++++++++++++++++++++ src/i18n/index.js | 220 +++++ src/main.js | 28 +- src/preload.js | 8 + src/splash-preload.js | 8 + src/ui/app.js | 9 +- src/ui/i18n-dom.js | 141 ++++ src/ui/index.html | 14 + src/ui/shell.html | 5 +- src/ui/splash.html | 1 + src/ui/style.css | 7 + test/i18n-test.js | 109 +++ 20 files changed, 2553 insertions(+), 11 deletions(-) create mode 100644 scripts/i18n-extract.js create mode 100644 src/i18n/electron.js create mode 100644 src/i18n/en-US.json create mode 100644 src/i18n/index.js create mode 100644 src/ui/i18n-dom.js create mode 100644 test/i18n-test.js diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index afdffc92..4c3e02fe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,9 @@ electron . --smoke test\shot.png - 与安卓侧交互一律走 `src/core/adb.js`,不要在各处直接拼 adb 命令。 - 主进程与渲染进程之间只通过 `preload.js` 暴露的白名单通道通信,保持 `contextIsolation` 开启。 - 注释与 UI 文案使用中文,标识符使用英文。 +- 界面多语言:UI 文案**照常写中文**,不用改调用点。词典 `src/i18n/en-US.json` 以中文原文为 key, + 界面显示时自动翻译(见 `src/i18n/index.js`)。新增或改动文案后跑一次 + `npm run i18n`,再按 `npm run i18n -- --missing` 列出的条目补上英文即可;没补的文案在英文界面里会暂时显示中文,不会出错。 ## 测试约定 diff --git a/package.json b/package.json index dfb206da..ff052d06 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "scripts": { "start": "electron .", "dev": "electron . --dev", - "test": "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/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/i18n-test.js && node test/auto-test.js", "test:ui": "electron test/settings-ui-test.js", "build:manual": "python docs/build-manual-html.py", "pack": "node build/pack.js", @@ -44,6 +44,7 @@ "build:appx": "node build/prepare-runtime.js && electron-builder --win appx --x64 --config electron-builder.yml", "build:msix": "node build/msix.js", "selftest": "node scripts/selftest.js", + "i18n": "node scripts/i18n-extract.js", "assoc:on": "node scripts/assoc.js on", "assoc:off": "node scripts/assoc.js off", "test:boot": "node test/boot-test.js", diff --git a/scripts/i18n-extract.js b/scripts/i18n-extract.js new file mode 100644 index 00000000..c5d49ad2 --- /dev/null +++ b/scripts/i18n-extract.js @@ -0,0 +1,193 @@ +#!/usr/bin/env node +'use strict'; +/** + * 收集界面上会出现的中文文案,合并进 src/i18n/.json。 + * + * node scripts/i18n-extract.js # 更新 en-US.json,打印缺失数量 + * node scripts/i18n-extract.js --check # 只检查,不写文件(CI 用) + * node scripts/i18n-extract.js --missing # 列出还没翻译的文案 + * + * 规则: + * - JS:字符串 / 模板字符串里含中文的都算;模板里的 ${...} 写成 {0}、{1}… + * 日志调用(console.* / log( / this._log 等)里的文字跳过,日志保持中文。 + * - HTML:标签之间的文字 + title / placeholder / aria-label / alt 属性。 + * - 已有的翻译保留;不再出现的 key 保留(防止分支间来回丢翻译),用 --prune 删掉。 + * + * Collects user-facing Chinese strings and merges them into the dictionary. + */ +if (!process.execArgv.includes('--expose-internals')) { + const r = require('child_process').spawnSync(process.execPath, ['--expose-internals', __filename, ...process.argv.slice(2)], { stdio: 'inherit' }); + process.exit(r.status == null ? 1 : r.status); +} +const fs = require('fs'); +const path = require('path'); + +const ROOT = path.resolve(__dirname, '..'); +const LANG = (process.argv.find((a) => a.startsWith('--lang=')) || '--lang=en-US').slice(7); +const CHECK = process.argv.includes('--check'); +const MISSING = process.argv.includes('--missing'); +const PRUNE = process.argv.includes('--prune'); +const DICT = path.join(ROOT, 'src', 'i18n', `${LANG}.json`); +const CJK = /[㐀-鿿豈-﫿]/; + +const SOURCES = [ + 'src/ui/index.html', 'src/ui/shell.html', 'src/ui/splash.html', + 'src/ui/app.js', 'src/ui/shell.js', 'src/ui/splash.js', + 'src/main.js', + 'src/core', + 'src/drivers', +]; +const SKIP_FILES = new Set(['src/ui/manual.html', 'src/i18n/index.js', 'src/ui/i18n-dom.js']); +// 只写日志的调用:这些里面的中文不进词典 +const LOG_RE = /(console\.\w+|\blog\w*|\bdebug|\bnote|\btrace|\bwarn|_log|logLine|appendLog|logger\.\w+)\s*\(\s*$/i; + +const norm = (s) => s.replace(/\s+/g, ' ').trim(); + +function listFiles(rel) { + const abs = path.join(ROOT, rel); + if (!fs.statSync(abs).isDirectory()) return [rel]; + return fs.readdirSync(abs, { withFileTypes: true }).flatMap((e) => { + const r = path.posix.join(rel, e.name); + if (e.isDirectory()) return listFiles(r); + return /\.(js|html|json)$/.test(e.name) ? [r] : []; + }); +} + +/** + * JS:用 Node 自带的 acorn 解析(node --expose-internals),比手写词法可靠: + * 正则字面量、模板嵌套、注释里的引号都不会把后面的内容带歪。 + */ +const acorn = require('internal/deps/acorn/acorn/dist/acorn'); +const LOG_CALLEE = /^(console|log|_log|logLine|appendLog|debug|trace|note|warn|logger)$/i; + +function calleeName(c) { + if (!c) return ''; + if (c.type === 'Identifier') return c.name; + if (c.type === 'MemberExpression') { + const obj = c.object && c.object.type === 'Identifier' ? c.object.name : ''; + if (obj === 'console') return 'console'; + return c.property && (c.property.name || c.property.value) || ''; + } + return ''; +} + +function jsStrings(src) { + let ast; + const opts = { ecmaVersion: 'latest', allowHashBang: true, allowReturnOutsideFunction: true }; + try { ast = acorn.parse(src, { ...opts, sourceType: 'script' }); } + catch (_) { ast = acorn.parse(src, { ...opts, sourceType: 'module' }); } + const out = []; + (function visit(node, inLog) { + if (!node || typeof node.type !== 'string') return; + if (node.type === 'Literal' && typeof node.value === 'string') { + if (!inLog && CJK.test(node.value)) out.push({ text: node.value, before: '' }); + } else if (node.type === 'TemplateLiteral') { + let text = ''; + node.quasis.forEach((q, i) => { + text += q.value.cooked ?? q.value.raw; + if (i < node.expressions.length) text += `{${i}}`; + }); + if (!inLog && CJK.test(text)) out.push({ text, before: '' }); + } + const log = inLog || (node.type === 'CallExpression' && LOG_CALLEE.test(calleeName(node.callee))); + for (const k of Object.keys(node)) { + if (k === 'type' || k === 'start' || k === 'end') continue; + const v = node[k]; + if (Array.isArray(v)) v.forEach((x) => visit(x, log && k !== 'callee')); + else if (v && typeof v.type === 'string') visit(v, log && k !== 'callee'); + } + })(ast, false); + return out; +} + +/** 随包的驱动示例:显示在设置页的 name / description / notes */ +function jsonStrings(src) { + const out = []; + (function visit(v, key) { + if (typeof v === 'string') { + if (CJK.test(v) && ['name', 'description', 'notes'].includes(key)) out.push({ text: v, before: '' }); + } else if (Array.isArray(v)) v.forEach((x) => visit(x, key)); + else if (v && typeof v === 'object') for (const [k, x] of Object.entries(v)) visit(x, k); + })(JSON.parse(src), ''); + return out; +} + +function htmlStrings(src) { + const out = []; + const body = src + .replace(//g, '') + .replace(//gi, '') + .replace(//gi, ''); + for (const m of body.matchAll(/\b(?:title|placeholder|aria-label|alt|data-tip)="([^"]*)"/g)) { + if (CJK.test(m[1])) out.push({ text: m[1], before: '' }); + } + for (const m of body.matchAll(/>([^<>]+)]*>/i.test(it.text)) { + if (LOG_RE.test(it.before)) continue; + const pieces = htmlStrings(`>${it.text}<`); + for (const p of pieces) expanded.push({ text: p.text, before: '' }); + } else { + expanded.push(it); + } + } + for (const { text, before } of expanded) { + if (LOG_RE.test(before)) continue; + // 多行文案按行拆(运行时也是逐行翻译) + for (const line of text.split('\n')) { + const k = norm(line); + if (!k || !CJK.test(k) || seen.has(k)) continue; + seen.add(k); + keys.push(k); + } + } + if (keys.length) byFile.set(rel, keys); + } + return byFile; +} + +function main() { + const old = fs.existsSync(DICT) ? JSON.parse(fs.readFileSync(DICT, 'utf8')) : {}; + const byFile = collect(); + const next = {}; + let total = 0; + let missing = 0; + const missingList = []; + for (const [file, keys] of byFile) { + next[`// ${file}`] = ''; + for (const k of keys) { + next[k] = old[k] || ''; + total++; + if (!next[k]) { missing++; missingList.push(`${file}: ${k}`); } + } + } + // 手工补充的条目(运行时拼出来、源码里找不到原句的)放在最后保留 + const extra = Object.entries(old).filter(([k, v]) => !(k in next) && !k.startsWith('// ') && v); + if (extra.length && !PRUNE) { + next['// extra (manual entries)'] = ''; + for (const [k, v] of extra) next[k] = v; + } + if (MISSING) console.log(missingList.join('\n')); + console.log(`${LANG}: ${total - missing}/${total} translated, ${missing} missing, ${extra.length} extra`); + if (CHECK) { process.exit(0); } + fs.writeFileSync(DICT, JSON.stringify(next, null, 2) + '\n', 'utf8'); +} + +main(); diff --git a/src/core/assoc.js b/src/core/assoc.js index 6ec6fd2f..a34e3169 100644 --- a/src/core/assoc.js +++ b/src/core/assoc.js @@ -4,6 +4,7 @@ * 双击 apk → apkstart.exe "%1" → 自动安装 → 自动建桌面快捷方式 */ const { execFileSync } = require('child_process'); +const { t } = require('../i18n'); const PROGID = 'ApkStart.apk'; const EXT = '.apk'; @@ -80,10 +81,10 @@ function registerAssociation(exePath, iconPath, extraArgs) { reg(['add', `${CLASSES}\\${EXT}`, '/ve', '/d', PROGID, '/f']); reg(['add', `${CLASSES}\\${EXT}\\OpenWithProgids`, '/v', PROGID, '/t', 'REG_NONE', '/f']); - reg(['add', `${CLASSES}\\${PROGID}`, '/ve', '/d', 'Android 应用包', '/f']); - reg(['add', `${CLASSES}\\${PROGID}`, '/v', 'FriendlyTypeName', '/d', 'Android 应用包', '/f']); + reg(['add', `${CLASSES}\\${PROGID}`, '/ve', '/d', t('Android 应用包'), '/f']); + reg(['add', `${CLASSES}\\${PROGID}`, '/v', 'FriendlyTypeName', '/d', t('Android 应用包'), '/f']); reg(['add', `${CLASSES}\\${PROGID}\\DefaultIcon`, '/ve', '/d', `"${icon}",0`, '/f']); - reg(['add', `${CLASSES}\\${PROGID}\\shell\\open`, '/ve', '/d', '安装到 ApkStart', '/f']); + reg(['add', `${CLASSES}\\${PROGID}\\shell\\open`, '/ve', '/d', t('安装到 ApkStart'), '/f']); reg(['add', `${CLASSES}\\${PROGID}\\shell\\open\\command`, '/ve', '/d', command, '/f']); notifyShell(); diff --git a/src/core/emulator.js b/src/core/emulator.js index 5bdff60f..a639d131 100644 --- a/src/core/emulator.js +++ b/src/core/emulator.js @@ -690,7 +690,10 @@ class EmulatorEngine { // 时,一次解析能拖到几百毫秒,表现为「页面转圈半天才开始加载」。给一份国内公共 // DNS 作为首选,失败时系统仍会回退。用户可在设置里关掉(内网域名场景)。 if (this.settings?.engine?.fastDns !== false) { - args.push('-dns-server', '223.5.5.5,119.29.29.29'); + // 中文界面用国内公共 DNS;英文界面(多半在国外)用 Cloudflare / Google + let en = false; + try { en = require('../i18n').getLang() === 'en-US'; } catch (_) { /* ignore */ } + args.push('-dns-server', en ? '1.1.1.1,8.8.8.8' : '223.5.5.5,119.29.29.29'); } if (lcd) args.push('-skin', `${lcd.w}x${lcd.h}`); if (headless) { diff --git a/src/core/installer.js b/src/core/installer.js index 213a4211..6316a460 100644 --- a/src/core/installer.js +++ b/src/core/installer.js @@ -393,7 +393,7 @@ class Installer { args, iconIcoPath: ico, iconPngPath: png, - description: `${app.label} — 由 ApkStart 运行`, + description: require('../i18n').t(`${app.label} — 由 ApkStart 运行`), cwd: this.ctx.cwd, // 每个应用一个 AUMID:任务栏上按应用分组,不会全挤到 ApkStart 里 appUserModelId: `RoutineMiku.ApkStart.${app.package}`.slice(0, 128), diff --git a/src/core/store.js b/src/core/store.js index 50fe5386..467a93f4 100644 --- a/src/core/store.js +++ b/src/core/store.js @@ -35,6 +35,8 @@ const APPS_FILE = path.join(DATA_DIR, 'apps.json'); const SETTINGS_FILE = path.join(DATA_DIR, 'settings.json'); const DEFAULT_SETTINGS = { + // 界面语言:auto = 跟随 Windows(中文系统用中文,其它用英文)| zh-CN | en-US + language: 'auto', adbPath: '', device: '127.0.0.1:5555', /** @@ -269,7 +271,20 @@ const store = { STORE_BUILD, getSettings() { - const s = deepMerge(DEFAULT_SETTINGS, readJson(SETTINGS_FILE, {})); + const rawFile = readJson(SETTINGS_FILE, {}); + const s = deepMerge(DEFAULT_SETTINGS, rawFile); + /** + * 英文界面下的默认值:用户没主动设过的项,安卓系统语言跟着用英文、不默认装 + * 中文输入法。用户在设置里选过的值(已写进 settings.json)原样保留。 + */ + try { + if (require('../i18n').getLang() === 'en-US') { + const re = (rawFile && rawFile.engine) || {}; + if (re.locale === undefined) s.engine.locale = 'en-US'; + if (re.chineseIme === undefined) s.engine.chineseIme = false; + if (re.chineseImeDefault === undefined) s.engine.chineseImeDefault = false; + } + } catch (_) { /* ignore */ } /** * 0.5.6 起没有第三方底座了:老配置里的 mode=mumu / fydeos / attach, * 或者手改出来的任何其它值,一律当 builtin 处理,并把残留的第三方字段删掉。 diff --git a/src/i18n/electron.js b/src/i18n/electron.js new file mode 100644 index 00000000..0f21d3a3 --- /dev/null +++ b/src/i18n/electron.js @@ -0,0 +1,43 @@ +'use strict'; +/** + * 主进程里「不经过 DOM」的文字出口:对话框、菜单(托盘/右键)、托盘提示。 + * 在这里统一包一层翻译,main.js 和 core/ 里的调用点保持原样写中文。 + * + * Wraps Electron's dialog / Menu / Tray APIs so their text goes through t(). + */ +const i18n = require('./index'); + +let installed = false; + +function install(electron) { + if (installed) return; + installed = true; + const { dialog, Menu, Tray } = electron; + const { tDeep, t } = i18n; + + const wrap = (obj, name) => { + const orig = obj[name]; + if (typeof orig !== 'function') return; + obj[name] = function (...args) { + const a = args.map((x) => (x && typeof x === 'object' && !isWindow(x) ? tDeep(x) : x)); + return orig.apply(this, a); + }; + }; + const isWindow = (x) => x && typeof x.webContents === 'object'; + + for (const n of ['showMessageBox', 'showMessageBoxSync', 'showOpenDialog', 'showOpenDialogSync', 'showSaveDialog', 'showSaveDialogSync']) { + wrap(dialog, n); + } + const showErrorBox = dialog.showErrorBox; + dialog.showErrorBox = (title, content) => showErrorBox.call(dialog, t(title), t(content)); + + const build = Menu.buildFromTemplate; + Menu.buildFromTemplate = (template) => build.call(Menu, tDeep(template)); + + if (Tray && Tray.prototype && Tray.prototype.setToolTip) { + const tip = Tray.prototype.setToolTip; + Tray.prototype.setToolTip = function (s) { return tip.call(this, t(s)); }; + } +} + +module.exports = { install }; diff --git a/src/i18n/en-US.json b/src/i18n/en-US.json new file mode 100644 index 00000000..37f0dc2e --- /dev/null +++ b/src/i18n/en-US.json @@ -0,0 +1,1741 @@ +{ + "// src/ui/index.html": "", + "使用手册(含故障解决方案)": "User manual (including troubleshooting)", + "设置": "Settings", + "搜索已安装应用": "Search installed apps", + "搜索设置项:横屏 / 内存 / 代理 / 快照…": "Search settings: landscape / memory / proxy / snapshot…", + "清除搜索": "Clear search", + "设置分类": "Settings categories", + "扫描并清掉旧版本留下的程序目录、失效的卸载项和更新临时文件": "Scan for and remove program folders left by old versions, broken uninstall entries, and temporary update files", + "安卓虚拟机没有网络时(应用里联网页面一直黑屏/转圈),用这个把安卓数据重置掉来修网络。应用清单会保留,点开应用会自动重装": "Use this when the Android VM has no network (pages inside apps stay black or keep loading). It resets Android data to fix the network. Your app list is kept, and apps reinstall automatically when you open them", + "清空安卓 /data 用户数据 + 已装应用 + 快速启动快照,还原成刚装好系统的干净状态": "Wipe Android /data user data + installed apps + quick-boot snapshot, returning to a clean, freshly installed system", + "例如 https://ghfast.top/": "e.g. https://ghfast.top/", + "留空即可:公开仓库匿名也能读": "Leave empty: public repositories can be read anonymously", + "留空则自动在 PATH / Android SDK 中查找": "Leave empty to search PATH / Android SDK automatically", + "Android-x86 / Bliss OS 的 ISO 或 IMG 路径,留空使用默认位置": "ISO or IMG path for Android-x86 / Bliss OS. Leave empty to use the default location", + "留空 = 桌面": "Empty = Desktop", + "默认:C 盘用户数据目录": "Default: user data folder on drive C", + "默认:运行时目录下的 avd 文件夹": "Default: the avd folder inside the runtime folder", + "微信公众号二维码": "WeChat Official Account QR code", + "抖音二维码": "Douyin QR code", + "未连接运行时": "Runtime not connected", + "安装 APK": "Install APK", + "把 APK 拖进来就能装": "Drag an APK here to install it", + "安装完成后会自动生成桌面图标,双击即以独立窗口运行,和普通 Windows 软件一样。": "After installing, a desktop icon is created automatically. Double-click it to run the app in its own window, just like normal Windows software.", + "已注册 .apk 关联时,在资源管理器里双击 APK 也会直接装到 ApkStart。": "When the .apk file association is registered, double-clicking an APK in File Explorer also installs it into ApkStart.", + "选择 APK 文件": "Choose APK file", + "正在检查运行时…": "Checking runtime…", + "你好": "Hello", + "ApkStart 已就绪": "ApkStart is ready", + "下次启动不再自动弹出": "Don't show this automatically next time", + "打开设置": "Open settings", + "开始使用": "Get started", + "松手开始安装": "Release to start installing", + "支持单个或多个 .apk 文件": "Supports one or more .apk files", + "常用与安装": "General & install", + "显示与窗口": "Display & windows", + "操作与输入": "Controls & input", + "性能与资源": "Performance & resources", + "网络与下载": "Network & downloads", + "诊断与修复": "Diagnostics & repair", + "集成与文件": "Integration & files", + "更新与关于": "Updates & about", + "实验室": "Labs", + "界面语言": "Interface language", + "Auto / 跟随系统": "Auto / 跟随系统", + "简体中文": "Simplified Chinese", + "ApkStart 自己的界面文字。切换后立即生效。安卓系统内的语言在下面「系统语言」里单独设置。": "Text in ApkStart's own interface. Takes effect immediately. The language inside Android is set separately under \"System language\" below.", + "运行时与环境": "Runtime & environment", + "运行状态": "Status", + "正在检查…": "Checking…", + "一键完成": "Set up everything", + "高级:连接已有运行时": "Advanced: connect an existing runtime", + "全自动:无需选择镜像、无需启用加速、无需调内存": "Fully automatic: no need to pick an image, enable acceleration, or tune memory", + "安装 Android 到虚拟磁盘": "Install Android to a virtual disk", + "虚拟机窗口已打开。按下面 6 步操作一次,之后 ApkStart 会直接从磁盘启动,不再需要镜像。": "The VM window is open. Follow the 6 steps below once; after that ApkStart boots straight from the disk and no longer needs the image.", + "启动菜单": "Boot menu", + ":用": ": use", + "选到": "to select", + ",回车": ", press Enter", + ":选": ": choose", + ";询问是否使用 GPT 时选": "; when asked whether to use GPT, choose", + "cfdisk 分区": "cfdisk partitioning", + "→ 容量直接回车 →": "→ press Enter for the size →", + "→ 输入": "→ type", + "格式化": "Format", + "→ 提示格式化时选": "→ when asked to format, choose", + "引导与系统": "Bootloader & system", + "选": "Choose", + "完成": "Done", + ":进度到 100% 后点下面的「我已安装完成」(ApkStart 会自动重启并接管)": ": when progress reaches 100%, click \"I've finished installing\" below (ApkStart will restart and take over)", + "如果之后提示 adb 未连接:在虚拟机窗口按": "If it later says adb is not connected: in the VM window press", + "进入终端,执行": "to open a terminal, run", + "再按": "then press", + "回到图形界面。": "to return to the graphical interface.", + "我已安装完成": "I've finished installing", + "稍后再说": "Later", + "自动模式(默认,无需设置)": "Automatic mode (default, no setup needed)", + "本机自适应参数": "Auto-tuned for this PC", + "正在检测…": "Detecting…", + "内存、核心数、渲染后端、端口、加速方式全部自动选择;启动失败会自动降级重试,不需要手动改。": "Memory, CPU cores, rendering backend, ports and acceleration are all chosen automatically; if startup fails it falls back and retries on its own, no manual changes needed.", + "ApkStart 用": "ApkStart uses", + "专用 adb 服务端口 5044": "a dedicated adb server port, 5044", + "(你系统里自己的 adb 是 5037),所以命令行里": "(your own system adb uses 5037), so on the command line", + "看不到这台安卓设备 —— 这是刻意的隔离。想连的话用": "won't show this Android device — this isolation is intentional. To connect, use", + "再执行 adb。": "and then run adb.", + "注意:别对着 5555 端口手动": "Note: don't manually run", + ",那会在正在运行的应用上弹出": "against port 5555; that pops up", + "「允许 USB 调试吗」的系统弹窗。": "the \"Allow USB debugging?\" system dialog on top of the running app.", + "磁盘总占用(运行时 + 安卓数据 + 缓存)": "Total disk usage (runtime + Android data + cache)", + "正在统计…": "Calculating…", + "清理可回收文件": "Clean up reclaimable files", + "清理旧版本残留": "Clean up old-version leftovers", + "修复网络": "Repair network", + "重置安卓数据": "Reset Android data", + "连当前 AVD 的快速启动快照也一起清(会先停运行时,能真正回收几 GB 快照)": "Also clear the current AVD's quick-boot snapshots (stops the runtime first, actually reclaims several GB)", + "系统镜像全机共享一份,应用数据用差分层保存;旧镜像、旧快照、日志和锁文件都可回收。日志超过上限会自动滚动,不会无限增长。「重置安卓数据」会真实删除数 GB 用户数据,仅保留系统本身。": "The system image is shared by the whole PC and app data is stored in a diff layer; old images, old snapshots, logs and lock files can all be reclaimed. Logs roll over automatically once they reach the limit, so they never grow forever. \"Reset Android data\" really deletes several GB of user data and keeps only the system itself.", + "导出诊断报告": "Export diagnostic report", + "重建快捷方式": "Rebuild shortcuts", + "诊断报告用于排障;重建会补齐桌面 + 开始菜单入口": "The diagnostic report is for troubleshooting; rebuilding restores the desktop + Start menu entries", + "开机自动启动(默认开启)": "Start automatically at sign-in (on by default)", + "随 Windows 登录常驻托盘,双击桌面图标秒开应用,无需手动启动。": "Stays in the tray after you sign in to Windows, so double-clicking a desktop icon opens the app instantly without starting ApkStart by hand.", + "应用窗口": "App windows", + "显示模式": "Display mode", + "竖屏窗口(可自由拉伸,记住每个应用的大小)": "Portrait window (freely resizable, remembers each app's size)", + "全屏(铺满屏幕,保持手机比例两侧留黑)": "Fullscreen (fills the screen, keeps the phone aspect ratio with black bars at the sides)", + "随时按": "Press", + "或右键托盘切换;全屏只放大窗口,不改变画面比例,切换不重启应用。": "at any time or right-click the tray icon to switch; fullscreen only enlarges the window without changing the aspect ratio, and switching doesn't restart the app.", + "自动全屏": "Auto fullscreen", + "关闭(按上面选的显示模式走)": "Off (follow the display mode above)", + "打开 · 每次启动应用都自动全屏": "On · every app launches in fullscreen", + "打开后,每次点开应用直接铺满屏幕,不用再按 F11。配合下面的「横屏」使用效果最好": "When on, every app fills the screen as soon as it opens, no need to press F11. Works best with \"Landscape\" below", + "—— 横屏面板的宽高比本来就贴合屏幕,全屏不会留黑边。": "— a landscape panel already matches the screen's aspect ratio, so fullscreen has no black bars.", + "屏幕方向": "Screen orientation", + "跟随应用(推荐 · 自动选横竖屏,画面铺满不留黑边)": "Follow the app (recommended · picks portrait or landscape automatically and fills the window)", + "强制竖屏(手机比例,适合刷短视频、看小说)": "Force portrait (phone ratio, good for short videos and reading)", + "强制横屏(宽屏铺满,适合看剧、玩游戏)": "Force landscape (widescreen, good for shows and games)", + "安卓的横竖屏是": "Android's portrait/landscape is decided by", + "虚拟手机面板的真实方向": "the real orientation of the virtual phone panel", + "决定的。面板方向和应用自己声明的方向不一致时,": ". When the panel orientation doesn't match the orientation the app declares,", + "安卓只会给应用中间一条窄画面、两侧补黑 —— 换窗口大小、改分辨率都填不满。": "Android only gives the app a narrow strip in the middle with black on both sides — resizing the window or changing the resolution can't fill it.", + "「跟随应用」会在安装 APK 时读出应用的方向,启动时自动把面板换成一致的那个,": "\"Follow the app\" reads the app's orientation when the APK is installed and switches the panel to match at launch,", + "所以红果、墨读这类应用会正立且铺满。方向不对时才重启一次运行时(约十几秒),": "so apps like Hongguo and Modu show upright and fill the window. The runtime restarts once only when the orientation is wrong (about 10–20 seconds);", + "之后再打开同一方向的应用都是秒进。": "after that, apps with the same orientation open instantly.", + "镜像自动旋转": "Image auto-rotate", + "打开(默认)· 系统设置里显示自动旋转已开启": "On (default) · system settings show auto-rotate enabled", + "关闭 · 回到旧的锁定行为": "Off · return to the old locked behavior", + "安卓里": "In Android,", + "自动旋转开关默认打开": "the auto-rotate switch is on by default", + "。注意这不影响画面方向:面板方向和屏幕方向仍由上面的": ". Note this doesn't affect the picture orientation: the panel and screen orientation are still decided by the", + "策略 + 忽略应用方向请求决定,不会被传感器带歪。只有个别应用读取这个开关值时才会用到。": "policy above + ignoring app orientation requests, so the sensor can't tilt it. It only matters for the few apps that read this switch.", + "平板排版": "Tablet layout", + "打开(推荐 · 逻辑密度 190dpi,sw606dp 走平板排版)": "On (recommended · logical density 190dpi, sw606dp uses tablet layouts)", + "关闭(镜像默认密度,手机排版)": "Off (image default density, phone layout)", + "720 宽按 190dpi 算等于 606dp,正好越过 Android 的 600dp 平板断点,": "720 px wide at 190dpi equals 606dp, just over Android's 600dp tablet breakpoint;", + "红果短剧的双列剧集页、设置页的分栏都只在这个排版下出现。关掉会回到手机排版": "Hongguo's two-column episode page and split settings pages only appear in this layout. Turning it off returns to the phone layout", + "(字更大、信息更少)。切换后下次打开应用生效。": "(bigger text, less information). Takes effect the next time you open an app.", + "当前面板方向": "Current panel orientation", + "竖屏面板": "Portrait panel", + "横屏面板": "Landscape panel", + "这是运行时": "This is the physical panel orientation the runtime", + "现在": "is using right now", + "用的物理面板方向,由上面那条策略自动写入。": ", written automatically by the policy above.", + "只有在「强制」模式下它才完全由你决定。": "Only in a \"Force\" mode is it fully up to you.", + "窗口承载方式": "Window hosting", + "原生窗口(默认·推荐)· 模拟器自己开窗口,帧率与缩放最稳": "Native window (default · recommended) · the emulator opens its own window; most stable frame rate and scaling", + "嵌入模式 · 安卓画面嵌在 ApkStart 窗口里,标题栏带旋转按钮": "Embedded mode · Android is embedded in the ApkStart window, with a rotate button in the title bar", + "原生窗口由模拟器直接渲染和排布,拖拽、缩放、旋转都跟手,不会出现黑边或点击错位,": "A native window is rendered and laid out by the emulator itself, so dragging, resizing and rotating are smooth with no black bars or misplaced clicks;", + "代价是多一个任务栏图标(横屏用托盘菜单或 Ctrl+Alt+R)。嵌入模式会把模拟器窗口塞进我们的窗口,": "the trade-off is one extra taskbar icon (rotate with the tray menu or Ctrl+Alt+R). Embedded mode puts the emulator window inside ours,", + "观感更统一、自带旋转按钮,但在缩放/旋转/切换应用时容易掉帧并出现黑边。改动在下次打开应用时生效。": "which looks more unified and has a rotate button, but tends to drop frames and show black bars when resizing, rotating or switching apps. Changes take effect the next time you open an app.", + "竖屏画面大小": "Portrait picture size", + "小 · 720 × 1280": "Small · 720 × 1280", + "中 · 900 × 1600": "Medium · 900 × 1600", + "大 · 1080 × 1920": "Large · 1080 × 1920", + "超大 · 1440 × 2560": "Extra large · 1440 × 2560", + "窗口模式下可拖动边框任意缩放;这里调的是 Android 内部渲染尺寸,越小越省性能。": "In window mode you can drag the border to any size; this sets Android's internal rendering size — smaller is lighter on performance.", + "鼠标键位": "Mouse buttons", + "左键 · 确认 / 点击": "Left button · confirm / tap", + "模拟器原生把左键当成手指点击,按住拖动就是滑动,无需额外设置。": "The emulator natively treats the left button as a finger tap, and holding and dragging is a swipe; no setup needed.", + "右键 · 安卓返回": "Right button · Android Back", + "模拟器默认把右键也当成一次点击(容易误触)。开启后右键只执行返回,不再触发点击。": "By default the emulator also treats right-click as a tap (easy to trigger by accident). When on, right-click only performs Back.", + "滚轮 · 滑动": "Scroll wheel · swipe", + "平滑(推荐)· 合并多次滚动为一次流畅滑动": "Smooth (recommended) · merges several scroll steps into one fluid swipe", + "原生 · 交给模拟器逐格处理": "Native · let the emulator handle each notch", + "关闭 · 不拦截滚轮": "Off · don't intercept the wheel", + "平滑模式把一小段时间内的滚动合并成一次滑动手势,避免逐格抽搐,也不会每格都拉起一个 adb 进程。": "Smooth mode merges scrolling over a short period into one swipe gesture, avoiding jerky step-by-step movement without launching an adb process for every notch.", + "鼠标侧键 · 返回 / 前进(默认关闭)": "Mouse side buttons · Back / Forward (off by default)", + "侧键映射需要全局鼠标钩子。钩子只在 ApkStart 应用窗口处于前台时安装,失焦或关闭立即卸载,不会拖慢桌面。": "Side-button mapping needs a global mouse hook. The hook is installed only while an ApkStart app window is in the foreground and removed as soon as it loses focus or closes, so it won't slow down your desktop.", + "以上映射只在应用窗口前台生效;切回桌面或关闭窗口后,鼠标行为完全恢复 Windows 原生。": "These mappings only apply while an app window is in the foreground; switch back to the desktop or close the window and the mouse behaves exactly like normal Windows.", + "键盘映射(游戏手柄)": "Keyboard mapping (gamepad)", + "启用键盘映射": "Enable keyboard mapping", + "把键盘按键映射成安卓触屏点击/滑动。适合用键盘玩手游(WASD 移动、J/K 技能等)。": "Maps keyboard keys to Android touch taps/swipes. Good for playing mobile games with a keyboard (WASD to move, J/K for skills, etc.).", + "每个应用可以单独配置,右键应用卡片 → 「按键映射」选择预设模板或自定义。": "Each app can be configured separately: right-click the app card → \"Key mapping\" to choose a preset template or customize.", + "当前应用未配置按键映射。右键应用卡片可快速套用预设模板。": "No key mapping configured for this app. Right-click the app card to quickly apply a preset template.", + "性能与资源占用": "Performance & resource usage", + "资源策略": "Resource policy", + "省资源 · 2 核 / 让出前台 / 540p(老机器、挂机)": "Save resources · 2 cores / yield to foreground / 540p (old PCs, idling)", + "均衡 · 一半物理核 / 让出前台 / 720p(推荐)": "Balanced · half the physical cores / yield to foreground / 720p (recommended)", + "流畅 · 不限核数 / 与前台同优先级(视频、游戏)": "Smooth · no core limit / same priority as foreground (video, games)", + "决定安卓虚拟机吃多少 CPU、画面多细腻。红果/抖音发卡就切「流畅」,只想挂着跑小应用就切「省资源」。改完下一次打开应用生效。": "Decides how much CPU the Android VM uses and how detailed the picture is. If Hongguo/Douyin stutter, switch to \"Smooth\"; if you just want small apps running in the background, switch to \"Save resources\". Takes effect the next time you open an app.", + "显卡偏好(独显 / 核显)": "Graphics preference (discrete / integrated GPU)", + "系统默认(推荐 · 让 Windows 决定)": "System default (recommended · let Windows decide)", + "独显优先(游戏 / 视频更流畅,更耗电)": "Prefer discrete GPU (smoother games / video, uses more power)", + "核显优先(省电、发热低)": "Prefer integrated GPU (saves power, runs cooler)", + "电脑同时有独显和核显时,Windows 有时会把模拟器分到核显,导致画面卡。这里可以明确指定用哪块显卡渲染;仅 Windows 10 1803+ 生效,改动在下次启动安卓时应用。": "On PCs with both a discrete and an integrated GPU, Windows sometimes assigns the emulator to the integrated one, making the picture lag. Here you can choose which GPU renders it; only works on Windows 10 1803+ and applies the next time Android starts.", + "画质(安卓内部渲染分辨率)": "Picture quality (Android internal render resolution)", + "自动(按加速状态)": "Auto (based on acceleration)", + "流畅 · 540 × 960": "Smooth · 540 × 960", + "均衡 · 720 × 1280": "Balanced · 720 × 1280", + "高清 · 1080 × 1920": "HD · 1080 × 1920", + "安卓数据分区(应用与游戏装这里)": "Android data partition (apps and games are installed here)", + "自动": "Auto", + "64 GB(50GB 级游戏)": "64 GB (50 GB-class games)", + "立即扩容": "Expand now", + "扩容是就地做的:已装应用与存档都保留,只是下次打开应用会多花十几秒。": "Expansion happens in place: installed apps and saves are kept; the next app launch just takes 10–20 seconds longer.", + "正在读取数据分区…": "Reading data partition…", + "系统语言": "System language", + "简体中文(推荐)": "Simplified Chinese (recommended)", + "繁體中文": "Traditional Chinese", + "English(镜像原生)": "English (image default)", + "日本語": "Japanese", + "系统设置、权限弹窗、日期格式的语言。开机时注入到虚拟机,": "Language for system settings, permission dialogs and date formats. Injected into the VM at boot,", + "下次重启运行时生效": "takes effect after the runtime restarts", + "。中文输入法不受此项影响,单独在下面开关。": ". The Chinese keyboard isn't affected by this; it has its own switch below.", + "中文输入法(推荐)": "Chinese keyboard (recommended for Chinese)", + "镜像只带英文键盘,勾上会静默安装并启用随包的谷歌拼音输入法,": "The image only includes an English keyboard. When checked, the bundled Google Pinyin keyboard is installed and enabled silently,", + "这样在安卓应用里能直接打中文。关掉则保持系统原生输入法。": "so you can type Chinese directly in Android apps. When off, the system's built-in keyboard is kept.", + "网络加速(推荐)": "Network acceleration (recommended)", + "给安卓指定国内公共 DNS(阿里 / 腾讯)。安卓默认走主机的 DNS,主机挂着 VPN 或走公司网时解析会拖到几百毫秒,视频类应用首屏发慢。内网域名访问异常时可关掉。": "Gives Android a fast public DNS. By default Android uses the host's DNS, and when the host is on a VPN or a corporate network lookups can take hundreds of milliseconds, slowing the first screen of video apps. Turn off if intranet domains stop resolving.", + "安卓声音": "Android sound", + "让应用提示音、视频声音正常播放。仅在你完全不需要声音、想再省一点 CPU 时关闭。": "Lets app notification sounds and video audio play normally. Turn off only if you don't need sound at all and want to save a bit of CPU.", + "麦克风输入(推荐)": "Microphone input (recommended)", + "让应用能用电脑的麦克风语音、通话、录音。关掉后应用里查不到录音设备。仅在你担心隐私、完全不需要录音时关闭。": "Lets apps use your PC's microphone for voice, calls and recording. When off, apps can't find a recording device. Turn off only if you're concerned about privacy and never need recording.", + "保留快速启动快照(推荐)": "Keep quick-boot snapshot (recommended)", + "第二次打开应用只要几秒,代价是磁盘上多一份约 2–3 GB 的": "Opening apps the second time takes only seconds; the cost is an extra file of about 2–3 GB on disk:", + "。磁盘紧张可以关掉:只影响启动速度,不影响应用与存档。": ". Turn off if disk space is tight: it only affects startup speed, not your apps or saves.", + "容器细节(高级)": "Container details (advanced)", + "轻量容器": "Lightweight container", + "收敛 vCPU 配额并降低进程优先级,CPU 优先让给 Windows 桌面。上面的「资源策略」已经会自动设置这一项。": "Limits the vCPU quota and lowers process priority so Windows gets the CPU first. The \"Resource policy\" above already sets this automatically.", + "虚拟机优先级": "VM priority", + "均衡(推荐)· 运行时让着前台窗口": "Balanced (recommended) · the runtime yields to foreground windows", + "性能优先 · 运行时与前台同等优先级": "Performance · the runtime has the same priority as the foreground", + "游戏 / 低延迟 · 运行时高优先级,适合 FPS、音游": "Gaming / low latency · high runtime priority, good for FPS and rhythm games", + "游戏模式会让安卓虚拟机保持较高 CPU 优先级并减少宿主侧轮询,输入与画面延迟最低;代价是整机其他程序会变慢。没有应用窗口时容器仍会自动降优先级停放。": "Gaming mode keeps the Android VM at a higher CPU priority and reduces host-side polling for the lowest input and display latency; the cost is that other programs on the PC slow down. With no app window open, the container still lowers its priority and parks automatically.", + "深度裁剪系统后台": "Deep-trim system background", + "额外禁用 Play 商店、设置向导、打印服务等后台包,只留打开应用必需的环境。若遇到应用提示缺少 Google Play 服务,关掉此开关会自动恢复。": "Also disables background packages such as the Play Store, setup wizard and print service, keeping only what's needed to open apps. If an app says Google Play services are missing, turning this off restores them automatically.", + "开机预热(推荐)": "Prewarm at startup (recommended)", + "启动 ApkStart 后就在后台把安卓环境引导好(窗口全程隐藏,不会看到模拟器)。之后点任何应用只剩一次「打开」,实测从 20 多秒降到几乎不用等。代价是空闲时常驻约 1GB 内存,关掉后第一次打开应用需要冷启动。": "Boots the Android environment in the background as soon as ApkStart starts (the window stays hidden, you won't see the emulator). After that, opening any app is a single \"open\" — in testing it drops from 20+ seconds to almost no wait. The cost is about 1 GB of memory kept in use while idle; when off, the first app launch needs a cold boot.", + "安卓环境只开机一次并常驻;之后打开应用不再重跑整个系统,只启动该应用并停掉其他应用进程。关掉最后一个窗口会清后台、停放容器,下次点开仍是秒进。": "The Android environment boots once and stays running; opening an app afterwards doesn't rerun the whole system, it just starts that app and stops other app processes. Closing the last window clears the background and parks the container, and the next launch is still instant.", + "下载与更新源": "Download & update sources", + "更新与下载源": "Update & download source", + "自动选择较快的源(推荐)": "Automatically pick the faster source (recommended)", + "只用 Gitee(国内通常最快)": "Gitee only (usually fastest in mainland China)", + "只用 GitHub": "GitHub only", + "「自动」会同时问 GitHub 与 Gitee 的最新版本,把每个下载地址都真下 256KB 测一次速度,再从最快的那个地址下载;其中一个源不通不影响更新。": "\"Auto\" asks both GitHub and Gitee for the latest version, actually downloads 256 KB from each download address to test speed, and then downloads from the fastest one; if one source is unreachable, updates still work.", + "自动尝试公共加速镜像": "Automatically try public acceleration mirrors", + "GitHub 直连太慢时,额外测速 ghfast.top / gh-proxy.com 这两个公开转发服务(只转发公开的发布文件,不涉及账号)。关掉后只用直连和你自己填的前缀。": "When direct GitHub downloads are too slow, also speed-test the public relay services ghfast.top / gh-proxy.com (they only relay public release files, no account involved). When off, only direct downloads and your own prefix are used.", + "下载镜像前缀(可选,加速 GitHub)": "Download mirror prefix (optional, speeds up GitHub)", + "填了就只用你填的前缀,不再尝试上面那两个公共镜像;留空则由「自动」逻辑决定。下载器会把它拼在真实地址前面。": "If set, only your prefix is used and the two public mirrors above are not tried; leave empty to let the \"Auto\" logic decide. The downloader puts it in front of the real address.", + "下载线程数(1–16,默认 8)": "Download threads (1–16, default 8)", + "大文件按块并行下载。默认 8 线程已经能跑满大多数家宽;网络稳定时可以试 16。": "Large files are downloaded in parallel chunks. The default of 8 threads saturates most home connections; try 16 if your network is stable.", + "Gitee 更新源(可选)": "Gitee update source (optional)", + "Gitee 只读 token(一般不用填)": "Gitee read-only token (usually not needed)", + "本项目仓库已公开,Gitee 的发行版列表匿名就能读,留空也能用 Gitee 源。": "This project's repository is public and Gitee's release list can be read anonymously, so the Gitee source works with this left empty.", + "只有在「Gitee 被限流(返回 403/429)」或你想读私有分支时才需要填:": "You only need it when Gitee is rate-limiting you (returns 403/429) or you want to read a private branch:", + "gitee.com → 设置 → 私人令牌,只勾「projects」即可,它只用于读取发行版列表,": "gitee.com → Settings → Personal access tokens, tick only \"projects\". It's used only to read the release list", + "不会上传任何东西。": "and never uploads anything.", + "本机体检 · 自动配置": "PC check-up · automatic configuration", + "先查一遍这台机器:CPU 虚拟化有没有开、Windows 的虚拟机监控程序平台在不在、": "First checks this PC: whether CPU virtualization is on, whether the Windows Hypervisor Platform is present,", + "显卡是什么、显存多大、内存和系统版本够不够。能自动改的(内存 / 核心 / 画质 / 渲染后端)直接写进设置,": "what the graphics card is, how much video memory, and whether memory and the Windows version are enough. Anything that can be changed automatically (memory / cores / quality / rendering backend) is written straight into settings,", + "并把结果固化成一份驱动;必须管理员权限的给按钮;只能在 BIOS 里改的会告诉你怎么改。": "and the result is saved as a driver; things that need administrator rights get a button; things that can only be changed in the BIOS come with instructions.", + "开始体检": "Start check-up", + "应用推荐配置": "Apply recommended configuration", + "驱动 · 兼容补丁": "Drivers · compatibility patches", + "有些机器要改启动参数才跑得起来(老显卡 GLES 版本低、没开硬件加速、某版驱动一开硬件渲染就崩)。": "Some PCs need different startup parameters to run (old GPUs with low GLES versions, no hardware acceleration, a driver version that crashes with hardware rendering).", + "驱动就是一份 JSON:声明「匹配哪些机器」+「命中后改哪些启动参数」。你可以自己写、导入、分享。": "A driver is just a JSON file declaring \"which machines it matches\" + \"which startup parameters to change when it matches\". You can write, import and share your own.", + "驱动只改白名单里的启动项,": "Drivers only change whitelisted startup options and", + "不执行任何代码": "never run any code", + ";匹配不上就不生效。": "; if they don't match, they have no effect.", + "正在读取驱动…": "Reading drivers…", + "刷新": "Refresh", + "导入驱动…": "Import driver…", + "打开驱动目录": "Open drivers folder", + "导出本机模板": "Export template for this PC", + "「导出本机模板」会把匹配条件按这台机器填好,改": "\"Export template for this PC\" fills in the match conditions for this machine; edit", + "里的": "→", + "就能用。字段说明见仓库里的": "and it's ready to use. For the field reference, see the repository's", + "自动检测 · 智能诊断": "Automatic detection · smart diagnosis", + "后台定时把这台机器查一遍:安卓运行时有没有起来、adb 授权是否正常、磁盘还剩多少、": "Periodically checks this PC in the background: whether the Android runtime is up, whether adb authorization is OK, how much disk is left,", + "数据分区是不是被差量盘挡住、快照有没有坏、设置之间有没有互相打架。": "whether the data partition is blocked by a diff disk, whether the snapshot is corrupted, and whether settings conflict with each other.", + "只在发现": "It only shows a notification once when it finds", + "新": "new", + "的严重问题时弹一次通知,其余都安静地列在下面。": "serious problems; everything else is listed quietly below.", + "启用自动检测(默认开启)": "Enable automatic detection (on by default)", + "关掉后不再定时扫描;随时可以点「立即检测」手动跑一次。": "When off, no more periodic scans; you can click \"Check now\" at any time to run one manually.", + "检测间隔": "Check interval", + "每 1 分钟": "Every 1 minute", + "每 5 分钟": "Every 5 minutes", + "每 10 分钟(推荐)": "Every 10 minutes (recommended)", + "每 30 分钟": "Every 30 minutes", + "每 1 小时": "Every hour", + "发现新问题时通知我": "Notify me when new problems are found", + "只对严重问题弹通知;已知的老问题不重复打扰。": "Only serious problems trigger a notification; known old problems don't bother you again.", + "立即检测": "Check now", + "尚未检测": "Not checked yet", + "高级参数(一般无需修改)": "Advanced parameters (usually no need to change)", + "运行时": "Runtime", + "ApkStart 只跑自己的运行时:adb / emulator / 系统镜像都由它自己下载和管理,": "ApkStart only runs its own runtime: adb / emulator / system image are all downloaded and managed by it,", + "不探测、不接管、不依赖你电脑上装的任何模拟器(MuMu / 雷电 / 蓝叠 / WSA 都不会被使用)。": "and it doesn't probe, take over or depend on any emulator installed on your PC (MuMu / LDPlayer / BlueStacks / WSA are never used).", + "这样换机器、别人装没装模拟器、模拟器怎么升级,都不影响这里。": "So switching PCs, whether someone has an emulator installed, or how that emulator upgrades has no effect here.", + "adb 路径": "adb path", + "设备地址": "Device address", + "由 ApkStart 自己分配(emulator-5554,端口冲突时自动顺延),无需填写。": "Assigned by ApkStart itself (emulator-5554, moved to the next port automatically if there's a conflict); nothing to fill in.", + "系统镜像(ISO)": "System image (ISO)", + "内存 (MB,0 = 自动)": "Memory (MB, 0 = auto)", + "CPU 核心(0 = 自动)": "CPU cores (0 = auto)", + "空闲回收(分钟,0 = 不回收)": "Idle shutdown (minutes, 0 = never)", + "通用兼容镜像(自动管理)": "Universal compatibility image (managed automatically)", + "现在只有一个 Android 14 通用镜像,x86 与 ARM 应用都能跑,首次遇到 ARM 应用时会自动下载,不需要手动切换。此开关仅用于旧配置兼容。": "There is now a single Android 14 universal image that runs both x86 and ARM apps; it downloads automatically the first time an ARM app needs it, no manual switching. This switch is only kept for compatibility with old configurations.", + "兼容镜像": "Compatibility image", + "未下载": "Not downloaded", + "下载兼容镜像": "Download compatibility image", + "启动运行时": "Start runtime", + "停止内置虚拟机": "Stop built-in VM", + "安卓系统设置(不用进安卓桌面)": "Android system settings (without opening the Android home screen)", + "运行时未启动": "Runtime not started", + "一键流畅优化": "One-click smoothness boost", + "关闭系统动画、放开后台进程上限并把当前应用加入电池白名单,低配电脑体感最明显。": "Turns off system animations, raises the background process limit and adds the current app to the battery whitelist; most noticeable on low-end PCs.", + "安卓虚拟机内部的无线网,关掉可省一点 CPU。": "Wi-Fi inside the Android VM; turning it off saves a little CPU.", + "飞行模式": "Airplane mode", + "彻底断网(含移动数据),需要安静时打开。": "Cuts all networking (including mobile data); turn on when you want quiet.", + "系统动画": "System animations", + "关掉后界面切换明显更快,功能不受影响。": "Turning them off makes screen transitions noticeably faster without affecting features.", + "媒体音量": "Media volume", + "字体大小": "Font size", + "小": "Small", + "标准": "Default", + "大": "Large", + "特大": "Largest", + "显示大小": "Display size", + "紧凑(省性能)": "Compact (saves performance)", + "宽松": "Roomy", + "安卓原生设置": "Native Android settings", + "显示设置": "Display settings", + "声音设置": "Sound settings", + "语言设置": "Language settings", + "应用管理": "App management", + "桌面与应用": "Desktop & apps", + "安装后自动创建桌面快捷方式": "Create a desktop shortcut automatically after installing", + "快捷方式带真实应用图标,双击直接进应用": "Shortcuts use the real app icon; double-click to go straight into the app", + "同时添加到开始菜单": "Also add to the Start menu", + "Windows 搜索能搜到应用名,任务栏也按应用分组": "Windows Search can find the app by name, and the taskbar groups windows by app", + "快捷方式目录": "Shortcut folder", + "桌面图标被误删或被安全软件拦掉时,点这里按当前设置全部补齐。": "If desktop icons were deleted by mistake or blocked by security software, click here to restore them all using the current settings.", + "文件互通": "File sharing", + "本机共享目录": "Shared folder on this PC", + "浏览": "Browse", + "打开": "Open", + "立即同步": "Sync now", + "保存并迁移": "Save and move", + "修改后旧目录里已有的文件会自动搬到新目录;正在运行的文件互通不受影响。": "After changing it, files already in the old folder are moved to the new one automatically; file sharing that's running is not affected.", + "安卓内对应目录": "Matching folder in Android", + "两侧目录会持续双向同步;在安卓应用里保存到该目录的文件,会出现在本机共享目录中。": "The two folders stay in two-way sync; files saved to this folder by Android apps appear in the shared folder on this PC.", + "系统集成": "System integration", + "关联 .apk 文件": "Associate .apk files", + "双击 APK 直接安装到 ApkStart(仅写入当前用户,无需管理员)": "Double-click an APK to install it into ApkStart (current user only, no administrator needed)", + "检查中…": "Checking…", + "运行时数据目录(系统镜像 · 已装应用 · 快照)": "Runtime data folder (system image · installed apps · snapshots)", + "这里占用空间最大(数 GB)。改到非系统盘可大幅减轻 C 盘压力;修改后需重启软件,已存在的数据不会自动搬移(请手动复制后删除旧目录)。": "This takes the most space (several GB). Moving it off the system drive greatly reduces pressure on drive C; you need to restart the app after changing it, and existing data isn't moved automatically (copy it manually, then delete the old folder).", + "安卓数据目录(应用、游戏与快速启动快照)": "Android data folder (apps, games and quick-boot snapshot)", + "真正吃盘的是这一块:数据分区(默认 6 GB,可在上面对大)+ 快速启动快照(约 2–3 GB)。": "This is what really uses disk space: the data partition (6 GB by default, can be enlarged above) + the quick-boot snapshot (about 2–3 GB).", + "磁盘紧张时把它指到另一个盘(如 D:),重启软件后生效;旧目录里的": "When disk space is tight, point it to another drive (such as D:); takes effect after restarting the app. The", + "可整体搬过去再删。": "in the old folder can be moved over as a whole and then deleted.", + "卸载 ApkStart": "Uninstall ApkStart", + "一键卸载": "Uninstall", + "卸载会取消 .apk 关联并移除程序;便携版请按提示手动删除目录。": "Uninstalling removes the .apk association and the program; for the portable version, delete the folder manually as prompted.", + "软件更新": "Software updates", + "当前版本": "Current version", + "尚未检查": "Not checked yet", + "检查更新": "Check for updates", + "立即更新": "Update now", + "从 GitHub(RoutineMiku/apkstart)获取最新版本;轻量版会下载便携包并自动替换程序文件,": "Gets the latest version from GitHub (RoutineMiku/apkstart); the lightweight version downloads the portable package and replaces the program files automatically,", + "运行时、已装应用与快照都不受影响。": "without affecting the runtime, installed apps or snapshots.", + "关于": "About", + "扫码关注公众号": "Scan to follow the WeChat account", + "抖音 · 日常MIKU": "Douyin · 日常MIKU", + "双击即装的 Windows 安卓应用启动器:APK 安装、桌面快捷方式、独立窗口运行、文件双向互通。": "A double-click-to-install Android app launcher for Windows: APK install, desktop shortcuts, apps in their own windows, two-way file sharing.", + "打开使用手册(含故障解决方案)": "Open the user manual (including troubleshooting)", + "抖音 · @日常MIKU(联系作者)": "Douyin · @日常MIKU (contact the author)", + "这里的功能还在实验阶段,行为可能随版本变化。遇到问题可在「诊断与修复 → 导出诊断报告」反馈。": "Features here are still experimental and may change between versions. If you run into problems, report them via \"Diagnostics & repair → Export diagnostic report\".", + "Windows 原生多窗口 · 多开(实验性)": "Windows native multi-window · multiple apps (experimental)", + "开启后打开新应用不再强制关闭上一个:多个应用可同时驻留、随时快速切回(保留登录态,不必重新加载),切回体验接近多窗口。": "When on, opening a new app no longer force-closes the previous one: several apps can stay resident and you can switch back quickly (keeping sign-ins, no reloading), close to a multi-window experience.", + "受限于安卓运行时只有一个模拟器窗口,同一时刻仍只有一个应用画面在前台显示,并非真正的同时并排多窗口。": "Because the Android runtime has only one emulator window, only one app is shown in the foreground at a time; it's not true side-by-side multi-window.", + "会明显增加内存占用;关闭则回到「一次只显示一个应用」的稳定模式。": "Noticeably increases memory use; turn off to return to the stable \"one app at a time\" mode.", + "后台保留应用数": "Apps kept in background", + "0 · 最省内存(只留当前应用)": "0 · least memory (only the current app)", + "1 · 平衡(推荐)": "1 · balanced (recommended)", + "2 · 多开更稳": "2 · steadier multitasking", + "3 · 最多并存": "3 · most apps at once", + "多开模式下,超过这个数量的后台应用会被挂起(保留数据、秒切回),释放内存。": "In multi-app mode, background apps beyond this number are suspended (data kept, instant switch back) to free memory.", + "设置修改后立即生效": "Settings take effect immediately", + "// src/ui/shell.html": "", + "横屏 / 竖屏(Ctrl+R)": "Landscape / portrait (Ctrl+R)", + "最小化": "Minimize", + "最大化": "Maximize", + "关闭": "Close", + "应用": "App", + "正在启动安卓运行时…": "Starting the Android runtime…", + "// src/ui/splash.html": "", + "Windows 上的安卓应用运行器": "Android app runner for Windows", + "正在准备…": "Preparing…", + "首次使用 · 自动配置中": "First run · configuring automatically", + "下载 Android 运行时引擎(约 200MB,只需一次)": "Download the Android runtime engine (about 200 MB, only once)", + "下载系统镜像(约 1.5GB,只需一次)": "Download the system image (about 1.5 GB, only once)", + "配置硬件加速与网络": "Configure hardware acceleration and network", + "完成后即可双击 APK 或桌面图标秒开应用": "When done, double-click an APK or desktop icon to open apps instantly", + "// src/ui/app.js": "", + "刚刚": "just now", + "{0} 分钟前": "{0} min ago", + "{0} 小时前": "{0} hr ago", + "{0} 天前": "{0} {0|day|days} ago", + "首次使用:打开右上角设置 → 运行时 → 一键完成,再回来安装应用即可。": "First time? Open Settings (top right) → Runtime → Set up everything, then come back and install apps.", + "提示:所有应用共享同一个 Android 运行时,所以第二个应用的启动几乎是瞬时的。": "Tip: all apps share one Android runtime, so the second app starts almost instantly.", + "正在运行": "Running", + "运行中": "Running", + "切换到前台": "Bring to front", + "拖入 APK 文件,或点击选择": "Drag in an APK file, or click to choose one", + "添加应用": "Add app", + "拖入 APK 即可安装": "Drag in an APK to install", + "{0} 个应用": "{0} {0|app|apps}", + "暂无应用": "No apps yet", + "运行时未部署 —— 打开设置 → 运行时,一键完成": "Runtime not set up — open Settings → Runtime and click Set up everything", + "需要部署": "Setup needed", + "运行时已就绪 · Android {0}{1}": "Runtime ready · Android {0}{1}", + "· 独立窗口已启用": "· own window enabled", + "正在引导 Android…": "Booting Android…", + "引导中": "Booting", + "未启用硬件加速:已回退软件模拟(很慢)。点右下角「环境自检 → 修复」开启": "Hardware acceleration not enabled: fell back to software emulation (very slow). Click \"Environment check → Repair\" at the bottom right to enable it", + "软件模拟": "Software emulation", + "缺少 Android 14 通用系统镜像 —— 设置 → 运行时里下载(约 1.5GB,只下一次)": "Android 14 universal system image missing — download it under Settings → Runtime (about 1.5 GB, only once)", + "待下载镜像": "Image needed", + "运行时引擎未安装 —— 打开设置 → 运行时一键完成": "Runtime engine not installed — open Settings → Runtime and click Set up everything", + "运行时已就绪 —— 安装 APK 或双击桌面图标会自动开机": "Runtime ready — installing an APK or double-clicking a desktop icon boots it automatically", + "待开机": "Ready to boot", + "安装程序运行中 —— 请在虚拟机窗口里完成安装": "Installer running — finish the installation in the VM window", + "安装中": "Installing", + "运行时待机(安装或打开应用时会自动拉起)": "Runtime on standby (starts automatically when you install or open an app)", + "运行时尚未安装 Android 系统 —— 打开设置 → 运行时继续": "The runtime doesn't have Android installed yet — open Settings → Runtime to continue", + "待机": "Standby", + "待安装": "Not installed", + "网络正常 {0}": "Network OK {0}", + "虚拟机未联网": "VM is offline", + "安卓虚拟机已联网,联网类应用可以正常加载": "The Android VM is online; apps that need the internet will load normally", + "安卓虚拟机没有网络,联网页面会一直是空白/报错。可在「设置 → 修复网络」处理": "The Android VM has no network, so online pages will stay blank or show errors. Fix it in \"Settings → Repair network\"", + "状态检查失败:{0}": "Status check failed: {0}", + "引擎": "Engine", + "系统镜像": "System image", + "已就绪 · Android {0}": "Ready · Android {0}", + "组件齐全 · 待开机(打开应用时自动拉起)": "All components present · ready to boot (starts automatically when you open an app)", + "缺少 {0}{1}": "Missing {0}{1}", + "(无硬件加速,将回退软件模拟)": "(no hardware acceleration, will fall back to software emulation)", + "adb 工具链": "adb toolchain", + "Android 运行时": "Android runtime", + "一切就绪": "All set", + "已自动完成": "Completed automatically", + "Android {0} 已就绪 · 应用窗口会按屏幕自动适配": "Android {0} ready · app windows adapt to your screen automatically", + "组件齐全,双击任意 APK 或桌面图标即会自动开机": "All components present; double-click any APK or desktop icon to boot automatically", + "还差 {0};点下面「一键完成」,会在后台一次装好并自动开机": "Still missing {0}; click \"Set up everything\" below to install it all in the background and boot automatically", + "停止运行时": "Stop runtime", + "准备中…": "Preparing…", + "已完成 · 点此复查": "Done · click to recheck", + "上次启动失败:{0}": "Last startup failed: {0}", + "上次启动自动诊断:{0}": "Last startup auto-diagnosis: {0}", + "准备失败": "Preparation failed", + "请检查网络后重试": "Check your network and try again", + "组件已就绪,正在自动开机…": "Components ready, booting automatically…", + "首次约 1-3 分钟,之后几秒即可。": "The first time takes about 1–3 minutes; after that, a few seconds.", + "运行时已就绪": "Runtime ready", + "现在把 APK 拖进窗口,或双击桌面图标即可。": "Now drag an APK into the window, or double-click a desktop icon.", + "开机未完成": "Boot didn't finish", + "请导出诊断报告查看原因": "Export a diagnostic report to see why", + "已有部署任务进行中": "A setup task is already running", + "正在安装硬件加速驱动…": "Installing the hardware acceleration driver…", + "请在弹出的是否允许窗口点「是」": "Click \"Yes\" in the permission prompt that appears", + "硬件加速已启用": "Hardware acceleration enabled", + "加速未启用": "Acceleration not enabled", + "未知步骤": "Unknown step", + "无法启动安装环境": "Couldn't start the installation environment", + "虚拟机窗口已打开": "VM window opened", + "按下方 6 步完成安装;装好后点「我已安装完成」。": "Follow the 6 steps below to install; when done, click \"I've finished installing\".", + "安装完成,运行时已接管": "Installation complete, the runtime has taken over", + "现在可以直接把 APK 拖进来安装了。": "You can now drag an APK in to install it.", + "未知错误": "Unknown error", + "安卓数据分区不够用:设置 → 性能与资源占用 → 安卓数据分区调大后点「立即扩容」。": "Not enough space in the Android data partition: go to Settings → Performance & resource usage → Android data partition, choose a larger size, then click \"Expand now\".", + "ARM 兼容镜像已启用仍装不上,请到「设置 → 诊断与修复」导出诊断报告反馈。": "Still can't install with the ARM compatibility image enabled. Please export a diagnostic report from \"Settings → Diagnostics & repair\" and report it.", + "这个包只有 ARM 库。程序会自动切到兼容镜像重装一次,请留意后续提示。": "This package only has ARM libraries. ApkStart will switch to the compatibility image and reinstall it once; watch for further messages.", + "同包名但签名不同(常见于从别的渠道装过)。在应用卡片右键「卸载」后再装。": "Same package name but a different signature (common if it was installed from another source). Right-click the app card, choose \"Uninstall\", then install again.", + "已装版本更高,先在右键菜单里卸载再装。": "A newer version is already installed; uninstall it from the right-click menu first, then install.", + "这个安装包过大或内存不足,解析被系统拒绝了。请确认磁盘与内存充足后重试;": "This package is too large or memory ran out, so the system refused to parse it. Make sure there's enough disk space and memory and try again;", + "仍失败请把安装包路径换成纯英文短路径(如 D:\\a.apk)。": "if it still fails, move the package to a short path with only English characters (such as D:\\a.apk).", + "已有安装任务在进行": "An installation is already in progress", + "请等当前应用装完再继续。": "Please wait for the current app to finish installing.", + "正在安装 {0}": "Installing {0}", + "解析 APK…": "Parsing APK…", + "{0} 已安装": "{0} installed", + "桌面快捷方式已创建,双击即可直接打开。": "Desktop shortcut created; double-click it to open the app.", + "可在应用卡片右键创建桌面快捷方式。": "You can create a desktop shortcut by right-clicking the app card.", + "{0} 兼容性提示": "{0} compatibility notice", + "正在打开 {0}": "Opening {0}", + "首次启动需要预热运行时,请稍候…": "The first launch needs to warm up the runtime, please wait…", + "已启动": "Started", + "应用正在独立窗口中运行(顶部可旋转屏幕)。": "The app is running in its own window (you can rotate the screen from the top).", + "启动失败": "Launch failed", + "桌面快捷方式已创建": "Desktop shortcut created", + "创建快捷方式失败": "Couldn't create shortcut", + "确定卸载「{0}」?": "Uninstall \"{0}\"?", + "应用数据会一并被清除,桌面快捷方式也会被删除。": "The app's data will also be deleted, and its desktop shortcut will be removed.", + "已卸载": "Uninstalled", + "卸载失败": "Uninstall failed", + "打开应用": "Open app", + "关闭应用": "Close app", + "创建桌面快捷方式": "Create desktop shortcut", + "横屏 / 竖屏": "Landscape / portrait", + "固定到顶部": "Pin to top", + "按键映射…": "Key mapping…", + "打开 APK 所在位置": "Show APK location", + "清除应用数据": "Clear app data", + "卸载": "Uninstall", + "取消固定": "Unpin", + "竖屏启动(当前横屏)": "Launch in portrait (currently landscape)", + "横屏启动(当前竖屏)": "Launch in landscape (currently portrait)", + "设为横屏启动": "Launch in landscape", + "已关闭": "Closed", + "关闭失败": "Couldn't close", + "横屏启动": "landscape launch", + "竖屏启动": "portrait launch", + "跟随应用": "follow the app", + "已设为{0}": "Set to {0}", + "下次打开该应用时生效,无需重启整个环境。": "Takes effect the next time you open this app; no need to restart the whole environment.", + "设置方向失败": "Couldn't set orientation", + "清除「{0}」的全部数据?此操作不可撤销。": "Clear all data for \"{0}\"? This can't be undone.", + "数据已清除": "Data cleared", + "清除失败": "Clear failed", + "0. 清除当前映射": "0. Clear the current mapping", + "为「{0}」选择按键映射预设:": "Choose a key mapping preset for \"{0}\":", + "输入编号:": "Enter a number:", + "已清除按键映射": "Key mapping cleared", + "无效编号": "Invalid number", + "已套用「{0}」": "Applied \"{0}\"", + "{0} · 打开应用后键盘即可操控": "{0} · the keyboard works once the app is open", + "按键映射设置失败": "Couldn't set key mapping", + "读取中…": "Loading…", + "运行时未就绪({0})": "Runtime not ready ({0})", + "Wi-Fi 已开": "Wi-Fi on", + "Wi-Fi 已关": "Wi-Fi off", + "{0} · 音量 {1}%": "{0} · volume {1}%", + "· 飞行模式": "· Airplane mode", + "已生效": "Applied", + "失败:{0}": "Failed: {0}", + "运行时未就绪": "Runtime not ready", + "Wi-Fi 已开启": "Wi-Fi turned on", + "Wi-Fi 已关闭": "Wi-Fi turned off", + "已进入飞行模式": "Airplane mode on", + "已退出飞行模式": "Airplane mode off", + "系统动画已开启": "System animations on", + "系统动画已关闭,界面更快": "System animations off, the interface is faster", + "字体大小已调整": "Font size adjusted", + "显示大小已调整": "Display size adjusted", + "音量已调整": "Volume adjusted", + "已优化:动画关闭、后台放宽、电池白名单": "Optimized: animations off, background limits relaxed, battery whitelist set", + "优化失败,运行时可能未启动": "Optimization failed; the runtime may not be running", + "需要先打开一次应用,让运行时启动": "Open an app once first so the runtime starts", + "未知": "Unknown", + "暂时读不到资源分配信息": "Can't read resource allocation info right now", + "本机 {0} 内存 / {1} 核;": "This PC: {0} memory / {1} cores;", + "内存最多可分 {0},核心最多 {1} 个(各留 1/4 内存与 1 核给 Windows)。": "up to {0} memory and {1} cores can be assigned (1/4 of memory and 1 core are always left for Windows).", + "数据分区上限 {0} GB{1}。": "Data partition limit {0} GB{1}.", + "(所在磁盘剩余 {0} GB)": "({0} GB free on that disk)", + "体检没有返回结果,请重试": "The check-up returned no result, please try again", + "正在处理…": "Working…", + "操作没有完成": "The operation didn't complete", + "可以稍后重试,或手动按提示操作": "Try again later, or follow the instructions manually", + "已取消": "Cancelled", + "没有修改系统设置": "System settings weren't changed", + "硬件加速已经可用": "Hardware acceleration is already available", + "已提交,需要重启": "Submitted, restart required", + "重启电脑后硬件加速才会生效,回来点「开始体检」确认": "Hardware acceleration takes effect after you restart the PC; come back and click \"Start check-up\" to confirm", + "可以点「开始体检」确认结果": "Click \"Start check-up\" to confirm the result", + "没能自动完成": "Couldn't finish automatically", + "请按提示手动操作": "Please follow the instructions manually", + "{0}。推荐配置:{1} GB 内存 /": "{0}. Recommended: {1} GB memory /", + "{0} 核 / {1} · 渲染 {2}": "{0} cores / {1} · rendering {2}", + "(商店版:系统功能只能在「Windows 功能」里手动开)": "(Store version: system features can only be turned on manually in \"Windows Features\")", + "体检中…": "Checking…", + "正在检查虚拟化、显卡、内存…(第一次约 2~3 秒)": "Checking virtualization, graphics, memory… (about 2–3 seconds the first time)", + "体检失败": "Check-up failed", + "无硬件加速": "No hardware acceleration", + "本机:{0}/{1} · {2} 显卡 · {3}": "This PC: {0}/{1} · {2} graphics · {3}", + "· emulator {0};驱动 {1} 个,本机已生效 {2} 个。": "· emulator {0}; {1} drivers, {2} active on this PC.", + "{0} 个文件加载失败(见下)。": "{0} {0|file|files} failed to load (see below).", + "保存失败": "Save failed", + "请稍后再试": "Please try again later", + "内置示例": "Built-in example", + "· 命中:{0}": "· matched: {0}", + "· 本机不匹配": "· doesn't match this PC", + "还没有任何驱动。可以点「导出本机模板」做一个,或导入别人做好的 JSON。": "No drivers yet. Click \"Export template for this PC\" to make one, or import a JSON file someone else made.", + "读不到驱动列表(运行时可能还没部署)": "Can't read the driver list (the runtime may not be set up yet)", + "读取数据分区信息失败": "Couldn't read data partition info", + "快速启动差量盘(实际容量以运行时 /data 为准)": "Quick-boot diff disk (actual capacity is whatever the runtime's /data reports)", + "实际文件系统 {0} GB": "actual file system {0} GB", + "尚未创建": "Not created yet", + "目标 {0} GB 还没生效:安卓正在用快速启动差量盘,需要「重置安卓数据」后按新容量重建(会清空已装应用)。": "The target of {0} GB hasn't taken effect: Android is using the quick-boot diff disk, so you need to \"Reset Android data\" to rebuild it at the new size (this removes installed apps).", + "当前数据分区:{0}{1} · 所在磁盘剩余 {2}。{3}": "Current data partition: {0}{1} · free space on that disk {2}. {3}", + "(自动)": "(auto)", + "游戏提示「存储空间不足」就把这里调大后点「立即扩容」;能就地扩容时不丢已装应用。": "If a game says \"not enough storage\", increase this and click \"Expand now\"; in-place expansion keeps installed apps.", + "{0} 项命中": "{0} matched", + "设备连接": "Device connection", + "存储": "Storage", + "网络": "Network", + "日志": "Logs", + "上次检测 {0} · 一切正常": "Last check {0} · all good", + "上次检测 {0} · {1} 项待处理": "Last check {0} · {1} to fix", + "没有发现影响使用的问题。运行时、adb 授权、磁盘、数据分区、快照与设置冲突都检查过了。": "No problems affecting use were found. The runtime, adb authorization, disk, data partition, snapshot and setting conflicts were all checked.", + "打开内置教程": "Open built-in guide", + "教程": "Guide", + "处理": "Fix", + "检测中…": "Checking…", + "检测失败": "Check failed", + "采集状态时出错,稍后再试一次": "An error occurred while collecting status; try again shortly", + "诊断报告已导出": "Diagnostic report exported", + "把报告发给作者可以最快定位问题": "Sending the report to the author is the fastest way to pin down the problem", + "导出失败": "Export failed", + "请重试": "Please try again", + "已开启自动检测": "Automatic detection turned on", + "已关闭自动检测": "Automatic detection turned off", + "后台会定时检查,发现新问题才提醒": "Checks run periodically in the background; you're only alerted about new problems", + "随时可以点「立即检测」手动跑一次": "You can click \"Check now\" to run a check manually at any time", + "检测间隔已更新": "Check interval updated", + "每 {0} 分钟检测一次": "Checks every {0} {0|minute|minutes}", + "已关联 · 点击取消": "Associated · click to remove", + "未关联 · 点击开启": "Not associated · click to enable", + "自动模式": "Automatic mode", + "(当前系统不支持此设置)": "(not supported on this system)", + "系统默认": "System default", + "独显": "Discrete GPU", + "核显": "Integrated GPU", + "(已生效:{0})": "(active: {0})", + "(已选 {0},下次启动安卓后生效)": "({0} selected, takes effect after Android next starts)", + "共 {0}{1}": "Total {0}{1}", + "· 可回收 {0}({1} 项)": "· reclaimable {0} ({1} items)", + "· 已是精简状态": "· already slimmed down", + "统计不可用": "Statistics unavailable", + "检查失败:{0}": "Check failed: {0}", + "网络不可用": "Network unavailable", + "打开下载页": "Open download page", + "(离线缓存,可能不是最新)": "(offline cache, may not be the latest)", + "发现新版本 {0}{1}{2}{3}": "New version available {0}{1}{2}{3}", + ";{0} 不可达": "; {0} unreachable", + "更新内容:": "What's new:", + "(离线缓存)": "(offline cache)", + "已是最新版本(v{0}){1}{2}": "You're up to date (v{0}){1}{2}", + "· 经由 {0}": "· via {0}", + "更新失败:{0}": "Update failed: {0}", + "更新失败": "Update failed", + "正在更新…": "Updating…", + "正在连接 GitHub…": "Connecting to GitHub…", + "发现新版本 {0}": "New version available {0}", + "点「立即更新」自动下载安装": "Click \"Update now\" to download and install automatically", + "已是最新版本": "You're up to date", + "更新中…": "Updating…", + "已下载 v{0},正在重启完成安装…": "Downloaded v{0}, restarting to finish installing…", + "应用失败": "Apply failed", + "已按这台机器配置好": "Configured for this PC", + "内存 {0} GB / {1} 核 / {2}": "Memory {0} GB / {1} cores / {2}", + ";已生成驱动,下次开机会自动套用": "; a driver was created and will be applied automatically at next boot", + "驱动没写成功": "The driver couldn't be written", + "打不开驱动目录": "Can't open the drivers folder", + "导入失败": "Import failed", + "驱动已导入并启用": "Driver imported and enabled", + "模板已导出": "Template exported", + "改完 effect 后放到驱动目录,点「刷新」即可生效": "After editing effect, put it in the drivers folder and click \"Refresh\" to apply it", + "资源策略已切换": "Resource policy changed", + "下一次打开应用生效": "Takes effect the next time you open an app", + "显卡偏好已保存": "Graphics preference saved", + "下一次启动安卓时生效": "Takes effect the next time Android starts", + "系统语言已更新": "System language updated", + "下次重启安卓运行时后生效": "Takes effect after the Android runtime restarts", + "已开启中文输入法": "Chinese keyboard turned on", + "已关闭中文输入法": "Chinese keyboard turned off", + "先选一个容量": "Choose a size first", + "「自动」表示由软件按磁盘余量决定,不需要扩容": "\"Auto\" means the app decides based on free disk space; no expansion needed", + "立刻把安卓数据分区扩容?": "Expand the Android data partition now?", + "将把 /data 调整为 {0} GB(就地扩容,已装应用和存档都会保留)。": "/data will be resized to {0} GB (in-place expansion; installed apps and saves are kept).", + "扩容需要先关掉正在运行的安卓应用,完成后下次打开应用会重新引导,约多花十几秒。": "Running Android apps must be closed before expanding; afterwards the next app launch reboots Android and takes 10–20 seconds longer.", + "开始扩容": "Start expanding", + "扩容中…": "Expanding…", + "需要重置安卓数据才能扩容": "Android data must be reset to expand", + "安卓正在使用快速启动差量盘,就地扩容改不到它。要拿到 {0} GB 空间,必须按新容量重建 /data。": "Android is using the quick-boot diff disk, which in-place expansion can't change. To get {0} GB of space, /data must be rebuilt at the new size.", + "重建会清空已安装的应用与存档(模拟器本身和镜像不受影响)。确定继续吗?": "Rebuilding removes installed apps and saves (the emulator itself and the image are not affected). Continue?", + "清空并重建": "Wipe and rebuild", + "重建中…": "Rebuilding…", + "已按新容量重建": "Rebuilt at the new size", + "重建失败": "Rebuild failed", + "下次打开应用会按 {0} GB 重建 /data(首次进入会多等几十秒)": "The next app launch will rebuild /data at {0} GB (the first start takes tens of seconds longer)", + "数据分区已扩容": "Data partition expanded", + "扩容失败": "Expansion failed", + "现在约 {0} GB 可用": "About {0} GB available now", + "键盘映射已开启": "Keyboard mapping turned on", + "键盘映射已关闭": "Keyboard mapping turned off", + "多窗口多开已开启(实验性)": "Multi-window, multiple apps turned on (experimental)", + "已回到单应用模式": "Back to single-app mode", + "下次打开应用生效:多个应用可并存、各自独立原生窗口。": "Takes effect the next time you open an app: several apps can coexist, each in its own native window.", + "已恢复系统组件": "System components restored", + "深度裁剪关闭,后台包正在恢复": "Deep trim off; background packages are being restored", + "ARM 兼容模式已开启": "ARM compatibility mode turned on", + "还需要下载 Google Play 兼容镜像(Android 14,约 1.5GB),点击下方按钮开始": "You still need to download the Google Play compatibility image (Android 14, about 1.5 GB); click the button below to start", + "重启运行时后生效": "Takes effect after the runtime restarts", + "已切全屏": "Switched to fullscreen", + "已切竖屏窗口": "Switched to portrait window", + "已开启自动全屏": "Auto fullscreen turned on", + "已关闭自动全屏": "Auto fullscreen turned off", + "下次打开应用时生效": "Takes effect the next time you open an app", + "已设为跟随应用": "Set to follow the app", + "已强制横屏": "Forced to landscape", + "已强制竖屏": "Forced to portrait", + "下次打开应用时会按应用自己的方向选面板,方向不一致的话会重启一次运行时。": "Next time you open an app, the panel is chosen from the app's own orientation; if it doesn't match, the runtime restarts once.", + "下次打开应用时会重启一次运行时把面板切到指定方向,之后不再重启。": "Next time you open an app, the runtime restarts once to switch the panel to the chosen orientation; after that it won't restart again.", + "已打开镜像自动旋转": "Image auto-rotate turned on", + "已关闭镜像自动旋转": "Image auto-rotate turned off", + "下次打开应用时写进安卓镜像。画面方向仍由屏幕方向策略决定,不受此开关影响。": "Written into the Android image the next time you open an app. The picture orientation is still decided by the screen orientation policy, not this switch.", + "已打开平板排版": "Tablet layout turned on", + "已关闭平板排版": "Tablet layout turned off", + "下次打开应用时生效(会重启一次运行时来改逻辑密度)。": "Takes effect the next time you open an app (the runtime restarts once to change the logical density).", + "面板已设为横屏": "Panel set to landscape", + "面板已设为竖屏": "Panel set to portrait", + "下次打开应用时会重启一次运行时来切换物理面板方向(约十几秒),之后就不会再重启。": "Next time you open an app, the runtime restarts once to switch the physical panel orientation (about 10–20 seconds); after that it won't restart again.", + "画面大小已更新": "Picture size updated", + "下次打开应用或切换应用时生效": "Takes effect the next time you open or switch apps", + "已切回嵌入模式": "Switched back to embedded mode", + "已切到原生窗口": "Switched to native window", + "下次打开应用时生效。嵌入模式观感统一、标题栏带旋转按钮,但缩放/旋转时更容易掉帧或出现黑边。": "Takes effect the next time you open an app. Embedded mode looks more unified and has a rotate button in the title bar, but drops frames or shows black bars more easily when resizing or rotating.", + "下次打开应用时生效。原生窗口由模拟器自己渲染与排布,帧率和缩放更稳,横屏可用托盘菜单或 Ctrl+Alt+R。": "Takes effect the next time you open an app. Native windows are rendered and laid out by the emulator itself, with steadier frame rate and scaling; rotate to landscape from the tray menu or with Ctrl+Alt+R.", + "已补齐快捷方式": "Shortcuts restored", + "快捷方式都还在": "All shortcuts are still there", + "桌面与开始菜单入口正常": "Desktop and Start menu entries are fine", + "已经是精简状态": "Already slimmed down", + "没有可回收的旧镜像或快照。": "No old images or snapshots to reclaim.", + "清理完成": "Cleanup complete", + "释放约 {0} MB({1} 项),已安装应用保留。": "Freed about {0} MB ({1} items); installed apps were kept.", + "共 {0} · 可回收 {1}({2} 项)": "Total {0} · reclaimable {1} ({2} items)", + "清理失败": "Cleanup failed", + "重置安卓数据?": "Reset Android data?", + "这会把安卓系统还原成「刚装好系统」的干净状态:": "This returns Android to a clean, freshly installed state:", + "• 删除全部已安装的第三方 app(含红果、游戏等)及其数据、登录态": "• Deletes all installed third-party apps (including Hongguo, games, etc.) with their data and sign-ins", + "• 删除当前 AVD 的快速启动快照": "• Deletes the current AVD's quick-boot snapshot", + "• 系统镜像本身不受影响,重新打开应用会再次冷启动建数据": "• The system image itself isn't affected; reopening an app cold-boots and rebuilds the data", + "此操作不可撤销。是否继续?": "This can't be undone. Continue?", + "取消": "Cancel", + "继续": "Continue", + "再确认一次": "Confirm again", + "已安装的 app 和它们的数据将被永久删除,确定要重置吗?": "Installed apps and their data will be permanently deleted. Are you sure you want to reset?", + "可放心的是:系统镜像、其它 AVD、本机的 APK 缓存和图标都不会动。": "Rest assured: the system image, other AVDs, and the APK cache and icons on this PC are not touched.", + "确定重置": "Reset", + "重置失败": "Reset failed", + "安卓数据已重置": "Android data reset", + "释放约 {0} MB,已安装应用记录已清空。": "Freed about {0} MB; the installed app list was cleared.", + "修复虚拟机网络?": "Repair the VM network?", + "应用里需要联网的页面一直黑屏/转圈,通常是安卓虚拟机没有网络。": "Pages inside apps that need the internet staying black or loading forever usually means the Android VM has no network.", + "修复会按「代价从小到大」依次尝试:": "The repair tries these in order, from least to most disruptive:", + "1. 冷启动虚拟机(不加载快照)后等待联网 —— 不影响任何数据": "1. Cold-boot the VM (without the snapshot) and wait for the network — no data is affected", + "2. 仍不行才重置安卓数据 —— 应用清单保留、点开会自动重装,": "2. Only if that fails, reset Android data — the app list is kept and apps reinstall when opened,", + "但应用内的登录态、追剧记录等会丢失": "but sign-ins and watch history inside apps are lost", + "只影响当前 AVD,系统镜像和本机 APK 缓存都不动。整个过程约 1–5 分钟。是否继续?": "Only the current AVD is affected; the system image and the APK cache on this PC are not touched. The whole process takes about 1–5 minutes. Continue?", + "开始修复": "Start repair", + "网络仍未恢复": "Network still not restored", + "重置后虚拟机还是没网,请检查本机网络/防火墙是否拦住了模拟器。": "The VM still has no network after the reset; check whether this PC's network or firewall is blocking the emulator.", + "网络已恢复": "Network restored", + "已联网": "Online", + "(为修复网络重置过安卓数据,点开应用会自动重装)": "(Android data was reset to repair the network; apps reinstall automatically when opened)", + "(未动你的数据)": "(your data wasn't touched)", + "修复失败": "Repair failed", + "扫描失败": "Scan failed", + "很干净": "All clean", + "没有发现旧版本残留。": "No old-version leftovers found.", + "…另有 {0} 项": "…and {0} more", + "清理旧版本残留?": "Clean up old-version leftovers?", + "找到 {0} 项残留,约 {1} MB:": "Found {0} leftover {0|item|items}, about {1} MB:", + "只删除「旧版本程序目录 / 已失效的卸载项 / 更新临时文件」,": "Only \"old program folders / broken uninstall entries / temporary update files\" are deleted;", + "当前正在运行的版本和你的应用数据都不会动。": "the version that's running now and your app data are not touched.", + "开始清理": "Start cleanup", + ",{0} 项被占用未删": ", {0} items in use and not deleted", + "已清理旧版本残留": "Old-version leftovers cleaned up", + "删除 {0} 项,释放 {1} MB{2}。": "Deleted {0} items, freed {1} MB{2}.", + "快捷方式已重建": "Shortcuts rebuilt", + "快捷方式都在": "All shortcuts are present", + "没有需要重建的入口": "No entries need rebuilding", + "已选新目录": "New folder selected", + "点「保存并迁移」把旧文件搬过去": "Click \"Save and move\" to move the old files over", + "请先填写或浏览目录": "Enter or browse to a folder first", + "共享目录已更新": "Shared folder updated", + "旧目录里已有的文件已迁移到新目录": "Files in the old folder were moved to the new folder", + "已保存": "Saved", + "确定卸载 ApkStart?": "Uninstall ApkStart?", + "将取消 .apk 文件关联并移除程序。此操作不可撤销。": "The .apk file association will be removed and the program uninstalled. This can't be undone.", + "便携版无法自动卸载": "The portable version can't uninstall itself", + "请手动删除程序目录({0})与数据目录({1})": "Please delete the program folder ({0}) and the data folder ({1}) manually", + "正在卸载…": "Uninstalling…", + "卸载程序已启动,ApkStart 即将退出": "The uninstaller has started; ApkStart will exit", + "开始下载 ARM 兼容镜像": "Started downloading the ARM compatibility image", + "下载 ARM 兼容镜像": "Download ARM compatibility image", + "ARM 兼容镜像就绪": "ARM compatibility image ready", + "兼容镜像下载失败": "Compatibility image download failed", + "已就绪({0} GB)": "Ready ({0} GB)", + "数据目录已更新": "Data folder updated", + "请重启 ApkStart 使其生效(旧数据不会自动搬移)": "Restart ApkStart for it to take effect (old data isn't moved automatically)", + "安卓数据目录已更新": "Android data folder updated", + "请重启 ApkStart 使其生效。旧目录里的 apkstart.avd 可以整体搬到新目录,再删掉旧的。": "Restart ApkStart for it to take effect. You can move apkstart.avd from the old folder into the new one as a whole, then delete the old one.", + "正在启动…": "Starting…", + "已就绪:{0}": "Ready: {0}", + "启动失败:{0}": "Start failed: {0}", + "已停止内置虚拟机": "Built-in VM stopped", + ".apk 关联已取消": ".apk association removed", + ".apk 关联已开启": ".apk association turned on", + "现在双击 APK 会直接安装到 ApkStart": "Double-clicking an APK now installs it straight into ApkStart", + "操作失败": "Operation failed", + "系统镜像已导入": "System image imported", + "虚拟磁盘已导入": "Virtual disk imported", + "可直接启动运行时": "You can start the runtime now", + "正在启动运行时…": "Starting the runtime…", + "首次启动需要引导 Android 系统": "The first start needs to boot the Android system", + "运行时会话已结束": "Runtime session ended", + "已同步共享目录": "Shared folder synced", + "同步失败": "Sync failed", + "运行时未就绪时会跳过同步": "Sync is skipped while the runtime isn't ready", + "只能拖入 .apk 文件": "Only .apk files can be dropped here", + "安装失败:{0}": "Install failed: {0}", + "安装失败": "Install failed", + "夜深了": "Up late", + "早上好": "Good morning", + "中午好": "Good afternoon", + "下午好": "Good afternoon", + "晚上好": "Good evening", + "{0},欢迎回来": "{0}, welcome back", + "运行时就绪,点开即用": "Runtime ready, click to use", + "运行时会按需自动准备": "The runtime prepares itself automatically when needed", + "已装应用": "Installed apps", + "就绪": "Ready", + "待命": "Idle", + "安卓运行时": "Android runtime", + "设备 / 端口": "Device / port", + "发现新版本": "New version available", + ",可在「设置 → 软件更新」一键更新": "; update in one click under \"Settings → Software updates\"", + "把 APK 拖进窗口就能安装,装完会自动生成桌面图标": "Drag an APK into the window to install it; a desktop icon is created automatically", + "双击应用卡片即可在独立窗口中运行,右上角可旋转 / 缩放 / 关闭": "Double-click an app card to run it in its own window; rotate / resize / close from the top right", + "关窗口只是退出那个应用,安卓环境会留着,下次点开更快": "Closing a window only quits that app; the Android environment stays up so the next launch is faster", + "{0} 项待修复": "{0} to fix", + "{0} 项提示": "{0} {0|notice|notices}", + "环境自检通过,没有发现会影响运行的问题。": "Environment check passed; nothing that would affect running apps was found.", + "重新检查": "Check again", + "环境自检": "Environment check", + "一键修复全部": "Fix all", + "{0} 个严重": "{0} serious", + "{0} 个提示": "{0} {0|notice|notices}", + "修复": "Repair", + "请按教程手动处理": "Please fix it manually by following the guide", + "修复未完成": "Repair didn't finish", + "未找到内置安装包": "Bundled installer not found", + "已打开微软官方下载页,请下载 x64 版本": "Opened Microsoft's official download page; please download the x64 version", + "VC++ 运行库已安装": "VC++ runtime installed", + "安装未完成": "Installation didn't finish", + "正在开启硬件加速…": "Turning on hardware acceleration…", + "请在弹出的窗口点「是」": "Click \"Yes\" in the window that appears", + "请重启电脑以获得最佳性能": "Restart your PC for best performance", + "需要手动开启一次(仅此一次)": "Needs to be turned on manually once (only this once)", + "在打开的窗口里勾选「Windows 虚拟机监控程序平台」,确定后重启电脑。": "In the window that opens, tick \"Windows Hypervisor Platform\", click OK and restart your PC.", + "没有拿到管理员授权,硬件加速没有改动。": "Administrator permission wasn't granted; hardware acceleration was not changed.", + "未能开启硬件加速,已打开对应教程": "Couldn't turn on hardware acceleration; opened the relevant guide", + "释放约 {0} MB": "Freed about {0} MB", + "建议改到纯英文目录": "Move it to a folder with only English characters", + "在 设置 → 系统集成 里修改「运行时数据目录」,再重启软件。": "Change \"Runtime data folder\" under Settings → System integration, then restart the app.", + "正在补齐缺失的运行时组件…": "Restoring missing runtime components…", + "已清理残留锁文件": "Leftover lock files cleaned up", + "正在重启安卓运行时…": "Restarting the Android runtime…", + "会重新引导一次,大约十几秒": "It will boot once more, about 10–20 seconds", + "安卓运行时已重启": "Android runtime restarted", + "授权弹窗请点「允许」": "Click \"Allow\" in the authorization prompt", + "重启失败,已打开对应教程": "Restart failed; opened the relevant guide", + "已清理残留的模拟器进程": "Leftover emulator processes cleaned up", + "已作废快速启动快照": "Quick-boot snapshot invalidated", + "下次打开应用会走一次完整冷启动": "The next app launch will do a full cold boot", + "作废失败": "Invalidation failed", + "需要重建安卓数据分区": "The Android data partition needs to be rebuilt", + "到「设置 → 性能与资源」点「立即扩容」;提示需要重置时确认一次(会清空已装应用)。": "Go to \"Settings → Performance & resources\" and click \"Expand now\"; confirm once when told a reset is needed (this removes installed apps).", + "当前是「跟随应用」": "Currently \"Follow the app\"", + "面板方向会按应用自动切换;若某个应用方向不对,可对它单独指定。": "The panel orientation switches automatically per app; if one app's orientation is wrong, you can set it for that app alone.", + "面板已切成横屏": "Panel switched to landscape", + "面板已切成竖屏": "Panel switched to portrait", + "下次打开应用生效": "Takes effect the next time you open an app", + "请检查共享目录": "Please check the shared folder", + "到「设置 → 集成与文件」确认本机共享目录存在且可写。": "Go to \"Settings → Integration & files\" and make sure the shared folder on this PC exists and is writable.", + "正在打开安卓应用声音…": "Turning on Android app sound…", + "马上重启运行时让 -no-audio 失效": "Restarting the runtime now so -no-audio stops applying", + "没能保存声音设置,已打开对应教程": "Couldn't save the sound setting; opened the relevant guide", + "声音已打开": "Sound turned on", + "运行时已重启,现在应该能听到应用声音了": "The runtime restarted; you should hear app sound now", + "声音开关已打开,但运行时重启失败,已打开对应教程": "The sound switch is on, but restarting the runtime failed; opened the relevant guide", + "需要手动启动 Windows Audio": "Windows Audio needs to be started manually", + "已打开教程,照着做一次即可": "Opened the guide; just follow it once", + "正在打开麦克风输入…": "Turning on microphone input…", + "马上重启运行时让录音设备生效": "Restarting the runtime now so the recording device takes effect", + "没能保存麦克风设置,已打开对应教程": "Couldn't save the microphone setting; opened the relevant guide", + "麦克风已打开": "Microphone turned on", + "运行时已重启,应用现在应该能录音了": "The runtime restarted; apps should be able to record now", + "麦克风开关已打开,但运行时重启失败,已打开对应教程": "The microphone switch is on, but restarting the runtime failed; opened the relevant guide", + "正在重置安卓网络…": "Resetting Android networking…", + "应用清单会保留": "The app list is kept", + "安卓网络已重置": "Android networking reset", + "下次打开应用重新联网": "Apps reconnect the next time you open them", + "暂不支持自动修复": "Automatic repair isn't supported yet", + "初始化失败": "Initialization failed", + "// src/ui/splash.js": "", + "首次启动 · 本地准备中(无需联网)": "First run · preparing locally (no internet needed)", + "运行时组件已随安装包内置,不再下载任何东西": "Runtime components are bundled with the installer; nothing more will be downloaded", + "把系统镜像展开到用户目录(约 1 分钟,只需一次)": "Unpack the system image to your user folder (about 1 minute, only once)", + "准备硬件加速与中文输入法": "Prepare hardware acceleration and the Chinese keyboard", + "完成后双击 APK 或桌面图标即可秒开应用": "When done, double-click an APK or desktop icon to open apps instantly", + "// src/main.js": "", + "运行时目录指向别的安装包({0}),改用随包内置运行时 {1}": "The runtime folder points to another installation ({0}); switching to the bundled runtime {1}", + "切换到横屏:正在重启安卓运行时…": "Switching to landscape: restarting the Android runtime…", + "切换回竖屏:正在重启安卓运行时…": "Switching back to portrait: restarting the Android runtime…", + "正在切换到横屏(重启安卓环境,约 40 秒,只需一次)…": "Switching to landscape (restarting the Android environment, about 40 seconds, only once)…", + "正在切换回竖屏(重启安卓环境,约 40 秒,只需一次)…": "Switching back to portrait (restarting the Android environment, about 40 seconds, only once)…", + "attach detached: 壳窗口已关闭(第 {0} 轮)": "attach detached: shell window closed (round {0})", + "attach detached #{0} 失败: {1}": "attach detached #{0} failed: {1}", + "attach detached: 重试全部失败,临时退回嵌入模式": "attach detached: all retries failed, temporarily falling back to embedded mode", + "模拟器原生窗口没能显示,本次临时用内置窗口接管画面": "The emulator's native window didn't appear, so the built-in window is showing the picture this time", + "正在为《{0}》切换到{1}(重启安卓环境,约 40 秒,只需一次)…": "Switching \"{0}\" to {1} (restarting the Android environment, about 40 seconds, only once)…", + "横屏": "landscape", + "竖屏": "portrait", + "autoDeploy 冷却中(上次失败于 {0}),跳过自动重试": "autoDeploy cooling down (last failed at {0}), skipping automatic retry", + "autoDeploy 跳过:运行时随包内置({0}),无需联网": "autoDeploy skipped: runtime is bundled ({0}), no internet needed", + ",镜像将在首次启动时本地展开": "; the image will be unpacked locally on first start", + "autoDeploy 跳过联网下载:运行时目录随包内置({0}),交给诊断流程": "autoDeploy skipped downloading: the runtime folder is bundled ({0}), handing over to diagnostics", + "正在从 GitHub 下载运行时…": "Downloading the runtime from GitHub…", + "运行时整包不完整,改用官方源补齐…": "The runtime package is incomplete; completing it from the official source…", + "GitHub 运行时不可用({0}),改用官方源…": "GitHub runtime unavailable ({0}); using the official source…", + "正在准备 adb…": "Preparing adb…", + "正在准备 Android 运行时…": "Preparing the Android runtime…", + "正在准备 Android 系统镜像…": "Preparing the Android system image…", + "无法启动 PowerShell": "Can't start PowerShell", + "商店版无法自行提权。请手动开启一次:": "The Store version can't elevate itself. Please turn it on manually once:", + "按 Win+R → 输入 optionalfeatures → 勾选「Windows 虚拟机监控程序平台」": "Press Win+R → type optionalfeatures → tick \"Windows Hypervisor Platform\"", + "(HypervisorPlatform,WHPX 真正需要的那个),确定后重启电脑。": "(HypervisorPlatform, the one WHPX actually needs), click OK and restart your PC.", + "ApkStart 仍在后台运行": "ApkStart is still running in the background", + "点击托盘图标可重新打开;右键托盘可退出。": "Click the tray icon to reopen it; right-click the tray icon to quit.", + "ApkStart 使用手册 · {0}": "ApkStart User Manual · {0}", + "自动检测发现新问题:{0}(设置 → 诊断与修复)": "Automatic detection found a new problem: {0} (Settings → Diagnostics & repair)", + "自动检测发现新问题": "Automatic detection found a new problem", + "{0}。打开 ApkStart 的「设置 → 诊断与修复」可以一键处理。": "{0}. Open \"Settings → Diagnostics & repair\" in ApkStart to fix it in one click.", + "打开 ApkStart": "Open ApkStart", + "使用手册": "User manual", + "还没有安装应用": "No apps installed yet", + "关闭当前应用({0})": "Close current app ({0})", + "关闭当前应用": "Close current app", + "切回竖屏(需重启运行时)": "Back to portrait (restarts the runtime)", + "切换横屏(需重启运行时)": "Switch to landscape (restarts the runtime)", + "切回竖屏窗口": "Back to portrait window", + "全屏(自适应屏幕)": "Fullscreen (fit the screen)", + "重建桌面/开始菜单快捷方式": "Rebuild desktop / Start menu shortcuts", + "同步共享目录": "Sync shared folder", + "ApkStart {0} 已发布,当前版本 v{1}。现在更新吗?": "ApkStart {0} is out; you have v{1}. Update now?", + "稍后": "Later", + "退出": "Quit", + "ApkStart — 安卓应用运行器": "ApkStart — Android app runner", + "这个 APK 正在安装中,请稍等…": "This APK is being installed, please wait…", + "正在安装中": "Installing", + "已有安装任务在进行,请等它装完。": "An installation is already in progress; please wait for it to finish.", + "安装完成": "Installation complete", + "{0} 已安装{1}": "{0} installed{1}", + ",桌面快捷方式已创建": ", desktop shortcut created", + "正在更新中": "Update in progress", + "商店版更新由 Microsoft Store 负责,已打开商店的「下载和更新」": "Store version updates are handled by the Microsoft Store; opened the Store's \"Downloads and updates\"", + "已经是最新版本": "Already up to date", + "该版本没有可直接安装的包,已打开 GitHub 发布页": "This release has no package that can be installed directly; opened the GitHub releases page", + "准备下载…": "Preparing download…", + "正在替换程序并重启…": "Replacing the program and restarting…", + "launch queued {0}(等待 {1} 启动完成)": "launch queued {0} (waiting for {1} to finish starting)", + "pre-attach detached ok(第 {0} 次)": "pre-attach detached ok (attempt {0})", + "app up (提前接画面)": "app up (attaching the picture early)", + "orientation mismatch (panel={0}, want={1}) 重启校正": "orientation mismatch (panel={0}, want={1}), restarting to correct", + "正在切换到横屏…": "Switching to landscape…", + "正在切换到竖屏…": "Switching to portrait…", + "正在打开应用…": "Opening app…", + "正在以软件模拟运行(很慢)": "Running in software emulation (very slow)", + "开启「Windows 虚拟机监控程序平台」后重启一次,速度可提升 5~10 倍。": "Turn on \"Windows Hypervisor Platform\" and restart once to make it 5–10 times faster.", + "设置 → 环境自检 → 修复 会直接打开该窗口。": "Settings → Environment check → Repair opens that window directly.", + "设置 → 环境自检 → 修复 可一键开启(需管理员授权),之后重启一次。": "Settings → Environment check → Repair turns it on in one click (needs administrator permission), then restart once.", + "没有正在运行的应用": "No app is running", + "选择数据存放目录": "Choose a data folder", + "选择要安装的 APK": "Choose an APK to install", + "Android 应用": "Android app", + "应用不存在": "App doesn't exist", + "缺少包名": "Package name missing", + "(跟随应用)": "(follow the app)", + "目录不能为空": "Folder can't be empty", + "体检自动配置:{0} driver={1}": "Check-up auto-configuration: {0} driver={1}", + "(未写入)": "(not written)", + "选择驱动文件(.json)": "Choose a driver file (.json)", + "驱动 JSON": "Driver JSON", + "已导入驱动:{0} v{1}": "Imported driver: {0} v{1}", + "导出本机驱动模板": "Export driver template for this PC", + "缺少驱动 id": "Driver id missing", + "缺少 VC++ 运行库(x64)": "VC++ runtime (x64) missing", + "实测系统缺少微软 VC++ 2015-2022(x64),安卓运行时依赖它。": "The system is missing the Microsoft VC++ 2015-2022 (x64) runtime, which the Android runtime depends on.", + "可一键安装;若装完仍报 0xC0000135,见内置手册 6.8——商店版还可能是子进程 DLL 路径问题。": "It can be installed in one click; if 0xC0000135 still appears afterwards, see section 6.8 of the built-in manual — for the Store version it may also be a child-process DLL path problem.", + "需要开启「Windows 虚拟机监控程序平台」": "\"Windows Hypervisor Platform\" needs to be turned on", + "没有它只能跑纯软件模拟,开机会慢到几分钟。": "Without it only pure software emulation works, and booting takes several minutes.", + "(商店版无法代你提权,需要你手动操作一次,之后重启。)": "(The Store version can't elevate for you; you need to do it manually once and then restart.)", + "未启用硬件加速": "Hardware acceleration not enabled", + "将回退软件模拟(能跑但很慢)。": "Will fall back to software emulation (works but very slow).", + "点右侧「修复」会自动开启(需要管理员授权,可能要重启一次);": "Click \"Repair\" on the right to turn it on automatically (needs administrator permission, may need one restart);", + "失败时会自动改装 AEHD 驱动。": "if that fails, the AEHD driver is installed instead.", + "运行时磁盘空间紧张": "Runtime disk space is low", + "「{0}」所在盘仅剩 {1} MB,运行时与镜像可能撑爆硬盘。": "The drive holding \"{0}\" has only {1} MB left; the runtime and image may fill it up.", + "运行时目录含中文/特殊字符": "Runtime folder contains Chinese/special characters", + "部分运行时组件对中文路径敏感,可能引发启动失败。建议改到纯英文目录。": "Some runtime components are sensitive to non-English paths, which can cause startup failures. Moving it to a folder with only English characters is recommended.", + "adb 工具链缺失": "adb toolchain missing", + "无法连接安卓运行时。": "Can't connect to the Android runtime.", + "运行时引擎未安装": "Runtime engine not installed", + "需要先部署运行时引擎(约 440MB)。": "The runtime engine needs to be set up first (about 440 MB).", + "系统镜像未就绪": "System image not ready", + "需要先下载 Android 系统镜像(约 1.5GB)。": "The Android system image needs to be downloaded first (about 1.5 GB).", + "检测到上次残留的锁文件": "Leftover lock files from last time detected", + "可能导致下一次启动被判定为「AVD 已被占用」。": "They may make the next start think \"the AVD is already in use\".", + "确认": "Confirm", + "确定": "OK", + "运行时未就绪,暂时读不到资源分配": "The runtime isn't ready; resource allocation can't be read yet", + "目标容量不合法": "Invalid target size", + "数据分区已调整": "Data partition adjusted", + "安卓可用空间约 {0} GB{1}": "About {0} GB available to Android{1}", + "(运行时已重启)": "(runtime restarted)", + "清理 {0} 项": "Clean up {0} {0|item|items}", + "确认清理运行时缓存": "Confirm clearing the runtime cache", + "将释放约 {0} MB": "About {0} MB will be freed", + "会先停止运行时,再删除旧镜像、当前 AVD 的快速启动快照、锁文件和非活动 AVD 的缓存。已安装的应用本身保留(只清快照),": "The runtime is stopped first, then old images, the current AVD's quick-boot snapshot, lock files and caches of inactive AVDs are deleted. Installed apps themselves are kept (only the snapshot is cleared),", + "只删除旧镜像、旧快照、锁文件和非活动 AVD 的缓存,已安装的应用会保留。": "Only old images, old snapshots, lock files and caches of inactive AVDs are deleted; installed apps are kept.", + "此操作不可撤销,建议先导出诊断报告。": "This can't be undone; exporting a diagnostic report first is recommended.", + "AEHD 驱动包未就绪": "AEHD driver package not ready", + "已取消管理员授权(需要点「是」才能安装驱动)": "Administrator permission was cancelled (you need to click \"Yes\" to install the driver)", + "驱动安装失败(退出码 {0})": "Driver installation failed (exit code {0})", + "硬件加速已可用,无需额外操作": "Hardware acceleration is already available; nothing else to do", + "已请求开启「Windows 虚拟机监控程序平台」,重启电脑后硬件加速才会生效": "Requested turning on \"Windows Hypervisor Platform\"; hardware acceleration takes effect after you restart the PC", + "已开启「Windows 虚拟机监控程序平台」,重启电脑后生效": "\"Windows Hypervisor Platform\" turned on; takes effect after you restart the PC", + "你取消了管理员授权,硬件加速没有改动。可以再点一次「修复」,或手动开启「Windows 虚拟机监控程序平台」。": "You cancelled the administrator prompt, so hardware acceleration wasn't changed. Click \"Repair\" again, or turn on \"Windows Hypervisor Platform\" manually.", + "AEHD 驱动包准备失败": "AEHD driver package preparation failed", + "AEHD 硬件加速已启用": "AEHD hardware acceleration enabled", + "选择 Android-x86 / Bliss OS 系统镜像": "Choose an Android-x86 / Bliss OS system image", + "选择已安装 Android 的虚拟磁盘": "Choose a virtual disk with Android installed", + "虚拟磁盘": "Virtual disk", + "未知设置项 {0}": "Unknown setting {0}", + "agent scope 为空:不压制任何窗口(避免误伤其他软件)": "agent scope is empty: not suppressing any windows (to avoid affecting other software)", + "磁盘空间不足": "Low disk space", + "只剩 {0} GB。请到「设置 → 系统集成」把安卓数据目录/运行时目录改到其他盘,或先清理磁盘。": "Only {0} GB left. Go to \"Settings → System integration\" and move the Android data folder / runtime folder to another drive, or free up disk space first.", + "磁盘只剩 {0} GB,安卓可能无法启动(设置 → 系统集成 可换盘)": "Only {0} GB of disk left; Android may fail to start (change the drive under Settings → System integration)", + "快捷方式已补齐": "Shortcuts restored", + "运行时已自动准备完成": "The runtime was prepared automatically", + "正在完成上次未完成的更新…": "Finishing the previous incomplete update…", + "另一个实例已接管运行时,跳过停止(否则会误杀它的模拟器)": "Another instance has taken over the runtime; skipping stop (otherwise its emulator would be killed by mistake)", + "// src/core/adb.js": "", + "安装失败:这个应用只提供 ARM 原生库(多数国产应用如此),": "Install failed: this app only ships ARM native libraries (true of most apps from China),", + "当前系统镜像没有 ARM 转译层。ApkStart 会自动切换到内置新版翻译层的兼容镜像并重试。": "and the current system image has no ARM translation layer. ApkStart will switch to the compatibility image with the newer built-in translation layer and retry.", + "安装失败:应用要求的 Android 版本高于当前运行时(需更高系统镜像)。": "Install failed: the app requires a newer Android version than the current runtime (needs a newer system image).", + "安装失败:APK 没有有效签名,无法安装。": "Install failed: the APK has no valid signature and can't be installed.", + "安装失败:与已安装版本签名不一致,请先卸载旧版再装。": "Install failed: the signature doesn't match the installed version; uninstall the old version first, then install.", + "安装失败:设备上已安装更高版本,不能降级覆盖。": "Install failed: a newer version is already installed on the device and can't be downgraded.", + "安装失败:运行时磁盘空间不足,请清理后重试。": "Install failed: not enough disk space for the runtime; free some space and try again.", + "安装失败:APK 文件损坏或不完整(可能下载未完成),请重新获取。": "Install failed: the APK file is corrupted or incomplete (the download may not have finished); please get it again.", + "安装失败:APK 路径含特殊字符,请把文件移到纯英文路径后重试。": "Install failed: the APK path contains special characters; move the file to a path with only English characters and try again.", + "安装失败:已存在同名应用且签名不同,请先卸载。": "Install failed: an app with the same name but a different signature already exists; uninstall it first.", + "安装失败:与已安装版本签名不一致,请先卸载旧版。": "Install failed: the signature doesn't match the installed version; uninstall the old version first.", + "安装失败:这是面向很老 Android 版本的应用(targetSdk 过低),Android 14 默认禁止安装。": "Install failed: this app targets a very old Android version (targetSdk too low), which Android 14 blocks by default.", + "ApkStart 会自动用官方绕过参数重试。": "ApkStart will retry automatically with the official bypass flag.", + "安装失败:这是仅供测试的应用包,已自动加上测试包参数重试。": "Install failed: this is a test-only package; retrying automatically with the test-package flag.", + "安装失败:应用依赖的设备特性(如特定厂商库)在当前运行时不存在。": "Install failed: a device feature the app depends on (such as a vendor-specific library) doesn't exist in the current runtime.", + "安装失败:系统限制了安装,请重启运行时后重试。": "Install failed: the system restricted installation; restart the runtime and try again.", + "安装失败:与已有应用的 ContentProvider 冲突,请卸载冲突应用。": "Install failed: conflicts with an existing app's ContentProvider; uninstall the conflicting app.", + "安装失败:系统内部错误(常见于存储空间不足或开机未完成),请重启运行时后重试。": "Install failed: internal system error (often from low storage or Android not finished booting); restart the runtime and try again.", + "{0} 检测到模拟器 / 转译环境后主动退出(反模拟、反调试或安全校验),": "{0} quit on its own after detecting an emulator / translation environment (anti-emulator, anti-debugging or security checks);", + "属于应用自身限制,不是故障;ApkStart 无法绕过,详见内置手册 6.3。": "this is the app's own restriction, not a fault. ApkStart can't bypass it; see section 6.3 of the built-in manual.", + "{0} 启动后崩溃:应用与 ARM 翻译层不兼容": "{0} crashed after starting: the app isn't compatible with the ARM translation layer", + "(常见于反调试 / 反模拟检测或 native hook 冲突)。": "(often caused by anti-debugging / anti-emulator checks or native hook conflicts).", + "若运行时尚未启用兼容镜像会自动切换重试一次;已启用仍崩溃则属于应用兼容性限制,": "If the runtime isn't using the compatibility image yet, it switches and retries once automatically; if it still crashes with it enabled, it's an app compatibility limitation,", + "不是故障,详见内置手册 6.3。": "not a fault; see section 6.3 of the built-in manual.", + "{0} 启动后崩溃:缺少设备原生库(应用可能只提供 ARM 版本)。": "{0} crashed after starting: missing native device libraries (the app may only ship an ARM version).", + "若运行时尚未启用 ARM 翻译层会自动切换兼容镜像重试;已启用仍崩溃多为应用限制,详见内置手册 6.3。": "If the runtime doesn't have the ARM translation layer yet, it switches to the compatibility image and retries automatically; if it still crashes with it enabled, it's usually an app restriction — see section 6.3 of the built-in manual.", + "{0} 启动即崩溃(应用内部异常,可能与模拟器环境或缺少 Google 服务有关)。": "{0} crashed immediately (internal app error, possibly related to the emulator environment or missing Google services).", + "{0} 启动失败:系统拒绝了启动请求(权限或签名问题)。": "{0} failed to start: the system rejected the launch request (permission or signature problem).", + "{0} 未能启动{1}": "{0} didn't start{1}", + "(进程未存活)": "(process not alive)", + "adb {0} 失败: {1}": "adb {0} failed: {1}", + "adb shell 启动失败": "adb shell failed to start", + "adb shell 已退出": "adb shell exited", + "非法的输入命令": "Invalid input command", + "input 命令超时": "input command timed out", + "输入通道已关闭": "Input channel closed", + "APK 不存在: {0}": "APK doesn't exist: {0}", + "安装失败,未获得明确原因": "Install failed, no clear reason given", + "没有可安装的分片 APK": "No split APKs to install", + "拆分 APK 安装失败": "Split APK install failed", + "(应用仍在加载中)": "(the app is still loading)", + "输入法 APK 缺失": "Keyboard APK missing", + "输入法包未注册": "Keyboard package not registered", + "// src/core/agent.js": "", + "窗口代理不可用": "Window agent unavailable", + "窗口代理已退出": "Window agent exited", + "窗口代理启动失败": "Window agent failed to start", + "窗口代理启动超时": "Window agent start timed out", + "窗口代理连接断开": "Window agent disconnected", + "窗口代理未连接": "Window agent not connected", + "窗口代理超时: {0}": "Window agent timed out: {0}", + "// src/core/apk.js": "", + "文件过小,不是有效的 APK": "File too small to be a valid APK", + "缺少 AndroidManifest.xml:这不是单个 APK(可能是 .apks/.xapk 拆分包)": "Missing AndroidManifest.xml: this isn't a single APK (it may be a .apks/.xapk split package)", + "清单中未找到 package 名": "No package name found in the manifest", + "清单中的 package 名不合法:{0}": "Invalid package name in the manifest: {0}", + "// src/core/appwin.js": "", + "正在切换到横屏(重启安卓运行时,约 30-60 秒)…": "Switching to landscape (restarting the Android runtime, about 30–60 seconds)…", + "正在切回竖屏(重启安卓运行时,约 30-60 秒)…": "Switching back to portrait (restarting the Android runtime, about 30–60 seconds)…", + "// src/core/arsc.js": "", + "resources.arsc 格式错误": "resources.arsc format error", + "// src/core/assoc.js": "", + "Android 应用包": "Android app package", + "安装到 ApkStart": "Install to ApkStart", + "// src/core/autodebug.js": "", + "安卓虚拟机进程、启动阶段、快照与残留锁": "Android VM process, boot stage, snapshot and leftover locks", + "adb 授权状态、设备是否在线": "adb authorization status, whether the device is online", + "磁盘余量、数据分区、共享目录": "Free disk space, data partition, shared folder", + "配置之间的冲突与互相抵消": "Conflicts between settings and settings cancelling each other out", + "安卓网络与下载源连通性": "Android network and download source connectivity", + "运行日志里的错误": "Errors in the run log", + "安卓运行时上次启动失败": "The Android runtime failed to start last time", + "运行时的真实报错已经拿到,按这条原因处理通常一次就能恢复。": "The runtime's actual error has been captured; handling this cause usually recovers in one go.", + "安卓开机卡在引导阶段": "Android is stuck booting", + "已经引导超过 2 分半还没进系统。常见原因是快速启动快照损坏,重启运行时(会走一次冷启动)通常能解决。": "It has been booting for over 2.5 minutes without reaching the system. A corrupted quick-boot snapshot is a common cause; restarting the runtime (which does one cold boot) usually fixes it.", + "阶段:{0}": "Stage: {0}", + "检测到 {0} 个上次残留的锁文件": "Detected {0} leftover lock {0|file|files} from last time", + "锁文件没清会让下一次启动被判定为「AVD 已被占用」而直接失败。可以一键清掉。": "If the lock files aren't cleared, the next start will be judged as \"AVD already in use\" and fail. They can be cleared in one click.", + "有 {0} 个残留的模拟器进程": "{0} leftover emulator {0|process|processes}", + "上次没有正常关机的安卓进程还占着资源与 AVD 锁,会让下次开机失败。可以一键清理(不会动已装应用与存档)。": "Android processes that didn't shut down properly last time are still holding resources and the AVD lock, which will make the next boot fail. They can be cleaned up in one click (installed apps and saves aren't touched).", + "快速启动快照已损坏": "Quick-boot snapshot is corrupted", + "快照文件还在但校验不通过,每次开机都要额外冷启动一次。删掉它会用一次冷启动换回磁盘空间。": "The snapshot file is still there but fails verification, so every boot needs an extra cold boot. Deleting it trades one cold boot for disk space.", + "安卓设备未授权调试": "Android device not authorized for debugging", + "安卓侧弹过「允许 USB 调试吗」但没被确认,adb 一直连不上。重启运行时(走一次冷启动)会重新弹出确认框,确认后即恢复。": "Android showed \"Allow USB debugging?\" but it wasn't confirmed, so adb can't connect. Restarting the runtime (one cold boot) shows the prompt again; confirm it and everything recovers.", + "安卓设备处于 offline 状态": "Android device is offline", + "adb 能看到设备但连不上,通常是虚拟机还在引导或 adb 服务没握手成功。等一会儿仍不恢复就重启运行时。": "adb can see the device but can't connect, usually because the VM is still booting or the adb server didn't finish its handshake. If it doesn't recover after a while, restart the runtime.", + "运行时在跑,但 adb 没看到设备": "The runtime is running, but adb doesn't see the device", + "安卓进程活着、adb 却看不到设备,多半是 adb 服务端口被别的程序占了,或者引导还没完成。": "The Android process is alive but adb can't see the device; most likely the adb server port is taken by another program, or booting hasn't finished.", + "运行时所在磁盘快满了": "The runtime's disk is almost full", + "剩余空间不足 2 GB,装应用和写快照都会失败。点「一键清理」回收旧镜像、旧快照和日志。": "Less than 2 GB left; installing apps and writing snapshots will fail. Click \"Clean up\" to reclaim old images, old snapshots and logs.", + "剩余 {0} MB": "{0} MB left", + "运行时所在磁盘空间偏紧": "The runtime's disk is getting tight", + "剩余不足 8 GB,快照和系统镜像还需要空间。建议先清理一次可回收文件。": "Less than 8 GB left; snapshots and the system image still need space. Cleaning up reclaimable files first is recommended.", + "数据分区扩容没有真正生效": "Data partition expansion didn't actually take effect", + "快速启动用的差量盘挡着就地扩容,guest 里看到的还是旧容量。需要「重置安卓数据」后按新容量重建(会清掉已装应用)。": "The diff disk used for quick boot blocks in-place expansion, so Android still sees the old size. You need to \"Reset Android data\" to rebuild it at the new size (this removes installed apps).", + "配置 {0} GB · 实际 {1} GB": "Configured {0} GB · actual {1} GB", + "安卓数据分区比配置的小": "The Android data partition is smaller than configured", + "安卓里实际可用容量小于设置里写的值,装大游戏会提示存储空间不足。": "The space actually available in Android is less than the value in settings; installing large games will report insufficient storage.", + "共享目录不可用": "Shared folder unavailable", + "文件互通用的本机目录不存在或没有写权限,安卓里保存的文件同步不过去。": "The local folder used for file sharing doesn't exist or isn't writable, so files saved in Android can't sync over.", + "屏幕方向策略与当前面板方向相反": "The screen orientation policy is the opposite of the current panel orientation", + "策略要求竖屏,但面板现在是横屏,安卓只会给应用一条窄画面加两侧黑边。把面板方向改成与策略一致即可。": "The policy requires portrait but the panel is currently landscape, so Android only gives the app a narrow strip with black bars on both sides. Change the panel orientation to match the policy.", + "策略要求横屏,但面板现在是竖屏,看剧/游戏会是一条竖着的窄画面。把面板方向改成与策略一致即可。": "The policy requires landscape but the panel is currently portrait, so shows and games appear as a narrow vertical strip. Change the panel orientation to match the policy.", + "原生窗口模式下的「启动时自动全屏」不会生效": "\"Auto fullscreen at launch\" doesn't apply in native window mode", + "原生窗口由模拟器自己开窗,全屏由它自己决定,不受这里的开关控制。想铺满屏幕可在窗口里按 F11,或把窗口承载方式改成嵌入模式。": "A native window is opened by the emulator itself, which decides fullscreen on its own regardless of this switch. To fill the screen, press F11 in the window or change Window hosting to embedded mode.", + "磁盘偏紧,快速启动快照已关闭": "Disk is tight and the quick-boot snapshot is off", + "当前磁盘余量不到 4 GB,快照又被关掉:打开应用会走一次完整冷启动(十几秒)。磁盘够的话建议重新打开快照。": "Less than 4 GB of disk is free and the snapshot is turned off: opening an app does a full cold boot (10–20 seconds). If you have enough disk, turning the snapshot back on is recommended.", + "安卓应用声音已在设置里关闭": "Android app sound is turned off in settings", + "安卓声音开关被关掉了,所以只有 ApkStart 里的应用没声音。点「处理」重新打开,并重启一次运行时即可。": "The Android sound switch is off, so only apps in ApkStart have no sound. Click \"Fix\" to turn it back on and restart the runtime once.", + "Windows 音频服务(Audiosrv)未运行": "The Windows audio service (Audiosrv) isn't running", + "这会连系统其它软件一起没声音。到 services.msc 启动 Windows Audio 并设为自动,或在管理员 PowerShell 里执行 net start Audiosrv。": "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.", + "麦克风输入已在设置里关闭": "Microphone input is turned off in settings", + "应用里的语音、通话、录音会失败(查不到录音设备)。点「处理」重新打开并重启一次运行时即可;同时确认 Windows 的麦克风权限已允许桌面应用访问。": "Voice, calls and recording in apps will fail (no recording device found). Click \"Fix\" to turn it back on and restart the runtime once; also make sure Windows microphone permission allows desktop apps.", + "安卓里没有网络": "No network in Android", + "安卓侧解析或联网失败,视频/资讯类应用会一直转圈。可以用「修复网络」重置安卓数据解决(应用清单会保留)。": "Android can't resolve names or connect, so video/news apps keep loading forever. Use \"Repair network\" to reset Android data and fix it (the app list is kept).", + "{0} 个下载源连不上": "{0} download {0|source|sources} unreachable", + "更新检查会同时问多个源,有一个不通不影响使用;如果全都不通,请检查网络或代理。": "Update checks ask several sources at once, so one being unreachable doesn't matter; if none can be reached, check your network or proxy.", + "运行日志里有 {0} 条错误": "{0} {0|error|errors} in the run log", + "最近一次运行留下了错误记录,展开诊断报告可以看到完整上下文。": "The most recent run left error records; expand the diagnostic report to see the full context.", + "当前没有硬件加速": "No hardware acceleration right now", + "只能跑纯软件模拟,开机慢到几分钟、画面也容易掉帧。开启「Windows 虚拟机监控程序平台」后重启即可。": "Only pure software emulation works, so booting takes minutes and the picture drops frames easily. Turn on \"Windows Hypervisor Platform\" and restart.", + "// src/core/axml.js": "", + "字符串池类型错误": "Wrong string pool type", + "不是 Android 二进制 XML(可能被混淆或非法 APK)": "Not Android binary XML (possibly obfuscated or an invalid APK)", + "APK 清单为空": "APK manifest is empty", + "// src/core/backends/base.js": "", + "未命名后端": "Unnamed backend", + "未实现": "Not implemented", + "该后端不支持自动部署": "This backend doesn't support automatic setup", + "该后端不支持调整数据分区": "This backend doesn't support resizing the data partition", + "该后端不支持重置数据": "This backend doesn't support resetting data", + "// src/core/backends/builtin.js": "", + "自带运行时(Android Emulator + QEMU)": "Built-in runtime (Android Emulator + QEMU)", + "零第三方依赖:apkstart 自己下载并管理 Android 14 镜像,ARM 应用走镜像自带的翻译层。": "No third-party dependencies: ApkStart downloads and manages the Android 14 image itself, and ARM apps use the image's built-in translation layer.", + "首次启动约 25 秒,之后靠 quickboot 快照秒进。": "The first start takes about 25 seconds; after that, quick-boot snapshots make it instant.", + "运行时未初始化": "Runtime not initialized", + "运行时探测失败": "Runtime probe failed", + "缺 adb": "adb missing", + "缺 Android Emulator": "Android Emulator missing", + "缺系统镜像": "System image missing", + "安卓运行时未能启动": "The Android runtime failed to start", + "未知组件 {0}": "Unknown component {0}", + "自带运行时的内存/CPU 下次启动安卓生效;数据分区改大后点「立即扩容」——": "Memory/CPU changes for the built-in runtime apply the next time Android starts; after enlarging the data partition, click \"Expand now\" —", + "能就地扩就保留已装应用,安卓正在用快速启动差量盘时会提示你重置后按新容量重建。": "if it can expand in place, installed apps are kept; if Android is using the quick-boot diff disk, you'll be prompted to reset and rebuild at the new size.", + "安卓数据分区不足:当前 {0} GB,这个游戏建议至少 {1} GB。": "Not enough space in the Android data partition: currently {0} GB, this game recommends at least {1} GB.", + "请在设置 → 引擎里把「数据分区容量」调大后重启安卓(会就地扩容,不丢已装应用)。": "Go to Settings → Engine, increase \"Data partition size\" and restart Android (it expands in place without losing installed apps).", + "// src/core/container.js": "", + "容器空闲(Android 常驻但已降优先级,0 个应用进程)": "Container idle (Android resident at lowered priority, 0 app processes)", + "容器活跃:{0} 个应用窗口{1}": "Container active: {0} app windows{1}", + ",已停掉 {0} 个后台应用": ", stopped {0} background apps", + "// src/core/doctor.js": "", + "硬件加速": "Hardware acceleration", + "关闭加速的软件模拟(慢,但兼容性最好)": "Software emulation without acceleration (slow, but most compatible)", + "保守冷启动(最小内存 + 清快照)": "Conservative cold boot (minimum memory + clear snapshot)", + "渲染后端崩溃(0xC0000005 访问冲突)": "Rendering backend crashed (0xC0000005 access violation)", + "已自动改用更保守的渲染后端重试,并记住这个后端下次不再先试。": "Automatically retried with a more conservative rendering backend, and remembered not to try this backend first next time.", + "若反复出现,请更新显卡驱动;或在设置 → 性能与资源里把画质调低、关闭远程桌面/虚拟机显卡直通后再试。": "If it keeps happening, update your graphics driver; or lower the picture quality under Settings → Performance & resources, and turn off Remote Desktop / VM GPU passthrough before trying again.", + "显卡渲染后端初始化失败": "Graphics rendering backend failed to initialize", + "已自动切换软件渲染重试。若仍失败,请更新显卡驱动,或关闭远程桌面/虚拟机显卡直通后再试。": "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.", + "当前运行时不接受该 GPU 模式": "The current runtime doesn't accept this GPU mode", + "已自动按运行时版本挑选可用的 GPU 模式重试(老版本用 swiftshader_indirect,新版本用 software)。": "Automatically retried with a GPU mode the runtime version supports (swiftshader_indirect for older versions, software for newer ones).", + "硬件加速不可用": "Hardware acceleration unavailable", + "已自动回退软件模拟(首次启动会明显变慢)。想要流畅可用,请在「Windows 功能」勾选「虚拟机平台」,或安装 AEHD 驱动后重启。": "Automatically fell back to software emulation (the first start will be noticeably slower). For smooth performance, tick \"Virtual Machine Platform\" in \"Windows Features\", or install the AEHD driver and restart.", + "内存分配失败": "Memory allocation failed", + "已自动下调分配给 Android 的内存与核心数。请关闭占内存的程序后重试。": "Automatically reduced the memory and cores given to Android. Close memory-hungry programs and try again.", + "模拟器端口被占用": "Emulator port in use", + "已自动换用空闲端口。若反复出现,请退出夜神/MuMu/蓝叠等模拟器,或重启电脑。": "Automatically switched to a free port. If it keeps happening, quit emulators such as NoxPlayer/MuMu/BlueStacks, or restart your PC.", + "上次运行残留了锁文件": "The last run left lock files behind", + "已自动清理 AVD 锁文件并重新拉起。": "Automatically cleared the AVD lock files and started again.", + "系统镜像缺失或损坏 / 与旧用户数据不兼容": "System image missing or corrupted / incompatible with old user data", + "已自动用干净的用户数据重新开机。若仍失败,请在「运行时」里删除镜像后重新下载。": "Automatically booted again with clean user data. If it still fails, delete the image under \"Runtime\" and download it again.", + "运行时依赖 DLL 加载失败(具体原因待定位)": "A runtime DLL failed to load (exact cause not yet determined)", + "常见原因:商店版从只读目录启动子进程的路径限制、VC++ 运行库缺失、杀毒隔离了运行时文件。": "Common causes: the Store version's path restriction on starting child processes from a read-only folder, a missing VC++ runtime, or antivirus quarantining runtime files.", + "请打开内置手册 6.8 按步骤定位;不要只凭这一条就重装运行库。": "Open section 6.8 of the built-in manual and follow the steps to pin it down; don't reinstall the runtime libraries based on this alone.", + "磁盘空间不足,无法启动安卓": "Not enough disk space to start Android", + "请把运行时目录(设置 → 系统集成 → 运行时数据目录)改到空间充足的盘,": "Move the runtime folder (Settings → System integration → Runtime data folder) to a drive with enough space,", + "或在设置里关掉「保留快速启动快照」/ 调小数据分区。安卓数据不会被自动清除。": "or turn off \"Keep quick-boot snapshot\" / shrink the data partition in settings. Android data won't be deleted automatically.", + "安装路径含中文或特殊字符": "Install path contains Chinese or special characters", + "已自动改用 Windows 短路径。若仍失败,请把 ApkStart 移到纯英文目录(如 C:\\ApkStart)。": "Automatically switched to the Windows short path. If it still fails, move ApkStart to a folder with only English characters (such as C:\\ApkStart).", + "上一次运行没有正常退出,残留了锁文件": "The previous run didn't exit properly and left lock files behind", + "ApkStart 会自动清掉残留锁并重试;若反复出现,请检查是否有别的模拟器正在用同一套运行时。": "ApkStart clears the leftover locks automatically and retries; if it keeps happening, check whether another emulator is using the same runtime.", + "CPU 缺少运行时要求的指令集": "The CPU lacks an instruction set the runtime requires", + "这类提示在部分老 CPU 上只是警告、仍能开机;若确实起不来,请把「运行时」里的引擎更新到较旧兼容版本,或换一台支持 VT-x/AVX 的电脑。": "On some older CPUs this is only a warning and Android still boots; if it really won't start, change the engine under \"Runtime\" to an older compatible version, or use a PC that supports VT-x/AVX.", + "快速启动快照损坏": "Quick-boot snapshot corrupted", + "已自动丢弃旧快照走冷启动;下一次正常退出会重新生成快照。": "Automatically discarded the old snapshot and did a cold boot; the next normal exit creates a new snapshot.", + "运行时未能完成开机": "The runtime couldn't finish booting", + "已自动按多种参数组合重试。可点「导出诊断报告」把日志发给作者定位。": "Automatically retried with several parameter combinations. Click \"Export diagnostic report\" to send the log to the author.", + "自动:{0}GB 内存 · {1} 核 · {2} 渲染 ·": "Auto: {0} GB memory · {1} cores · {2} rendering ·", + "按需快照": "On-demand snapshot", + "冷启动": "Cold boot", + "{0} · 端口 {1}": "{0} · port {1}", + "· 轻量容器": "· lightweight container", + "ApkStart 诊断报告": "ApkStart diagnostic report", + "生成时间:{0}": "Generated: {0}", + "== 本机 ==": "== This PC ==", + "== 自动配置 ==": "== Auto configuration ==", + "== 诊断 ==": "== Diagnosis ==", + "== 附加信息 ==": "== Additional info ==", + "== 运行时日志(末尾 300 行)==": "== Runtime log (last 300 lines) ==", + "// src/core/download.js": "", + "重定向次数过多": "Too many redirects", + "连接超时": "Connection timed out", + "无法验证续传文件,服务器返回 HTTP 416": "Can't verify the resumed file; the server returned HTTP 416", + "下载失败 HTTP {0}: {1}": "Download failed HTTP {0}: {1}", + "服务器返回了不匹配的续传范围": "The server returned a mismatched resume range", + "连接停滞(长时间无数据)": "Connection stalled (no data for a long time)", + "连接被中断": "Connection interrupted", + "校验失败:期望 {0}… 实际 {1}…": "Checksum failed: expected {0}… got {1}…", + "分块请求被拒绝 HTTP {0}": "Chunk request refused HTTP {0}", + "服务器返回了不匹配的分块范围": "The server returned a mismatched chunk range", + "分块响应超出请求范围": "Chunk response exceeds the requested range", + "分块未完整返回": "Chunk wasn't returned completely", + "分块下载失败({0}-{1}):{2}": "Chunk download failed ({0}-{1}): {2}", + "下载不完整:{0}/{1} 字节": "Download incomplete: {0}/{1} bytes", + "所有下载源均失败:": "All download sources failed:", + "没有可用的下载地址": "No download address available", + "分块被拒绝 HTTP {0}": "Chunk refused HTTP {0}", + "连接停滞(无数据超时)": "Connection stalled (no-data timeout)", + "该源速度过低({0} KB/s),换源重试": "This source is too slow ({0} KB/s); retrying with another source", + "分块失败({0}-{1}):{2}": "Chunk failed ({0}-{1}): {2}", + "// src/core/drivers.js": "", + "会清空用户已装应用与存档": "would wipe the user's installed apps and saves", + "会改 AVD 落点,破坏多实例隔离": "would change the AVD location and break multi-instance isolation", + "会改系统镜像来源": "would change the system image source", + "会改数据分区大小,请走设置页": "would change the data partition size; use the settings page instead", + "AVD 名由 ApkStart 管理": "the AVD name is managed by ApkStart", + "端口由 ApkStart 动态分配": "ports are assigned dynamically by ApkStart", + "代理请走系统设置": "use system settings for proxies", + "match 必须是对象": "match must be an object", + "match.{0} 不是支持的匹配条件": "match.{0} is not a supported match condition", + "match.gpuName 不是合法正则(且长度需 ≤200)": "match.gpuName is not a valid regular expression (and must be ≤200 characters)", + "match.{0} 必须是数字或 {min,max}": "match.{0} must be a number or {min,max}", + "match.{0}.{1} 必须是数字": "match.{0}.{1} must be a number", + "effect.emulatorArgs 必须是字符串数组": "effect.emulatorArgs must be an array of strings", + "emulatorArgs 不允许 {0}:{1}": "emulatorArgs doesn't allow {0}: {1}", + "emulatorArgs 不支持单独的参数 {0}(带值的请写成 {1}=值)": "emulatorArgs doesn't support the standalone argument {0} (for arguments with values, write {1}=value)", + "emulatorArgs 不支持 {0}": "emulatorArgs doesn't support {0}", + "emulatorArgs 的 {0} 取值不合法:{1}": "invalid value for {0} in emulatorArgs: {1}", + "effect.configIni 必须是对象": "effect.configIni must be an object", + "configIni 不支持 {0}(会破坏数据分区 / 落点的键一律拒绝)": "configIni doesn't support {0} (keys that would break the data partition / location are always rejected)", + "configIni 的 {0} 取值不合法:{1}": "invalid value for {0} in configIni: {1}", + "effect.env 必须是对象": "effect.env must be an object", + "env 不允许设置 {0}(只放行 ANDROID_/QEMU_/LIBGL_/MESA_/EMUGL_ 前缀)": "env can't set {0} (only ANDROID_/QEMU_/LIBGL_/MESA_/EMUGL_ prefixes are allowed)", + "env.{0} 的取值不合法(长度 ≤200,且不能含换行)": "invalid value for env.{0} (≤200 characters, no line breaks)", + "{0}驱动必须是 JSON 对象": "{0}a driver must be a JSON object", + "{0}format 必须是 \"{1}\"(当前 {2})": "{0}format must be \"{1}\" (currently {2})", + "{0}id 必须由字母数字和 . _ - 组成,3~64 个字符(例如 amd-igpu-swangle)": "{0}id must be 3–64 letters, digits, . _ or - (e.g. amd-igpu-swangle)", + "{0}name 必填,且不超过 80 字": "{0}name is required and must be at most 80 characters", + "{0}version 必须形如 1.0.0": "{0}version must look like 1.0.0", + "{0}priority 必须是 -100 ~ 100 的数字": "{0}priority must be a number from -100 to 100", + "{0}match 不能是空对象;如果要匹配所有机器请写 {\"any\": true}": "{0}match can't be an empty object; to match every machine, write {\"any\": true}", + "{0}effect 必须是对象": "{0}effect must be an object", + "{0}effect.{1} 不是支持的字段": "{0}effect.{1} is not a supported field", + "{0}effect.gpuMode 取值不合法:{1}": "{0}invalid value for effect.gpuMode: {1}", + "{0}effect.forceTcg 必须是 true/false": "{0}effect.forceTcg must be true/false", + "{0}effect.notes 必须是字符串数组": "{0}effect.notes must be an array of strings", + "文件过大({0} 字节,上限 {1})": "File too large ({0} bytes, limit {1})", + "读不出来:{0}": "Can't read: {0}", + "文件过大,驱动最多 256 KB": "File too large; drivers are limited to 256 KB", + "写入失败:{0}": "Write failed: {0}", + "我的机器": "My PC", + "{0} 兼容补丁": "{0} compatibility patch", + "由 ApkStart「导出本机模板」生成:match 已经按这台机器填好,按需修改 effect 即可。": "Generated by ApkStart's \"Export template for this PC\": match is already filled in for this machine; edit effect as needed.", + "示例:把 gpuMode 改成 host / software 或打开 forceTcg 试试": "Example: try changing gpuMode to host / software, or turning on forceTcg", + "// src/core/emulator.js": "", + "正常退出": "Exited normally", + "启动参数或环境错误": "Startup argument or environment error", + "0xC0000005 访问冲突,渲染后端崩溃": "0xC0000005 access violation, rendering backend crashed", + "0xC00000FD 栈溢出": "0xC00000FD stack overflow", + "0xC0000135 依赖 DLL 加载失败(原因待查,见内置手册 6.8)": "0xC0000135 dependent DLL failed to load (cause unknown, see section 6.8 of the built-in manual)", + "0xC0000022 拒绝访问(驱动或权限问题)": "0xC0000022 access denied (driver or permission problem)", + "0xC000007B 镜像位数不匹配或 DLL 损坏": "0xC000007B image bitness mismatch or corrupted DLL", + "清理 {0} 个残留模拟器进程": "Clean up {0} leftover emulator {0|process|processes}", + "Google Play (ARM 兼容)": "Google Play (ARM compatible)", + "qemu-img {0} 失败: {1}": "qemu-img {0} failed: {1}", + "缺少 resize2fs.exe": "resize2fs.exe missing", + "resize2fs 失败: {0}": "resize2fs failed: {0}", + "运行时已退出(code={0}{1})": "Runtime exited (code={0}{1})", + "安卓正在用快速启动的差量盘,就地扩容改不到它(目标 {0} GB)。": "Android is using the quick-boot diff disk, which in-place expansion can't change (target {0} GB).", + "需要「重置安卓数据」后按新容量重建 /data —— 已装应用和存档会被清空,请先确认。": "You need to \"Reset Android data\" to rebuild /data at the new size — installed apps and saves will be wiped, so please confirm first.", + "镜像已扩到 {0} GB,但文件系统只到 {1} GB(resize2fs 没成功)。": "The image was expanded to {0} GB, but the file system only reaches {1} GB (resize2fs didn't succeed).", + "可以再点一次「立即扩容」,或清理磁盘后重试。": "Click \"Expand now\" again, or free up disk space and try again.", + "上一次的模拟器已经退出,重新开机…": "The previous emulator has exited; booting again…", + "未安装运行时引擎,请先在「运行时」页完成部署": "Runtime engine not installed; finish setup on the \"Runtime\" page first", + "系统镜像未就绪,请先在「运行时」页下载 Android 系统镜像": "System image not ready; download the Android system image on the \"Runtime\" page first", + "磁盘空间不足:安卓数据目录({0})所在磁盘只剩 {1} GB,": "Not enough disk space: the drive holding the Android data folder ({0}) has only {1} GB left,", + "运行时至少要 {0} GB 可用。请在「设置 → 系统集成 → 安卓数据目录」": "and the runtime needs at least {0} GB free. Under \"Settings → System integration → Android data folder\",", + "把它改到空间充足的盘(例如 D:),或先清理磁盘。你的应用与存档不会被自动删除。": "move it to a drive with enough space (such as D:), or free up disk space first. Your apps and saves won't be deleted automatically.", + "运行时目录({0})所在磁盘只剩 {1} GB,": "The drive holding the runtime folder ({0}) has only {1} GB left,", + "连日志和临时文件都写不下。请清理磁盘,或把「运行时数据目录」也换到别的盘。": "not even enough for logs and temporary files. Free up disk space, or move the \"Runtime data folder\" to another drive as well.", + "驱动加载失败(已忽略,按默认参数启动):{0}": "Driver failed to load (ignored, starting with default parameters): {0}", + "已应用驱动:{0}": "Driver applied: {0}", + "未匹配到任何驱动,按默认参数启动": "No drivers matched; starting with default parameters", + "有 {0} 个驱动文件没加载成功(设置 → 驱动 里能看到原因)": "{0} driver files failed to load (see why under Settings → Drivers)", + "驱动把渲染后端固定为 {0}": "A driver pinned the rendering backend to {0}", + "{0} / 驱动要求软件模拟": "{0} / a driver requires software emulation", + "驱动要求关闭硬件加速(走软件模拟)": "A driver requires hardware acceleration to be off (software emulation)", + "上次 host 渲染崩溃疑似 Vulkan 导致,本次以 -feature -Vulkan 重试硬件加速": "The last host rendering crash looks Vulkan-related; retrying hardware acceleration with -feature -Vulkan this time", + "上次 {0} 渲染后端启动即崩溃,本次改用 {1} 先试": "The {0} rendering backend crashed right at startup last time; trying {1} first this time", + "启动运行时(第 {0}/{1} 次:{2})…": "Starting the runtime (attempt {0}/{1}: {2})…", + "磁盘空间不足,已停止重试(不会动你的应用与存档)。": "Not enough disk space; stopped retrying (your apps and saves won't be touched).", + "{0},自动换一组参数重试…": "{0}; retrying automatically with different parameters…", + "正在开机… {0}s": "Booting… {0}s", + "运行时就绪({0}s,{1})": "Runtime ready ({0}s, {1})", + "⚠ 安卓虚拟机暂时没连上网(Wi-Fi 未关联或没拿到地址)。": "⚠ The Android VM isn't online yet (Wi-Fi not associated or no address).", + "需要联网的应用打开后可能一直黑屏:稍后重开应用即可;": "Apps that need the internet may show a black screen when opened: just reopen the app in a bit;", + "若持续无网,可在「设置 → 修复网络」重连(不会删除已装应用)。": "if there's still no network, reconnect via \"Settings → Repair network\" (installed apps won't be deleted).", + "开机超时(可能是首次引导较慢或硬件加速未生效)": "Boot timed out (the first boot may be slow, or hardware acceleration isn't working)", + "运行时多次尝试仍未能启动({0})。": "The runtime still couldn't start after several attempts ({0}).", + "已尝试:{0}": "Tried: {0}", + "诊断报告:{0}": "Diagnostic report: {0}", + "// src/core/engine.js": "", + "缺少 adb:点击「一键部署」自动下载": "adb missing: click \"Set up\" to download it automatically", + "未检测到硬件加速:将自动回退软件模拟(首次开机会明显变慢,无需手动设置)": "No hardware acceleration detected: falling back to software emulation automatically (the first boot will be noticeably slower; no manual setup needed)", + "安卓调试授权未完成(需要点一次「允许」)": "Android debugging authorization not completed (you need to click \"Allow\" once)", + "模拟器停在「允许 USB 调试?」对话框。请在那个模拟器窗口里点「允许」——": "The emulator is stuck on the \"Allow USB debugging?\" dialog. In that emulator window, click \"Allow\" —", + "勾选「一律允许使用这台计算机进行调试」再点,之后就不会再问。": "tick \"Always allow from this computer\" before clicking, and it won't ask again.", + "若窗口点不动或一直不出现:设置 → 运行时 → 清空安卓数据后重试": "If the window can't be clicked or the dialog never appears: Settings → Runtime → clear Android data and try again", + "(会清掉已装应用,重新安装即可,不会影响 APK 文件)。": "(this removes installed apps; just reinstall them — your APK files aren't affected).", + "adb 卡在「允许 USB 调试」授权对话框,正在作废旧快照并冷启动以重新注入公钥…": "adb is stuck at the \"Allow USB debugging\" authorization dialog; invalidating the old snapshot and cold-booting to re-inject the public key…", + "adb 连接异常,重启 adb server 后继续等待…": "adb connection problem; restarted the adb server and continuing to wait…", + "预热:{0}": "Prewarm: {0}", + "未安装 QEMU,请先完成运行时部署": "QEMU not installed; finish setting up the runtime first", + "系统镜像(ISO)未就绪": "System image (ISO) not ready", + "尚未安装 Android 系统到虚拟磁盘": "Android hasn't been installed to the virtual disk yet", + "启动运行时({0})…": "Starting the runtime ({0})…", + "WHPX 硬件加速": "WHPX hardware acceleration", + "纯软件模拟": "Pure software emulation", + "运行时已退出(code={0})": "Runtime exited (code={0})", + "QEMU 启动失败,详见日志:{0}": "QEMU failed to start; see the log: {0}", + "安装程序已启动,请在虚拟机窗口里按引导完成安装": "The installer has started; follow the guide in the VM window to finish installing", + "虚拟机已启动,但 adb 未能连接:请在虚拟机里开启「开发者选项 → ADB over network」后重试": "The VM started, but adb couldn't connect: turn on \"Developer options → ADB over network\" in the VM and try again", + "Android 内核未完成引导,请查看运行时日志(可能镜像损坏或加速未生效)": "The Android kernel didn't finish booting; check the runtime log (the image may be corrupted or acceleration isn't working)", + "Android 已引导但系统服务未就绪(可能停在首次开机设置界面,请在虚拟机窗口里完成向导)": "Android booted but system services aren't ready (it may be stuck on the first-boot setup screen; finish the wizard in the VM window)", + "Android 内核已启动,等待系统服务就绪…({0}s)": "The Android kernel has started; waiting for system services… ({0}s)", + "Android 已就绪({0}s)": "Android ready ({0}s)", + "正在等待系统服务… {0}s": "Waiting for system services… {0}s", + "正在引导 Android… {0}s": "Booting Android… {0}s", + "等待 Android 启动… {0}s": "Waiting for Android to start… {0}s", + "monitor 超时": "monitor timed out", + "请先下载/导入 Android 系统镜像(ISO)": "Download/import an Android system image (ISO) first", + "安装环境启动失败": "Installation environment failed to start", + "没有发现上一台运行时,准备冷启动": "No previous runtime found; preparing a cold boot", + "发现 {0} 台残留运行时(端口 {1}),尝试接管": "Found {0} leftover runtimes (port {1}); trying to take over", + "发现上一台运行时({0})但没就绪,先关掉它再重新开机": "Found the previous runtime ({0}) but it isn't ready; shutting it down before booting again", + "已接管正在运行的运行时({0})": "Took over the running runtime ({0})", + "adb 报告设备在线但命令不通(模拟器可能正在重启),重新拉起运行时…": "adb reports the device online but commands don't go through (the emulator may be restarting); starting the runtime again…", + "检测到卡住的运行时,正在重启…": "Detected a stuck runtime; restarting…", + "系统镜像展开失败:{0}": "Failed to unpack the system image: {0}", + "还差系统镜像:点「下载系统镜像」即可": "System image still missing: just click \"Download system image\"", + "运行时组件尚未部署完成": "Runtime components haven't finished setting up", + "正在等待安卓虚拟机联网… {0}s": "Waiting for the Android VM to get online… {0}s", + "虚拟机连不上 Wi-Fi,正在尝试重新连接…": "The VM can't connect to Wi-Fi; trying to reconnect…", + "网络已恢复({0}),正在保存可用状态,下次直接就好。": "Network restored ({0}); saving the working state so it's ready next time.", + "网络仍未就绪,正在冷启动一次虚拟机(不加载快照)后重试…": "Network still not ready; cold-booting the VM once (without the snapshot) and retrying…", + "正在修复虚拟机网络:先尝试重新连接 Wi-Fi(不影响已装应用)…": "Repairing the VM network: first trying to reconnect Wi-Fi (installed apps aren't affected)…", + "虚拟机没能启动": "The VM couldn't start", + "网络已恢复({0}),已存好可用快照。": "Network restored ({0}); a working snapshot was saved.", + "重新连接没成功,正在冷启动一次虚拟机(不加载快照,数据保留)…": "Reconnecting didn't work; cold-booting the VM once (without the snapshot, data kept)…", + "仍然没有网络,正在重置安卓数据并重新开机(应用清单会保留,点开时自动重装)…": "Still no network; resetting Android data and booting again (the app list is kept and apps reinstall when opened)…", + "网络已恢复({0} 网关 {1}),已存好可用快照。": "Network restored ({0} gateway {1}); a working snapshot was saved.", + "可达": "reachable", + "重置后仍未联网。请检查本机网络/防火墙是否拦截了模拟器(netsimd 走本机回环端口)。": "Still offline after the reset. Check whether this PC's network/firewall is blocking the emulator (netsimd uses local loopback ports).", + "// src/core/gpupref.js": "", + "系统默认(推荐)": "System default (recommended)", + "核显优先(省电)": "Prefer integrated GPU (saves power)", + "独显优先(性能)": "Prefer discrete GPU (performance)", + "// src/core/incremental.js": "", + "增量清单不是合法 JSON": "The incremental manifest isn't valid JSON", + "增量清单版本不支持": "Unsupported incremental manifest version", + "增量清单缺少版本信息": "The incremental manifest is missing version info", + "增量清单缺少代码包信息": "The incremental manifest is missing code package info", + "安装版走完整安装包": "The installed version uses the full installer", + "没有增量清单": "No incremental manifest", + "Electron 版本不同,需要完整包": "Different Electron version; the full package is needed", + "增量代码包未发布": "Incremental code package not published", + "代码层增量更新": "Code-layer incremental update", + "// src/core/installer.js": "", + "这个安装包里没有找到 APK 分片(可能不是 .apks/.xapk)": "No APK splits found in this package (it may not be .apks/.xapk)", + "拆分包的 base APK 解析失败": "Failed to parse the split package's base APK", + "首次安装 ARM 应用:正在下载兼容镜像(约 1.5GB,只需一次)…": "First ARM app install: downloading the compatibility image (about 1.5 GB, only once)…", + "兼容镜像下载失败,请检查网络后重试": "Compatibility image download failed; check your network and try again", + "正在切换到兼容镜像并重启运行时…": "Switching to the compatibility image and restarting the runtime…", + "切换兼容镜像后运行时不可用": "The runtime is unavailable after switching to the compatibility image", + "正在恢复已装应用 {0}…": "Restoring installed app {0}…", + "正在解析 APK…": "Parsing APK…", + "已识别 {0}({1})": "Recognized {0} ({1})", + "正在准备安卓运行时…": "Preparing the Android runtime…", + "运行时不可用": "Runtime unavailable", + "这个应用只有 ARM 库,正在切换到兼容镜像…": "This app only has ARM libraries; switching to the compatibility image…", + "正在更新应用…": "Updating app…", + "正在安装应用…": "Installing app…", + "这个应用只有 ARM 库,正在切换到兼容镜像后重装…": "This app only has ARM libraries; switching to the compatibility image and reinstalling…", + "已切换兼容镜像,正在重新安装…": "Switched to the compatibility image; reinstalling…", + "已切换到 Android 14 兼容镜像并重启运行时,但 {0} 仍然安装失败({1})。": "Switched to the Android 14 compatibility image and restarted the runtime, but {0} still failed to install ({1}).", + "请检查磁盘空间与网络后重试;若一直失败,到「设置 → 诊断与修复」导出诊断报告反馈。": "Check disk space and your network and try again; if it keeps failing, export a diagnostic report from \"Settings → Diagnostics & repair\" and report it.", + "正在创建桌面快捷方式…": "Creating desktop shortcut…", + "快捷方式创建失败:{0}": "Shortcut creation failed: {0}", + "此应用要求 Android {0}+,高于当前运行时,可能无法正常运行。": "This app requires Android {0}+, which is newer than the current runtime; it may not work properly.", + "应用图标无法解析(可能是特殊格式的自适应图标),快捷方式暂时使用占位图标。": "The app icon couldn't be parsed (possibly an unusual adaptive icon format); the shortcut uses a placeholder icon for now.", + "应用图标(WebP)解码失败,快捷方式暂时使用占位图标。": "Failed to decode the app icon (WebP); the shortcut uses a placeholder icon for now.", + "{0} 安装完成": "{0} installed", + "{0} — 由 ApkStart 运行": "{0} — run by ApkStart", + "显示适配跳过:{0}": "Display adaptation skipped: {0}", + "虚拟机网络就绪({0})": "VM network ready ({0})", + "虚拟机网络已恢复({0})": "VM network restored ({0})", + "自动重连 Wi-Fi 失败:{0}": "Automatic Wi-Fi reconnect failed: {0}", + "虚拟机网络还没就绪,先启动应用(联网页面可能稍后才加载出来)": "The VM network isn't ready yet; starting the app first (online pages may load a little later)", + "应用文件缺失(快照与数据不一致),正在用本地备份自动重装…": "App files missing (snapshot and data don't match); reinstalling automatically from the local backup…", + "自动安装失败:{0}": "Automatic install failed: {0}", + "应用启动后退出(第 {0} 次),正在自动重试…": "The app exited after starting (attempt {0}); retrying automatically…", + "应用连续退出,正在重置应用数据后重试…": "The app keeps exiting; resetting app data and retrying…", + "应用启动后立即退出,已自动重试并重置应用数据仍未成功": "The app exits right after starting; automatic retries and resetting app data didn't help", + "当前运行时未启用 ARM 翻译层,正在自动切换兼容镜像后重试…": "The current runtime doesn't have the ARM translation layer; switching to the compatibility image automatically and retrying…", + "// src/core/keymap.js": "", + "FPS / 射击类": "FPS / shooter", + "WASD 控制左侧虚拟摇杆区域,J 射击,K 换弹,Space 跳跃": "WASD controls the virtual joystick area on the left, J to shoot, K to reload, Space to jump", + "RPG / 动作类": "RPG / action", + "WASD 移动,J 攻击,K 技能,L 大招,Space 确认/对话": "WASD to move, J to attack, K for skills, L for ultimate, Space to confirm/talk", + "通用 / 休闲类": "General / casual", + "方向键移动,Enter 确认,Space 取消/返回": "Arrow keys to move, Enter to confirm, Space to cancel/back", + "// src/core/layers.js": "", + "emulator 引擎": "emulator engine", + "系统镜像(只读基础层)": "System image (read-only base layer)", + "AVD 可写层 / 快照": "AVD writable layer / snapshots", + "非 x86_64 的 QEMU 目标,运行时用不到": "Non-x86_64 QEMU targets the runtime doesn't use", + "镜像包内的大体积说明文件": "Large documentation files inside the image package", + "旧版 API 30 镜像(含过时的 ARM 翻译层)": "Old API 30 image (with an outdated ARM translation layer)", + "解压错位产生的重复镜像目录": "Duplicate image folders from a misplaced extraction", + "非活动 AVD(含 8-16GB 的旧用户数据镜像)": "Inactive AVDs (with old 8–16 GB user data images)", + "上次异常退出残留的锁文件": "Lock files left by the last abnormal exit", + "旧 quickboot 快照(配置变更后会自动重建)": "Old quick-boot snapshots (rebuilt automatically after configuration changes)", + "下载临时文件": "Download temporary files", + "旧的 QEMU/ISO 遗留文件": "Leftover old QEMU/ISO files", + "崩溃上报工具(无头运行不需要)": "Crash reporter (not needed for headless runs)", + "安卓数据(应用 + 快照)": "Android data (apps + snapshots)", + "APK 安装包缓存": "APK installer cache", + "桌面图标缓存": "Desktop icon cache", + "运行时(引擎 + 系统镜像)": "Runtime (engine + system image)", + "// src/core/leftovers.js": "", + "旧版本程序目录(含": "Old program folders (including", + "失效的卸载项{0}": "Broken uninstall entries{0}", + "更新下载的临时文件": "Temporary update download files", + "旧版遗留的快速启动快照": "Quick-boot snapshots left by old versions", + "废弃的快照残留": "Abandoned snapshot leftovers", + "这是当前正在运行的版本": "This is the version that's running now", + "目录里没有": "The folder doesn't contain", + "文件被占用(可能有窗口还开着)": "File in use (a window may still be open)", + "文件被占用": "File in use", + "删除失败": "Delete failed", + "// src/core/manual.js": "", + "apkstart-产品使用手册与问题解决方案": "apkstart-产品使用手册与问题解决方案", + "使用手册 · 目录": "User manual · Contents", + "6-1-提示-未启用硬件加速-开机很慢": "6-1-提示-未启用硬件加速-开机很慢", + "未启用硬件加速 / 开机很慢": "Hardware acceleration not enabled / slow boot", + "6-2-安装失败-install_failed_": "6-2-安装失败-install_failed_", + "安装失败(INSTALL_FAILED_*)": "Install failed (INSTALL_FAILED_*)", + "6-3-系统镜像没有-arm-转译层-arm-应用装不上或闪退": "6-3-系统镜像没有-arm-转译层-arm-应用装不上或闪退", + "ARM 转译层 / ARM 应用装不上": "ARM translation layer / ARM apps won't install", + "6-4-adb-未授权-允许-usb-调试": "6-4-adb-未授权-允许-usb-调试", + "adb 未授权(允许 USB 调试)": "adb not authorized (Allow USB debugging)", + "6-5-双击图标没反应-一直转圈-出现带旋转按钮的窗口": "6-5-双击图标没反应-一直转圈-出现带旋转按钮的窗口", + "打不开 / 带旋转按钮的窗口": "Won't open / window with a rotate button", + "6-6-其它启动类问题速查表": "6-6-其它启动类问题速查表", + "其它启动类问题速查表": "Other startup problems at a glance", + "6-7-应用没有声音-声音很小": "6-7-应用没有声音-声音很小", + "应用没有声音 / 声音很小": "App has no sound / sound is very quiet", + "6-8-商店版启动失败-0xc0000135-dll-加载失败": "6-8-商店版启动失败-0xc0000135-dll-加载失败", + "商店版启动失败 / 0xC0000135(DLL 加载失败)": "Store version won't start / 0xC0000135 (DLL failed to load)", + "6-9-应用用不到麦克风-无法语音通话录音": "6-9-应用用不到麦克风-无法语音通话录音", + "应用用不到麦克风 / 无法语音通话录音": "App can't use the microphone / no voice calls or recording", + "6-10-独显-核显渲染-显卡偏好": "6-10-独显-核显渲染-显卡偏好", + "独显 / 核显渲染(显卡偏好)": "Discrete / integrated GPU rendering (graphics preference)", + "5-4-内置使用手册与自动教程": "5-4-内置使用手册与自动教程", + "内置手册与自动教程": "Built-in manual and automatic guides", + "3-6-设置页导航": "3-6-设置页导航", + "设置页导航": "Settings page navigation", + "8-数据与目录说明": "8-数据与目录说明", + "数据与目录说明": "Data and folders explained", + "5-2-自动检测-自动-debug": "5-2-自动检测-自动-debug", + "自动检测与网络修复": "Automatic detection and network repair", + "// src/core/notify.js": "", + "新通知": "New notification", + "安卓应用": "Android app", + "// src/core/preflight.js": "", + "没有可用的硬件加速,先用软件渲染保证画面能出来": "No hardware acceleration available; using software rendering first so the picture shows up", + "显卡型号读不到,交给自动降级链去试": "Can't read the graphics card model; letting the automatic fallback chain try", + "显存很小,用 swangle 更稳": "Very little video memory; swangle is more stable", + "NVIDIA 驱动成熟,host 直通通常最快": "NVIDIA drivers are mature; host passthrough is usually fastest", + "AMD 显卡走 host 才能用上硬件加速;若崩溃会自动降级": "AMD graphics need host mode for hardware acceleration; falls back automatically if it crashes", + "Intel 核显走 host 才能用上硬件加速;若崩溃会自动降级": "Intel integrated graphics need host mode for hardware acceleration; falls back automatically if it crashes", + "交给自动降级链去试": "Letting the automatic fallback chain try", + "这颗 CPU 不支持硬件虚拟化": "This CPU doesn't support hardware virtualization", + "只能走软件模拟,速度会慢 5~10 倍。轻量应用还能用,大型游戏不建议。": "Only software emulation works, 5–10 times slower. Light apps still work; large games aren't recommended.", + "CPU 虚拟化在 BIOS 里没开": "CPU virtualization isn't enabled in the BIOS", + "重启进 BIOS/UEFI,把 Intel VT-x(Intel)或 SVM Mode(AMD)设为 Enabled,保存后回来重新体检。": "Restart into the BIOS/UEFI, set Intel VT-x (Intel) or SVM Mode (AMD) to Enabled, save, then come back and run the check-up again.", + "联想/戴尔/华硕一般在 Advanced → CPU Configuration 里;品牌机可能叫 Virtualization Technology。": "On Lenovo/Dell/ASUS it's usually under Advanced → CPU Configuration; branded PCs may call it Virtualization Technology.", + "需要重启进 BIOS,无法自动完成": "Needs a restart into the BIOS; can't be done automatically", + "CPU 虚拟化已在 BIOS 开启": "CPU virtualization is enabled in the BIOS", + "{0} · {1} 核 / {2} 线程": "{0} · {1} cores / {2} threads", + "读不到 CPU 虚拟化状态": "Can't read the CPU virtualization status", + "可能是主板/权限限制。若启动时提示没有硬件加速,请手动进 BIOS 确认 VT-x / SVM 已开启。": "Possibly a motherboard/permission limitation. If startup says there's no hardware acceleration, enter the BIOS manually and make sure VT-x / SVM is on.", + "手动确认": "Confirm manually", + "Windows 虚拟机监控程序平台已启用": "Windows Hypervisor Platform is enabled", + "Hypervisor 正在运行,WHPX 可用。": "The hypervisor is running and WHPX is available.", + "功能已启用;如果加速仍不可用,重启一次让 Hypervisor 起来。": "The feature is enabled; if acceleration still isn't available, restart once so the hypervisor starts.", + "「虚拟机监控程序平台」没有启用": "\"Hypervisor Platform\" isn't enabled", + "商店版不能自行改系统功能。按 Win+R → 输入 optionalfeatures → 勾选「Windows 虚拟机监控程序平台」": "The Store version can't change system features itself. Press Win+R → type optionalfeatures → tick \"Windows Hypervisor Platform\"", + "(HypervisorPlatform)与「虚拟机平台」→ 确定 → 重启。": "(HypervisorPlatform) and \"Virtual Machine Platform\" → OK → restart.", + "打开「Windows 功能」窗口": "Open the \"Windows Features\" window", + "点下面的按钮会自动开启 HypervisorPlatform + VirtualMachinePlatform(需要管理员确认),完成后重启电脑。": "The button below turns on HypervisorPlatform + VirtualMachinePlatform automatically (needs administrator confirmation); restart your PC when done.", + "一键开启(需管理员)": "Turn on (needs administrator)", + "硬件加速可用({0})": "Hardware acceleration available ({0})", + "启动会走硬件加速;下面的配置按这台机器的显卡与内存推荐。": "Startup uses hardware acceleration; the configuration below is recommended for this PC's graphics card and memory.", + "当前没有可用的硬件加速": "No hardware acceleration available right now", + "可以装 AEHD 驱动(需管理员),或先开「虚拟机监控程序平台」后重启;两者都不行就只能软件模拟。": "You can install the AEHD driver (needs administrator), or turn on \"Hypervisor Platform\" and restart; if neither works, only software emulation is possible.", + "会先用软件模拟保证能跑;速度比硬件加速慢 5~10 倍。": "Software emulation is used first so it runs at all; it's 5–10 times slower than hardware acceleration.", + "安装 AEHD 驱动(需管理员)": "Install AEHD driver (needs administrator)", + "读不到显卡信息": "Can't read graphics card info", + "可能是远程桌面 / 虚拟机 / 驱动异常。渲染后端交给自动降级链处理。": "Possibly Remote Desktop / a VM / a driver problem. The rendering backend is left to the automatic fallback chain.", + "{0} GB 显存{1}": "{0} GB video memory{1}", + "(核显,其余走共享内存)": "(integrated GPU, the rest uses shared memory)", + "显存未知": "Video memory unknown", + "· 驱动 {0}": "· driver {0}", + "显卡驱动比较旧": "Graphics driver is fairly old", + "驱动日期 {0}(约 {1} 年前)。老驱动是「起来后黑屏 / 花屏」的常见原因,建议去厂商官网更新。": "Driver date {0} (about {1} years ago). Old drivers are a common cause of \"black / garbled screen after startup\"; updating from the vendor's website is recommended.", + "读不到物理内存": "Can't read physical memory", + "内存偏小({0} GB)": "Low memory ({0} GB)", + "安卓虚拟机最多只能分 2 GB、2 核,画质降到 540×960,并建议关掉浏览器标签页再开应用。": "The Android VM can get at most 2 GB and 2 cores, picture quality drops to 540×960, and closing browser tabs before opening apps is recommended.", + "物理内存 {0} GB": "Physical memory {0} GB", + "Windows 版本较旧(build {0})": "Windows version is fairly old (build {0})", + "ApkStart 最低支持 Windows 10 2004(build 19041)。更旧的系统上 emulator 可能直接退出。": "ApkStart requires at least Windows 10 2004 (build 19041). On older systems the emulator may exit immediately.", + "本机自动配置({0})": "Auto configuration for this PC ({0})", + "ApkStart 体检": "ApkStart check-up", + "由「本机体检 · 自动配置」生成:{0}。{1}": "Generated by \"PC check-up · automatic configuration\": {0}. {1}", + "硬件加速可用。": "Hardware acceleration available.", + "当前无硬件加速。": "No hardware acceleration right now.", + "发现 {0} 项必须先处理({1})": "Found {0} items that must be handled first ({1})", + "有 {0} 项建议优化({1})": "{0} suggested optimizations ({1})", + "这台机器可以直接跑硬件加速,配置已经是最优": "This PC can run hardware acceleration directly; the configuration is already optimal", + "// src/core/provision.js": "", + "{0}下载不完整({1} MB),已清理,请重试": "{0} download incomplete ({1} MB); cleaned up, please try again", + "目标磁盘空间不足:该组件约需 {0} MB,但「{1}」所在盘仅剩 {2} MB。": "Not enough space on the target disk: this component needs about {0} MB, but the drive holding \"{1}\" has only {2} MB left.", + "建议:把「运行时数据目录」改到空间更大的盘(设置 → 系统集成 → 运行时数据目录 → 浏览),": "Suggestion: move the \"Runtime data folder\" to a bigger drive (Settings → System integration → Runtime data folder → Browse),", + "或先清理磁盘 / 卸载不用的应用后再试。": "or free up disk space / uninstall unused apps and try again.", + "非 Windows 平台": "Not a Windows platform", + "虚拟机平台组件存在(可用性由运行时引擎检测)": "Virtual machine platform component present (availability is checked by the runtime engine)", + "未检测到 Windows Hypervisor Platform 组件:可在「启用或关闭 Windows 功能」中勾选「虚拟机平台」后重启": "Windows Hypervisor Platform component not detected: tick \"Virtual Machine Platform\" in \"Turn Windows features on or off\" and restart", + "文件只有 {0}MB,下载未完成": "The file is only {0} MB; the download didn't finish", + "文件不是有效的 ISO9660 镜像(可能是下载到错误页或文件已损坏)": "The file isn't a valid ISO9660 image (it may be a downloaded error page or a corrupted file)", + "未安装": "Not installed", + ",包内压缩版,首次启动自动展开": ", compressed in the package, unpacked automatically on first start", + "包内压缩版,首次启动自动展开": "Compressed in the package, unpacked automatically on first start", + "ARM 兼容镜像": "ARM compatibility image", + "下载 Android platform-tools(约 8MB)…": "Downloading Android platform-tools (about 8 MB)…", + "下载 adb… {0}MB / {1}MB": "Downloading adb… {0} MB / {1} MB", + "adb 安装包": "adb package", + "解压 adb…": "Extracting adb…", + "adb 解压后无法运行,请检查是否被杀毒软件拦截": "adb can't run after extraction; check whether antivirus software blocked it", + "adb {0} 就绪": "adb {0} ready", + "{0} 不可达": "{0} unreachable", + "两个源上都没有运行时整包{0}": "No full runtime package on either source{0}", + "正在获取运行时版本信息…": "Getting runtime version info…", + "正在挑选最快的下载源({0} · {1})…": "Picking the fastest download source ({0} · {1})…", + "下载运行时(约 1.5 GB,只需一次,{0} 线程)…": "Downloading the runtime (about 1.5 GB, only once, {0} threads)…", + "· 剩余约 {0} 分钟": "· about {0} min left", + "下载运行时 {0}{1}{2}": "Downloading runtime {0}{1}{2}", + "运行时整包": "Full runtime package", + "解压运行时(约 1 分钟)…": "Extracting the runtime (about 1 minute)…", + "解压 {0}/{1}": "Extracting {0}/{1}", + "展开系统镜像(约 1 分钟,只需一次)…": "Unpacking the system image (about 1 minute, only once)…", + "复制镜像组件失败:{0}": "Failed to copy image components: {0}", + "首次启动:正在展开系统镜像 {0}(约 1 分钟,只需一次)": "First start: unpacking system image {0} (about 1 minute, only once)", + "安装包不完整:缺少解压组件 @napi-rs/lzma,系统镜像无法展开。请重新下载完整版,或改用商店版。": "The installer is incomplete: the extraction component @napi-rs/lzma is missing, so the system image can't be unpacked. Download the full version again, or use the Store version.", + "展开镜像失败:{0}": "Failed to unpack the image: {0}", + "系统镜像展开失败({0})": "System image unpack failed ({0})", + "镜像不完整": "Image incomplete", + "缺少 system.img": "system.img missing", + "未安装 emulator": "emulator not installed", + "WHPX 硬件加速已启用": "WHPX hardware acceleration enabled", + "AEHD 硬件加速已启用(emulator-check 缺失,按驱动判定)": "AEHD hardware acceleration enabled (emulator-check missing, judged by the driver)", + "未启用硬件加速:将回退软件模拟(能跑但很慢)。建议安装 AEHD 驱动或开启「虚拟机平台」": "Hardware acceleration not enabled: will fall back to software emulation (works but very slow). Installing the AEHD driver or turning on \"Virtual Machine Platform\" is recommended", + "下载运行时引擎(约 440MB,走 Google 官方源)…": "Downloading the runtime engine (about 440 MB, from Google's official source)…", + "下载运行时引擎 {0}MB / {1}MB": "Downloading runtime engine {0} MB / {1} MB", + "运行时引擎": "Runtime engine", + "解压运行时引擎…": "Extracting the runtime engine…", + "emulator 解压后无法运行,请检查是否被杀毒软件拦截": "emulator can't run after extraction; check whether antivirus software blocked it", + "运行时引擎 {0} 就绪": "Runtime engine {0} ready", + "下载 ARM 兼容镜像(Android 14,约 1.5GB)…": "Downloading the ARM compatibility image (Android 14, about 1.5 GB)…", + "下载兼容镜像 {0}MB / {1}MB": "Downloading compatibility image {0} MB / {1} MB", + "解压兼容镜像(3GB,需十余秒)…": "Extracting the compatibility image (3 GB, takes a few seconds)…", + "解压兼容镜像 {0}/{1}": "Extracting compatibility image {0}/{1}", + "兼容镜像解压后校验失败": "Compatibility image failed verification after extraction", + "ARM 兼容镜像就绪,重新启动运行时即可生效": "ARM compatibility image ready; restart the runtime for it to take effect", + "下载 AEHD 驱动…": "Downloading the AEHD driver…", + "AEHD 驱动包解压异常": "AEHD driver package extraction problem", + "AEHD 驱动已就绪,需管理员权限安装": "AEHD driver ready; installing it needs administrator rights", + "查找最新 QEMU 版本…": "Looking up the latest QEMU version…", + "下载 QEMU(约 200MB)…": "Downloading QEMU (about 200 MB)…", + "下载 QEMU… {0}MB / {1}MB": "Downloading QEMU… {0} MB / {1} MB", + "QEMU 安装包": "QEMU installer", + "正在安装 QEMU(静默)…": "Installing QEMU (silently)…", + "QEMU 安装后未找到 qemu-system-x86_64.exe:可手动下载 QEMU 并解压到 engine/qemu/": "qemu-system-x86_64.exe not found after installing QEMU: you can download QEMU manually and extract it to engine/qemu/", + "QEMU {0} 就绪": "QEMU {0} ready", + "下载 Android-x86 9.0-r2(约 900MB,8 线程分块)…": "Downloading Android-x86 9.0-r2 (about 900 MB, 8-thread chunks)…", + "下载系统镜像… {0}MB / {1}MB": "Downloading system image… {0} MB / {1} MB", + "系统镜像不可用:{0}{1}": "System image unavailable: {0}{1}", + ",可再次点击继续断点续传": "; click again to resume the download", + "系统镜像就绪({0} GB)": "System image ready ({0} GB)", + "文件不存在或为空": "File doesn't exist or is empty", + "镜像文件不可用": "Image file unavailable", + "创建 {0}GB 虚拟磁盘…": "Creating a {0} GB virtual disk…", + "qemu-img 创建虚拟磁盘失败:{0}": "qemu-img failed to create the virtual disk: {0}", + "未找到 qemu-img.exe,请先安装 QEMU": "qemu-img.exe not found; install QEMU first", + "虚拟磁盘已创建": "Virtual disk created", + "// src/core/resources.js": "", + "宿主内存 {0} GB,最多只能分 {1} GB(要留 25% 给 Windows)": "Host memory is {0} GB; at most {1} GB can be assigned (25% is kept for Windows)", + "安卓至少要 {0} MB 才能启动": "Android needs at least {0} MB to start", + "已按 512 MB 对齐": "Aligned to 512 MB", + "本机 {0} 核,最多分 {1} 核(留 1 核给 Windows)": "This PC has {0} cores; at most {1} can be assigned (1 core is kept for Windows)", + "只分 {0} MB,安卓可能起不来": "Only {0} MB assigned; Android may not start", + "占了宿主 {0}% 内存,Windows 会开始换页,模拟器反而更卡": "Uses {0}% of host memory; Windows will start paging and the emulator will actually get slower", + "已用 {0}% 宿主内存,建议同时关掉浏览器标签页": "{0}% of host memory in use; closing browser tabs at the same time is recommended", + "所在磁盘只剩 {0} GB,最多能分 {1} GB": "Only {0} GB left on that disk; at most {1} GB can be assigned", + "读不到磁盘剩余空间,跳过预检": "Can't read free disk space; skipping the pre-check", + "需要约 {0} GB,当前只剩 {1} GB,还差 {2} GB": "Needs about {0} GB, only {1} GB left, {2} GB short", + "磁盘空间不足:还要约 {0} GB,但 ApkStart 运行时所在磁盘只剩 {1} GB。": "Not enough disk space: about {0} GB more is needed, but the disk holding the ApkStart runtime has only {1} GB left.", + "请在设置里把运行时目录挪到空间更大的分区,或清理后重试。": "Move the runtime folder to a bigger partition in settings, or free up space and try again.", + "// src/core/sharer.js": "", + "运行时未连接": "Runtime not connected", + "// src/core/shortcut.js": "", + "快捷方式目录不可写:{0}({1})": "Shortcut folder isn't writable: {0} ({1})", + "快捷方式未落盘:{0}": "Shortcut wasn't saved to disk: {0}", + "创建快捷方式失败(writeShortcutLink 返回 false)": "Failed to create shortcut (writeShortcutLink returned false)", + "// src/core/sources.js": "", + "地址无效": "Invalid address", + "暂时跳过({0} 分钟内不再尝试)": "Skipped for now (won't try again for {0} minutes)", + "(被限流,已暂停使用该源一段时间)": "(rate-limited; this source is paused for a while)", + "(可稍后重试,或在设置里填只读 token 提高额度)": "(try again later, or enter a read-only token in settings to raise the limit)", + "无数据": "No data", + "连不上更新服务器({0})": "Can't reach the update server ({0})", + "正在测速 {0} 个下载源…": "Speed-testing {0} download sources…", + "正在测速第 {0}/{1} 个源:{2}…": "Speed-testing source {0}/{1}: {2}…", + "已选最快的源:{0}(约 {1} MB/s)": "Picked the fastest source: {0} (about {1} MB/s)", + "// src/core/updater.js": "", + "这个版本没有可自动安装的安装包,请到 GitHub 发布页手动下载": "This release has no installer that can be installed automatically; please download it manually from the GitHub releases page", + "增量更新不可用({0}),改用完整包…": "Incremental update unavailable ({0}); using the full package…", + "正在下载 {0}…": "Downloading {0}…", + "下载中 {0}{1}": "Downloading {0}{1}", + "已有下载好的更新包,直接复用": "An already downloaded update package exists; reusing it", + "更新包已解压完成": "Update package extracted", + "安装包已下载完成": "Installer downloaded", + "正在获取{0}…": "Getting {0}…", + "更新清单": "update manifest", + "清单版本与发行版不一致": "Manifest version doesn't match the release", + "增量代码包": "incremental code package", + "增量代码包校验失败(sha256 不符)": "Incremental code package failed verification (sha256 mismatch)", + "已有下载好的增量包,直接复用": "An already downloaded incremental package exists; reusing it", + "增量代码包有 {0} 个文件校验不通过": "{0} files in the incremental code package failed verification", + "增量包已校验完成": "Incremental package verified", + "下载中 {0} MB{1}": "Downloading {0} MB{1}", + "(第 {0}/{1} 片){2}": "(part {0}/{1}){2}", + "分片 {0} 大小不对({1} ≠ {2}),已中止,可重试": "Part {0} has the wrong size ({1} ≠ {2}); stopped, you can retry", + "更新包拼装后大小不对({0} ≠ {1}),已中止,可重试": "The assembled update package has the wrong size ({0} ≠ {1}); stopped, you can retry", + "正在解压 {0}/{1}": "Extracting {0}/{1}", + "// src/core/zip.js": "", + "不是有效的 ZIP/APK 文件(未找到 EOCD)": "Not a valid ZIP/APK file (EOCD not found)", + "本地文件头越界: {0}": "Local file header out of bounds: {0}", + "本地文件头损坏: {0}": "Local file header corrupted: {0}", + "条目数据越界: {0}": "Entry data out of bounds: {0}", + "不支持的压缩方式 {0}: {1}": "Unsupported compression method {0}: {1}", + "条目不存在: {0}": "Entry doesn't exist: {0}", + "不是有效的 ZIP/APK 文件(文件过小)": "Not a valid ZIP/APK file (file too small)", + "ZIP 中央目录偏移异常": "Abnormal ZIP central directory offset", + "条目过大({0}MB),请改用 pipeTo: {1}": "Entry too large ({0} MB); use pipeTo instead: {1}", + "条目数据被截断: {0}": "Entry data truncated: {0}", + "// src/drivers/example-amd-igpu-swangle.json": "", + "AMD 核显 · 改用 swangle 渲染(示例)": "AMD integrated GPU · switch to swangle rendering (example)", + "部分 AMD 核显 + 老驱动下,-gpu host 能通过 emulator 自检,但 guest 起来十几秒后进程直接崩溃(日志里只有 AEHD is operational)。把渲染后端固定成 swangle 可以绕过,代价是帧率略低。": "On some AMD integrated GPUs with old drivers, -gpu host passes the emulator self-check, but the process crashes 10–20 seconds after the guest starts (the log only says AEHD is operational). Pinning the rendering backend to swangle works around it, at the cost of a slightly lower frame rate.", + "如果画面正常但游戏很卡,可以在设置里把「画质」调成 540×960": "If the picture is fine but games stutter, set \"Picture quality\" to 540×960 in settings", + "确认可用后,把 enabled 改成 true 或删掉这一行,就能自动生效": "Once you confirm it works, change enabled to true or delete that line and it applies automatically", + "// src/drivers/example-intel-igpu-software.json": "", + "Intel 核显 · 软件渲染兜底(示例)": "Intel integrated GPU · software rendering fallback (example)", + "老款 Intel 核显(HD / UHD 6xx 之前)在部分驱动版本上会出现 GLES 初始化失败或花屏。把渲染后端固定为 software,画面一定能出来。": "Older Intel integrated GPUs (before HD / UHD 6xx) can fail GLES initialization or show garbled graphics with some driver versions. Pinning the rendering backend to software guarantees a picture.", + "画面能出来但游戏会卡:这类机器更适合玩轻量应用": "The picture will show but games will stutter: these machines are better suited to light apps", + "// src/drivers/example-no-hypervisor-tcg.json": "", + "没有硬件加速 · 直接走软件模拟(示例)": "No hardware acceleration · go straight to software emulation (example)", + "机器没开「虚拟机监控程序平台」、也不允许装内核驱动时,emulator 走硬件加速会直接失败。这个补丁让 ApkStart 一开始就用软件模拟(-accel off),省掉两轮白等;同时把渲染后端换成 software,避免 GL 初始化失败。": "When the PC doesn't have \"Hypervisor Platform\" turned on and doesn't allow kernel drivers, the emulator fails outright with hardware acceleration. This patch makes ApkStart use software emulation from the start (-accel off), skipping two rounds of waiting; it also switches the rendering backend to software to avoid GL initialization failures.", + "软件模拟比硬件加速慢 5~10 倍,能开虚拟化时建议还是去「Windows 功能」里勾上虚拟机平台": "Software emulation is 5–10 times slower than hardware acceleration; if you can enable virtualization, tick Virtual Machine Platform in \"Windows Features\"", + "// extra (manual entries)": "", + "自动:{0}GB 内存 · {1} 核 · {2} 渲染 · {3}": "Auto: {0} GB memory · {1} cores · {2} rendering · {3}", + "{0} · emulator {1};驱动 {2} 个,本机已生效 {3} 个。": "{0} · emulator {1}; {2} drivers, {3} active on this PC." +} diff --git a/src/i18n/index.js b/src/i18n/index.js new file mode 100644 index 00000000..7ebb632b --- /dev/null +++ b/src/i18n/index.js @@ -0,0 +1,220 @@ +'use strict'; +/** + * 界面多语言(i18n)。 + * + * 设计目标:**上游代码照常写中文,不需要到处改调用点**。 + * - 词典以「中文原文」为 key(gettext 风格),见 en-US.json; + * - 渲染层由 ui/i18n-dom.js 在文字显示到界面上时统一翻译(含动态生成的文字); + * - 主进程只在对话框 / 托盘 / 系统通知这些「不经过 DOM」的出口调用 t(); + * - 查不到的文字原样返回中文,所以新加的文案不会坏,只是暂时没翻译。 + * + * 匹配顺序:完全匹配 → 模板匹配(`${x}` 在 key 里写成 {0}、{1}…)→ 片段替换。 + * 片段替换用于字符串拼接出来的句子,只在前两步都失败时才用。 + * + * Interface translation. Keys are the original Chinese strings; values are the + * translation. Missing keys fall back to the Chinese text. Run + * `node scripts/i18n-extract.js` to list strings that still need translating. + */ +const fs = require('fs'); +const path = require('path'); + +const SUPPORTED = ['zh-CN', 'en-US']; +const CJK = /[㐀-鿿豈-﫿]/; + +/** 设置值(auto / zh-CN / en-US)+ 系统语言 → 实际使用的界面语言 */ +function resolveLang(pref, systemLocale) { + const p = String(pref || 'auto'); + if (SUPPORTED.includes(p)) return p; + const sys = String(systemLocale || '').toLowerCase(); + return sys.startsWith('zh') ? 'zh-CN' : 'en-US'; +} + +function escapeRe(s) { + return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); +} + +const norm = (s) => String(s).replace(/\s+/g, ' ').trim(); + +/** 把中文全角标点换成英文标点:只在片段替换后、句子里还夹着标点时用 */ +function westernPunct(s) { + return s + .replace(/\s*,\s*/g, ', ') + .replace(/\s*。\s*/g, '. ') + .replace(/\s*;\s*/g, '; ') + .replace(/\s*:\s*/g, ': ') + .replace(/\s*、\s*/g, ', ') + .replace(/\s*!\s*/g, '! ') + .replace(/\s*?\s*/g, '? ') + .replace(/(\s*/g, ' (').replace(/\s*)/g, ') ') + .replace(/[「『“]/g, '"').replace(/[」』”]/g, '"') + .replace(/\s*——\s*/g, ' — ') + .replace(/ {2,}/g, ' ') + .replace(/ ([,.;:!?)])/g, '$1') + .trim(); +} + +class Translator { + constructor(lang, dict) { + this.lang = lang; + this.exact = new Map(); + this.templates = []; + this.cache = new Map(); + this.fragRe = null; + this.frag = new Map(); + if (lang !== 'zh-CN') this._build(dict || {}); + } + + _build(dict) { + const fragKeys = []; + for (const [k0, v] of Object.entries(dict)) { + if (!v || k0.startsWith('//')) continue; + const k = norm(k0); + if (/\{\d+\}/.test(k)) { + const parts = k.split(/\{(\d+)\}/); + // parts: [lit, idx, lit, idx, lit...] + let re = '^'; + const order = []; + let literal = 0; + for (let i = 0; i < parts.length; i++) { + if (i % 2 === 0) { re += escapeRe(parts[i]); literal += parts[i].length; } + else { re += '([\\s\\S]*?)'; order.push(Number(parts[i])); } + } + re += '$'; + this.templates.push({ re: new RegExp(re), order, value: v, literal }); + } else { + this.exact.set(k, v); + if (CJK.test(k) && k.length >= 2) fragKeys.push(k); + } + } + // 字面部分越长越具体,优先匹配 + this.templates.sort((a, b) => b.literal - a.literal); + fragKeys.sort((a, b) => b.length - a.length); + for (const k of fragKeys) this.frag.set(k, this.exact.get(k)); + if (fragKeys.length) this.fragRe = new RegExp(fragKeys.map(escapeRe).join('|'), 'g'); + } + + /** 模板占位符捕获到的内容:可能是列表(「、」分隔)或另一句已知文案 */ + _capture(s) { + if (!CJK.test(s)) return s; + const e = this.exact.get(norm(s)); + if (e != null) return e; + if (s.includes('、')) { + const items = s.split('、'); + if (items.every((x) => this.exact.has(norm(x)) || !CJK.test(x))) { + return items.map((x) => this.exact.get(norm(x)) ?? x).join(', '); + } + } + // 其余交给完整流程(片段替换要求整句覆盖,应用名之类不会被翻坏),保留前导空白 + const lead = s.match(/^\s*/)[0]; + const r = this._core(s); + return r === s ? s : lead + r; + } + + _core(text) { + const k = norm(text); + if (!k) return text; + const e = this.exact.get(k); + if (e != null) return e; + for (const t of this.templates) { + const m = t.re.exec(k); + if (!m) continue; + const caps = {}; + t.order.forEach((idx, i) => { caps[idx] = this._capture(m[i + 1]); }); + return t.value + // 单复数:{0|app|apps} 按第 0 个占位符是不是 1 选词 + .replace(/\{(\d+)\|([^|}]*)\|([^}]*)\}/g, (all, n, one, many) => (Number(String(caps[n]).trim()) === 1 ? one : many)) + .replace(/\{(\d+)\}/g, (all, n) => (n in caps ? caps[n] : all)) + // 中文括号后缀直接拼在词后面(「165 GB(剩余…)」),英文要补一个空格 + .replace(/([A-Za-z0-9.%])\(/g, '$1 ('); + } + // 几句话拼成一段(「本机 …;内存最多 …。数据分区 …。」):按句拆开逐句翻, + // 每句都翻得出来才采用 + const sentences = k.split(/(?<=[。;!?])\s*/).filter(Boolean); + if (sentences.length > 1) { + const parts = sentences.map((x) => this._core(x)); + if (parts.every((p, i) => p !== sentences[i] || !CJK.test(p))) return parts.join(' '); + } + if (!this.fragRe) return text; + // 片段替换只在「整句都能被已知片段覆盖」时采用:剩下还有中文,多半夹着应用名 + // 之类的用户内容,硬换一半会把名字也翻坏,宁可整句保持原文。 + const out = k.replace(this.fragRe, (m) => ` ${this.frag.get(m)} `); + if (out === k || CJK.test(out.replace(/[,。;:、!?()「」『』“”——…·]/g, ''))) return text; + return westernPunct(out); + } + + /** 翻译一段文字;保留首尾空白(DOM 文本节点需要) */ + translate(text) { + if (this.lang === 'zh-CN' || text == null) return text; + const s = String(text); + if (!CJK.test(s)) return s; + const c = this.cache.get(s); + if (c != null) return c; + const lead = s.match(/^\s*/)[0]; + const trail = s.slice(lead.length).match(/\s*$/)[0]; + // 多行文案逐行翻译(对话框 detail、通知正文常见) + let body = s.slice(lead.length, s.length - trail.length); + let out; + if (body.includes('\n') && !this.exact.has(norm(body))) { + out = body.split('\n').map((line) => { + const l = line.match(/^\s*/)[0]; + const r = line.slice(l.length); + return r ? l + this._core(r) : line; + }).join('\n'); + } else { + out = this._core(body); + } + const res = lead + out + trail; + if (this.cache.size > 5000) this.cache.clear(); + this.cache.set(s, res); + return res; + } +} + +const DICTS = {}; +function loadDict(lang) { + if (lang === 'zh-CN') return {}; + if (!DICTS[lang]) { + try { + DICTS[lang] = JSON.parse(fs.readFileSync(path.join(__dirname, `${lang}.json`), 'utf8')); + } catch (_) { + DICTS[lang] = {}; + } + } + return DICTS[lang]; +} + +let current = new Translator('zh-CN', {}); + +function setLang(lang) { + const l = SUPPORTED.includes(lang) ? lang : 'zh-CN'; + if (l !== current.lang) current = new Translator(l, loadDict(l)); + return current.lang; +} + +function getLang() { return current.lang; } + +/** + * t('已安装 {0}', name) —— 先翻译再填占位符;也可以直接 t(已拼好的中文句子)。 + */ +function t(text, ...args) { + let s = current.translate(text); + if (args.length) s = String(s).replace(/\{(\d+)\}/g, (all, n) => (args[n] != null ? String(args[n]) : all)); + return s; +} + +/** 递归翻译对象里的字符串字段(对话框参数、菜单模板) */ +function tDeep(obj, keys = ['label', 'title', 'message', 'detail', 'body', 'checkboxLabel', 'toolTip', 'sublabel', 'buttonLabel']) { + if (current.lang === 'zh-CN' || obj == null) return obj; + if (Array.isArray(obj)) return obj.map((x) => (typeof x === 'string' ? t(x) : tDeep(x, keys))); + if (typeof obj !== 'object') return obj; + const out = { ...obj }; + for (const [k, v] of Object.entries(out)) { + if (typeof v === 'string' && keys.includes(k)) out[k] = t(v); + else if (k === 'buttons' && Array.isArray(v)) out[k] = v.map((b) => t(b)); + else if (k === 'submenu' && Array.isArray(v)) out[k] = v.map((x) => tDeep(x, keys)); + else if (k === 'filters' && Array.isArray(v)) out[k] = v.map((f) => ({ ...f, name: t(f.name) })); + } + return out; +} + +module.exports = { SUPPORTED, CJK, resolveLang, setLang, getLang, t, tDeep, Translator, loadDict, westernPunct }; diff --git a/src/main.js b/src/main.js index 993ce123..6d5781f4 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,17 @@ const { app, BrowserWindow, ipcMain, dialog, Tray, Menu, shell, nativeImage, screen, globalShortcut } = require('electron'); const fs = require('fs'); const path = require('path'); +// 界面语言:先按系统区域设置猜一次(命令行路径可能在 ready 之前就弹对话框), +// whenReady 里再用 Electron 的系统语言校正。见 src/i18n/index.js。 +const i18n = require('./i18n'); +require('./i18n/electron').install(require('electron')); +function applyUiLanguage(systemLocale) { + let pref = 'auto'; + try { pref = require('./core/store').getSettings().language || 'auto'; } catch (_) { /* ignore */ } + return i18n.setLang(i18n.resolveLang(pref, systemLocale)); +} +applyUiLanguage(Intl.DateTimeFormat().resolvedOptions().locale); +ipcMain.on('i18n:get', (e) => { e.returnValue = i18n.getLang(); }); const store = require('./core/store'); const { Runtime } = require('./core/engine'); @@ -970,7 +981,7 @@ function openManual(payload = {}) { if (/^https?:\/\//i.test(url)) shell.openExternal(url); }); } - manualWindow.setTitle(`ApkStart 使用手册 · ${target.title}`); + manualWindow.setTitle(i18n.t(`ApkStart 使用手册 · ${target.title}`)); manualWindow.loadFile(path.join(__dirname, 'ui', 'manual.html'), { hash: target.anchor }); manualWindow.once('ready-to-show', () => { if (!manualWindow || manualWindow.isDestroyed()) return; @@ -992,6 +1003,7 @@ function notify(title, body) { if (store.getSettings().notifyOnInstall === false) return; try { const { Notification } = require('electron'); + title = i18n.t(title); body = i18n.t(body); if (Notification.isSupported()) new Notification({ title, body, icon: nativeImage.createFromBuffer(ICON_PNG) }).show(); } catch (_) { /* ignore */ } } @@ -1763,6 +1775,16 @@ function registerIpc() { ipcMain.handle('settings:set', (_e, rawPatch) => { const patch = sanitizeResourcePatch(rawPatch); const next = store.saveSettings(patch); + if (patch && 'language' in patch) { + // 换了界面语言:重新加载所有页面,托盘菜单由定时 refresh 跟上 + applyUiLanguage((app.getPreferredSystemLanguages && app.getPreferredSystemLanguages()[0]) || app.getLocale()); + if (tray) tray.setToolTip('ApkStart — 安卓应用运行器'); + setTimeout(() => { + for (const w of BrowserWindow.getAllWindows()) { + try { if (!w.isDestroyed()) w.webContents.reload(); } catch (_) { /* ignore */ } + } + }, 150); + } if (patch && patch.autoStart !== undefined) applyAutoStart(); if (patch && patch.display && appWin && appWin.isOpen) { // 竖屏基准尺寸变了:只影响后续打开的窗口大小,不打断正在跑的应用 @@ -2929,6 +2951,10 @@ if (!gotLock) { app.whenReady().then(async () => { store.ensureDirs(); + try { + const pref = (app.getPreferredSystemLanguages && app.getPreferredSystemLanguages()[0]) || app.getLocale(); + applyUiLanguage(pref); + } catch (_) { /* ignore */ } /** * 记下「当前是谁在管这台运行时」。 * diff --git a/src/preload.js b/src/preload.js index 4ea06ea5..e4db0a24 100644 --- a/src/preload.js +++ b/src/preload.js @@ -1,6 +1,14 @@ 'use strict'; const { contextBridge, ipcRenderer, webUtils } = require('electron'); +// 界面语言:同步拿一次主进程决定的语言,页面里的 ui/i18n-dom.js 用它翻译文字 +try { + const i18n = require('./i18n'); + const lang = ipcRenderer.sendSync('i18n:get'); + i18n.setLang(lang); + contextBridge.exposeInMainWorld('apkstartI18n', { lang: i18n.getLang(), t: (s) => i18n.t(String(s)) }); +} catch (_) { /* 翻译不可用时界面保持中文 */ } + const invoke = (channel, payload) => ipcRenderer.invoke(channel, payload); contextBridge.exposeInMainWorld('apkstart', { diff --git a/src/splash-preload.js b/src/splash-preload.js index c3beb093..531b6c0d 100644 --- a/src/splash-preload.js +++ b/src/splash-preload.js @@ -1,6 +1,14 @@ 'use strict'; const { contextBridge, ipcRenderer } = require('electron'); +// 界面语言:同步拿一次主进程决定的语言,页面里的 ui/i18n-dom.js 用它翻译文字 +try { + const i18n = require('./i18n'); + const lang = ipcRenderer.sendSync('i18n:get'); + i18n.setLang(lang); + contextBridge.exposeInMainWorld('apkstartI18n', { lang: i18n.getLang(), t: (s) => i18n.t(String(s)) }); +} catch (_) { /* 翻译不可用时界面保持中文 */ } + contextBridge.exposeInMainWorld('apkstartSplash', { version: () => ipcRenderer.invoke('splash:version'), isFirstRun: () => ipcRenderer.invoke('splash:isFirstRun'), diff --git a/src/ui/app.js b/src/ui/app.js index 454ad5f8..ca052b3c 100644 --- a/src/ui/app.js +++ b/src/ui/app.js @@ -176,7 +176,7 @@ function renderGrid() { ? `` : `
${esc(initialOf(a.label))}
`} -
${esc(a.label)}
+
${esc(a.label)}
${a.running ? '运行中' : `v${esc(a.versionName)}${a.lastLaunchAt ? ' · ' + relTime(a.lastLaunchAt) : ''}`}
${a.running ? '切换到前台' : '打开'}
@@ -1091,6 +1091,7 @@ function fillSettings(s) { if ($('setRenderSize')) $('setRenderSize').value = eng.renderSize || 'auto'; if ($('setDataGB')) $('setDataGB').value = String(Number(eng.dataPartitionGB || 0)); if ($('setFastDns')) $('setFastDns').checked = eng.fastDns !== false; + if ($('setLanguage')) $('setLanguage').value = s.language || 'auto'; if ($('setLocale')) $('setLocale').value = eng.locale || 'zh-CN'; if ($('setChineseIme')) $('setChineseIme').checked = eng.chineseIme !== false; if ($('setKeepSnapshot')) $('setKeepSnapshot').checked = eng.keepSnapshot !== false; @@ -1702,6 +1703,12 @@ function bindSettings() { if ($('setFastDns')) { $('setFastDns').addEventListener('change', (e) => save({ engine: { fastDns: e.target.checked } })); } + if ($('setLanguage')) { + // 主进程保存后会重新加载页面,新语言立即生效 + $('setLanguage').addEventListener('change', async (e) => { + state.settings = await api.setSettings({ language: e.target.value }); + }); + } if ($('setLocale')) { $('setLocale').addEventListener('change', async (e) => { state.settings = await api.setSettings({ engine: { locale: e.target.value } }); diff --git a/src/ui/i18n-dom.js b/src/ui/i18n-dom.js new file mode 100644 index 00000000..fcf921e2 --- /dev/null +++ b/src/ui/i18n-dom.js @@ -0,0 +1,141 @@ +'use strict'; +/** + * 渲染层翻译:页面上出现的每一段文字(静态 HTML + app.js 动态写入的)都在这里 + * 过一遍词典。app.js 不需要改调用点,照常写中文即可。 + * + * 不翻译的区域:带 translate="no" 或 data-i18n-skip 的元素(应用名、包名、 + * 日志、用户输入等),以及 /