修复全页面走查发现的问题(第三批:转发、i18n、自聊天显示名)
第4章 批量转发
- 确认弹层里那栏留言是个只读 <div>,需求 4.19 与对接文档要求的"附加留言"根本没法填,
comment 永远是空串。改成真实输入框(方括号那段是占位文案不是内容),并补 input 的样式。
- 无条数上限:服务端硬卡 sources ≤ 100(im_http.go:3560),超了直接 400 MALFORMED_REQUEST,
用户只看到一句无从下手的"转发失败"。本地先拦并说清超了多少。
- 无目标数上限:bootstrap 下发 limits.max_forward_targets=9、服务端硬限 20,前端两个都不读。
读各视图已在写的同一份 bootstrap 缓存,不额外发请求;选择视图也补上错误显示。
i18n(这几条影响真实页面,不只是演示页)
- menu_item_forward "重定向" → "转发",forward_to "重定向消息" → "转发给"。Forward 被当网络
术语直译了,第4章通篇和参考图用的都是"转发"。
- last_seen_timestamp 中英两侧都丢了 {timestamp} 占位符,离线时头部只显示"最后可见"没有时间。
- peers_messaging_disabled "成员间消息已禁用" → "对方已关闭消息"(原文是 Peer's)。
- search_no_results "搜索返回任何结果" 缺"无";icon_title_send "发信息" → "发送消息"。
- 已跑 build:i18n 同步 src/i18n.min/(那份才是打包进产物的)。
自聊天显示名
- topicDisplayName 不处理 slf,消息首页把"已保存的消息"显示成"未命名会话"。该显示名靠
Tinode.isSelfTopicName 特判得出、不在 public 里。集中到这个共享函数,所有调用点都受益。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
02b98cceae
commit
c9b8125013
+1
-1
@@ -614,7 +614,7 @@
|
||||
"obsolete": false
|
||||
},
|
||||
"last_seen_timestamp": {
|
||||
"translation": "Last seen",
|
||||
"translation": "Last seen: {timestamp}",
|
||||
"defaultMessage": "Last seen: {timestamp}",
|
||||
"description": "Label for the timestamp of when the user or topic was last online",
|
||||
"missing": false,
|
||||
|
||||
+6
-6
@@ -614,7 +614,7 @@
|
||||
"obsolete": false
|
||||
},
|
||||
"last_seen_timestamp": {
|
||||
"translation": "最后可见",
|
||||
"translation": "最后在线:{timestamp}",
|
||||
"defaultMessage": "Last seen: {timestamp}",
|
||||
"description": "Label for the timestamp of when the user or topic was last online",
|
||||
"missing": false,
|
||||
@@ -852,7 +852,7 @@
|
||||
"obsolete": false
|
||||
},
|
||||
"peers_messaging_disabled": {
|
||||
"translation": "成员间消息已禁用。",
|
||||
"translation": "对方已关闭消息。",
|
||||
"defaultMessage": "Peer's messaging is disabled.",
|
||||
"description": "Shown when the p2p peer's messaging is disabled",
|
||||
"missing": false,
|
||||
@@ -985,7 +985,7 @@
|
||||
"obsolete": false
|
||||
},
|
||||
"search_no_results": {
|
||||
"translation": "搜索返回任何结果",
|
||||
"translation": "搜索无结果",
|
||||
"defaultMessage": "Search returned no results",
|
||||
"description": "Text shown in contacts view when query returned no results.",
|
||||
"missing": false,
|
||||
@@ -1314,14 +1314,14 @@
|
||||
"obsolete": false
|
||||
},
|
||||
"menu_item_forward": {
|
||||
"translation": "重定向",
|
||||
"translation": "转发",
|
||||
"defaultMessage": "Forward",
|
||||
"description": "Forward message",
|
||||
"missing": false,
|
||||
"obsolete": false
|
||||
},
|
||||
"forward_to": {
|
||||
"translation": "重定向消息",
|
||||
"translation": "转发给",
|
||||
"defaultMessage": "Forward to",
|
||||
"missing": false,
|
||||
"obsolete": false
|
||||
@@ -1495,7 +1495,7 @@
|
||||
"obsolete": false
|
||||
},
|
||||
"icon_title_send": {
|
||||
"translation": "发信息",
|
||||
"translation": "发送消息",
|
||||
"defaultMessage": "Send message",
|
||||
"description": "Icon tool tip for sending a message",
|
||||
"missing": false,
|
||||
|
||||
Reference in New Issue
Block a user