Shoutbox

[Request] Autotranslator when Receiving Messages - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] Autotranslator when Receiving Messages (/showthread.php?tid=80721)

[Request] Autotranslator when Receiving Messages by FootSoulJah on 01-05-2008 at 02:43 PM

Hello, I am aware that there is a translator for sending people messages, but I was wondering if someone can make an autotranslator that can be enabled to translate received messages from a different Language.

It wouldn't be hard would it? Because it's basically exactly the same as the other scripts only vice versa. Thank you for your time.


RE: [Request] Autotranslator when Receiving Messages by Matti on 01-05-2008 at 02:58 PM

It's theoretically possible to send the received message to an online translation service like Babelfish or something and replace the message with the result. However, there's one big limitation: the translated message can't be larger than the original. The scripting documentation explains:

quote:
Scripting Documentation > OnEvent_ChatWndReceiveMessage

Return Value
The new string will be parsed for possible format codes. It is important to remember that the new message cannot be longer than the original one (use Message.length) and will be cut if necessary.