Skip to content

Commit a4ae440

Browse files
committed
Cover the new Settings page in the interface copy
The zh dictionary needs the Plugins page lines and the page-list test counts the new page; the client bundle and the patch series follow. Fixes #2564 Docs-not-needed: the switch is one Settings row and one host module; docs/subsystems/core-host.md describes the team store, not plugin loading.
1 parent df2600b commit a4ae440

6 files changed

Lines changed: 28 additions & 4 deletions

File tree

‎core/client.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,12 @@ var ZH = {
13001300
"On by default for each of your Bots, on every turn: in its own chat, in groups, on schedules and when a friend uses it. A friend's own Bot never gets it.": "默认对你的每个 Bot 开启,每一轮都可用:它自己的聊天、群聊、定时任务,以及好友使用它时。好友自己的 Bot 永远拿不到。",
13011301
"No Bots": "没有 Bot",
13021302
"Scheduled tasks": "定时任务",
1303+
"A switch takes effect the next time FlyBot starts.": "开关在下次启动 FlyBot 时生效。",
1304+
"Restart FlyBot to apply the switches you changed.": "重启 FlyBot 后,你改动的开关才会生效。",
1305+
"Chat with a friend's Bots on a Bot Social server.": "在 Bot Social 服务器上与朋友的 Bot 聊天。",
1306+
"Run Bots as a tree under a coordinator.": "把 Bot 组织成树,由协调者带队。",
1307+
"Read the team activity as a timeline.": "用时间线查看团队活动。",
1308+
"Run workflow graphs across several Bots.": "跨多个 Bot 运行工作流图。",
13031309
"Scheduled tasks · {count}": "定时任务 · {count}",
13041310
"Every day": "每天",
13051311
"Every {count} days": "每 {count} 天",

‎core/src/client/i18n.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,12 @@ const ZH = {
12541254
'On by default for each of your Bots, on every turn: in its own chat, in groups, on schedules and when a friend uses it. A friend\'s own Bot never gets it.': '默认对你的每个 Bot 开启,每一轮都可用:它自己的聊天、群聊、定时任务,以及好友使用它时。好友自己的 Bot 永远拿不到。',
12551255
'No Bots': '没有 Bot',
12561256
'Scheduled tasks': '定时任务',
1257+
'A switch takes effect the next time FlyBot starts.': '开关在下次启动 FlyBot 时生效。',
1258+
'Restart FlyBot to apply the switches you changed.': '重启 FlyBot 后,你改动的开关才会生效。',
1259+
'Chat with a friend\'s Bots on a Bot Social server.': '在 Bot Social 服务器上与朋友的 Bot 聊天。',
1260+
'Run Bots as a tree under a coordinator.': '把 Bot 组织成树,由协调者带队。',
1261+
'Read the team activity as a timeline.': '用时间线查看团队活动。',
1262+
'Run workflow graphs across several Bots.': '跨多个 Bot 运行工作流图。',
12571263
'Scheduled tasks · {count}': '定时任务 · {count}',
12581264
'Every day': '每天',
12591265
'Every {count} days': '每 {count} 天',

‎core/test/settings-page-slot.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ test('a page whose plugin is gone falls back to General, and without plugins the
5656
const nodes = all(tree)
5757
assert.equal(text(nodes.find(node => node.type === 'h2')), 'General')
5858
const items = nodes.filter(node => node.type === 'button' && node.props.className === 'bt-settings-item').map(text)
59-
assert.deepEqual(items.slice(0, 7), ['General', 'Bots', 'Group chats', 'Projects', 'Connectors', 'Capabilities', 'Scheduled tasks'])
59+
assert.deepEqual(items.slice(0, 7), ['General', 'Bots', 'Group chats', 'Projects', 'Connectors', 'Capabilities', 'Plugins'])
6060
assert.equal(nodes.some(node => node.props?.entry !== undefined), false)
6161
})

‎patches/ds-bot/0001-core-fixes.patch‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ diff --git a/src/client/i18n.js b/src/client/i18n.js
14961496
'Model call': '模型调用',
14971497
'This window': '这个窗口',
14981498
'Error log': '错误日志',
1499-
@@ -771,12 +771,22 @@ const ZH = {
1499+
@@ -771,12 +771,28 @@ const ZH = {
15001500
'Add at least one more Bot': '再至少添加一个 Bot',
15011501
Members: '成员',
15021502
// Connectors and scheduled tasks
@@ -1509,6 +1509,12 @@ diff --git a/src/client/i18n.js b/src/client/i18n.js
15091509
+ 'On by default for each of your Bots, on every turn: in its own chat, in groups, on schedules and when a friend uses it. A friend\'s own Bot never gets it.': '默认对你的每个 Bot 开启,每一轮都可用:它自己的聊天、群聊、定时任务,以及好友使用它时。好友自己的 Bot 永远拿不到。',
15101510
+ 'No Bots': '没有 Bot',
15111511
'Scheduled tasks': '定时任务',
1512+
+ 'A switch takes effect the next time FlyBot starts.': '开关在下次启动 FlyBot 时生效。',
1513+
+ 'Restart FlyBot to apply the switches you changed.': '重启 FlyBot 后,你改动的开关才会生效。',
1514+
+ 'Chat with a friend\'s Bots on a Bot Social server.': '在 Bot Social 服务器上与朋友的 Bot 聊天。',
1515+
+ 'Run Bots as a tree under a coordinator.': '把 Bot 组织成树,由协调者带队。',
1516+
+ 'Read the team activity as a timeline.': '用时间线查看团队活动。',
1517+
+ 'Run workflow graphs across several Bots.': '跨多个 Bot 运行工作流图。',
15121518
+ 'Scheduled tasks · {count}': '定时任务 · {count}',
15131519
'Every day': '每天',
15141520
'Every {count} days': '每 {count} 天',

‎patches/ds-bot/0008-client-bundle.patch‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ diff --git a/client.js b/client.js
816816
"Model call": "模型调用",
817817
"This window": "这个窗口",
818818
"Error log": "错误日志",
819-
@@ -821,12 +821,22 @@ var ZH = {
819+
@@ -821,12 +821,28 @@ var ZH = {
820820
"Add at least one more Bot": "再至少添加一个 Bot",
821821
Members: "成员",
822822
// Connectors and scheduled tasks
@@ -829,6 +829,12 @@ diff --git a/client.js b/client.js
829829
+ "On by default for each of your Bots, on every turn: in its own chat, in groups, on schedules and when a friend uses it. A friend's own Bot never gets it.": "默认对你的每个 Bot 开启,每一轮都可用:它自己的聊天、群聊、定时任务,以及好友使用它时。好友自己的 Bot 永远拿不到。",
830830
+ "No Bots": "没有 Bot",
831831
"Scheduled tasks": "定时任务",
832+
+ "A switch takes effect the next time FlyBot starts.": "开关在下次启动 FlyBot 时生效。",
833+
+ "Restart FlyBot to apply the switches you changed.": "重启 FlyBot 后,你改动的开关才会生效。",
834+
+ "Chat with a friend's Bots on a Bot Social server.": "在 Bot Social 服务器上与朋友的 Bot 聊天。",
835+
+ "Run Bots as a tree under a coordinator.": "把 Bot 组织成树,由协调者带队。",
836+
+ "Read the team activity as a timeline.": "用时间线查看团队活动。",
837+
+ "Run workflow graphs across several Bots.": "跨多个 Bot 运行工作流图。",
832838
+ "Scheduled tasks · {count}": "定时任务 · {count}",
833839
"Every day": "每天",
834840
"Every {count} days": "每 {count} 天",

‎patches/ds-bot/files/test/settings-page-slot.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ test('a page whose plugin is gone falls back to General, and without plugins the
5656
const nodes = all(tree)
5757
assert.equal(text(nodes.find(node => node.type === 'h2')), 'General')
5858
const items = nodes.filter(node => node.type === 'button' && node.props.className === 'bt-settings-item').map(text)
59-
assert.deepEqual(items.slice(0, 7), ['General', 'Bots', 'Group chats', 'Projects', 'Connectors', 'Capabilities', 'Scheduled tasks'])
59+
assert.deepEqual(items.slice(0, 7), ['General', 'Bots', 'Group chats', 'Projects', 'Connectors', 'Capabilities', 'Plugins'])
6060
assert.equal(nodes.some(node => node.props?.entry !== undefined), false)
6161
})

0 commit comments

Comments
 (0)