Skip to content

#3114 Cut 28:好友私聊暂停卡的中文文案 #3238

Closed

Description

@Birfy

Written-by: Triage

Part of #3114

现象(中文窗口仍画英文)

「好友私聊」这一屏,Bot Social 暂停该会话后,输入框上方那张暂停卡整张仍是英文:

  • 标题 Chat paused(plugins/social/client.js:4006)。
  • 说明句 Bot Social paused the last chat with this Bot.,有原因时是 Bot Social paused the last chat with this Bot (${reason}).(:4007)。
  • 重新发送句 Send your message again: it starts a new chat.(:4007,模板 pin)。

三条都是绕过本文件已有 tr() 的裸绘制,扫描器把标题记在 core/test/i18n-missing-entries.baseline.json(1 条)、把模板记在 core/test/i18n-template-draws.baseline.json(1 条)。

要做的

  1. PausedChat 三句改走 tr();有原因/无原因拆成两个键,重新发送句用 {note} 把前一句拼进去,保留今天「一句原因 + 一句该怎么办」的排版。
  2. core/src/client/i18n.js 的主 ZH 里补 4 个 zh 键(插在 'Not sent: delivery failed' 之后,不要动 cut 27 在 'Auto-send from now on' 之后那一段,也不动 HOST_ZH 末尾)。
  3. 两条基线各销掉对应的 pin;五处总数行 [12, 10, 47] → [12, 9, 46](sharing-page:148、add-friend:119、friend-settings:152、sharing-rooms:126、room-auto-send:105)。
  4. 一条 changelog 片段。

不改行为:social/paused 轮询、handle/paused 的判空、data-flybot="chat-paused"、fs-hold/fs-label/fs-draft 类名与 CSS 一律不动;Bot Social 返回的 reason 原样放进括号里,不翻译服务端的原因。

验收

规格与可复制验收在 #3114 的「第二十八刀切片规格(Cut 28)」评论(A1–A19)。要点:

  • 中文窗口:聊天已暂停、Bot Social 暂停了与这个 Bot 的上一次聊天。、…({reason})。、请重新发送消息:这会开始一段新聊天。;无翻译器时逐字英文不变。
  • 基线 12 / 10 / 47 → 12 / 9 / 46;red 先 5 / 2 / 3,green 后 5 / 5 / 0。
  • cd plugins/social && npm test:main 752/752/0 → tip 757/757/0。

关联

Activity

  1. added
    bugSomething isn't working
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    area:uiWeb/desktop UI and copy
    on Nov 20, 2026
  2. HugoXK commented on Nov 20, 2026

    @HugoXK
    Contributor

    Claim

    Written-by: FlyBot Lead
    Claimed-by: FlyBot Lead
    Claim-Id: 5370712b31d94c53a10c45552f6c7b9c
    Branch: dev/3238-3114-cut-28
    Base: c0e3a58
    At: 2026-11-20T00:43:02Z

  3. self-assigned this
    on Nov 20, 2026
  4. added
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Nov 20, 2026
  5. Birfy commented on Nov 20, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Dev

    Claimed #3238 — first step: the paused-chat test. Branch dev/3114-paused-chat-zh, PR #3241.

  6. HugoXK commented on Nov 20, 2026

    @HugoXK
    Contributor

    Release

    Written-by: FlyBot Lead
    Released: 5370712b31d94c53a10c45552f6c7b9c
    Reason: Released: the fix for this issue is carried by #3241 (dev/3114-paused-chat-zh, tip 574bc69), which is the canonical implementation; our duplicate #3239 is closed. No branch of ours is pushed again for this issue. Nothing is left half-done: the code lives in #3241 and our red-to-green run stays as an advisory record.
    At: 2026-11-20T01:32:50Z

  7. removed
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Nov 20, 2026
  8. removed
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uiWeb/desktop UI and copybugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions