Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sheffnet

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Robert Day

sheffnet's Achievements

  1. Can anyone help with a minor problem that I am having regarding this contribution. After the URL is passed to Babelfish, it takes me to the Babelfish homepage (http://uk.babelfish.yahoo.com/translate_url) rather than returning to the site. After trying to translate the page at "http://www.sheffield-cutlery.com/cutlery/catalog/index.php" into French the results page is "http://uk.babelfish.yahoo.com/translate_url?doit=done&url=www.sheffield-cutlery.com/cutlery/catalog/index.php/osCsid-d38ae1992b6e76c326f7fc4c53a34145&lp=en_fr". It looks as if the server type is not being sent (http:// or https://) as if I manually add http:// it ends up in the right place with the page translated into whichever language is selected. An extract from catalog/includes/boxes/Babelfish-Languages.php is as follows: <!-- languages //--> <tr> <td> <?php $Babellink = "http://babelfish.altavista.com/babelfish/tr?doit=done&url="; $MainURL = $_SERVER["HTTP_HOST"]; $URLlink = $_SERVER["REQUEST_URI"]; $LINKext = "&lp=en_"; # Edit this from en to what ever your original language reference is. $info_box_contents = array(); $info_box_contents[] = array('text' => 'Languages'); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => ' <!-- BEGIN ALL EDITING --> <table width="175" border="0"> <tr> <td><script type="text/javascript"> //<![CDATA[ document.write("<a style=\"color:#000000;font-weight:normal;\" target=\"_top\" href=\"'.$URLlink.'\"><img src=\"images/languages/english.gif\" width=\"18\" height=\"12\" border=\"1\" alt=\"English\"></a>"); document.close(); //]]> </script></td> <td><script type="text/javascript"> //<![CDATA[ document.write("<a style=\"color:#000000;font-weight:normal;\" target=\"_top\" href=\"'.$Babellink.$MainURL.$URLlink.$LINKext.'zh\"><img src=\"images/languages/chinese.gif\" width=\"18\" height=\"12\" border=\"1\" alt=\"Chinese\" /></a>"); document.close(); //]]> </script></td> .. <some other languages> .. </tr> </table> <!-- FINISH ALL EDITING --> '); new infoBox($info_box_contents); ?> </td> </tr> <!-- languages_eof //--> I can add "http://" to the end of the Babellink definition but then the secure pages will not translate. It needs to translate both secure and non-secure pages. Can someone help please.
×
×
  • Create New...