Multi Language class for scripts (request) - 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: Multi Language class for scripts (request) (/showthread.php?tid=62784) Multi Language class for scripts (request) by Menthix on 07-07-2006 at 10:36 PM
It would be nice if somebody could create a class that can handle scripts in multi languages in a good and easy way. RE: Multi Language class for scripts (request) by RaceProUK on 07-07-2006 at 10:50 PM
I think that if the script developer is serious about translations, they'd have thought of a solution long before getting to the submission stage. But still, it's a good idea, especially if it's a 'drop-in' class that any developer can use. RE: Multi Language class for scripts (request) by J-Thread on 07-07-2006 at 10:54 PM
I already thought about this, and I even thought about making a class that can also acces the MP!L language strings and the WLM language strings. So you would be able to grab the basic strings like "Nickname", "Yes", "No", "Sign off" etc directly from WLM / MP!L. In that way those words will always appear in the users language, without having to translate it yourselves. RE: Multi Language class for scripts (request) by deAd on 07-07-2006 at 11:00 PM Hmmm, good idea. I'm starting to work on this and I like your idea too, J-Thread RE: Multi Language class for scripts (request) by cooldude_i06 on 07-07-2006 at 11:45 PM This would be easy enough for strings used in the jscript files, but what about the captions stored in interface xmls??? RE: Multi Language class for scripts (request) by deAd on 07-07-2006 at 11:46 PM Yeah, I was just thinking about that. You'd have to use SetControlText to change the controls' text to something in the file... RE: Multi Language class for scripts (request) by cooldude_i06 on 07-08-2006 at 12:33 AM Is there a way to include variables in XML. Perhaps if all the variables were defined during the start of the file, or even in a seperate file then somehow imported, it would make translations much easier. RE: Multi Language class for scripts (request) by deAd on 07-08-2006 at 01:38 AM It's pretty much done. Tomorrow I'll be squashing some bugs and testing it more thoroughly, maybe writing a tiny bit of documentation ...it's small though. It is very simple to use, and relies on external files. It has a function to open windows too, and automatically translates those, based on another file telling what controls to translate ... RE: Multi Language class for scripts (request) by Dhaya on 07-08-2006 at 09:09 AM great news deAd ^^ If this works correctly it will be really usefull for us ! RE: Multi Language class for scripts (request) by deAd on 07-08-2006 at 01:02 PM It works very well. You can insert comments in the text files too, so they don't get super-confusing to edit ... RE: Multi Language class for scripts (request) by -dt- on 07-08-2006 at 01:19 PM if we could add our own doctype to the files we could use the dtd file to define entities and have the xml engine automaticly translate it RE: Multi Language class for scripts (request) by deAd on 07-08-2006 at 01:26 PM
Since it only reads files in a specific format, (very simple format ), it won't be possible. You can use whatever filekind that you want, but they must be formatted the same. RE: Multi Language class for scripts (request) by -dt- on 07-08-2006 at 05:44 PM
Well Ive finished my translator class its quite powerful and Ive written up some text about how to use it as well. RE: Multi Language class for scripts (request) by deAd on 07-08-2006 at 05:54 PM I've finished mine too, I'm currently writing how to use it. I see yours is for windows...mine does some things with windows, but it also does just any strings too RE: Multi Language class for scripts (request) by -dt- on 07-08-2006 at 06:16 PM
quote:mine is for any string as well if you read it RE: Multi Language class for scripts (request) by deAd on 07-08-2006 at 06:49 PM Oh, didn't notice that. Well anyways, mine is done. *releases* it works differently than yours, but it still works. =) RE: Multi Language class for scripts (request) by J-Thread on 07-08-2006 at 08:26 PM
-dt-'s class: [Developers] Translator Class |