hematite_server icon indicating copy to clipboard operation
hematite_server copied to clipboard

i18n Support

Open ghost opened this issue 9 years ago • 7 comments

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!?

ghost avatar Mar 12 '15 05:03 ghost

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.

atheriel avatar Mar 12 '15 19:03 atheriel

The ChatJson translation feature is intended only for clients. Using it in the server would require additional language files.

fenhl avatar Mar 13 '15 04:03 fenhl

Ah, I misunderstood. This would indeed be a lot more work...

atheriel avatar Mar 13 '15 14:03 atheriel

Aaaaarrrrrhhhhhhh!! Just give me a week! :S

EDIT: Actually I didn't do the works now.

ghost avatar Mar 14 '15 06:03 ghost

Well, the compiler plugin are completed. :S

ghost avatar Mar 23 '15 04:03 ghost

@mindcat :+1:

bvssvni avatar Mar 23 '15 09:03 bvssvni

Sorry, I was playing game for this while :P getting work for now :D

ghost avatar Apr 18 '15 02:04 ghost