diff --git a/apps/web/app/components/files/dialogs.tsx b/apps/web/app/components/files/dialogs.tsx
index 643bca6b..59525b02 100644
--- a/apps/web/app/components/files/dialogs.tsx
+++ b/apps/web/app/components/files/dialogs.tsx
@@ -145,7 +145,7 @@ export function UploadButton({ root, path }: { root: FileRoot; path: string }) {
setBusy(null);
if (input.current) input.current.value = "";
if (ok) toast.success(`已上传 ${ok} 个文件到 ${displayPath(root, path)}`);
- if (failed.length) toast.error(`${failed.length} 个文件没有上传`, { description: failed.join("\n") });
+ if (failed.length) toast.error(`${failed.length} 个文件上传失败`, { description: failed.join("\n") });
};
return (
@@ -190,7 +190,7 @@ export function MkdirDialog({
onOpenChange(false);
onCreated?.(r.path);
},
- onError: (e) => setErr(filesErrorReason(e) === "exists" ? "同名项已存在" : filesErrorText(e)),
+ onError: (e) => setErr(filesErrorReason(e) === "exists" ? "同名已存在" : filesErrorText(e)),
},
);
};
@@ -232,13 +232,13 @@ export function MkdirDialog({
// ─── 重命名 ─────────────────────────────────────────────────────
const SUGGEST_REASON: Record = {
- identity_uncertain: "识别不可信,没有推荐名",
+ identity_uncertain: "认不准作品,没有推荐名",
};
const TEMPLATE_SOURCE: Record = {
entity: "作品覆盖",
root: "媒体库目录",
global: "全局",
- override: "覆写",
+ override: "保留原文件名",
};
function suggestReasonText(r: string | null): string {
@@ -418,17 +418,17 @@ export function RenameDialog({
{suggest.isPending && !suggested ? (
- 取推荐名…
+ 生成推荐名…
) : suggest.error ? (
-
{filesErrorText(suggest.error, "取推荐名失败")}
+
{filesErrorText(suggest.error, "生成推荐名失败")}
) : suggested && !suggested.name ? (
{suggestReasonText(suggested.reason)}
) : suggested?.name ? (
<>
{suggested.name === entry.name
- ? "当前名称与命名模板一致"
+ ? "已符合命名模板"
: usingSuggestion
? "已填入推荐名"
: `推荐名:${suggested.name}`}
@@ -460,17 +460,17 @@ export function RenameDialog({
{!isDir ? (
- 同名附属文件一起改
- 主干相同的字幕、NFO、图片
+ 附属文件一起改名
+ 主文件名相同的字幕、NFO 和图片
-
+
) : null}
{changed && !problem && !taken ? (
{preview.isPending ? (
- 预览中
+ 预览中…
) : null}
{pvErr ?
{filesErrorText(pvErr)} : null}
@@ -487,10 +487,10 @@ export function RenameDialog({
))}
{pv.assetLocations > 0 ? (
-
同步 {pv.assetLocations} 条文件位置,写一条整理记录。
+
会同步 {pv.assetLocations} 条文件位置,并写一条整理记录。
) : null}
{pv.bindings.length > 0 ? (
-
这是作品或季的绑定目录。改名后旧绑定标为已替代,之后整理用新目录。
+
这是作品或季的绑定目录。改名后旧绑定作废,之后整理用新目录。
) : null}
>
) : null}
@@ -570,11 +570,11 @@ export function TransferDialog({
const ok = r.executed?.succeeded.length ?? 0;
const failed = r.executed?.failed ?? [];
const recordId = r.executed?.recordId;
- const msg = `${mode === "move" ? "已移动" : "已复制"} ${ok} 项${failed.length ? `,${failed.length} 项失败` : ""}`;
+ const msg = `${mode === "move" ? "已移动" : "已复制"} ${ok} 项${failed.length ? `,${failed.length} 项失败` : ""}`;
(failed.length ? toast.warning : toast.success)(msg, {
description: failed
.slice(0, 3)
- .map((f) => `${baseName(f.path)}:${f.message}`)
+ .map((f) => `${baseName(f.path)}:${f.message}`)
.join("\n"),
action: recordId
? { label: "整理记录", onClick: () => window.location.assign(`/console/organize/${recordId}`) }
@@ -599,8 +599,8 @@ export function TransferDialog({
{mode === "move" ? "移动到…" : "复制到…"}
- {items.length === 1 ? baseName(items[0]?.path ?? "") : `${items.length} 项`} · 先预览再执行。跨卷移动按复制
- → 核验 → 删源。
+ {items.length === 1 ? baseName(items[0]?.path ?? "") : `${items.length} 项`} ·
+ 跨卷移动会先复制、核验,再删除源文件。
@@ -636,9 +636,7 @@ export function TransferDialog({
}}
className="max-h-72 md:max-h-96"
/>
-
- 可选可写的媒体库目录或 Alist 存储;本机和 Alist 之间会上传或下载。
-
+
目标可以是可写的媒体库目录或 Alist 存储。
{target && targetRoot ? (
@@ -647,11 +645,11 @@ export function TransferDialog({
{displayPath(targetRoot, target.path)}
) : (
-
在左侧选择目标目录。
+
选择目标目录。
)}
{dry.isPending ? (
- 生成预览
+ 生成预览…
) : null}
{err ?
{err} : null}
@@ -666,15 +664,15 @@ export function TransferDialog({
{plan.freeBytes != null ? ` · 剩余 ${formatBytes(plan.freeBytes, 1)}` : ""}
{conflicts.length ? (
-
冲突 {conflicts.length}(跳过,不覆盖)
+
{conflicts.length} 项目标已存在 · 跳过
) : null}
{plan.pairs.some((p) => p.registered) ? (
-
含已整理文件,执行后同步位置
+
含已整理文件,会同步文件位置
) : null}
{hnrBlocked ? (
- {plan.hnrBlocks.length} 项做种中且 H&R 未满足,不能移动。改用复制,或等 H&R 满足后再移动。
+ {plan.hnrBlocks.length} 项做种中且 H&R 未满足,不能移动。可以改用复制。
) : null}
- {plan.truncated ? (
-
源文件过多,预览只列出前一部分,执行时处理全部。
- ) : null}
+ {plan.truncated ?
文件太多,只列出前一部分。执行时全部处理。 : null}
{plan.pairs.map((p) => {
const sr = rootById.get(p.source.root);
@@ -762,7 +758,7 @@ export function DeleteDialog({
useEffect(() => {
checkMutate(
{ idempotencyKey: `${key}-check`, items, mode: "trash", dryRun: true, retireAssets: false, unbind: false },
- { onError: (e) => setErr(filesErrorText(e, "引用检查失败")) },
+ { onError: (e) => setErr(filesErrorText(e, "删除前检查失败")) },
);
}, [checkMutate, items, key]);
@@ -803,7 +799,7 @@ export function DeleteDialog({
(r.failed.length ? toast.warning : toast.success)(
mode === "trash" ? `已移入回收站 ${n} 项` : `已永久删除 ${n} 项`,
{
- description: r.failed.map((f) => `${baseName(f.path)}:${f.message}`).join("\n") || undefined,
+ description: r.failed.map((f) => `${baseName(f.path)}:${f.message}`).join("\n") || undefined,
action:
mode === "trash"
? { label: "回收站", onClick: () => window.location.assign("/console/files/trash") }
@@ -816,7 +812,7 @@ export function DeleteDialog({
const reason = filesErrorReason(e);
setErr(
reason === "permanent_disabled"
- ? "设置里未开启永久删除(files.allowPermanentDelete)"
+ ? "永久删除没有开启。改用回收站"
: reason === "approval_required"
? "用 API Key 删除,每次都要审批"
: filesErrorText(e),
@@ -829,13 +825,13 @@ export function DeleteDialog({
);
if (q.error)
@@ -242,7 +242,7 @@ function Children({
if (!dirs.length)
return (
- 无子目录
+ 没有子目录
);
return (
@@ -293,7 +293,7 @@ function Children({
{paginate && dirs.length > 0 ? : null}
{q.data?.truncated ? (
- 子目录过多,只列出一部分
+ 子目录太多,只列出一部分
) : null}
diff --git a/apps/web/app/components/files/directory-dialog.tsx b/apps/web/app/components/files/directory-dialog.tsx
index 779269a7..74cfdb66 100644
--- a/apps/web/app/components/files/directory-dialog.tsx
+++ b/apps/web/app/components/files/directory-dialog.tsx
@@ -43,8 +43,10 @@ export function DirectoryDialog({
) : null}
{it.skipped === "below_min_size" ? (
- 低于最小体积,没有查候选。
+ 文件小于最小体积,没有查找候选。
) : null}
{it.warnings.map((w) => (
@@ -132,7 +132,7 @@ export function IdentifyPanel({
{c.year ? ` (${c.year})` : ""}
置信 {LEVEL[c.level]?.label ?? c.level}
- {c.mediaEntityId ? null : 仅 TMDB}
+ {c.mediaEntityId ? null : 不在媒体库}
{[
diff --git a/apps/web/app/components/files/mock.ts b/apps/web/app/components/files/mock.ts
index 635ea41d..71711b00 100644
--- a/apps/web/app/components/files/mock.ts
+++ b/apps/web/app/components/files/mock.ts
@@ -951,7 +951,7 @@ function organize(body: {
recordId: body.dryRun || conflict ? null : `rec-${++seq}`,
taskId: body.dryRun || conflict ? null : `task-${seq}`,
warnings: items.some((x) => x.season != null) && !tv ? ["电影不使用季/集覆写"] : [],
- error: conflict ? { code: "plan_blocked", message: "目标已存在同名文件,按「交给待处理」整组不执行" } : null,
+ error: conflict ? { code: "plan_blocked", message: "目标已存在同名文件,整组不执行" } : null,
action: body.action,
entity: items.some((x) => x.external)
? { provider: "tmdb", externalId: "95396", created: true, title: "人生切割术" }
diff --git a/apps/web/app/components/files/model.test.ts b/apps/web/app/components/files/model.test.ts
index 9d7c2112..20b60395 100644
--- a/apps/web/app/components/files/model.test.ts
+++ b/apps/web/app/components/files/model.test.ts
@@ -312,7 +312,7 @@ describe("transferTargetProblem(U13)", () => {
];
it("目标就是源所在目录 / 在源目录之内时拦下", () => {
expect(transferTargetProblem(items, { root: "dl", path: "a" })).toMatch(/已在这个目录里/);
- expect(transferTargetProblem(items, { root: "dl", path: "pack/sub" })).toMatch(/目标在源目录之内/);
+ expect(transferTargetProblem(items, { root: "dl", path: "pack/sub" })).toMatch(/目标不能是 pack 或它的子目录/);
expect(transferTargetProblem([{ root: "dl", path: "x.mkv" }], { root: "dl", path: "" })).toMatch(/已在/);
});
it("其他目录、其他根放行", () => {
@@ -370,7 +370,7 @@ describe("识别远端回填(S-7)", () => {
{ ...other, taskId: "run-1", status: "failed", error: "超时" } as never,
);
expect(f.remoteTaskId).toBeNull();
- expect(f.items[0]?.warnings).toEqual(["远端查询失败,只有本地结果:超时"]);
+ expect(f.items[0]?.warnings).toEqual(["TMDB 查询失败,只显示本地结果:超时"]);
});
});
diff --git a/apps/web/app/components/files/model.ts b/apps/web/app/components/files/model.ts
index 81e44dd6..0e44c95d 100644
--- a/apps/web/app/components/files/model.ts
+++ b/apps/web/app/components/files/model.ts
@@ -15,11 +15,11 @@ export type StatusView = { label: string; tone: StatusTone; hint?: string };
/** 行主状态 → 徽标(文字必带,不只靠颜色) */
export function entryStatusView(e: Pick): StatusView | null {
- if (e.escape) return { label: "链接越界", tone: "destructive", hint: "符号链接指向登记目录之外,所有操作已禁用" };
+ if (e.escape) return { label: "链接越界", tone: "destructive", hint: "符号链接指向登记目录之外,不能操作" };
const s: FileStatus = e.status;
switch (s) {
case "temp":
- return { label: "未完成", tone: "neutral", hint: "下载器或整理过程中的未完成文件" };
+ return { label: "未完成", tone: "neutral", hint: "下载或整理还没完成的临时文件" };
case "downloading":
return {
label: e.download?.progress != null ? `下载中 ${Math.floor(e.download.progress * 100)}%` : "下载中",
@@ -44,7 +44,7 @@ export const FILTER_CHIPS = [
{ value: "unidentified", label: "未识别" },
{ value: "registered", label: "已整理" },
{ value: "downloading", label: "下载中" },
- { value: "temp", label: "未完成下载" },
+ { value: "temp", label: "未完成" },
] as const;
export const SORT_OPTIONS = [
@@ -100,7 +100,7 @@ export function opDisabledReason(op: FileOp, e: FileEntry, root: Pick(items: T[], max: number): (T | null)[] {
export function nameProblem(name: string): string | null {
const n = name.trim();
if (!n) return "名称不能为空";
- if (n === "." || n === "..") return "不能用 . 或 ..";
+ if (n === "." || n === "..") return "名称不能是 . 或 ..";
if (/[/\\]/.test(n)) return "名称不能包含 / 或 \\";
// biome-ignore lint/suspicious/noControlCharactersInRegex: 过滤控制字符
if (/[\u0000-\u001f]/.test(n)) return "名称不能包含控制字符";
- if (n.length > 255) return "名称过长";
+ if (n.length > 255) return "名称不能超过 255 个字符";
return null;
}
@@ -318,7 +318,7 @@ export function deleteBlockText(b: string | null): { text: string; soft: boolean
case "needs_unbind":
return { text: "是作品或季的绑定目录,勾选「解除路径绑定」后才能删除", soft: true };
case "root_unavailable":
- return { text: "目录离线,不能确认文件状态", soft: false };
+ return { text: "目录离线,无法确认文件状态", soft: false };
case "not_found":
return { text: "文件已不存在", soft: false };
case "escape":
@@ -557,7 +557,7 @@ const REMOTE_PENDING_WARNING = /^远端候选在后台查询/;
export function applyIdentifyCompleted(r: FilesIdentifyResult, p: IdentifyCompletedPayload): FilesIdentifyResult {
if (!r.remoteTaskId || p.taskId !== r.remoteTaskId) return r;
if (p.status === "failed") {
- const note = `远端查询失败,只有本地结果${p.error ? `:${p.error.slice(0, 200)}` : ""}`;
+ const note = `TMDB 查询失败,只显示本地结果${p.error ? `:${p.error.slice(0, 200)}` : ""}`;
return {
...r,
remoteTaskId: null,
diff --git a/apps/web/app/components/files/shortcuts-dialog.tsx b/apps/web/app/components/files/shortcuts-dialog.tsx
index 2d845dd7..3a19a7a8 100644
--- a/apps/web/app/components/files/shortcuts-dialog.tsx
+++ b/apps/web/app/components/files/shortcuts-dialog.tsx
@@ -9,11 +9,11 @@ const KEYS: [string, string][] = [
["Ctrl/⌘+A", "全选"],
["Ctrl/⌘+Enter", "整理选中项"],
["F2", "重命名"],
- ["Del", "删除(先进回收站)"],
+ ["Del", "删除(移入回收站)"],
["/", "搜索当前目录"],
["Esc", "清除选择"],
["Shift+F10 / 菜单键", "打开操作菜单"],
- ["拖到目录", "移动到(按住 Alt 复制),先出预览"],
+ ["拖到目录", "移动(按住 Alt 复制),先预览"],
["?", "显示这张表"],
];
diff --git a/apps/web/app/components/organize-wizard/entity-picker.tsx b/apps/web/app/components/organize-wizard/entity-picker.tsx
index 315bd7b6..8159365b 100644
--- a/apps/web/app/components/organize-wizard/entity-picker.tsx
+++ b/apps/web/app/components/organize-wizard/entity-picker.tsx
@@ -177,7 +177,7 @@ export function EntityPicker({
) : null}
{remote.length ? (
<>
- TMDB 候选 · 选中后执行时新建作品
+ TMDB 候选 · 选中后整理时新建作品