Author Topic: Yandex translation command  (Read 8697 times)

0 Members and 1 Guest are viewing this topic.

Hiryu

  • Contributor
  • ***
  • Posts: 53
  • Karma: 2
    • View Profile
Re: Yandex translation command
« Reply #15 on: February 12, 2015, 04:42:22 PM »
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:
Quote
2/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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Yandex translation command
« Reply #16 on: February 12, 2015, 04:53:21 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

  • Contributor
  • ***
  • Posts: 53
  • Karma: 2
    • View Profile
Re: Yandex translation command
« Reply #17 on: February 12, 2015, 05:17:45 PM »
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.