[BUG]翻译代码逻辑错误 #58
Labels
故障(bug)
代码问题导致的错误(Bugs caused by code problems)
已确认(confirmed)
该issue已被处理,将在下次推送中更新(The issue has been processed and will be updated in the next push)
测试代码执行位置:
f2/i18n/translator.py
,将语言设置为en_US
在调用gettext函数之前对占位符进行格式化,会导致字符串找不到翻译而输出原文,输出结果:
未在响应的地址中找到sec_user_id, 检查链接是否为用户主页类名: cls.__name__
应该修改为下方代码,在调用gettext函数获取翻译后,再对占位符进行格式化。
输入结果:
Not found sec_user_id in the response, check if the link is to the user's homepage class name: cls.__name__
The text was updated successfully, but these errors were encountered: