按独立复审 `reviewer-updategui-r1` 的 p1-1 / fix-then-merge 返工。
P1-1(挡门)
- `crates/cli/src/cli/parse.rs` 406 → **382** 行:`fn parse_update` 搬到
`crates/cli/src/cli/parse/update.rs`(与 `parse/{accounts,agent,instances}.rs` 同形状)。
全仓 `crates/**/*.rs` 最大仍是 400(`design/tests/card_neutral.rs` 等三处,未越线)。
上一轮报告里「所有改动文件都在 400 行内」那句是错的,已在 r2 报告里更正。
P3-6 `Job::apply` 不查包形态
- 新增 `self_replaceable(format)`(只有 `PortableExe` 允许)+ `ensure_self_replaceable`,
**挡在取包之前**;错误分类 `InvalidManifest`(发布侧挂错,换源/重试无用)。
比复审建议的 `needs_installer()` 更严:`portable-zip`/`appimage` 同样不能原地当 exe。
- 用例:`crates/core/src/update/tests/job_cases.rs`(msi/zip 被拒 + 目标零改动 + 暂存目录
没被建 + 便携 exe 整环成功 + Nothing 不碰目标 + 闸门的源码锚点)。
P3-7 `ULL_UPDATE_DIR` 生产可用
- `default_source` 改走 `local_dir_override()`:`if !cfg!(debug_assertions) { return None }`,
发布构建里整段被常量折叠掉(这条路径在 release 二进制里不存在)。判据与三档取舍写在
`job.rs` 的文档表里(为什么不用 CLI 参数、为什么不用运行期开关)。
P3-1「忽略这个版本」语义
- `UpdateView.dismissed: bool` → `skipped: Option<String>`(记**版本号**):忽略 0.2.3 之后
同一次运行里冒出 0.2.4 **照常提示**;手动检查清空(`begin_check(manual)`),静默检查不清。
文案保持「忽略这个版本」。presenter / app 侧视图模型 / 两处用例同步。
P3-3 CLI `--json` 失败信封缺结构化分类
- `CliError` 加 `detail`(`Option<Box<Value>>`,装箱避免 `result_large_err`)+ `with_detail`,
`to_json` 输出 `error.detail`;`commands/update.rs` 的 failure 填
`{"kind": core 分类 id, "retryable": 可重试位}`。
- 上一轮报告里引的 `{"kind":"digest_mismatch"}` 形状确实不存在(那是 CLI 的 user/internal),
r2 报告换成了实机 dump。
P3-4 update 命令没有解析测试
- `crates/cli/tests/parse_test.rs`:`update_subcommands`(check / apply / `--dest` 两种写法)
+ `update_usage_errors`(无子命令 / 未知子命令 / 多余位置参数 / 缺少取值 / 未知选项);
`help_text_covers_every_command` 的 topic 列表补 `"update"`。
P3-5 `install.rs` 模块文档与实测矛盾
- 改成「可以改名、不能覆盖/删除」,写明 M159 在 Windows 真机验过运行中的 exe 自替换,
并提醒别再照旧文档去设计「退出自身 → 另一个进程搬运」的双进程方案。
顺手(复审 P3-2/P3-8 里低成本的两条)
- 设置页补「下载中」态(`SettingsUpdateApplying` 不再是死 key,下载期间不画「下载并安装」);
渠道显示改读 `update.channel`(`stable` 走 key,其它原样);删掉从未使用的
`UpdateBannerRestartLater`(catalog + 金表同步,29 条 key 全部有引用)。
- `adopt` 只让**检查**刷新 `checked_at`(应用回报不再冒充「上次检查」);
`UpdateView::default()` 的 `current_version` 取本进程版本号(mock 下不再空白)。
门禁(`CARGO_TARGET_DIR=C:/Temp/ull-target/wt-159`):fmt 绿、clippy -D warnings 绿、
`cargo test --workspace --all-targets --no-fail-fast -j 4` **exit 0**(51 个测试二进制全 ok,
`core::addon::pack` 未被 skip)。该族用例复现了复审记的泄漏:一次全量在 `/tmp` 留 72 个
`ull-pack-*`(`/tmp` 149M → 8853M),跑完已 `rm -rf` 清回 150M。
394 lines
35 KiB
Rust
394 lines
35 KiB
Rust
//! 金表的**后半段**(`InstancesLaunchReset` 之后的全部行)。
|
||
//!
|
||
//! 为什么拆:`golden.rs` 在 M157 加了 19 行启动参数文案后到 416 行,越过 400 行硬线;
|
||
//! 拆分口径与仓库其它 `-p1/-p2` 一致——**纯搬移、一行不改**,顺序即 `Key::ALL` 的后半段。
|
||
//! 拼装与断言在 `golden.rs` 的 [`rows`] 与 `catalog/tests.rs`。
|
||
|
||
pub(super) const ROWS: &[(&str, &str, &str)] = &[
|
||
("LoaderVanilla", "Vanilla", "原版"),
|
||
("LaunchOutcomeNormal", "Finished normally", "正常结束"),
|
||
("LaunchOutcomeCrash", "The game crashed", "游戏崩溃"),
|
||
("LaunchOutcomeSilent", "Suspected silent failure: exit code 0, but the game never really started", "疑似静默失败:退出码 0,但游戏没真正跑起来"),
|
||
("LaunchFailedWithCode", "Launch failed (exit {code}): {reason}", "启动失败(退出码 {code}):{reason}"),
|
||
("LaunchMsaNotConfigured", "Microsoft sign-in is not configured: it needs an Azure public client id (the login flow itself is implemented). Build with ULL_MSA_CLIENT_ID=<id>, or set that environment variable before launching.", "微软登录未配置:缺少 Azure 公共客户端 id(登录功能已实现,只差这一项配置)。构建时注入:ULL_MSA_CLIENT_ID=<id> cargo build;或启动前设置同名环境变量 ULL_MSA_CLIENT_ID=<id>。"),
|
||
("FontCjkNeedsDownload", "No Chinese font found on this system. Download an open-source (OFL) Chinese font?", "系统里没找到中文字体。要下载一套开源(OFL)中文字体吗?"),
|
||
("FontCjkDownloading", "Downloading Chinese font… {percent}%", "正在下载中文字体… {percent}%"),
|
||
("FontCjkDownloadFailed", "Chinese font download failed; the interface stays in English.", "中文字体下载失败,界面暂时保持英文。"),
|
||
("FontCjkReady", "Chinese font ready: {family}", "中文字体已就绪:{family}"),
|
||
("SettingsLanguage", "Language", "界面语言"),
|
||
("SettingsLanguageHint", "Switches the interface language. Chinese text needs a Chinese font.", "切换界面语言。显示中文需要中文字体。"),
|
||
("SettingsAppearanceCorner", "Window corners", "窗口圆角"),
|
||
("SettingsAppearanceCornerSystem", "Follow system", "跟随系统"),
|
||
("SettingsAppearanceCornerSquare", "Square", "直角"),
|
||
("SettingsAppearanceCornerHint", "On Windows 11 and Server 2025 we ask the system for rounded corners; Windows 10 keeps square corners. On macOS and Linux the desktop's own rules apply. We never draw corners ourselves.", "Windows 11 与 Windows Server 2025 上我们请求系统处理外框圆角;Windows 10 保持直角;macOS 与 Linux 交给桌面合成器自己的规则;我们不自己画圆角。"),
|
||
("SettingsAppearanceCornerSuspended", "Not in effect right now: window transparency is below 100%. Setting it back to 100% restores the rounded corners.", "当前因整窗透明度不生效:把整窗透明度调回 100% 圆角即恢复。"),
|
||
("CoreTextUntranslated", "[system text not translated]", "[未翻译的系统文案]"),
|
||
("DownloadTitle", "Version management", "版本管理"),
|
||
("DownloadSubtitle", "Manage versions and loaders: install, upgrade, repair", "管理版本与加载器:安装、升级、修复"),
|
||
("DownloadRefresh", "Refresh", "刷新"),
|
||
("DownloadInstall", "Install", "安装"),
|
||
("DownloadCancel", "Cancel install", "取消安装"),
|
||
("DownloadInstalled", "Installed", "已安装"),
|
||
("DownloadCount", "{count} versions", "{count} 个版本"),
|
||
("DownloadRowSupporting", "{kind} · released {date}", "{kind} · 发布于 {date}"),
|
||
("DownloadSelectHint", "Pick a version, then install", "选一个版本再安装"),
|
||
("DownloadLoading", "Loading versions…", "正在加载版本列表…"),
|
||
("DownloadLoadingHint", "If this stays here, press Refresh in the top right.", "如果一直停在这里,点右上角的刷新。"),
|
||
("DownloadEmptyTitle", "No versions to show", "没有可显示的版本"),
|
||
("DownloadEmptyBody", "Pick another category, or refresh the list.", "换一个分类,或刷新一次列表。"),
|
||
("DownloadCategoryAll", "All", "全部"),
|
||
("DownloadCategoryRelease", "Release", "正式版"),
|
||
("DownloadCategorySnapshot", "Snapshot", "预览版"),
|
||
("DownloadCategoryAncient", "Ancient", "远古版"),
|
||
("DownloadStagePlanning", "Planning", "解析版本"),
|
||
("DownloadStageDownloading", "Downloading files", "下载文件"),
|
||
("DownloadStageInstalling", "Building the version", "生成版本"),
|
||
("DownloadStageRegistering", "Registering the instance", "登记实例"),
|
||
("DownloadStageDone", "Done", "已完成"),
|
||
("DownloadStageFailed", "Install failed", "安装失败"),
|
||
("DownloadStageCancelled", "Install cancelled", "安装已取消"),
|
||
("DownloadProgress", "{done}/{total} files", "{done}/{total} 文件"),
|
||
("DownloadProgressUnknown", "Waiting for the first file…", "等第一个文件…"),
|
||
("DownloadRate", "{speed} · {eta}", "{speed},{eta}"),
|
||
("DownloadEtaSecs", "{secs}s left", "剩 {secs}s"),
|
||
("DownloadEtaMins", "{mins}m{secs}s left", "剩 {mins}m{secs}s"),
|
||
("DownloadFailedHint", "The Logs page has the full reason.", "完整原因在日志页。"),
|
||
("DownloadOpenLogs", "Open logs", "打开日志"),
|
||
("DownloadDismiss", "Dismiss", "关闭"),
|
||
("DownloadOptionsTitle", "Install options", "安装选项"),
|
||
("DownloadOptionsLoaderVersion", "Loader version", "加载器版本"),
|
||
("DownloadOptionsLoaderVersionsLoading", "Fetching loader versions…", "正在获取加载器版本…"),
|
||
("DownloadOptionsLoaderVersionsFailed", "Could not fetch loader versions: {reason}", "取不到加载器版本:{reason}"),
|
||
("DownloadOptionsLoaderVersionsEmpty", "No loader builds published for {version}", "官方没有为 {version} 发布加载器版本"),
|
||
("DownloadOptionsInstanceName", "Instance name", "实例名"),
|
||
("DownloadOptionsInstanceNameHint", "Empty = use the version id", "留空就用版本号"),
|
||
("DownloadOptionsIncompatible", "{loader} has no builds for {version}", "{loader} 没有适配 {version} 的构建"),
|
||
("DownloadOptionsNeedsAtLeast", "{loader} needs Minecraft {min} or newer", "{loader} 需要 Minecraft {min} 或更新"),
|
||
("DownloadCancelled", "Install cancelled — finished files are kept, the instance was not created", "安装已取消 —— 已下好的文件保留,实例未登记"),
|
||
("LogsSubtitleIdle", "Nothing is running right now", "当前没有运行中的实例"),
|
||
("LogsStatus", "{instance} · {when} · {outcome}", "{instance}|{when}|{outcome}"),
|
||
("LogsOpenFolder", "Open folder", "打开目录"),
|
||
("LogsClear", "Clear", "清空"),
|
||
("LogsOutputTitle", "OUTPUT", "输出"),
|
||
("LogsDiagnosisTitle", "DIAGNOSIS", "诊断"),
|
||
("LogsConfidenceHigh", "HIGH CONFIDENCE", "高置信度"),
|
||
("LogsConfidenceMedium", "MEDIUM CONFIDENCE", "中置信度"),
|
||
("LogsConfidenceLow", "LOW CONFIDENCE", "低置信度"),
|
||
("LogsSubtitleLive", "Running now — logs stream as they arrive", "正在运行 — 日志实时滚动"),
|
||
("LogsConfidence", "Confidence {percent}%", "置信度 {percent}%"),
|
||
("LogsSuggestedFix", "Suggested fix", "建议动作"),
|
||
("LogsSummaryLabel", "One-line summary", "一行摘要"),
|
||
("LogsCopySummary", "Copy summary", "复制摘要"),
|
||
("LogsEmptyTitle", "No output yet", "还没有输出"),
|
||
("LogsEmptyBody", "Logs stream here while the launcher or the game is running. Pick an instance and start it to see the first lines.", "启动器或游戏运行时,日志会实时出现在这里。选择一个实例并启动,就能看到第一批日志。"),
|
||
("LogsEmptyAction", "Choose an instance", "选择实例"),
|
||
("AgentTitle", "Assistant", "助手"),
|
||
("AgentSubtitle", "Simulated assistant · no real model is connected", "模拟助手 · 还没接真实模型"),
|
||
("AgentCollapse", "Collapse", "收起"),
|
||
("AgentDetach", "Pop out", "拆出"),
|
||
("AgentDock", "Dock back", "收回"),
|
||
("AgentOpen", "Open assistant", "打开助手"),
|
||
("AgentStripLabel", "AI", "助手"),
|
||
("AgentSend", "Send", "发送"),
|
||
("AgentStop", "Stop", "中断"),
|
||
("AgentPlaceholder", "Message the simulated assistant…", "给模拟助手发消息…"),
|
||
("AgentEmptyTitle", "Nothing in this session yet", "这个会话还没有内容"),
|
||
("AgentEmptyBody", "Ask about instances, downloads or logs. This assistant is simulated: no real model is connected.", "可以问实例、下载或日志。当前是模拟助手,没有接真实模型。"),
|
||
("AgentNotePending", "Placeholder shell: your message is kept here, nothing was sent to a model.", "占位外壳:消息留在这里,没有发给任何模型。"),
|
||
("AgentNoteStopped", "Stopped by you.", "你中断了这次回复。"),
|
||
("AgentUnread", "{count} unread", "{count} 条未读"),
|
||
("AgentResize", "Drag to resize the assistant rail", "拖动调整助手栏宽度"),
|
||
("AgentWidthLabel", "Width {width}", "宽度 {width}"),
|
||
("AgentRoleYou", "You", "你"),
|
||
("AgentRoleAssistant", "Assistant", "助手"),
|
||
("AgentRoleNotice", "Notice", "提示"),
|
||
("AgentErrorTitle", "Assistant error", "助手出错"),
|
||
("AgentErrorUnavailable", "Couldn't reach the assistant backend. Check the endpoint, then try again.", "连不上助手后端:检查端点后重试。"),
|
||
("AgentErrorNotImplemented", "This assistant request isn't wired up yet.", "这个助手请求还没接线。"),
|
||
("AgentConfirmRequest", "The assistant wants to change something: {summary}", "助手想改一项设置:{summary}"),
|
||
("AgentConfirmAllow", "Allow", "允许"),
|
||
("AgentConfirmDeny", "Deny", "拒绝"),
|
||
("AgentSimulated", "Simulated", "模拟"),
|
||
("AgentSubtitleReal", "Conversation", "会话"),
|
||
("AgentPlaceholderReal", "Message the assistant…", "给助手发消息…"),
|
||
("AgentEmptyBodyReal", "Ask about instances, downloads or logs.", "可以问实例、下载或日志。"),
|
||
// ── M106 `I18NFOLLOW`:General 分组真控件(语言选择器 + 其余三行)。**只追加在链尾**,
|
||
// 上一行到 `LogsEmptyAction` 的既有顺序一字未动(金表要证明的正是这件事)。
|
||
("SettingsLanguageFollowSystem", "Follow system", "跟随系统"),
|
||
("SettingsLanguageZhCn", "Chinese (Simplified)", "简体中文"),
|
||
("SettingsLanguageEn", "English", "英文"),
|
||
("SettingsLanguageEffective", "Interface right now: {language}", "界面当前使用:{language}"),
|
||
("SettingsTheme", "Theme", "主题"),
|
||
("SettingsThemeFollowSystem", "Follow system", "跟随系统"),
|
||
("SettingsStartupPage", "Startup page", "启动页"),
|
||
("SettingsStartupInstances", "Instances", "实例"),
|
||
("SettingsCloseButton", "Close button", "关闭按钮"),
|
||
("SettingsCloseToTray", "Exit to tray", "退出到托盘"),
|
||
("SettingsSubtitle", "Launcher behaviour, Java runtimes and download sources", "启动器行为、Java 运行时与下载源"),
|
||
("SettingsResetSection", "Reset section", "重置本组"),
|
||
("SettingsSave", "Save", "保存"),
|
||
("NavAi", "Assistant", "助手"),
|
||
("SettingsGroupGeneral", "General", "通用"),
|
||
("SettingsGroupAppearance", "Appearance", "外观"),
|
||
("SettingsGroupJava", "Java", "Java 运行时"),
|
||
("SettingsGroupDownloads", "Downloads", "下载"),
|
||
("SettingsOverridesEmptyTitle", "No per-instance overrides", "没有逐实例覆盖"),
|
||
("SettingsOverridesEmptyBody", "Overrides let one instance keep its own Java runtime, memory or JVM flags while the rest of the launcher keeps the defaults above.", "逐实例覆盖让某个实例保留自己的 Java 运行时、内存或 JVM 参数,其余实例沿用上面的默认值。"),
|
||
("SettingsOverridesAdd", "Add override", "新增覆盖"),
|
||
("AgentFallbackBody", "The assistant page is not built yet. Chat lives in the docked panel once the AI mission lands; this screen is the M68 skeleton fallback.", "助手页还没做。AI 接线落地后对话会出现在右侧停靠面板;这一屏是 M68 的骨架回退。"),
|
||
// --- M107 版本管理页(追加在链尾:`Key::ALL` 顺序 = 金表顺序) ---
|
||
("VersionRailTitle", "Version type", "版本类型"),
|
||
("VersionMajorTitle", "Major version", "主版本"),
|
||
("VersionMajorAll", "All versions", "全部版本"),
|
||
("VersionSearchPlaceholder", "Search version numbers", "搜版本号"),
|
||
("VersionSearchClear", "Clear search", "清空搜索"),
|
||
("VersionSearchHits", "{count} matches", "{count} 个匹配"),
|
||
("VersionSearchEmptyTitle", "No matching versions", "没有匹配的版本"),
|
||
("VersionSearchEmptyBody", "Try a shorter piece of the number — 1.21, 24w, a1.", "试试更短的片段 — 1.21、24w、a1。"),
|
||
("VersionSearchElsewhere", "{count} versions match, but they are in another type.", "有 {count} 个版本匹配,但它们在别的类型里。"),
|
||
("VersionSearchElsewhereAction", "Show all types", "看全部类型"),
|
||
// --- M107 r2(追加在末尾:`Key::ALL` 顺序 = 金表顺序) ---
|
||
("VersionSearchHitsOne", "1 match", "1 个匹配"),
|
||
("VersionSearchElsewhereTitle", "Found in another type", "在别的类型里找到了"),
|
||
("VersionSearchElsewhereOne", "1 version matches, but it is in another type.", "有 1 个版本匹配,但它在别的类型里。"),
|
||
// --- M109 内容库页(同样追加在链尾:`Key::ALL` 顺序 = 金表顺序) ---
|
||
("ContentTitle", "Content", "内容库"),
|
||
("ContentSubtitle", "Modpacks, mods, resource packs and shaders", "整合包、Mod、资源包与光影"),
|
||
("ContentSectionVersions", "Version management", "版本管理"),
|
||
("ContentSectionContent", "Content library", "内容库"),
|
||
("ContentKindModpack", "Modpacks", "整合包"),
|
||
("ContentKindMod", "Mods", "Mod"),
|
||
("ContentKindResourcepack", "Resource packs", "资源包"),
|
||
("ContentKindShader", "Shaders", "光影"),
|
||
("ContentSourceModrinth", "Modrinth", "Modrinth 源"),
|
||
("ContentSourceCurseforge", "CurseForge", "CurseForge 源"),
|
||
("ContentSortRelevance", "Relevance", "相关度"),
|
||
("ContentSortDownloads", "Downloads", "下载量"),
|
||
("ContentSortNewest", "Newest", "最新发布"),
|
||
("ContentSortUpdated", "Recently updated", "最近更新"),
|
||
("ContentSearchPlaceholder", "Search content…", "搜索内容…"),
|
||
("ContentSearch", "Search", "搜索"),
|
||
("ContentFilterVersion", "Game version", "游戏版本"),
|
||
("ContentFilterLoader", "Loader", "加载器"),
|
||
("ContentFilterAny", "Any", "不限"),
|
||
("ContentCount", "{count} results", "{count} 个结果"),
|
||
("ContentLoading", "Loading content…", "正在加载内容…"),
|
||
("ContentLoadingHint", "Results come from the network; nothing is cached offline yet.", "结果来自网络,暂时没有离线缓存。"),
|
||
("ContentEmptyTitle", "Nothing matched", "没有匹配的内容"),
|
||
("ContentEmptyBody", "Try another keyword, or clear a filter.", "换个关键词,或清掉一个筛选条件。"),
|
||
("ContentFailedTitle", "Could not load content", "内容加载失败"),
|
||
("ContentFailedBody", "Check the network, then retry.", "检查网络后重试。"),
|
||
("ContentRetry", "Retry", "重试"),
|
||
("ContentLoadMore", "Load more", "加载更多"),
|
||
("ContentNoMore", "No more results", "没有更多了"),
|
||
("ContentDetailEmpty", "Pick an item to see what it supports.", "选一个项目看它支持什么。"),
|
||
("ContentDetailDownloads", "{count} downloads", "下载量 {count}"),
|
||
("ContentDetailUpdated", "Updated {date}", "更新于 {date}"),
|
||
("ContentDetailLoaders", "Loaders: {list}", "加载器:{list}"),
|
||
("ContentDetailVersions", "Game versions: {list}", "游戏版本:{list}"),
|
||
("ContentInstall", "Install into instance", "装入实例"),
|
||
("ContentTargetInstance", "Target instance", "目标实例"),
|
||
("ContentNoInstances", "No instance to install into", "没有可装入的实例"),
|
||
("ContentIncompatibleVersion", "Needs {version}; this instance runs {actual}", "需要 {version},该实例运行的是 {actual}"),
|
||
("ContentIncompatibleLoader", "Not built for {loader}", "不支持 {loader}"),
|
||
("ContentModpackNotReady", "Installing modpacks from the library into an instance is not available yet", "从内容库一键安装整合包到实例还没做(本地的包可以直接导入)"),
|
||
("ContentSourceUnavailable", "CurseForge needs an API key: add one in Settings", "CurseForge 需要在设置里配置密钥才能搜索"),
|
||
("ContentSourceNotWired", "Installing from CurseForge is not available yet", "CurseForge 来源的安装尚未开放"),
|
||
("PackTitle", "Modpack import & export", "整合包导入 / 导出"),
|
||
("PackImportTitle", "Import a modpack", "导入整合包"),
|
||
("PackDropHint", "Drop a .mrpack, .zip or a MultiMC/Prism instance folder here", "把 .mrpack / .zip 或 MultiMC·Prism 实例目录拖到这里"),
|
||
("PackDropActive", "Release to probe the pack", "松手开始探测"),
|
||
("PackNoDialog", "This build has no system file picker: drag the file in, or paste its path below.", "本版没有系统文件选择框:请把文件拖进来,或在下面粘贴路径。"),
|
||
("PackPathLabel", "Pack path", "整合包路径"),
|
||
("PackPathPlaceholder", "D:\\packs\\Better MC.mrpack", "D:\\整合包\\更好的MC.mrpack"),
|
||
("PackImportAction", "Import", "导入"),
|
||
("PackCancel", "Cancel import", "取消导入"),
|
||
("PackDismiss", "Dismiss", "关闭"),
|
||
("PackTargetLabel", "Install into", "装到实例"),
|
||
("PackTargetNew", "New instance", "新建实例"),
|
||
("PackInstanceName", "Instance name", "实例名"),
|
||
("PackStageLine", "Step {index}/{total} · {stage}", "步骤 {index}/{total} · {stage}"),
|
||
("PackStageProbe", "Reading the manifest", "读取清单"),
|
||
("PackStageExtract", "Unpacking overrides", "解包覆盖内容"),
|
||
("PackStageFetch", "Fetching missing files", "补下载文件"),
|
||
("PackStageCommit", "Writing files", "落地写盘"),
|
||
("PackStageRegister", "Registering the instance", "登记实例"),
|
||
("PackProbeTitle", "This pack is almost a known format", "这个包差一点就是已知格式"),
|
||
("PackProbeLooksLike", "Looks like {format}, but missing: {missing}", "看起来像 {format},但缺:{missing}"),
|
||
("PackProbeUnknown", "No known format claims this pack", "没有任何已知格式认领这个包"),
|
||
("PackProbeSaw", "Found in the pack: {saw}", "包里看到:{saw}"),
|
||
("PackProbeNothing", "nothing recognisable", "没有可识别的东西"),
|
||
("PackStatusSuccess", "Imported", "已导入"),
|
||
("PackStatusPartial", "Imported with gaps", "导入完成,但有缺口"),
|
||
("PackStatusFailed", "Import failed — rolled back", "导入失败 —— 已整包回滚"),
|
||
("PackReportWritten", "Files written: {count} · {bytes}", "{count} 个文件已写盘 · {bytes}"),
|
||
("PackReportMissing", "Could not fetch (tolerated): {count}", "有 {count} 个文件没搞到(可容忍)"),
|
||
("PackReportConflicts", "Conflicts: {count}", "冲突:{count} 个"),
|
||
("PackReportRejected", "The client does not support these: {count}", "这些组件客户端不支持:{count} 个"),
|
||
("PackReportRejectedNote", "not supported by the client", "客户端不支持"),
|
||
("PackCancelled", "Import keeps running in the background — this result is discarded. Files already written stay.", "导入会在后台继续跑完 —— 本次结果作废;已经写下的文件会留下。"),
|
||
("PackOverwriteAction", "Re-import, the pack wins", "以包为准重新导入"),
|
||
("PackOverwriteNote", "Keeping both (renamed) is not supported yet: the import pipeline has one global conflict policy and no per-file decision channel.", "「两者都留(改名)」暂不支持:导入管线只有一套全局冲突策略,没有逐文件决策通道。"),
|
||
("PackMissingOffline", "offline import", "离线导入"),
|
||
("PackMissingNoSource", "no download source available yet", "暂时拿不到下载地址"),
|
||
("PackMissingFetchFailed", "download failed: {detail}", "下载失败:{detail}"),
|
||
("PackFatalTitle", "Rolled back — nothing was left behind", "已回滚 —— 目标目录零残留"),
|
||
("PackFatalHint", "What to try next", "下一步可以试"),
|
||
("PackConflictUserModified", "you changed it", "你改过"),
|
||
("PackConflictUserDeleted", "you deleted it", "你删过"),
|
||
("PackConflictPreExisting", "was already there", "本来就在"),
|
||
("PackChoiceKeepUser", "kept yours", "保留我的"),
|
||
("PackChoiceOverwrite", "pack version used", "用包里的"),
|
||
("PackConflictHashes", "pack {pack} · base {base} · disk {disk}", "包内 {pack} · 基线 {base} · 磁盘 {disk}"),
|
||
("PackConflictDetail", "Hashes", "三方哈希"),
|
||
("PackFormatModrinth", "Modrinth .mrpack", "Modrinth 的 .mrpack"),
|
||
("PackFormatCurseforge", "CurseForge manifest", "CurseForge 清单"),
|
||
("PackFormatMultimc", "MultiMC / Prism instance", "MultiMC·Prism 实例"),
|
||
("PackExportTitle", "Export this instance", "导出这个实例"),
|
||
("PackExportOpen", "Export…", "导出…"),
|
||
("PackExportFormat", "Format", "格式"),
|
||
("PackExportName", "Pack name", "包名"),
|
||
("PackExportVersion", "Version", "版本"),
|
||
("PackExportOutput", "Save to", "保存到"),
|
||
("PackExportOutputPlaceholder", "empty = suggested path", "留空 = 自动给一个路径"),
|
||
("PackExportPrecheck", "Dry run", "预检"),
|
||
("PackExportConfirm", "Write the pack", "确认写盘"),
|
||
("PackExportAbort", "Back", "返回"),
|
||
("PackExportMultimcNote", "MultiMC/Prism can only be imported, not exported (by design).", "MultiMC·Prism 只能导入、不能导出(有意省略)。"),
|
||
("PackExportDone", "Wrote {path} · {bytes}", "已写出 {path} · {bytes}"),
|
||
("PackExportFailed", "Export failed: {reason}", "导出失败:{reason}"),
|
||
("PackExportPending", "Scanning the instance…", "正在扫描实例…"),
|
||
("PackPreviewHead", "Will inline {inline} files · cannot export: {skipped}", "将内联 {inline} 个文件 · 无法导出 {skipped} 项"),
|
||
("PackPreviewRemote", "{count} files can be referenced remotely", "{count} 个文件可走远程引用"),
|
||
("PackPreviewInlineBytes", "{bytes} copied into overrides/", "{bytes} 会原样拷进 overrides/"),
|
||
("PackPreviewInlineTitle", "Copied into overrides/ (first {shown}):", "原样拷进 overrides/(只列前 {shown} 个):"),
|
||
("PackPreviewSkippedTitle", "Not in the pack: {count}", "没进包:{count} 项"),
|
||
("PackPreviewNotes", "Known losses", "已知损失"),
|
||
("PackPreviewTarget", "Will be written to {path}", "将写到 {path}"),
|
||
("PackPreviewMore", "…and {count} more files (not shown here)", "…还有 {count} 个文件(这里不展开)"),
|
||
("PackPreviewComplete", "Nothing is left out", "没有遗漏任何文件"),
|
||
("PackPreviewIncomplete", "Some files will not be in the pack", "有文件不会进包"),
|
||
("PackReasonModrinthSha1", "Modrinth match (SHA-1)", "Modrinth 命中(SHA-1)"),
|
||
("PackReasonCurseFingerprint", "CurseForge match (fingerprint)", "CurseForge 命中(文件指纹)"),
|
||
("PackReasonNoRemoteMatch", "unknown to both catalogs, inlined", "两个目录都不认识,已内联"),
|
||
("PackReasonCurseOnly", "only CurseForge knows it, this format cannot use it, inlined", "只有 CF 认识,目标格式用不上,已内联"),
|
||
("PackReasonModrinthOnly", "only Modrinth knows it, the CF manifest cannot use it, inlined", "只有 Modrinth 认识,CF 清单用不上,已内联"),
|
||
("PackReasonMissingSha512", "the catalogue entry has no sha512 hash, inlined", "命中缺 sha512,已内联"),
|
||
("PackReasonMissingCurseIds", "the catalogue entry has no CurseForge ids, inlined", "命中缺 projectID/fileID,已内联"),
|
||
("PackReasonDisabled", "disabled file, this format cannot express it (.disabled kept)", "禁用文件,目标格式表达不了(保留 .disabled)"),
|
||
("PackReasonSymlink", "symbolic link, skipped", "符号链接,已跳过"),
|
||
("PackReasonUnsafePath", "path fails the pack path rules, skipped", "路径过不了包内规整,已跳过"),
|
||
("PackReasonUnreadable", "cannot read it, skipped", "读不出来,已跳过"),
|
||
// ── M114 账户页:追加在 main 的全部域之后(金表只追加不重排)
|
||
("AccountTitle", "Accounts", "账户"),
|
||
("AccountSubtitle", "Microsoft, third-party skin servers and local profiles", "微软正版、第三方皮肤站与本地档案"),
|
||
("AccountListTitle", "All accounts", "全部账户"),
|
||
("AccountAddedOn", "Added {date}", "添加于 {date}"),
|
||
("AccountActiveChip", "Active", "当前"),
|
||
("AccountSwitch", "Use for launch", "切换为启动账户"),
|
||
("AccountRelogin", "Sign in again", "重新登录"),
|
||
("AccountRemove", "Remove", "删除"),
|
||
("AccountKindMicrosoft", "Microsoft", "微软正版"),
|
||
("AccountKindAuthlib", "Third-party skin server", "第三方皮肤站"),
|
||
("AccountKindOffline", "Local profile", "本地档案"),
|
||
("AccountServer", "Server {server}", "服务器 {server}"),
|
||
("AccountEmptyTitle", "No accounts yet", "还没有账户"),
|
||
("AccountEmptyBody", "Add a Microsoft account, a third-party skin server account, or a local profile.", "添加微软正版账户、第三方皮肤站账户,或建一个本地档案。"),
|
||
("AccountEmptyAction", "Add an account", "添加账户"),
|
||
("AccountTrackMicrosoftTitle", "Microsoft account", "微软正版"),
|
||
("AccountTrackMicrosoftBody", "Sign in with a device code or in your browser. Online servers require this kind of account.", "用设备码或浏览器登录。联机服务器必须用这种账户。"),
|
||
("AccountTrackAuthlibTitle", "Third-party skin server", "第三方皮肤站"),
|
||
("AccountTrackAuthlibBody", "An authlib-injector compatible server (LittleSkin and friends) brings its own skins and capes.", "兼容 authlib-injector 的皮肤站(如 LittleSkin)自带皮肤与披风。"),
|
||
("AccountTrackOfflineTitle", "Local profile", "本地档案"),
|
||
("AccountTrackOfflineBody", "Local / isolated-network testing only — it cannot join servers that require a genuine Minecraft account.", "仅本地/隔离网络测试用,无法连接启用正版验证的服务器。"),
|
||
("AccountTrackOpen", "Sign in", "登录"),
|
||
("AccountTrackCreate", "Create profile", "创建档案"),
|
||
("AccountDialogClose", "Close", "关闭"),
|
||
("AccountOfflineNameLabel", "Profile name", "档案名"),
|
||
("AccountOfflineNameHint", "3–16 letters, digits or underscore", "3–16 位字母、数字或下划线"),
|
||
("AccountOfflineSubmit", "Create profile", "创建档案"),
|
||
("AccountOfflineWarning", "Local / isolated-network testing only — it cannot join servers that require a genuine Minecraft account.", "仅本地/隔离网络测试用,无法连接启用正版验证的服务器。"),
|
||
("AccountDeviceCodeLabel", "Enter this code", "输入这个用户码"),
|
||
("AccountDeviceCodeCopy", "Copy code", "复制用户码"),
|
||
("AccountDeviceLinkCopy", "Copy link", "复制链接"),
|
||
("AccountDeviceCountdown", "{time} left", "剩 {time}"),
|
||
("AccountDeviceExpired", "This code has expired. Start again for a fresh one.", "这个用户码已过期,重新开始换一个新的。"),
|
||
("AccountDeviceRetry", "Try again", "重试"),
|
||
("AccountDeviceCancel", "Cancel", "取消"),
|
||
("AccountDeviceBrowser", "Sign in with browser", "用浏览器登录"),
|
||
("AccountDeviceUseCode", "Use a device code instead", "改用设备码"),
|
||
("AccountServerLabel", "Server address", "服务器地址"),
|
||
("AccountServerHint", "API root, e.g. https://littleskin.cn/api/yggdrasil/", "API 根,例:https://littleskin.cn/api/yggdrasil/"),
|
||
("AccountServerProbe", "Check server", "校验服务器"),
|
||
("AccountLoginNameLabel", "Email or username", "邮箱或用户名"),
|
||
("AccountPasswordLabel", "Password", "密码"),
|
||
("AccountPasswordHint", "Used once for this sign-in. It is never stored.", "只在这次登录里用一次,不会保存。"),
|
||
("AccountAuthlibSubmit", "Sign in", "登录"),
|
||
("AccountAuthlibIdleHint", "The server is checked automatically when you sign in; Check server only does it up front.", "登录时会自动校验服务器;「校验服务器」只是提前跑一遍。"),
|
||
("AccountSkinTitle", "Skin", "皮肤"),
|
||
("AccountSkinNone", "No skin available", "没有可用皮肤"),
|
||
("AccountSkinHint", "Skins come from the account's own server; nothing is generated locally.", "皮肤来自账户自己的服务器,本地不生成任何假皮肤。"),
|
||
("AccountRailSignedOut", "Not signed in", "未登录"),
|
||
("AccountDeviceHint", "Open the link in your browser and enter the code above.", "在浏览器里打开链接,输入上面的用户码。"),
|
||
("AccountDeviceBrowserHint", "Finish the sign-in in the browser window we just opened; the link below also works.", "在我们刚打开的浏览器窗口里完成登录;下面的链接也能手动打开。"),
|
||
("AccountServerChecking", "Checking the server…", "正在校验服务器…"),
|
||
("AccountServerOk", "Server {server} is ready", "服务器 {server} 可用"),
|
||
("AccountLoginFailed", "Sign-in failed", "登录失败"),
|
||
("AccountCurrentTitle", "Current account", "当前账户"),
|
||
("AccountFailureCode", "Code: {code}", "代码:{code}"),
|
||
("AccountFailureDenied", "The server refused this sign-in (access denied).", "服务器拒绝了这次登录(拒绝访问)。"),
|
||
("AccountFailureWhitelist", "Microsoft has not approved this launcher's app registration yet. An administrator has to accept the app, then try again.", "微软还没批准本启动器的应用注册:需要管理员同意该应用后再试。"),
|
||
("AccountFailureUnreachable", "Could not reach the server. Check the network connection or the address, then try again.", "连不上服务器:检查网络或地址后重试。"),
|
||
("AccountFailureNotAuthlib", "This address does not look like an authlib-injector server (the API root usually ends with /api/yggdrasil/).", "这个地址不像 authlib-injector 服务器(API 根通常以 /api/yggdrasil/ 结尾)。"),
|
||
("AccountFailureBadCredentials", "The server rejected the username or password.", "服务器不认这个用户名或密码。"),
|
||
("AccountFailureNoProfile", "The account has no Minecraft profile on this server yet. Create the character on the server first.", "这个账号在该服务器上还没有角色:先在皮肤站里创建角色。"),
|
||
("AccountFailureStore", "Could not save the account to disk.", "账户没能写到磁盘上。"),
|
||
("AccountFailureOther", "The sign-in failed. The full reason is in the launcher log.", "登录失败,完整原因在启动器日志里。"),
|
||
("AccountLoginNotConfigured", "Microsoft sign-in is not configured", "微软登录未配置"),
|
||
("AccountFailureMsaNotConfigured", "This build has no Azure public client id, so Microsoft sign-in cannot start (the sign-in flow itself is implemented). Set the environment variable ULL_MSA_CLIENT_ID=<id> before starting the launcher, or build with ULL_MSA_CLIENT_ID=<id>. Then restart the launcher: a running process does not pick up a new environment variable.", "本启动器没有配置 Azure 公共客户端 id,微软登录无法开始(登录功能已实现,只差这一项配置)。启动前设置环境变量 ULL_MSA_CLIENT_ID=<id>,或构建时注入:ULL_MSA_CLIENT_ID=<id> cargo build。改完请重启启动器——已在运行的进程读不到新设的环境变量。"),
|
||
("AccountDeviceRequesting", "Contacting Microsoft…", "正在联系微软…"),
|
||
("AccountLoginSucceeded", "Signed in as {name}", "已登录 {name}"),
|
||
("AccountNoticeAdded", "Added {name}", "已添加 {name}"),
|
||
("AccountNoticeRemoved", "Removed {name}", "已删除 {name}"),
|
||
("AccountNoticeSwitched", "{name} will be used for the next launch", "{name} 将作为下次启动的账户"),
|
||
("AccountNoticeOfflineNameInvalid", "Profile names must be 3–16 letters, digits or underscores.", "档案名必须是 3–16 位字母、数字或下划线。"),
|
||
("AccountNoticeAccountExists", "An account with that name already exists.", "同名账户已经存在。"),
|
||
("AccountNoticeStoreFailed", "Could not save the account store. Check the disk and try again.", "账户库写不进去:检查磁盘后重试。"),
|
||
("AccountNoticeNotFound", "That account no longer exists.", "这个账户已经不在了。"),
|
||
("AccountNoticeOther", "The account action failed. The full reason is in the launcher log.", "账户操作失败,完整原因在启动器日志里。"),
|
||
("AccountNoticeDismiss", "Dismiss", "关闭"),
|
||
("AccountNoticeTitleFailed", "Account action failed", "账户操作失败"),
|
||
("AccountNoticeTitleDone", "Account updated", "账户已更新"),
|
||
("AccountHintAuthlibReauth", "Enter the password again for {server}.", "请输入 {server} 的密码。"),
|
||
("AccountHintOfflineNoRelogin", "Local profiles have no server account to sign in again — create a new profile instead.", "本地档案没有可重新登录的服务器账户,请新建一个档案。"),
|
||
("SettingsGroupUpdate", "Updates", "更新"),
|
||
("SettingsUpdateCurrent", "Current version", "当前版本"),
|
||
("SettingsUpdateChannel", "Channel", "更新渠道"),
|
||
("SettingsUpdateChannelStable", "Stable", "稳定版"),
|
||
("SettingsUpdateAutoCheck", "Check for updates on startup", "启动时检查更新"),
|
||
("SettingsUpdateCheckNow", "Check now", "立即检查"),
|
||
("SettingsUpdateChecking", "Checking…", "正在检查…"),
|
||
("SettingsUpdateNever", "Not checked yet", "还没检查过"),
|
||
("SettingsUpdateUpToDate", "You are on the latest version ({version})", "已是最新({version})"),
|
||
("SettingsUpdateAvailable", "Version {version} is available ({size})", "有新版本 {version}({size})"),
|
||
("SettingsUpdateMissingArtifact", "Version {version} is out, but there is no build for this platform yet.", "{version} 已发布,但还没有本平台的安装包。"),
|
||
("SettingsUpdateFailed", "Check failed: {reason}", "检查失败:{reason}"),
|
||
("SettingsUpdateApply", "Download and install", "下载并安装"),
|
||
("SettingsUpdateApplying", "Downloading and verifying…", "正在下载并校验…"),
|
||
("SettingsUpdateReady", "Version {version} is ready — restart to use it.", "版本 {version} 已就位,重启后生效。"),
|
||
("SettingsUpdateNotes", "Release notes: {notes}", "更新说明:{notes}"),
|
||
("SettingsUpdateForced", "This update is required", "这是一次强制更新"),
|
||
("SettingsUpdateLastChecked", "Last check", "上次检查"),
|
||
("SettingsUpdateHint", "Downloads are verified with SHA256 before they touch the launcher. The running copy stays as it is until you restart.", "更新包在落到启动器之前会做 SHA256 校验;正在运行的这一份在你重启之前不会变。"),
|
||
("UpdateBannerTitleAvailable", "Version {version} is available", "发现新版本 {version}"),
|
||
("UpdateBannerBodyAvailable", "Download size {size}", "下载体积 {size}"),
|
||
("UpdateBannerTitleReady", "Update ready", "更新已就位"),
|
||
("UpdateBannerBodyReady", "Version {version} will run after a restart.", "重启后运行版本 {version}。"),
|
||
("UpdateBannerTitleFailed", "Update failed", "更新失败"),
|
||
("UpdateBannerApplying", "Downloading the update…", "正在下载更新…"),
|
||
("UpdateBannerInstall", "Download and install", "下载并安装"),
|
||
("UpdateBannerDismiss", "Skip this version", "忽略这个版本"),
|
||
("UpdateBannerRestartNow", "Restart now", "立即重启"),
|
||
("UpdateBannerRetry", "Try again", "重试"),
|
||
];
|