hematite_server
hematite_server copied to clipboard
i18n Support
I mean any server output message include console messages could be translate another languages. (such as wrapped panic!, wrapped println!) Maybe we could do it in compile time. Which means check translate files then replace English messages to Chinese(I don't know) in compile time. or cost performance a bit for runtime. But if runtime, Players could change his output language messages.
It looks need compiler plugin :S
Example: if I have a translate file, file: "Hello {}!": "你好 {}!"
, We could apply println!("Hello {}!", "World");
output 你好 World!
?
There's a feature of ChatJson
devoted to doing this for server mechanisms. I'd be great to support it. I believe there are translation files in the Minecraft assets, which would be a good place to start for this.
The ChatJson
translation feature is intended only for clients. Using it in the server would require additional language files.
Ah, I misunderstood. This would indeed be a lot more work...
Aaaaarrrrrhhhhhhh!! Just give me a week! :S
EDIT: Actually I didn't do the works now.
Well, the compiler plugin are completed. :S
@mindcat :+1:
Sorry, I was playing game for this while :P getting work for now :D