Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Add translation for English #194

Merged
merged 12 commits into from
Mar 19, 2024
113 changes: 55 additions & 58 deletions locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,103 +2,100 @@ system:
commands:
groups:
basic:
name: 基础命令
name: Basic Commands
commands:
start:
help: Start interacting with the bot
help: Begin interacting with the bot
help:
help: Get help
help: Obtain assistance
message: |
Hi! 👋 Welcome using Insights Bot!
Greetings! 👋 Welcome to using Insights Bot!

I currently support these commands:

{{ .Commands }}
cancel:
help: Cancel the current activated operation
alreadyCancelledAll: There is no activated operation to cancel
help: Terminate the current operation
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved
alreadyCancelledAll: No ongoing operations to terminate
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved

modules:
telegram:
chatMigration:
notification: |
{{.Name}} @{{.Username}} 监测到您的群组已从 <b>群组(group)</b> 升级为了 <b>超级群组(supergroup</b>,届时,群组的 ID 将会发生变更,<b>现已自动将过去的历史记录和数据留存自动迁移到了新的群组 ID 名下</b>,之前的设置将会保留并继续沿用,不过需要注意的是,由于 Telegram 官方的限制,迁移事件前的消息 ID 将无法与今后发送的消息 ID 相兼容,所以当下一次总结消息时将不会包含在迁移事件发生前所发送的消息,由此带来的不便敬请谅解。
notification: |
{{.Name}} @{{.Username}} has observed your group's transition to a <b>supergroup</b>, leading to a change in the group ID. Rest assured, we've smoothly transitioned all historical data to the new ID, maintaining all your settings unaltered. Due to Telegram's limitations, message IDs from before the upgrade won't match those sent after, and will thus be excluded from future summaries. We regret any inconvenience caused by this adjustment.
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved

welcome:
messageSuperGroup: |
🤗 欢迎使用 @{{.Username}}
welcome:
messageSuperGroup: |
🤗 Welcome to @{{.Username}}!

- 如果要让我帮忙阅读网页文章,请直接使用开箱即用的命令 /smr@{{.Username}} <code>要阅读的链接</code>
- Use /smr@{{.Username}} <code>article link</code> for web article summaries.

- 如果想要我帮忙总结本群组的聊天记录,请以<b>管理员</b>身份将我配置为本群组的管理员(可以关闭所有权限),然后在<b>非匿名和非其他身份的身份</b>下(推荐,否则容易出现权限识别错误的情况)发送 /configure_recap@{{.Username}} 来开始配置本群组的聊天回顾功能。
- For chat history summaries, appoint me as admin (with or without permissions) using a <b>non-anonymous identity</b> to bypass permission detection issues. Then, start /configure_recap@{{.Username}} to configure chat recap.
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved

- 如果你在授权 Bot 管理员之后希望 Bot 将已经记录的消息全数移除,可以通过撤销 Bot 的管理员权限来触发 Bot 的历史数据自动清理(如果该部分代码未经其他 Bot 实例维护者修改的话)。
- Revoking my admin role will prompt me to delete all recorded messages, along with historical data and logs (only if no modifications have been made by other bot operators).

如果还有疑问的话可以通过
Questions?

1. 执行帮助命令 /help@{{.Username}} 来查看支持的命令;
2. 前往 Bot 所在的<a href="https://github.com/nekomeowww/insights-bot">开源仓库</a>提交 Issue 问询开发者。
1. Enter /help@{{.Username}} for command information.
2. Submit an issue at the <a href="https://github.com/nekomeowww/insights-bot">open-source repository</a> for further details from the developers.

祝你使用愉快!
messageNormalGroup: |
🤗 欢迎使用 @{{.Username}}!
messageNormalGroup: |
🤗 Welcome to @{{.Username}}!

- 如果要让我帮忙阅读网页文章,请直接使用开箱即用的命令 /smr@{{.Username}} <code>要阅读的链接</code>
- Use /smr@{{.Username}} <code>article link</code> for article readings.

- 如果想要我帮忙总结本群组的聊天记录,请以<b>管理员</b>身份将我配置为本群组的管理员(可以关闭所有权限),然后在<b>非匿名和非其他身份的身份</b>下(推荐,否则容易出现权限识别错误的情况)发送 /configure_recap@{{.Username}} 来开始配置本群组的聊天回顾功能。
- For chat history summaries, appoint me as admin (with or without permissions) using a <b>non-anonymous identity</b> to bypass permission detection issues. Then, start /configure_recap@{{.Username}} to configure chat recap.
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved

- 如果你在授权 Bot 管理员之后希望 Bot 将已经记录的消息全数移除,可以通过撤销 Bot 的管理员权限来触发 Bot 的历史数据自动清理(如果该部分代码未经其他 Bot 实例维护者修改的话)。
- Removing my admin status is a simple way to delete all bot-recorded messages, automatically purging bot data unless modifications have been made by another maintainer.

⚠️ 警告:你的群组尚未是超级群组(supergroup)。<b>普通群组的消息链接引用功能无法正常工作。</b>
⚠️ Your group isn't a supergroup, impacting message link functionality.
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved

如果你希望使用消息链接引用功能,请通过下面任意操作使其正常运作:
To enable linking:
Lorde627 marked this conversation as resolved.
Show resolved Hide resolved

- 短时间内将群组开放为公共群组并快速还原回私有群组;
- 通过其他操作将本群组升级为超级群组;
- Temporarily switch your group to public, then revert to private.
- Upgrade to a supergroup by other means.

如果还有疑问的话可以通过
Questions?

1. 执行帮助命令 /help@{{.Username}} 来查看支持的命令;
2. 前往 Bot 所在的<a href="https://github.com/nekomeowww/insights-bot">开源仓库</a>提交 Issue 问询开发者。
1. Consult /help@{{.Username}} for command details.
2. Visit our <a href="https://github.com/nekomeowww/insights-bot">GitHub</a> for support.

祝你使用愉快!
Enjoy your experience!

commands:
groups:
summarization:
name: 量子速读
name: Quantum Speed-Reading
commands:
smr:
help: 量子速读网页文章(也支持在频道中使用) 用法:/smr <code>&lt;链接&gt;</code>
noLinksFound:
telegram: 没有找到链接,可以发送一个有效的链接吗?用法:<code>/smr &lt;链接&gt;</code>
slackOrDiscord: 你发来的链接无法被理解,可以重新发一个试试。用法:`/smr <链接>`
invalidLink:
telegram: 你发来的链接无法被理解,可以重新发一个试试。用法:<code>/smr &lt;链接&gt;</code>
slackOrDiscord: 你发来的链接无法被理解,可以重新发一个试试。用法:`/smr <链接>`
reading: 请稍等,量子速读中...
rateLimitExceeded: 很抱歉,您的操作触发了我们的限制机制,为了保证系统的可用性,本命令每最多 {{ .Seconds }} 秒使用一次,请您耐心等待 {{ .SecondsToBeWaited }} 秒后再试,感谢您的理解和支持。
failedToRead: 量子速读失败了,可以再试试?
failedToReadDueToFailedToFetch: 量子速读的链接读取失败了哦。可以再试试?
contentNotSupported: 暂时不支持量子速读这样的内容呢,可以换个别的链接试试。
permissionDenied: No permission to send message, please try to reinstall this APP
help: Enhance your article reading with Quantum Speed-Reading. This feature enables rapid understanding of web content and is compatible across messaging platforms. Initiate with :/smr <code>&lt;link&gt;</code>.
noLinksFound:
telegram: No link detected. Please provide a valid URL to proceed. Example usage:<code>/smr &lt;link&gt;</code>.
slackOrDiscord: No link detected. Please provide a valid URL to proceed. Example usage:`/smr <link>`.
invalidLink:
telegram: The link provided could not be processed. Please ensure the URL is correct and try again. Usage:<code>/smr &lt;link&gt;</code>.
slackOrDiscord: The link provided could not be processed. Please ensure the URL is correct and try again. Usage:`/smr <link>`.
reading: Quantum Speed-Reading is currently processing your request, please wait...
rateLimitExceeded: Apologies, but you've reached the rate limit to maintain service stability. This command is accessible once every {{ .Seconds }} seconds. Kindly wait {{ .SecondsToBeWaited }} seconds before attempting again. We appreciate your patience and comprehension.
failedToRead: Quantum Speed-Reading was unsuccessful. Would you like to retry?
failedToReadDueToFailedToFetch: Encountered an issue retrieving the content for Quantum Speed-Reading. Perhaps another attempt might succeed?
contentNotSupported: This content is not supported by Quantum Speed-Reading. Considering another link might be beneficial.

prompts:
smr:
- role: system
content: |
你是我的网页文章阅读助理。我将为你提供文章的标题、作
者、所抓取的网页中的正文等信息,然后你将对文章做出总结。\n请你在总结时满足以下要求:
1. 首先如果文章的标题不是中文的请依据上下文将标题信达雅的翻译为简体中文并放在第一行
2. 然后从我提供的文章信息中总结出一个三百字以内的文章的摘要
3. 最后,你将利用你已有的知识和经验,对我提供的文章信息提出 3 个具有创造性和发散思维的问题
4. 请用简体中文进行回复
最终你回复的消息格式应像这个例句一样(例句中的双花括号为需要替换的内容):\n
{{简体中文标题,可省略}}\n\n摘要:{{文章的摘要}}\n\n关联提问:\n1. {{关联提问 1}}\n2. {{关联提问 2}}\n2. {{关联提问 3}}
You are my web article reading assistant. I will supply you with the article's title, author, and the main content from the web page, after which you will summarize the article. Please adhere to the following guidelines for summarizing:
1. First, if the article's title is not in English, kindly translate it into English with elegance and accuracy according to the context, placing it at the top.
2. Then, provide a summary of the article in no more than 300 words based on the provided information.
3. Lastly, leveraging your existing knowledge and experience, devise 3 inventive and broad questions related to the provided information.
4. Responses should be in English.
Follow this example format (substitute the double curly braces accordingly):
{{English title, optional}}\n\nSummary: {{Summary of the article}}\n\nRelated Questions:\n1. {{Related Question 1}}\n2. {{Related Question 2}}\n3. {{Related Question 3}}
- role: user
content: |
我的第一个要求相关的信息如下:
文章标题:{{ .Title }}
文章作者:{{ .By }}
文章正文:{{ .Content }}
接下来请你完成我所要求的任务。
The information for my initial request is as follows:
Article title: {{ .Title }}
Article author: {{ .By }}
Article content: {{ .Content }}
Kindly fulfill the requested task.