Files
openchamber-android-native/lib/l10n/en_tools.dart
T
blumia 7b5bccf28f feat: English and Chinese, and selectable chat text
- settings → general → language picks system, Chinese or English; the
  choice is stored on the device and read before the first frame
- our Chinese strings are translated through tr()/trArgs() and AppText,
  with the English in lib/l10n/en_*.dart; a missing entry falls back to
  Chinese and a test checks that every literal in lib has one
- AppText rebuilds on a language change (it depends on the resolved
  locale), so const text and whole pages switch at once; the built-in
  date/time pickers and selection menu follow the same language
- server and user data (titles, messages, prompts, paths) is never
  translated
- the chat list sits in a SelectionArea: long-press selects message text
  and shows the copy/select-all menu
- bump to 0.5.2
2026-11-26 09:04:25 +08:00

250 lines
10 KiB
Dart
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.
// English strings for one part of the app; merged into L10n's table. Keys are
// the Chinese text the code writes, including {0}, {1} placeholders for text
// that is built from parts.
const Map<String, String> enTools = {
// settings index
'设置': 'Settings',
'常规': 'General',
'语言': 'Language',
'跟随系统、中文或 English': 'Follow the system, Chinese or English',
'通用': 'Agent tools',
'智能体工具与记忆': 'Agent tools and memory',
'聊天': 'Chat',
'追问处理行为': 'Follow-up behavior',
'外观': 'Appearance',
'仅当前设备生效,不同步到服务器':
'Applies to this device only; not synced to the server',
'主题': 'Theme',
'主题模式与主题色': 'Theme mode and color',
'宠物': 'Pet',
'导入、启用与大小': 'Import, enable and size',
'帮助与关于': 'Help & about',
'关于': 'About',
'版本、服务端与开源许可': 'Version, server and open-source licenses',
// general: agent tools
'在聊天中': 'In chat',
'图表和原型': 'Charts and prototypes',
'让智能体在聊天中展示图表、表格、示意图和界面草图(与你的文件隔离),并请你在其中选择一个选项。':
'Let the agent show charts, tables, diagrams and UI sketches in chat (isolated from your files) and ask you to pick one of them.',
'图像': 'Images',
'让智能体用你选择的模型生成和编辑图像,费用由该模型的提供商收取。':
'Let the agent generate and edit images with the model you choose; the model\'s provider charges for it.',
'图像模型': 'Image model',
'你的提供商中没有图像模型': 'Your provider has no image models',
'不指定': 'None',
'密钥': 'Secrets',
'允许智能体在聊天中的私密卡片上向你索取 API 密钥、令牌或密码。值不会进入对话。':
'Let the agent ask you for API keys, tokens or passwords on a private card in chat. Values never enter the conversation.',
'通知': 'Notifications',
'工作完成或卡住时,智能体会通知你。':
'The agent notifies you when work finishes or gets stuck.',
'智能体知道的内容': 'What the agent knows',
'记忆': 'Memory',
'跨会话记住关于你和每个项目的事实。':
'Remember facts about you and each project across sessions.',
'项目知识': 'Project knowledge',
'让智能体读取并更新项目的笔记、待办和计划。':
'Let the agent read and update the project\'s notes, todos and plans.',
'用量限额': 'Usage limits',
'让智能体查看各提供商的限额及重置时间。':
'Let the agent check each provider\'s limits and reset times.',
'未选择': 'Not selected',
'默认': 'Default',
'默认模型': 'Default model',
'整理记忆': 'Tidy memory',
'整理记忆使用的模型': 'Model for tidying memory',
'知道了': 'Got it',
'每天一次,在没有会话运行时,智能体会在后台整理记忆:合并重复条目,删除已过时或项目文档中已有的内容。':
'Once a day, when no session is running, the agent tidies memory in the background: merging duplicates and removing entries that are obsolete or already in the project docs.',
'保存失败:{0}': 'Couldn\'t save: {0}',
'保存失败': 'Couldn\'t save',
'未知错误': 'Unknown error',
// language
'中文': 'Chinese',
'当前:{0}': 'Current: {0}',
'界面文字与系统自带的日期、时间选择器会一起切换。':
'The UI text switches together with the system\'s date and time pickers.',
// chat behavior
'运行中按发送时,消息默认怎么处理。与网页端设置同步。':
'What happens by default when you press send while a run is in progress. Synced with the web client\'s setting.',
'转向': 'Steer',
'排队': 'Queue',
'转向:在下一步加入当前回合,工作继续。':
'Steer: joins the current turn at the next step and work continues.',
'排队:等当前回合结束后再发送。':
'Queue: sends after the current turn ends.',
// theme
'跟随系统': 'Follow system',
'浅色': 'Light',
'深色': 'Dark',
'主题模式': 'Theme mode',
'主题色': 'Accent color',
'主题色 {0}': 'Accent color {0}',
'主题只保存在本机,不随服务器同步。':
'The theme is stored on this device only and does not sync with the server.',
// pet
'默认不提供宠物;宠物包只存放在本机。':
'No pet is included; pet packs stay on this device.',
'尚未导入宠物': 'No pet imported',
'导入一个宠物包(.zip)后,它会站在输入框上方。':
'Import a pet pack (.zip) and it will stand above the input box.',
'导入宠物包': 'Import pet pack',
'选择宠物包(.zip)': 'Select a pet pack (.zip)',
'已导入 {0}': 'Imported {0}',
'导入失败:{0}': 'Import failed: {0}',
'启用宠物': 'Enable pet',
'站在输入框上方,默认关闭': 'Stands above the input box; off by default',
'大小': 'Size',
'小': 'Small',
'中': 'Medium',
'大': 'Large',
'更换宠物包': 'Change pet pack',
'移除': 'Remove',
'移除宠物?': 'Remove pet?',
'本机保存的宠物包会被删除。':
'The pet pack stored on this device will be deleted.',
'取消': 'Cancel',
// about
'读取中…': 'Loading…',
'未连接': 'Not connected',
'未获取到': 'Not available',
'重新获取服务端版本': 'Fetch the server version again',
'手机客户端': 'Mobile client',
'应用': 'App',
'版本': 'Version',
'未知': 'Unknown',
'开源许可': 'Open-source licenses',
'本应用使用的第三方组件与它们的许可证':
'Third-party components used by this app and their licenses',
'服务端': 'Server',
'版本取自当前连接的服务器': 'Version comes from the currently connected server',
'下面列出随本应用打包的第三方组件;点开可阅读完整许可证。':
'Third-party components bundled with this app are listed below; tap one to read its full license.',
'该组件没有附带许可证文本。': 'This component has no license text.',
// features
'全部功能': 'All features',
'服务器与智能体的工具都收在这里。':
'Tools for servers and agents are collected here.',
'计划任务': 'Scheduled tasks',
'按时间向会话发送提示词': 'Send prompts to sessions on a schedule',
// scheduled task editor
'新建计划任务': 'New scheduled task',
'编辑计划任务': 'Edit scheduled task',
'保存中…': 'Saving…',
'保存': 'Save',
'运行位置:{0}': 'Runs in: {0}',
'任务名称': 'Task name',
'每日同步': 'Daily sync',
'提示词': 'Prompt',
'总结未完成任务并给出下一步建议':
'Summarize unfinished tasks and suggest next steps',
'计划类型': 'Schedule type',
'星期': 'Weekdays',
'日期': 'Date',
'时间': 'Time',
'Cron 表达式': 'Cron expression',
'每 5 分钟': 'Every 5 minutes',
'每小时': 'Every hour',
'每天 9 点': 'Daily at 9',
'每周一 9 点': 'Mondays at 9',
'每月 1 日': '1st of each month',
'时间点': 'Times',
'移除时间': 'Remove time',
'添加时间': 'Add time',
'时间按服务器所在时区。': 'Times follow the server\'s time zone.',
'选择模型': 'Select model',
'默认智能体': 'Default agent',
'模型': 'Model',
'智能体': 'Agent',
'使用默认模型与智能体': 'Use default model and agent',
'关闭后可固定这次运行使用的模型和智能体。':
'Turn off to pin the model and agent this run uses.',
'已启用': 'Enabled',
'暂停的任务不会按计划运行,但可以手动运行。':
'Paused tasks don\'t run on schedule but can still be run manually.',
'任务名称为必填项': 'Task name is required',
'任务名称不能超过 80 个字符': 'Task name can\'t exceed 80 characters',
'提示词为必填项': 'Prompt is required',
'提示词不能超过 20000 个字符': 'Prompt can\'t exceed 20,000 characters',
'时间格式必须是 HH:mm': 'Time must be in HH:mm format',
'请至少选择一个星期': 'Select at least one weekday',
'Cron 表达式为必填项': 'Cron expression is required',
'请选择模型,或改回使用默认模型':
'Select a model, or switch back to the default model',
// scheduled tasks list
'未连接服务器': 'Not connected to a server',
'服务器不支持计划任务': 'The server doesn\'t support scheduled tasks',
'加载计划任务失败:{0}': 'Couldn\'t load scheduled tasks: {0}',
'计划任务已保存': 'Scheduled task saved',
'保存任务失败': 'Couldn\'t save task',
'保存任务失败:{0}': 'Couldn\'t save task: {0}',
'更新任务失败': 'Couldn\'t update task',
'任务已启动': 'Task started',
'任务已在队列中等待': 'Task is already waiting in the queue',
'运行任务失败': 'Couldn\'t run task',
'运行任务失败:{0}': 'Couldn\'t run task: {0}',
'删除计划任务?': 'Delete scheduled task?',
'“{0}”及其计划会被删除。': '“{0}” and its schedule will be deleted.',
'计划任务已删除': 'Scheduled task deleted',
'删除任务失败': 'Couldn\'t delete task',
'刷新': 'Refresh',
'新建任务': 'New task',
'下次:{0}': 'Next: {0}',
'已暂停': 'Paused',
'上次运行 {0} · {1}': 'Last run {0} · {1}',
'从未运行': 'Never run',
'更多': 'More',
'立即运行': 'Run now',
'编辑': 'Edit',
'删除': 'Delete',
'运行位置': 'Runs in',
'重试': 'Retry',
'暂无计划任务。': 'No scheduled tasks yet.',
'发送到现有会话': 'Sends to an existing session',
// scheduled task schedule text and status
'周日': 'Sun',
'周一': 'Mon',
'周二': 'Tue',
'周三': 'Wed',
'周四': 'Thu',
'周五': 'Fri',
'周六': 'Sat',
'每天': 'Daily',
'每周': 'Weekly',
'一次性': 'Once',
'每天 {0}': 'Daily {0}',
'每周 {0} {1}': 'Weekly {0} {1}',
'未选': 'no days',
'一次性 {0} {1}': 'Once {0} {1}',
'未选日期': 'no date',
'Cron:{0}': 'Cron: {0}',
'、': ', ',
'成功': 'Success',
'错误': 'Error',
'运行中': 'Running',
'已排队': 'Queued',
'已跳过': 'Skipped',
'已取消': 'Cancelled',
'空闲': 'Idle',
'不到 1 分钟后': 'In less than a minute',
'刚刚': 'Just now',
'{0} 分钟后': 'In {0} min',
'{0} 分钟前': '{0} min ago',
'{0} 小时 {1} 分钟': '{0} hr {1} min',
'{0} 小时': '{0} hr',
'{0} 天 {1} 小时': '{0} days {1} hr',
'{0} 天': '{0} days',
'{0}后': 'In {0}',
'{0}前': '{0} ago',
};