NetBuilders

You are welcome to look around. You will have to register before you can post a message, create a blog, chat live with our members, or add a site to our directory.




Reply Steve Fortuna
Old 30 April, 2009, 02:05 AM   #1 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 5
$NetBucks: 0
Join Date: Mar 2009
Last Online: 6 May, 2009 19:04 PM
Default Troubles with the Translation Script

I am completely perplexed...

I have downloaded v2.16 and followed all of the steps.... and NOTHING...

I must admit, I am a web designer and the installation instructions are NOT crystal clear.

Some recommendations for the Installation procedure.
1) The ZIP files extracts all directories in the correct structure... so why not tell the user to upload the extracted directories to the root web directory of the server and not "rearrange" the exctracted directory structure? That eliminates a lot of explanations
2) Why keep the graphics in additional /separate ZIP files??? Why not just leave them as folders in the correct location in the directories and explain what they are?
3) The SHTML files need to be explained as to what they are... I am not sure why they are SHTML files and yet they have PHP code inside of it. A lot of servers dont' complie PHP code in HTML or SHTML files. Why not just tell people to copy/paste the code into their site files?
4) Why is your report.sh file written for HTML files as a default instead of PHP files? If you copy the code fromt he SHTML files, into a HTML file it will be useless becasue the PHP code won't be compiled...
5) Why are there no working examples that I can see? If you posted YOUR OWN site as an example, we could see that it works.. You could even post a comment on the site that gives updates to us all (such as... "hey... Google changed their translation script again... and v2.16 does not work"...)

I am having a problem with my code..

Here are the details that you asked for...
PLEASE HELP

* The URL of the site you are translating...
Beach Carousel Motel - Virginia Beach, VA (testing page)

* The URL to a copy of version.php running on your site (See the Troubleshooting Tips for a copy of this on-line program.)
phpinfo()

* Does the issue affect Google Translate, Yahoo Babelfish, or both?
Both

* What hosting company is your web site hosted at?
My own dedicated server. UNIX/FreeBSD

* Which version of the Translation Script are you running? (Look at the top of translate/translate.php)
2.16

* What version of Apache are you running? (1.3 or 2.x)
2.x

* 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?
No

* Does your host support cURL?
Yes

* Is PHP safe_mode disabled on your host?
No

* What HTML/JavaScript/PHP/etc... code are you using to call the script?
What? My files are PHP files. Where in the instructions does it say that I need to "call the script"?

* What error messages are you seeing in your Apache server logs?
None... it's just not translating anything.

* What error messages are you seeing when you try to translate a page?
None... it's just not translating anything.
  Reply With Quote
Old 30 April, 2009, 19:02 PM   #2 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,622 Times in 890 Posts
Posts: 4,953
$NetBucks: 8,556
Join Date: Dec 2008
Last Online: Today 20:37 PM
Default

Quote:
Originally Posted by quikned View Post
1) The ZIP files extracts all directories in the correct structure... so why not tell the user to upload the extracted directories to the root web directory of the server and not "rearrange" the exctracted directory structure? That eliminates a lot of explanations
I've rewritten the documentation for 2.16b. It's posted now. I think you'll like what you see.

Quote:
Originally Posted by quikned View Post
2) Why keep the graphics in additional /separate ZIP files??? Why not just leave them as folders in the correct location in the directories and explain what they are?
The graphics are optional samples. They are not necessary. They are simply useful for some people who may chose to implement the script in that way.

But... unzipping them isn't a bad idea. I'll give that a try. I also moved them under the translate directory so they don't accidentally overwrite anything else on the website.

Of course, we provide two sets of sample graphics, so people will still need to make a choice as to which set they want to use on their web site.

Quote:
Originally Posted by quikned View Post
3) The SHTML files need to be explained as to what they are... I am not sure why they are SHTML files and yet they have PHP code inside of it. A lot of servers dont' complie PHP code in HTML or SHTML files. Why not just tell people to copy/paste the code into their site files?
Only a small portion of people use PHP files. Perhaps you could write a guide to implementing the translation script just for those people?

Quote:
Originally Posted by quikned View Post
4) Why is your report.sh file written for HTML files as a default instead of PHP files? If you copy the code fromt he SHTML files, into a HTML file it will be useless becasue the PHP code won't be compiled...
If I switched the default to PHP files, people who used HTML files would complain.

People who can't edit a text file are not the target users for this script.

Quote:
Originally Posted by quikned View Post
5) Why are there no working examples that I can see? If you posted YOUR OWN site as an example, we could see that it works..
Check Be a Private Investigator for a reference implementation.

Quote:
Originally Posted by quikned View Post
You could even post a comment on the site that gives updates to us all (such as... "hey... Google changed their translation script again... and v2.16 does not work"...)
That's what this forum is for.

Quote:
Originally Posted by quikned View Post
I am having a problem with my code.
Beach Carousel Motel - Virginia Beach, VA

If I go to this URL it indeed looks like the script is not being reached:
Code:
http://www.beachcarousel.com/lang/de/index_new.php
Thinking this through...

This means that lang/.htacess must be working.

It looks like translate/.htaccess does not exist or is not being called properly by Apache.

Also, did you edit your site_url into tr_config.php?

Quote:
Originally Posted by quikned View Post
What error messages are you seeing in your Apache server logs?
None... it's just not translating anything.
The script logs an enormous amount of data to the Apache logs. I would edit translate/tr_config.php to set $log_level to LOG_DEBUG just to make certain nothing is happening.

If nothing is being logged, then the script is not being reached.

Also in translate/tr_config.php, please set write_raw_content to true. That will keep some temporary files in your cache directory.

Finally, it is possible to enable enhanced mod_rewrite logging by placing the following lines in the Apache configuration for your vhost:
RewriteLog "location_where_you_want_the_rewrite_log_store d"
RewriteLogLevel 9
Then, please send me a few of those cache files and a good excerpt from your Apache logs and the rewrite logs.

Thanks man!

Last edited by Will.Spencer; 30 April, 2009 at 20:32 PM..
  Reply With Quote
Old 1 May, 2009, 16:03 PM   #3 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 5
$NetBucks: 0
Join Date: Mar 2009
Last Online: 6 May, 2009 19:04 PM
Default Troubles with the Translation Script

Hey Will,

I made the changes to the tr_config.php file and nothing really changed.

I have not made any changed to the Apache configuration concerning the ReWriteLog.... I'd like to wait on that.

My site is pretty simple.

I'm surprised when you say taht not many people have sites written in PHP.

I use PHP for ALL of my sites. Maybe I'm in the minority...

Anyway..

I have spent an enormous amount of tie tinkering with this script and trying to get it to work and it is tearing my hair out.

I have no problem paying you to take a look at it. I can provide all FTP login details as well as SSH.

Something that would probably take me 5 hours to find or recognize, might take you 5 minutes..

Please let me know..
  Reply With Quote
Old 2 May, 2009, 10:59 AM   #4 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,622 Times in 890 Posts
Posts: 4,953
$NetBucks: 8,556
Join Date: Dec 2008
Last Online: Today 20:37 PM
Default

I only work for beer.

But if you PM me the login details, I'll take a look.

Thanks for your comments on the documentation! I posted a major rewrite yesterday.
  Reply With Quote
Old 5 May, 2009, 02:06 AM   #5 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,622 Times in 890 Posts
Posts: 4,953
$NetBucks: 8,556
Join Date: Dec 2008
Last Online: Today 20:37 PM
Default

Update: The script is now working for quikned.

This looks to be a problem caused by a bad default setting in tr_config.php.

The fix was to change $use_lang_hostnames to false.

True is set if you use subdomains instead of subdirectories for translated paths.
  Reply With Quote
Reply

Bookmarks

Tags
script, translation, troubles


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
404 Error with the Translation Script davesnake Translation Script Support 59 14 September, 2009 07:58 AM
Need help with this Translation Script! coder77 Translation Script Support 1 26 February, 2009 20:05 PM


All times are GMT. The time now is 20:41 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.1
vBAdvertise v1.0.0 Copyright ©2009, PixelFX Studios
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios