I have implemented server-side locale switching for "explain" (and
potentially other) packet messages sent back to clients. The client
need only send the PacketPokerSetLocale(), which is in described in
pokerpackets.py. I quote its description from pokerpackets.py:
Semantics: the player "serial" is required to set the "locale"
string, which must be a locale supported by the server.
If the locale is supported by the server, it will be made
the locale used for strings sent by PokerExplain packets.
Context: If the locale is supported by the server, a PacketAck is
returned, and future PokerExplain strings will be localized
to the requested language. Otherwise a PacketError is
returned with other_type set to PACKET_POKER_SET_LOCALE.
locale: string representing fully qualified locale and encoding, such as
"fr_FR.UTF-8"
serial: integer uniquely identifying a player.
Implementation details on this feature are at: http://ur1.ca/3sz
I have made a bug ticket for jpoker to implement this: http://ur1.ca/3t9
--
-- bkuhn
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users