-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
[BUG] Mixed languages #978
Comments
The Chinese BanReason is part of the rule comment from the server, so it does not follow the main program language and it is not translatable. The popup text should be a bug, it may be a fallback caused by the corresponding English translation text being missing, I will check it. |
The reason you are seeing Chinese bans is simply because in newer versions, PeerBanHelper is able to display annotations from the server, which are obviously in Chinese. For anything other than the comments, it still follows your language. We display annotated information to improve transparency. Older versions never displayed them. It's a feature. Not a bug. However that popup is a bug. |
The language used depends on which language the person subscribing to the rules provides comments in. PBH supports loading rule files in IP, CIDR and P2PGuard formats from any network location. I can't think of a reasonable way to introduce internationalized translations without changing the file format. And changing the file format would affect a large number of non-PeerBanHelper users (especially those who rely on the BT client's built-in IpFilter, or run some complex shell scripts). We may eventually find some solutions, unfortunately right now I don't have time for that, I have to deal with a lot of tough issues in my life. We may eventually find some solutions, unfortunately right now I don't have time for that, I have to deal with a lot of tough issues in my life. For those wishing to contribute, there may still be the hassle of dealing with https://github.com/PBH-BTN/BTN-Collected-Rules/blob/main/tools/combine.py here. |
according to this screenshot, |
版本号 - Version
v7.4.3
操作系统平台和系统架构 - OS and CPU Arch
Windows 10, Build 19045 x64
部署方式 - Deploy methods
添加的下载器 - Added Downloaders
问题描述 - Issue Description
Started happening after updating to v7.4.0. I have both frontend and backend languages set to English but as you can see in Screenshots it displays ban reason in Chinese. Also, when changes are saved in WebUI, the popup notification is in Chinese too.
复现步骤 - Reproduce steps
I don't know how to reproduce it, did a deep reinstall but it didn't help.
截图/日志文件 - Screenshot / Logs
额外信息 - Addition Information
No response
检查清单 - Check list
The text was updated successfully, but these errors were encountered: