Archived
1
0
Fork 0

Update locales

This commit is contained in:
多羅狼 2023-09-27 22:36:26 +08:00 committed by GitHub
parent 96dd56313d
commit 0692f4c792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 12 additions and 15 deletions

View file

@ -12,7 +12,6 @@
"core.help.leave": "Let the robot leave the group.",
"core.help.locale": "View the language for robots.",
"core.help.locale.set": "Set the language for robots.",
"core.help.locale.reload": "重载机器人语言文件",
"core.help.module.disable": "Disable single/multiple modules.",
"core.help.module.disable_all": "Disable all modules.",
"core.help.module.enable": "Enable single/multiple module(s).",

View file

@ -12,7 +12,6 @@
"core.help.leave": "使机器人离开群组。",
"core.help.locale": "查看机器人运行语言。",
"core.help.locale.set": "设置机器人运行语言。",
"core.help.locale.reload": "重载机器人语言文件。",
"core.help.module.disable": "关闭一个/多个模块。",
"core.help.module.disable_all": "关闭所有模块。",
"core.help.module.enable": "开启一个/多个模块。",

View file

@ -12,7 +12,6 @@
"core.help.leave": "使機器人離開群組。",
"core.help.locale": "檢視機器人使用的語言。",
"core.help.locale.set": "設定機器人使用的語言。",
"core.help.locale.reload": "重新加載機器人語言檔案。",
"core.help.module.disable": "停用一個/多個模組。",
"core.help.module.disable_all": "停用所有模組。",
"core.help.module.enable": "啟用一個/多個模組。",

View file

@ -147,7 +147,7 @@ async def config_gu(msg: Bot.MessageSession):
await msg.finish(msg.locale.t("core.message.locale.set.invalid", langlist=avaliable_lang))
@locale.handle('reload {{core.help.locale.reload}}', required_superuser=True)
@locale.handle('reload', required_superuser=True)
async def reload_locale(msg: Bot.MessageSession):
err = load_locale_file()
if len(err) == 0:

View file

@ -7,7 +7,7 @@ from .profile import cytoid_profile
from .rating import get_rating
from .utils import get_profile_name
cytoid = module('cytoid',
cytoid = module('cytoid', desc='{cytoid.help.desc}',
developers=['OasisAkari'], alias='ctd')

View file

@ -1,6 +1,7 @@
{
"cytoid.help.b30": "查询 Cytoid 用户的 B30/R30 列表。",
"cytoid.help.bind": "绑定 Cytoid 用户。",
"cytoid.help.desc": "查询 Cytoid 相关内容。",
"cytoid.help.profile": "查询一个用户的基本信息。",
"cytoid.help.unbind": "解绑用户。",
"cytoid.message.b30.cooldown": "距离上次执行已过去 ${time} 秒,本命令的冷却时间为 150 秒。(据官方人员所述,此 API 的调用十分昂贵,故手动做出此限制,请谅解。)",

View file

@ -15,7 +15,7 @@ meme = module(
support_languages=['zh_cn', 'en_us'])
@meme.handle(help_doc='<term> {{meme.help}}')
@meme.handle('<term> {{meme.help}}')
async def _(msg: Bot.MessageSession, term: str):
# res_jiki = await jiki(msg.parsed_msg['<term>'], msg.locale)
# R.I.P. jikipedia

View file

@ -2,7 +2,7 @@ from core.component import module
from core.builtins import Bot
from .generator import get_mkey
mk = module('mkey', desc='{mkey.desc}', developers=['OasisAkari', 'Kurisu'])
mk = module('mkey', desc='{mkey.help.desc}', developers=['OasisAkari', 'Kurisu'])
@mk.handle('<device> <month> <day> <inquiry_num> [<device_id>]')

View file

@ -1,9 +1,9 @@
{
"mkey.desc": "计算任天堂系列主机的家长控制重置密码。",
"mkey.help.desc": "计算任天堂系列主机的家长控制重置密码。",
"mkey.message.error.date.month": "无效的月份。",
"mkey.message.error.date.day": "无效的日期。",
"mkey.message.error.inquiry_num": "无效的询问码。",
"mkey.message.error.device": "无效的主机。",
"mkey.message.error.hal": "Switch需要指定主机ID。",
"mkey.message.error.hal": "Switch 需要指定主机 ID。",
"mkey.message.result": "您的重置密码是:${result}。"
}

View file

@ -19,11 +19,10 @@ def get_value(dict, key):
return None
w = module('whois', desc='{whois.help.desc}',
developers=['DoroWolf'])
w = module('whois', developers=['DoroWolf'])
@w.handle('<domain>')
@w.handle('<domain> {{whois.help}}')
async def _(msg: Bot.MessageSession, domain: str):
res = await get_whois(msg, domain)
output = await msg.finish(res)

View file

@ -1,5 +1,5 @@
{
"whois.help.desc": "查询 WHOIS 信息。",
"whois.help": "查询 WHOIS 信息。",
"whois.message.creation_date": "注册日期:",
"whois.message.dnssec": "DNSSEC",
"whois.message.domain_name": "域名名称:",

View file

@ -1,5 +1,5 @@
{
"whois.help.desc": "查询 WHOIS 信息。",
"whois.help": "查询 WHOIS 信息。",
"whois.message.creation_date": "注册日期:",
"whois.message.dnssec": "DNSSEC",
"whois.message.domain_name": "域名名称:",

View file

@ -1,5 +1,5 @@
{
"whois.help.desc": "查詢 WHOIS 資訊。",
"whois.help": "查詢 WHOIS 資訊。",
"whois.message.creation_date": "註冊日期:",
"whois.message.dnssec": "DNSSEC",
"whois.message.domain_name": "網域名稱:",