Results 1 to 8 of 8

Thread: Lost in translation: url changes but no translation

  1. #1
    dzak is offline Unknown Net Builder
    Join Date
    Feb 2010
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Lost in translation: url changes but no translation

    Hi all,
    Trying to test this nice tool at
    www.instrade.bg/login_forma.php

    Two problems so far: when I click translate link, the url changes, but no translation actually occurs.
    Also, once visited "translated" page the links for the other langs become mess:
    www.instrade.bg/lang/ko/lang/ja/login_forma.php

    Any hints?
    Last edited by dzak; 13 February, 2010 at 13:54 PM. Reason: damn editor

  2. #2
    rapidspider1 is offline Newbie Net Builder
    Join Date
    Feb 2010
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts

  3. #3
    dzak is offline Unknown Net Builder
    Join Date
    Feb 2010
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Yes it's same...
    I beleive it is something connected with mod rewrite.

    BTW you must change the image name for flags to us.gif, fr.gif, etc.

  4. #4
    rapidspider1 is offline Newbie Net Builder
    Join Date
    Feb 2010
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dzak View Post
    Yes it's same...
    I beleive it is something connected with mod rewrite.

    BTW you must change the image name for flags to us.gif, fr.gif, etc.
    yes i know but it's only for to try so the link is enough for now

    can you explain that the mod rewrite as i'am not familiar with it

  5. #5
    dzak is offline Unknown Net Builder
    Join Date
    Feb 2010
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts
    its an apache (web server) module, used for permanent redirects through the htaccess file.
    More info here

    Be careful if you wanna play with this

  6. #6
    perfectblue is offline Newbie Net Builder
    Join Date
    Feb 2010
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Seeming to work fine... now
    just checked ur site
    ++++++++++++++++++++++++++++++++++++++
    PPC Network, Weekly Payment via Paypal
    ++++++++++++++++++++++++++++++++++++++

  7. #7
    rapidspider1 is offline Newbie Net Builder
    Join Date
    Feb 2010
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts
    which site? i checked them both but not working for me

  8. #8
    dzak is offline Unknown Net Builder
    Join Date
    Feb 2010
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Status update: Problem solved by simply removing php from excluded filetypes at htaccess file. Big thanks to floydax.
    Status update: I will post additional data as per Post Trouble Report

    * The URL of the site you are translating
    http://www.instrade.bg/test-google.php
    * The URL to a copy of version.php running on your site
    http://www.instrade.bg/phpinfo.php
    * Does the issue affect Google Translate, Yahoo Babelfish, or both?
    Never tested Yahoo - but I doubt if this is the issue
    * What hosting company is your web site hosted at?
    host.bg
    * Which version of the Translation Script are you running? (Look at the top of translate/translate.php)
    Missing version info - but is the last oneq, from a few days ago
    * What version of Apache are you running? (1.3 or 2.x)
    1.3
    * Does your Apache configuration have mod_rewrite enabled?
    Yes
    * If you are calling the script from html files, is your Apache configured to support PHP code embedded in html files?
    I'm calling .php files
    * Does your host support cURL?
    Yes
    * Is PHP safe_mode disabled on your host?
    Yes
    * What HTML/JavaScript/PHP/etc... code are you using to call the script?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p>Тестово изречение за превод</p>
    <table width="100%" align="center">
                                    <tr>
                                        <td><a href="/lang/bg<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/bg.gif" alt="Bulgarian" border="0"></a> </td>
                                        <td><a href="/lang/en<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/uk.gif" alt="English" border="0"></a> </td>
                                        <td><a href="/lang/de<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/de.gif" alt="German" border="0"></a> </td>
                                        <td><a href="/lang/es<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/es.gif" alt="Spanish" border="0"></a> </td>
                                        <td><a href="/lang/fr<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/fr.gif" alt="French" border="0"></a> </td>
                                        <td><a href="/lang/it<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/ita.gif" alt="Italian" border="0"></a> </td>
                                        <td><a href="/lang/pt<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/pt.gif" alt="Portuguese" border="0"></a> </td>
                                     </tr>
                                     <tr>
                                        <td><a href="/lang/ru<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/ru.gif" alt="Russian" border="0"></a> </td>
                                        <td><a href="/lang/ja<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/jp.gif" alt="Japanese" border="0"></a> </td>
                                        <td><a href="/lang/ko<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/kr.gif" alt="Korean" border="0"></a> </td>
                                        <td><a href="/lang/gr<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/gr.gif" alt="Greece" border="0"></a> </td>
                                        <td><a href="/lang/zh-CN<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/cn.gif" alt="Chinese" border="0"></a></td>
                                        <td><a href="/lang/ar<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/sa.gif" alt="Arabic" border="0"></a></td>
                                        <td><a href="/lang/cz<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/translate/graphics/cz.gif" alt="Czech" border="0"></a> </td>
                                    </tr>
                                      </table>
     
    </body>
    </html>
    * What error messages are you seeing in your Apache server logs?
    no errors
    * What error messages are you seeing when you try to translate a page?
    no errors, url changes but no actual translation occurs and after the first redirection the language links are messed:
    example:
    first click: http://www.instrade.bg/lang/de/translate/test-google.php
    second click: http://www.instrade.bg/lang/de/lang/en/test-google.php but url @ the address bar stop changes anymore
    Last edited by dzak; 25 February, 2010 at 14:50 PM. Reason: Problem solved

Similar Threads

  1. Translation Script Documentation
    By Will.Spencer in forum Translation Script Support
    Replies: 28
    Last Post: 12 October, 2012, 21:02 PM
  2. Adsense ToS and Translation
    By cobs in forum Translation Script Support
    Replies: 3
    Last Post: 23 September, 2009, 10:30 AM
  3. Seeing some other translation scripts.. Whats this?
    By CrazyRight in forum Translation Script Support
    Replies: 7
    Last Post: 22 September, 2009, 16:45 PM
  4. Need help with this Translation Script!
    By coder77 in forum Translation Script Support
    Replies: 1
    Last Post: 26 February, 2009, 20:05 PM
  5. translation benefits
    By DomainMagnate in forum Translation Script Support
    Replies: 9
    Last Post: 14 December, 2008, 10:29 AM

Tags for this Thread

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
  •