quote:
Originally posted by Mattike
quote:
Originally posted by markee
This is quite difficult because there are many things that you can't just change the label of through a script and you have to edit the XML of the interface window before opening it. This is difficult and has to be made of a per script basis to get the naming of everything correct and understand the methods they use (all ui's in one XML or many XML's for example).
Well, I was able to translate everything used in my Log Manager script, from labels to ListView headers and tooltips (big credits to Eljay for these by the way! ). The only thing I have trouble with at the moment is that when I try to change the window's caption (the name appearing in the taskbar), Plus! automatically adds a title bar to your window, even if your XML didn't define that it should have one. Also, MenuButtonControl's menus can't be translated, however I can fix this by using ButtonControls who open a "standard" Windows menu (the gray one).
But I wouldn't say that you can only make a script multilingual with the use of multiple XML files or XML re-writing, because it works good (and fast!) in my script.
That's true, but it is A LOT of code that the user won't understand. You'll also have to get the using some standardised method in the ini file to be able to tell what kind of control each one is to be able to change it. I understand that it is possible, but for a new scripter those two methods are the best they'll understand. These scripts currently use different XML's for each language because they are in different scripts so it's not like it is too difficult to manage them in the way i recommended, it would just be a lot easier i think. However if you want to write up some code to do it your way then I'm not complaining