Request: add local features to _() and playerData
Posted: 25 Feb 2012, 05:53
_() currently assumes the language of the human player on the same client machine
In order to allow scripts to send translated text to other players in an MP game, could an optional locale param be added to the function?
Syntax becomes:
_(string[,locale])
Where locale defaults to the locale set on the client machine.
The playerData objects would get a new .locale property. This will then allow scripts to chat with players in their chosen language.
I assume this will require additional info to be sent via net code at the start of a game so I wouldn't expect this in the 3.1 branch, but would be great if it could be added for 3.2 branch.
In order to allow scripts to send translated text to other players in an MP game, could an optional locale param be added to the function?
Syntax becomes:
_(string[,locale])
Where locale defaults to the locale set on the client machine.
The playerData objects would get a new .locale property. This will then allow scripts to chat with players in their chosen language.
I assume this will require additional info to be sent via net code at the start of a game so I wouldn't expect this in the 3.1 branch, but would be great if it could be added for 3.2 branch.