problems with babylon (altavista) & google translate

New scripts, templates and translation files that allows to use Ant Movie Catalog to manage other things than movies
Post Reply
ABNormal
Posts: 135
Joined: 2005-01-08 08:33:38

problems with babylon (altavista) & google translate

Post by ABNormal »

something has been changed in that sites, but they refuse to reply to my scripts with a translation, while when i see that translation through my browser i have no problems...

altavista gave me this answer:

We're sorry we've encountered an error with your request.
If you think this is a bug we should know about {send us e-mail} and let us know the following:

* What browser you were using.
* The operating system you are on.
* The type of translation you were trying when this error occurred.


so, is there a way to simulate a browser during these sessions?

ciao ANToine and thx
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,
The brower user-agent used by AMC is the following:

Code: Select all

Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)
If you use Firefox, you can install the extension named "user agent switcher" to test browsing using that user-agent.
ABNormal
Posts: 135
Joined: 2005-01-08 08:33:38

Post by ABNormal »

1st of all
sorry! i wrote in a wrong area!

2nd: that agent (Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)) brings to that error. damn.
any way to change that agent inside AMC?
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Either go change in the RCData using a resource editor, but I am not sure that it would work, or recompiling the program after having made the change in the code.
ABNormal
Posts: 135
Joined: 2005-01-08 08:33:38

Post by ABNormal »

antp wrote:Either go change in the RCData using a resource editor, but I am not sure that it would work, or recompiling the program after having made the change in the code.
YEAAH! i used an HexEditor replacing that header and it works again with all online translators!

procedure
I looked for: Mozilla into MovieCatalog.exe;
then i changed:
Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library) with the standard
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) filling with spaces the oversized text so...
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)°°°°°°°°°°°° where ° means a space (HEX 20)


Thank You a lot Antoine.

ABN
Post Reply