News:

Would you like to say "Thanks!" for extra support or new features that we provided? Donations are gratefully accepted.

Main Menu

Yandex translation command

Started by nime5ter, March 10, 2014, 06:28:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hiryu

I recopied the select code from the beginning of the thread just to make sure I didn't muck anything up on my version.

Without any other changes, the History Window shows

Scrape.XML:https://translate.yandex.net/api/v1.5/tr/translate?key=map.error&text=apple&lang=el&format=plain&&text

And when I roll the mouse over it just says  Error: scrape error

I think the relevant log section is:
Quote2/12/2015 2:47:20 PM   941   doCommand:translate {1} to {2}
2/12/2015 2:47:20 PM   941   action repeat set to: 1
2/12/2015 2:47:20 PM   941   replace maps: {M:ydx_key.YandexAPI}
2/12/2015 2:47:20 PM   941   map error: SQL logic error or missing database
no such table: ydx_key
2/12/2015 2:47:20 PM   941   Action:  Scrape.XML - https://translate.yandex.net/api/v1.5/tr/translate?key=map.error&text=apple&lang=el&format=plain&&text
2/12/2015 2:47:20 PM   941   [action] Scrape.XML:https://translate.yandex.net/api/v1.5/tr/translate?key=map.error&text=apple&lang=el&format=plain&&text

2/12/2015 2:47:21 PM   214   action result: Error: scrape error
2/12/2015 2:47:21 PM   214   action repeat set to: 1
2/12/2015 2:47:21 PM   214   error replacing variables: {Match.1}
2/12/2015 2:47:21 PM   214   Action:  OSD.ShowText - {Match.1}
2/12/2015 2:47:21 PM   214   [action] OSD.ShowText:{Match.1}

2/12/2015 2:47:21 PM   217   action result: OK

It seems to be looking for a table ydx_key.  Do I need an API key for this?  Don't recall having one before and it was working. 

nime5ter

Quote from: Hiryu on February 12, 2015, 04:42:22 PM
It seems to be looking for a table ydx_key.  Do I need an API key for this?  Don't recall having one before and it was working.

That's the problem with recollections. :-)

As per the original post, an API key is required.

I've now edited the first post to bold the part about needing an API key.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Hiryu

Wow --  bad recollection!  I'm guessing I did input the key before and somehow in transferring my VC build to a new computer, I must have mucked something up.  The command was still there but not the key.  My bad.  Silly me!  Sorry Nime5ter.