29 Jul 08:01
Localizing invitation messages
Jason McIntosh <jmac <at> volity.com>
2006-07-29 06:01:08 GMT
2006-07-29 06:01:08 GMT
I just noticed that the message parts of invitations (as defined at http://www.volity.org/wiki/index.cgi?Invitation) don't seem to be localized. I'd like to suggest a third variety of the volity.invite_player method, with the args (player_JID, localized_messages). The latter argument is a hash of messages whose keys are two-letter language codes. Example of a bilingual (if not very informative) invitation call: volity.invite_player( "joe <at> example.com", {en => "Hello!", es => "¡Hola!"} ) Complementarily, volity.receive_invitation would have an optional "localized_messages" field, whose value is the same sort of struct. I don't predict this will be used much for person-to-person invitations, but it would be useful for automated invitations, such as those generated by the bookkeeper when summoning players for a scheduled game. What do you all think? -- -- Jason McIntosh President and Founder Volity Games jmac <at> volity.com 617-792-3829 Digital Games for Analog People. http://volity.net(Continue reading)
RSS Feed