uod
This commit is contained in:
parent
7c00fbb6ab
commit
fba1cb56ac
4 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@
|
|||
"core.message.locale.reload.failed": "Failed to reload the following string: ${detail}.",
|
||||
"core.message.locale.set.invalid": "Invalid language code. Supported language codes: ${langlist}",
|
||||
"core.message.locale": "Current language: ",
|
||||
"core.message.locale.contribution": "is being translated. Go to Crowdin and help with translation:\nhttps://www.crowdin.com/project/akari-bot",
|
||||
"core.message.locale.contribution": "Current language is being translated. Go to Crowdin and help with translation:\nhttps://www.crowdin.com/project/akari-bot",
|
||||
"core.message.locale.set.prompt": "Use \"${prefix}locale <language code>\" to set language.\nSupported language codes: ${langlist}",
|
||||
"core.message.module.disable.already": "Failed: Module \"${module}\" is already disabled.",
|
||||
"core.message.module.disable.base": "Failed: \"${module}\" is a base module, thus cannot be disabled.",
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
"core.message.locale.reload.failed": "以下字符串重载失败:${detail}。",
|
||||
"core.message.locale.set.invalid": "语言代码无效,支持的语言代码:${langlist}",
|
||||
"core.message.locale": "当前使用的语言:",
|
||||
"core.message.locale.contribution": "正在翻译中,欢迎前往 Crowdin 协助翻译:\nhttps://www.crowdin.com/project/akari-bot",
|
||||
"core.message.locale.contribution": "当前使用的语言正在翻译中,欢迎前往 Crowdin 协助翻译:\nhttps://www.crowdin.com/project/akari-bot",
|
||||
"core.message.locale.set.prompt": "可使用“${prefix}locale <语言代码>”设置语言。\n支持的语言代码:${langlist}",
|
||||
"core.message.module.disable.already": "失败:“${module}”模块已关闭。",
|
||||
"core.message.module.disable.base": "失败:“${module}”为基础模块,无法关闭。",
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
"core.message.locale.reload.failed": "以下字串重新加載失敗:${detail}。",
|
||||
"core.message.locale.set.invalid": "無效的語言代碼,已支援的語言代碼:${lang}。",
|
||||
"core.message.locale": "目前使用的語言:",
|
||||
"core.message.locale.contribution": "正在翻譯中,歡迎前往 Crowdin 協助翻譯:\nhttps://www.crowdin.com/project/akari-bot",
|
||||
"core.message.locale.contribution": "目前使用的語言正在翻譯中,歡迎前往 Crowdin 協助翻譯:\nhttps://www.crowdin.com/project/akari-bot",
|
||||
"core.message.locale.set.prompt": "可使用「${prefix}locale <語言代碼>」設定語言。\n已支援的語言代碼:${langlist}",
|
||||
"core.message.module.disable.already": "失敗:「${module}」模組已停用。",
|
||||
"core.message.module.disable.base": "失敗:「${module}」為基礎模組,無法停用。",
|
||||
|
|
|
@ -141,7 +141,7 @@ async def config_gu(msg: Bot.MessageSession):
|
|||
lang = msg.parsed_msg['<lang>']
|
||||
if lang in get_available_locales() and BotDBUtil.TargetInfo(msg.target.target_id).edit('locale', lang):
|
||||
if lang not in completed_locales:
|
||||
await msg.sendMessage(f"{Locale(lang).t('core.message.locale')}{Locale(lang).t('language')} {Locale(lang).t('core.message.locale.contribution')}")
|
||||
await msg.sendMessage(Locale(lang).t('core.message.locale.contribution'))
|
||||
await msg.finish(Locale(lang).t('success'))
|
||||
else:
|
||||
avaliable_lang = msg.locale.t("message.delimiter").join(get_available_locales())
|
||||
|
|
Reference in a new issue