Help Center » Web 3.0 Apps

Fish in labnol.org

(6 posts)
  • Started 9 months ago by satishbdvg
  • Latest reply from satishbdvg
  1. hellow sir,

    I was finding ways to add language translators to one of my college project website....I had almost done it using AJAX, but when I came across your website I also felt that php is more simpler...So I used the same thing as yours.
    But I am still having some problem.
    In translat.php I have used http://www.google.com/translate_c?langpair=&u=

    but still its not working.
    It gives the following error message

    Google
    Error

    Bad Request
    Your client has issued a malformed or illegal request.

    -------------------------------------------------------
    Everything else is alright, but that translat.php isn't working properly.
    I just linked it to your server's tranlat.php and everythink worked fine.
    Now don't worry, I wont steel anybodies bandwidth.I just tested it and removed the link.
    Now Please help me.....

    Posted 9 months ago #
  2. Hellow sir,

    I am using different codes to translate language now...
    I am getting this url

    http://translate.google.com/translate?hl=en&langpair=en%7Cja&u=http://labnol.org

    But I want this url
    http://translate.google.com/translate_c?hl=en&langpair=en%7Cja&u=http://labnol.org

    The difference b/w the above 2 urls is the second one is having _c after http://translate.google.com/translate .Please guide me how to get it?

    I just want to redirect the url from 1st to 2nd url.Is that possible?
    Please help me sir, its very urgent now..

    Thanks in advance.

    Posted 9 months ago #
  3. Sir please answer me......

    I am using

    <script type="text/javascript">var u="http://technotip.org/MyTools/translate.php?t="+escape("<?php the_title(); ?>")+"&u="+escape("<?php the_permalink() ?>");document.write('<select name="to_lang" onchange="lp=this.options[this.selectedIndex].value; if(lp!=\'\') window.location=\''+u+'&l=\'+lp;" style="font:11px arial;width:115px" align="center"><option value=\'\'>Select language</option><o
    .
    .
    .</script>

    in my blog.

    And I have a translate.php file..which contails

    <html>
    <head><title>Translating </title>
    <meta http-equiv="refresh" content="0; URL=http://www.google.com/translate_c?langpair=&u=">
    </head>
    <body>

    .
    .
    .</html>

    but still I am getting the error

    Bad Request
    Your client has issued a malformed or illegal request.

    please tell me the solution.

    Please sir...I am really waiting a lot for your reply!

    ( My blog is still underconstruction. )

    Posted 9 months ago #
  4. Hellow sir,

    Please don't answer to any of my above questions.Just leave it.

    I have only one last question...

    I have put an option list, to select from a dropdown list.
    Ex:-

    <select>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    </select>

    And it has some 15 items.Now, when somebody clicks on it, he must get only 5 items there with a scroll bar, to scroll and see the remaining 10 items.
    Please tell me the syntax for it.

    Posted 8 months ago #
  5. Anonymous
    Unregistered

    Answer to you last post is to put size="5" every other options will go down the scrollbar as you wanted

    syntax - <select size="5">

    Posted 7 months ago #
  6. Oh thanks a lot lalit !

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.