[XASECO|FAST|all] Google Translate-plugin 1.3 (23.12.2010)

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

[XASECO|FAST|all] Google Translate-plugin 1.3 (23.12.2010)

Post by reaby » 15 Dec 2010 21:45

Google Translate for Xaseco|Fast|all ver 1.3

Image

Image

Image

GETTING IT
LATEST: googletr_13.zip
PREVIOUS: googletr_121.zip

Installation instructions are a bit complicated, so look google_translate\readme.txt how to set this one.

Standalone version
You can run the plugin now standalone, no other server controller is needed. If so, just fill in the required fields in google_translate.xml and launch translate.bat or translate.sh.

If you run fast and want to run the plugin as standalone, fill in
<disable_fast>true</disable_fast> and start fast and then translate. For xaseco, just don't register the plugin at plugins.xml and then just start the service.


Change Log
15.12.2010 Initial Release
16.12.2010 Fix for html_entities in text.
ver 1.2
17.12.2010 Lots of fixes and a proper fix of html_entities, added logtranslate for xaseco, added enable/disable commands for translate.
ver 1.21
17.12.2010 Fast patch for autotranslate for normal players + xaseco chatlog is showed at newest messages first.
ver 1.3
22.12.2010 Fixed autotranslate issue with fast, added global support for translating service.
23.12.2010 Added french readme, some fixes to translate.bat

CHAT COMMANDS

ADMIN COMMANDS

/translate on
Turn global translate on

/translate off
Turn global translate off

/translate login|on
Turn player translate on

/translate login|off
Turn player translate on

/autotranslate login|lang
Turn autotranslate on for player

/autotranslate login|off
Turn autotranslate off for player

PLAYER COMMANDS

/translate text|lang
translate text to language

/autotranslate lang
Turn autotranslate on

/autotranslate off
Turn autotranslate off

FOR XASECO ONLY
/logtranslate lang
Popup a chatlog for translating

Lang is 2 letter version of country, or target language name in lowercase
if language is not found or you forgot to enter the target, it will be translated in english.

Have fun,
Reaby
Last edited by reaby on 23 Dec 2010 05:32, edited 6 times in total.

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Google Translate-plugin 1.0 (15.12.2010)

Post by Ant » 15 Dec 2010 22:51

Nice plugin Reaby, even though you were on my server while I was testing it - I still have to say here - very nice work :thumbsup:

Edit: The updated version is also running without any problems as far as I can tell.

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by nocturne » 16 Dec 2010 13:22

Lol... kinda funny, but may prove useful. I'm thinking it may be more useful from an admin standpoint if you could pop up the chat history, and click on a player's chat text to auto-translate it.
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by jamie_macdonald » 16 Dec 2010 13:25

this is such a cool idea, and an awesome plugin. i may have to add this to all dr-ukr servers one day soon :thumbsup:

as allways is lovely to see the cool stuff being made purely for the love of TM. well played and thankyou reaby :1

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by DjDesidera » 16 Dec 2010 13:43

Brilliant :)
This will save me sooooo much time alt-tabbing and copy paste it from chat
(I never finished my spanish, german and french ^^ )
:3 Image :3

edit: just added and works great so far :)
Last edited by DjDesidera on 16 Dec 2010 14:17, edited 1 time in total.
Image

jouko100
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland
Contact:

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by jouko100 » 16 Dec 2010 13:48

nice. :3

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by reaby » 16 Dec 2010 15:55

nocturne wrote:I'm thinking it may be more useful from an admin standpoint if you could pop up the chat history, and click on a player's chat text to auto-translate it.
ok. adding the feature to next update..

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by jamie_macdonald » 16 Dec 2010 16:08

reaby wrote:
nocturne wrote:I'm thinking it may be more useful from an admin standpoint if you could pop up the chat history, and click on a player's chat text to auto-translate it.
ok. adding the feature to next update..
o.O now that would be awesome ... must be pretty hard to turn all the chat lines into objects though? (mind you, if you're clever enough to write this maybe not for you ^^).

Very Cool. If you need any mirrors for DL let me know, great stuff :thumbsup:

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [XASECO] Google Translate-plugin 1.01 (16.12.2010)

Post by reaby » 16 Dec 2010 16:59

jamie_macdonald wrote:
reaby wrote:
nocturne wrote:I'm thinking it may be more useful from an admin standpoint if you could pop up the chat history, and click on a player's chat text to auto-translate it.
ok. adding the feature to next update..
o.O now that would be awesome ... must be pretty hard to turn all the chat lines into objects though? (mind you, if you're clever enough to write this maybe not for you ^^).

Very Cool. If you need any mirrors for DL let me know, great stuff :thumbsup:
well i think i do little bit extented history from xaseco say 500 last lines... should be enough.

btw there will be fast plugin also!
it's done already the same plugin works both xaseco and fast...
but fast callbacks doen't register.. chatcommand and plugin works tho.

thanks for ideas and positive feedback!

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: [XASECO|FAST] Google Translate-plugin 1.2 (17.12.2010)

Post by DjDesidera » 17 Dec 2010 15:54

Nicely done m8, you are one busy man :D
Updated and still works a charm
THX! :1
Image

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: [XASECO|FAST] Google Translate-plugin 1.2 (17.12.2010)

Post by DjDesidera » 17 Dec 2010 16:39

Sorry fot the doublepost but found a bug i think.
With the newest version 1.2
With me, being an masteradmin, all commands work perfectly, it does it without problem, but whenever a player does /autotranslate fr or /autotranslate login|fr (i know its an admin command, just was wondering what kinda message he would get), xaseco crashes.
This is working in the previous version (i went back to 1.1).

When put a player on autotranslate it works and when that player does /autotranslate off it works and disables it for him.

if you need more info pls ask
Image

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [XASECO|FAST] Google Translate-plugin 1.2 (17.12.2010)

Post by reaby » 17 Dec 2010 17:07

DjDesidera wrote:Sorry fot the doublepost but found a bug i think.
Yes, you found a bug, my bad, quality control failed, i didn't test it with normal user after changing the plugin radically.
DjDesidera wrote: When put a player on autotranslate it works and when that player does /autotranslate off it works and disables it for him.
It's known feature, at least for me. I can change the behavior of this if you need it to be 'true force', but no change in version 1.21.

Anyway the bug you found fixed, also a bug found by me (the logtranslate text was in reverse order) is fixed.

I really could need a feedback on long logtranslate history, mainly if it works for multi page chat. I don't have enough imagination for writing that many lines = over 3 pages of text.

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: [XASECO|FAST] Google Translate-plugin 1.21 (17.12.2010)

Post by DjDesidera » 17 Dec 2010 17:17

You sure are fast, my compliments and gratitude!!
Fix works nicely :)
After I get from work, I will spam my a** off filling a few pages and report back here.
THX again for the faster then fast-fix!
Last edited by DjDesidera on 17 Dec 2010 21:20, edited 1 time in total.
Image

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: [XASECO|FAST] Google Translate-plugin 1.21 (17.12.2010)

Post by DjDesidera » 17 Dec 2010 19:58

[bump]
Just tested the multipage chatlogtranslate function and came across this:
after 14 pages (the 200th sentence in the log) it starts repeating the same input (screenie)Image

But other than that :gobananas:
:thumbsup:
Last edited by DjDesidera on 17 Dec 2010 21:15, edited 1 time in total.
Image

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [XASECO|FAST] Google Translate-plugin 1.21 (17.12.2010)

Post by reaby » 17 Dec 2010 20:24

ok, i'm not that good with handling manialinks, actually the code for generating the chatlog window is a modification from chat.players.php :)

maybe it is somekind of hard coded limit? Xymph, your advice is encouraged :)

Post Reply