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..
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...
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...