-
Notifications
You must be signed in to change notification settings - Fork 76
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
Interface terminal localization is different with client language. #521
Comments
这个貌似是没法修的。因为获取名字的函数是带不了语言代码的 |
我在尝试跟踪这个bug,是由于服务端没有正确获取方块的TranslationKey导致的,可以参考这个分支Forever-178@f8c1ccb 目前遇到的问题是,获取TranslationKey(也就是UnlocalizedName)有两个不同的方法,getTranslationKey和getUnlocalizedNameInefficiently 例如
This part is translation for chinese above I'm trying to track this bug. It is caused by server gets wrong TranslationKey. I'm try to fix it on this branch. Forever-178@f8c1ccb Now there is a problem. To get translationKey (same with UnlocalizedName) , we have two different methods, getTranslationKey and getUnlocalizedNameInefficiently. Some mods overrides one method, another one can not get right result. For example:
|
这个问题目前有两个解决思路
There are 2 way to fix it.
|
@Forever-178 那你自己修这个吧,我就不费这个劲了。我建议是使用getTranslationKey 这个是标准函数 |
Describe the bug
Interface terminal and Interface configuration terminal localization is different with client language.
Because the only supported locale is en_us on a dedicated server, I think it should be decide by client.
https://docs.minecraftforge.net/en/latest/concepts/internationalization/#internationalization-and-localization
To Reproduce
Play game on a forge server and client language is not en_us. (In this case locale is zh_cn. )
Expected behavior
Interface name are displayed as client language.
Additional context
Interface
Environment
The text was updated successfully, but these errors were encountered: