Results 1 to 6 of 6

Thread: Seems to be working... but not translating anything

  1. #1
    quikned is offline Unknown Net Builder
    Join Date
    Mar 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Seems to be working... but not translating anything

    I have installed the files accoring to your installation instructions.... and I have double-checked everything that i can think of.

    When I try to translate a page. Nothing seems to translate at all...

    Here is my site...

    www.qhost123.com/index.php

    This is just a testing site.
    I want to translate to French and I place dthe french flag and link in the right hand column and created a link to here...

    www.qhost123.com/lang/fr/index.php

    Where is the translation???

    Any help or insight would be appreciated..

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    http://www.qhost123.com/lang/fr/hosting_windows.php

    I can't imagine how to make the script do that...

    What are the contents of:

    • /.htaccess
    • /translate/.htaccess
    • /lang/.htaccess
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    quikned is offline Unknown Net Builder
    Join Date
    Mar 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Seems to be working... but not translating anything Reply to Thread

    Not sure what you are asking me.

    All i wantr to do is translate my website from Englich to french.

    My site is simply an informational site written in PHP.

    You implicate that your script simply "translates" a page using the Goggle translate API.

    Why won't it translate my home page...?

    www.qhost123.com/lang/fr/index.php


    Here are the contents of my files...
    • /.htaccess
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^qhost123\.com$
    RewriteRule (.*) http://www.qhost123.com/$1 [R=301,L]
    AddType application/x-httpd-php .php .shtml .html .htm
    • /translate/.htaccess (not changed from your original file)
    # This line enables Apache's Rewrite Engine; it is required for the following lines
    RewriteEngine On
    RewriteBase /translate
    # Stop recursion, use last language, as it should be
    RewriteRule ^[^/]+/[^/]+/translate/([^/]+)/(.*)$ $1/$2 [R=301,L]
    # All english pages go back to parent
    RewriteRule ^[^/]+/en/(.*)$ ../$1 [R=301,L]
    # A directory that is not translated
    #RewriteRule ^[^/]+/[^/]+/(bookstore)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(store)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(graphics)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(forum)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(icons)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(wallpapers)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(avatars)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(clip-art)/(.*)$ ../$1/$2 [L]
    #RewriteRule ^[^/]+/[^/]+/(show)/(.*)$ ../$1/$2 [L]
     
    # Various extentions that are not translated
    RewriteRule ^[^/]+/[^/]+/(.*)\.(exe|gz|zip|rar|asp|js|jsp|php|pdf|xls|mp3|a vi|mpg|mpeg|wmv|gif|png|jpg|bmp|css|ico|GIF|JPG|PN G|feed|trackback)$ ../$1.$2 [L]
    # Call the script
    RewriteRule ^([^/]+)/([^/]+)/(.*)$ index.php?engine=$1&language=$2&page=$3 [L]
    • /lang/.htaccess (not changed from your original file)
    # This line enables Apache's Rewrite Engine; it is required for the following lines
    RewriteEngine On
    RewriteBase /
    #collapse recursion first, then send off to translate
    RewriteRule ^[^/]+/(lang|ylang)/(.*)$ $1/$2 [R=301,L]
    RewriteRule ^(.*)$ translate/g/$1

    I am using my own site as a "testing site" becasue I want to use your script on a client's site. Seems like a good script, but the install and description of how to get it to work is a bit fuzzy...

  4. #4
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Everything looks right; I'm stumped.

    Are you seeing any errors in the Apache error log for that virtual host? What about the systems PHP log?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  5. #5
    quikned is offline Unknown Net Builder
    Join Date
    Mar 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hmmmm

    If I gave you the login details, would you be willing to FTP in and look at it for me (for a fee of course )
    If so, we can exchange details via Skype or email..

  6. #6
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    My schedule is absolute hell for the next couple of weeks. We're back in the U.S., packing up the house to move everything to Singapore. After that, I can find some time.

    Your issue looks to be eerily complex to troubleshoot.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

Similar Threads

  1. Translating a site from another language
    By thomasc in forum Translation Script Support
    Replies: 4
    Last Post: 6 March, 2012, 10:58 AM
  2. How to stop translating...
    By CyberWizard in forum Translation Script Support
    Replies: 2
    Last Post: 5 August, 2010, 06:54 AM
  3. Only Home is translating
    By webdevtech in forum Translation Script Support
    Replies: 1
    Last Post: 22 September, 2009, 16:43 PM
  4. only home page is translating
    By autotech234 in forum Translation Script Support
    Replies: 3
    Last Post: 24 May, 2009, 08:43 AM
  5. Translating From Languages Other Than English
    By Alejandro Weber in forum Translation Script Support
    Replies: 1
    Last Post: 13 March, 2009, 16:34 PM

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
  •