Support for other languages?
|
|
Any chance of implementing support for other languages? I don't really care for the language of the displayed information - but I'd like the script to work on game servers other than ogame.fr. There is a similar function in NeoGame - but it, too, does not support all the game servers I'm interested in. |
|
|
Possible if I have enough information, it shouldn't be too difficult.
|
|
|
Ok, I checked, I need very few information to support other languages :
3. The exact string of the Events/Mission block (in french "Evènements"), before the missions and after the server's time. Give me your msn/email if you need any info |
![]() ![]() |
Heya Vess As it happens, I wrote a similar albeit much simpler script which supports all languages:
jeanc: In order to get the strings for Metal, Crystal, etc. just use whatever strings the server uses in the header. The code I use is:
Also, you don't need those strings. You'll notice that you can get all the info you need from the 'title' attribute of the 5th anchor in every other class 'flight'. Here's my code to get the info:
Note that my code just adds up all the totals for each type of mission - your script will need to do something more complicated. In any case though, you should be able to use that to make getting the information entirely language independent :) Hope that helps! |
![]() ![]() |
To be honest, I thought about that possibility this morning and I planed to do it soon :) You have just made me win some time!
|
![]() ![]() |
Hi It turns out the code I posted is horribly buggy - it's only reliable for transport fleets. Sorry! I'm working on fixing it, but for now, don't rely on it too much! I was just trying to make the point that it's probably better to navigate the dom than search for specific strings, as otherwise making it support other languages is a huge pain. Good luck! |



