Files
sideQuest-cn/rules.json
T
cat-shark d3db80c27b SideQuest 简体中文汉化工具包
把官方 SideQuest 桌面版(基线 1.4.1)汉化为简体中文,并产出可覆盖安装的 deb。

不修改任何上游源码:所有改动集中在 build.js 的补丁层,作用于已编译产物
(dist-electron 与 dist/sidequest-desktop),因此本工具包可独立于上游代码工作。

主要内容:
- 运行时汉化引擎 engine.js + 主进程统一注入 hook tail.js
  (应用有 7 个 data:text/html overlay 页且带严格 CSP,故用主进程 hook 一次覆盖全部窗口)
- 词典 1806 条(dict-a…i.json)+ 动态规则 137 条(rules.json)
- 纯 Node 实现的 asar 打包/解包 asar.js,零外部依赖
- 构建/试运行/安装/校验脚本

覆盖范围:主页、侧载、文件、应用、串流、设备设置、调试(Logcat)、无线、
全部弹窗、命令面板、日期与相对时间。内嵌商店为远程服务端渲染,不在范围内。
2026-10-11 18:09:36 +08:00

550 lines
9.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[
[
"^(.+) of (.+) free$",
"可用 $1 / 共 $2"
],
[
"^Search \\((.+)\\)$",
"搜索($1)"
],
[
"^Search (.+)$",
"搜索 $1"
],
[
"^Wireless headset \\(…(.{2,8})\\)$",
"无线头显(…$1)"
],
[
"^Wired device \\(…(.{2,8})\\)$",
"有线设备(…$1)"
],
[
"^Another app asked SideQuest to install this file\\. Continue only if you trust where it came from\\.$",
"另一个应用请求 SideQuest 安装此文件。仅当你信任其来源时才继续。"
],
[
"^Another app asked SideQuest to copy this file\\. Continue only if you trust where it came from\\.$",
"另一个应用请求 SideQuest 复制此文件。仅当你信任其来源时才继续。"
],
[
"^This permanently deletes this backup from disk\\. This can['’]t be undone\\.$",
"此操作将永久删除此备份(从磁盘删除)。此操作无法撤销。"
],
[
"^This permanently deletes these backups from disk\\. This can['’]t be undone\\.$",
"此操作将永久删除这些备份(从磁盘删除)。此操作无法撤销。"
],
[
"^Installed: v(.+)\\. Checking for updates…$",
"已安装:v$1。正在检查更新…"
],
[
"^Installed: v(.+)\\. Could not check for updates\\.$",
"已安装:v$1。无法检查更新。"
],
[
"^Restarting (.+)…$",
"正在重启 $1…"
],
[
"^Mover needs a component included in Meta Quest Developer Hub\\. SideQuest installs only that component\\.$",
"移动功能需要 Meta Quest Developer Hub 中包含的组件。SideQuest 只会安装该组件。"
],
[
"^Streaming needs a component included in Meta Quest Developer Hub\\. SideQuest installs only that component\\.$",
"串流需要 Meta Quest Developer Hub 中包含的组件。SideQuest 只会安装该组件。"
],
[
"^Connecting over Wi-Fi\\.\\.\\. Select Allow on your Quest if prompted\\.$",
"正在通过 Wi-Fi 连接…若 Quest 出现提示请选择「允许」。"
],
[
"^On = keep (.+) awake while it['’]s off your head \\(uses more battery\\); resets when the headset restarts\\.$",
"开启后,摘下头显时 $1 仍保持唤醒(更耗电);头显重启后重置。"
],
[
"^Another app asked SideQuest to (.+) this file\\. Continue only if you trust where it came from\\.$",
"另一个应用请求 SideQuest $1 此文件。仅当你信任其来源时才继续。"
],
[
"^Preview disabled — file is (.+) \\(over the (.+) limit\\)\\. Download to view\\.$",
"预览已禁用——文件为 $1(超出 $2 上限)。下载后查看。"
],
[
"^This permanently deletes (.+) from disk\\. This can['’]t be undone\\.$",
"此操作将永久删除 $1(从磁盘删除)。此操作无法撤销。"
],
[
"^(.+) needs a component included in Meta Quest Developer Hub\\. SideQuest installs only that component\\.$",
"$1 需要 Meta Quest Developer Hub 中包含的组件。SideQuest 只会安装该组件。"
],
[
"^(.+) doesn['’]t support proximity sensor control\\.$",
"$1 不支持接近传感器控制。"
],
[
"^(.+) is asleep — wake it \\(or reconnect\\) to change this\\.$",
"$1 处于休眠状态——请唤醒它(或重新连接)以更改此设置。"
],
[
"^You[’']re currently using (.+)\\.$",
"你当前正在使用 $1。"
],
[
"^Couldn['’]t load preview: (.+)$",
"无法加载预览:$1"
],
[
"^Update SideQuest on your headset to add$",
"更新头显上的 SideQuest,以将"
],
[
"^Install SideQuest on your headset to add$",
"安装头显上的 SideQuest,以将"
],
[
"^(.+) · now$",
"$1 · 现在"
],
[
"^(.+) · last seen (.+)$",
"$1 · 上次出现 $2"
],
[
"^(.+) · connected directly$",
"$1 · 直连"
],
[
"^(.+) partially disconnected — some connections may linger\\.$",
"$1 部分断开——部分连接可能仍然存在。"
],
[
"^(.+) — SideQuest Stream$",
"$1 — SideQuest 串流"
],
[
"^Installed: v(.+)\\. (.+)$",
"已安装:v$1。$2"
],
[
"^(\\d+) of (\\d+) files · (.+)$",
"共 $2 个文件中的 $1 个 · $3"
],
[
"^(.+) · 上次出现 (\\d+)(\\D+)$",
"$1 · 上次出现 $2$3"
],
[
"^· last seen (.+)$",
"· 上次出现 $1"
],
[
"^· now$",
"· 现在"
],
[
"^Back up · (.+)$",
"备份 · $1"
],
[
"^Restore · (.+)$",
"恢复 · $1"
],
[
"^Game files · (.+)$",
"游戏文件 · $1"
],
[
"^Game Optimizer · (.+)$",
"游戏优化器 · $1"
],
[
"^Battery (\\d+)% · Charging$",
"电量 $1% · 充电中"
],
[
"^Queued · (\\d+) files$",
"已排队 · $1 个文件"
],
[
"^Backed up · skipped (\\d+) unreadable files?$",
"已备份 · 跳过 $1 个无法读取的文件"
],
[
"^Custom: (\\d+) × (\\d+)$",
"自定义:$1 × $2"
],
[
"^Custom \\((\\d+) × (\\d+)\\)$",
"自定义($1 × $2)"
],
[
"^Downloading version (.+)…(.*)$",
"正在下载版本 $1…$2"
],
[
"^Downloading v(.+)…$",
"正在下载 v$1…"
],
[
"^Downloading (.+)…(\\s*\\d+%)?$",
"正在下载 $1…$2"
],
[
"^Downloading (.+) · (.+)$",
"正在下载 $1 · $2"
],
[
"^Copying (.+)…$",
"正在复制 $1…"
],
[
"^Copying (.+) · (.+)$",
"正在复制 $1 · $2"
],
[
"^Preparing (\\d+)/(\\d+)…$",
"正在准备 $1/$2…"
],
[
"^Preparing (.+)…$",
"正在准备 $1…"
],
[
"^Preparing (.+) · (.+)$",
"正在准备 $1 · $2"
],
[
"^Pushing (.+)…$",
"正在推送 $1…"
],
[
"^Pushing (.+) \\((.+)\\) · (.+)$",
"正在推送 $1($2)· $3"
],
[
"^Pushing (.+) · (.+)$",
"正在推送 $1 · $2"
],
[
"^Installing (.+) · (.+)$",
"正在安装 $1 · $2"
],
[
"^Uninstalling (.+)…$",
"正在卸载 $1…"
],
[
"^Restoring (.+)…$",
"正在恢复 $1…"
],
[
"^Finishing (.+)…$",
"正在完成 $1…"
],
[
"^Reading (.+)…$",
"正在读取 $1…"
],
[
"^Scanning (.+)…$",
"正在扫描 $1…"
],
[
"^Updating to v(.+)…$",
"正在更新到 v$1…"
],
[
"^Opening SideQuest on your (.+)…$",
"正在你的 $1 上打开 SideQuest…"
],
[
"^Opening (.+)…$",
"正在打开 $1…"
],
[
"^Proximity sensor disabled — (.+) will stay awake\\.$",
"接近传感器已禁用——$1 将保持唤醒。"
],
[
"^Proximity sensor turned off on (.+) — it'll stay awake on Wi-Fi\\.$",
"已关闭 $1 的接近传感器——它将在 Wi-Fi 下保持唤醒。"
],
[
"^Delete (\\d+) backups$",
"删除 $1 个备份"
],
[
"^Showing the last known values\\.(.*)$",
"显示最近已知的值。$1"
],
[
"^(.+) \\(…(.{2,8})\\)$",
"$1(…$2)"
],
[
"^(.+) \\(in-VR app\\) (.+)$",
"$1(VR 内应用)$2"
],
[
"^SideQuest \\(in-VR app\\)$",
"SideQuest(VR 内应用)"
],
[
"^(\\d+) of (\\d+) files installed\\.$",
"已安装 $1/$2 个文件。"
],
[
"^(\\d+) of (\\d+) files installed; (\\d+) failed$",
"已安装 $1/$2 个文件;$3 个失败"
],
[
"^(\\d+) of (\\d+) files installed$",
"已安装 $1/$2 个文件"
],
[
"^(\\d+) of (\\d+) free$",
"$1 / 共 $2 可用"
],
[
"^(.+) free of (.+)$",
"$1 可用,共 $2"
],
[
"^(.+) of (.+) files?$",
"共 $2 个文件中的 $1 个"
],
[
"^(\\d+) files$",
"$1 个文件"
],
[
"^(\\d+) file$",
"$1 个文件"
],
[
"^(\\d+) game files$",
"$1 个游戏文件"
],
[
"^(\\d+) selected items?$",
"已选 $1 项"
],
[
"^(\\d+) items?$",
"$1 项"
],
[
"^(\\d+) devices?$",
"$1 台设备"
],
[
"^(\\d+) apps?$",
"$1 个应用"
],
[
"^(\\d+) tasks?$",
"$1 个任务"
],
[
"^(\\d+) backups?$",
"$1 个备份"
],
[
"^(\\d+) skipped so far\\.$",
"目前已跳过 $1 个。"
],
[
"^All (\\d+) files installed\\.$",
"全部 $1 个文件已安装。"
],
[
"^(.+): All (\\d+) files installed\\.$",
"$1:全部 $2 个文件已安装。"
],
[
"^(.+): (\\d+) of (\\d+) files installed\\.(.+)?$",
"$1:已安装 $2/$3 个文件。"
],
[
"^(.+): (\\d+) of (\\d+) files installed; (\\d+) failed(.+)?$",
"$1:已安装 $2/$3 个文件;$4 个失败"
],
[
"^(.+) is not installed on the headset\\.$",
"头显上未安装 $1。"
],
[
"^(.+) queued in SideQuest\\.$",
"已在 SideQuest 中排队:$1"
],
[
"^(\\S+) installed\\.$",
"已安装 $1。"
],
[
"^(.+) is disconnected$",
"$1 已断开"
],
[
"^(.+) is connected$",
"$1 已连接"
],
[
"^(.+) disconnected\\.$",
"$1 已断开。"
],
[
"^(.+) connected$",
"$1 已连接"
],
[
"^Couldn't delete (.+)\\.$",
"无法删除 $1。"
],
[
"^Couldn't delete (.+)$",
"无法删除 $1"
],
[
"^Deleted (.+)$",
"已删除 $1"
],
[
"^Deleted profile \"(.+)\"$",
"已删除配置档“$1”"
],
[
"^Uninstall (.+)$",
"卸载 $1"
],
[
"^Uninstalling (.+)$",
"正在卸载 $1"
],
[
"^Installing (.+)$",
"正在安装 $1"
],
[
"^Downloading (.+)$",
"正在下载 $1"
],
[
"^Uploading (.+)$",
"正在上传 $1"
],
[
"^Not available on (.+)\\.$",
"$1 不支持。"
],
[
"^(.+) timed out\\. Keep the headset awake and try again\\.$",
"$1 超时。请保持头显唤醒后重试。"
],
[
"^(.+) failed: (.+)$",
"$1 失败:$2"
],
[
"^(.+) error: (.+)$",
"$1 错误:$2"
],
[
"^(Headset|Device) model: (.+)$",
"设备型号:$3"
],
[
"^(In-VR app|SideQuest) version: (.+)$",
"$1 版本:$3"
],
[
"^(.+) \\(this headset\\)$",
"$1(此头显)"
],
[
"^(.+) \\(asleep\\)$",
"$1(休眠中)"
],
[
"^(.+) \\(headset rejected the change\\)$",
"$1(头显拒绝了该更改)"
],
[
"^(\\d+) of (\\d+)$",
"$1 / $2"
],
[
"^Can't determine package for OBB \"(.+)\"\\. Rename it to main\\.$",
"无法确定 OBB「$1」对应的包名,请重命名为 main。"
],
[
"^Can't tell which app \"(.+)\" belongs to\\. OBB filenames must be main\\.$",
"无法判断「$1」属于哪个应用。OBB 文件名必须为 main。"
],
[
"^(.+) is missing on the headset after copying\\.$",
"复制后头显上缺少 $1。"
],
[
"^(.+) is running with no profile\\.$",
"$1 正在运行且未应用任何配置档。"
],
[
"^(.+) is (.+) on the headset, expected (.+)\\.$",
"头显上的 $1 为 $2,预期为 $3。"
],
[
"^(.+) does not support more than (\\d+) tracks? in total\\.$",
"$1 最多只支持 $2 条轨道。"
],
[
"^(\\d+)%%$",
"$1%"
],
[
"^App #(\\d+)$",
"应用 #$1"
],
[
"^(.+) profile$",
"$1 配置档"
],
[
"^(.+) presets?$",
"$1 预设"
],
[
"^Adding (.+)$",
"正在添加 $1"
],
[
"^Removing (.+)$",
"正在移除 $1"
],
[
"^Deleting (.+)$",
"正在删除 $1"
],
[
"^Copying (.+)$",
"正在复制 $1"
],
[
"^Moving (.+)$",
"正在移动 $1"
],
[
"^Rename (.+)$",
"重命名 $1"
],
[
"^Open (.+)$",
"打开 $1"
],
[
"^Send (.+)$",
"发送 $1"
]
]