Cuberite Forum
Localisation - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Localisation (/thread-482.html)



Localisation - Taugeshtu - 06-12-2012

Seems like vanilla minecraft can't send russian letters (even if russian language is chosen)
Not a big problem since localisation mod exist. I can type in russian into chat, but!
MCS can't understand me. It doesn't accept those "freaky encoding" russian letters.
I suppose, MCS uses UTF-8, am I right?

What should I do to implement two-ways char replacement?
Because it looks like if I'm processing chat message in OnChat() I can't change chat text AND give changed text to other plugins...
Any ideas?


RE: Localisation - xoft - 06-12-2012

I haven't actually looked, but I suspect MCServer doesn't do ANY kind of conversion - what bytes come in the chat packet, those bytes are sent up to the plugins. Sorry not to have more info.


RE: Localisation - Taugeshtu - 06-12-2012

Seems like client -> server -> client russian letters chat is fine... So, not necessary. Could be useful for logging and server sending messages in different languages, but again - not necessary Smile
Really weird - I had to post this answer 3 timesBig Grin


RE: Localisation - FakeTruth - 06-12-2012

(06-12-2012, 04:45 AM)xoft Wrote: I haven't actually looked, but I suspect MCServer doesn't do ANY kind of conversion - what bytes come in the chat packet, those bytes are sent up to the plugins. Sorry not to have more info.

Really? Doesn't cPacket::ReadString16() truncate the upper part of the characters?