Results 1 to 13 of 13

Thread: Need help on 'google translator' code

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Need help on 'google translator' code

    Thanks for the info Spirit.
    If everything seems to be going well, you have obviously overlooked something.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Need help on 'google translator' code

    try to change this line
    Qt Code:
    1. QString url=QString("http://translate.google.com/translate_a/t?Client=t&sl=" + from + "&tl=" +to);
    To copy to clipboard, switch view to plain text mode 
    om this one
    Qt Code:
    1. QString url=QString("/translate_a/t?client=t&sl=" + from + "&tl=" + to);
    To copy to clipboard, switch view to plain text mode 
    looks like this code works.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Need help on 'google translator' code

    hi,
    did you mean that making the above changes in the modified code makes it work?
    Problem is none of the application shows anything my side....neither the original by Alex nor this modified one...so,I have to get the info from you.Thanks
    If everything seems to be going well, you have obviously overlooked something.

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Need help on 'google translator' code

    yes, if you applay changes (that I described abow) in your app version then it starts working.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. The following user says thank you to spirit for this useful post:

    rishiraj (9th March 2009)

  6. #5
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Need help on 'google translator' code

    Hi Spirit,
    Thank you so much for taking the time to go over the code and for rectifying the mistakes.
    If everything seems to be going well, you have obviously overlooked something.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.