Check your PHP Configuration
Create a file called version.php on your web site with the following code in it:
Load this page in your web browser to set details of your PHP configuration.Code:<?php phpinfo(); ?>
The Translation Script requires safe_mode to be set to off and it requires cURL support to be enabled.
Enable Debugging Options in translate/tr_config.php
tr_config.php has two options for debugging:
This saves .RAW files in your cache directories. These files are the raw data that we get back from the translation engines, before any fixups are applied. These files take up a lot of space; Don't leave this enabled unless you need it. This is useful for debugging the content of translated pages.Code:$params['write_raw_content'] = 0; //writes data received from translator server for debuggging purposes
This enables enhanced error messages on translation failures. This can be very useful when translations are not working. Your site visitors can see these messages also, so it's best not to leave this enabled.Code:$print_error_text = 0; //Control the printing of error text (0/1)
Enable Logging Options in translate/tr_config.php
The script has many levels of error logging. These are configured by setting the log_level variable in the file translate/tr_config.php.
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedirCode:$log_level = TRLOG_DEBUG; //logging level (LOG_NEVER,LOG_ERROR,LOG_WARN,LOG_INFO,LOG_DEBUG,LOG_TRACE)
This error message usually means that PHP safe_mode is enabled. If you are the admin of your server, disable safe_mode. If you are not the admin, as the admin (usually your hosting company) to disable safe_mode. If they refuse, look for a more responsive hosting company.
We are experiencing a temporary problem with the foreign language section. Please try again later. We apologize for the inconvenience.
Scuzi / Perdon / Pardon / Das is Nicht Gud / Sori / Nay canne doo tha laddy
This error usually means that the script is working, but you've overloaded the translation servers and they've blocked your web servers IP address.
This can happen a lot before you fill your translation cache.
You can get more information about this error by enabling $print_error_text as described above.
What To Do If You are Blocked by Google Translate
If you send too many requests too quickly to Google Translate, the IP address of your server will be blocked.
To reduce the number of requests you send to Google Translate, increase the $translator_cache_days variable in translate/tr_config.php.
Once your servers IP is blocked, it normally only stays blocked for a few days. You will have to wait it out or switch the outbound IP address of your server.
What To Do If You are Blocked by Yahoo Babelfish
Yahoo uses IP addresses instead of DNS entries in a lot of their Babelfish code. These IP addresses change, depending upon what part of the world your web server is in. If Yahoo Babelfish isn't working for you, you may have to change the Babelfish IP address listed in translate/translate.php.
In addition, Yahoo has also sometimes blocked requests coming from the same IP address as the web site where the pages are served. A web server with one IP address will use that IP address for incoming (web) traffic and outgoing (translation) traffic. Yahoo Babelfish translation may not work at all on a web server with one IP address. If your web server has two or more IP addresses, you can use the primary IP address as the outgoing IP address and publish another IP address at the incoming IP address.
Enabling Debugging for Apache mod_rewrite
Some translation script issues are the result of issues with mod_rewite. 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"