Gossamer Forum
Home : Products : Links 2.0 : Customization :

Eliot - translation.cgi

Quote Reply
Eliot - translation.cgi
Eliot:
I'd like to try and implement translate.cgi in the same manner as you have on your site. This would not be for a links implementation, but just the overall 5 translation links to translate the entire site. I had downloaded the script from Widgetz's site way back when and am now trying it out with no success. I tried downloading your version, but it's no longer there. I see how you code the links, but I only receive error readings. Can you help out?
Thanks. Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
One more note:
Eliot, on your site, I noticed German worked, but I couldn't get some of the others to work.
Thanks again. Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
Use the version that Bmxer wrote...that is the one I am using!

Go here:

lookhard.hypermart.com/links-mods/

IF that is not the correct URL, then search this forum for the User Bmxer in the search form. He has his web site listed in his signature file.

Also, go to the Block URL Mod in the Resource Center...the Translation script is located in the web page where the Block URL Mod is located.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
Thanks Eliot, I may use that for links, but do you know of a script that will translate the average web site using babelfish? Similar to the output you have on your site, only without links.

Thanks again.
Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
Someone help me please Frown

Initially I as getting internal server errors but I found out LWP wasn't installed so I had to upload a copy and add a USE LIB line above LWP::SIMPLE. I thought that was it because the page at least shows up now, but now when I click the submit button all I get is a blank screen -- no errors.

Any idea as to what's wrong now?

--Drew
(might want a URL) http://ucmd.virtualave.net/.../music/translate.cgi

[This message has been edited by junko (edited February 10, 2000).]
Quote Reply
Re: Eliot - translation.cgi In reply to
Uh...BlakeW. I am using the Mod written by Bmxer.

All you have to do to translate your directory is use similar links I have in my directory AFTER you install the Mod that Bmxer wrote.

Like the following:

Code:
<a href="http://www.yourdomain.com/cgi-bin/translate.cgi?url=http://www.yourdomain.com/&language=german">German</a>

Uh...and the translate.cgi script originally written by Widgetz and modified by Bmxer CONNECTS TO BABELFISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
OK. I'll give it a try.
I didn't think it would work because it seemed to be calling the templates.
Thanks. Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
It does work with templates...however, you can easily edit the scripts to work with your site_html.pl file, if you are not using templates.

junko,

Make sure you have copied all the codes EXACTLY from the translate mod...

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
Hmmm. I'm getting confused.
Like I was saying. There is no Links script involved here. Just an ordinary site without a Links directory.
Do you think it would still work?

Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
YES....

All you do is use the translate.cgi script used in LINKS, but define the arguments in the query string as I HAVE ALREADY given you!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
I did download the script from Bmxer's site.
The script I downloaded has the following code that seems to pertain to Links:

# File: translate.cgi
# Description: Uses Altavistas BabelFish program to keep users at your site, while still translating.
# Author: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.0
#
# (c) 1998 Gossamer Threads Inc.

# Setup Notes:
# Make sure the require statement below points to the config file.

require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";

Does the script that you're using have this same information?
Otherwise, I can't pull up a translated page.
Thanks for your help.
Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
Yes...it does...You also have to have the template files uploaded in your templates directory.

In addition, this script uses LWP:Simple. Make sure that your server has this module installed.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
I ran the script through a perl syntax checker and got the following message:
Can't locate LWP/Simple.pm
I suppose our server doesn't have LWP?
Oh well, thanks for your help.

Blake

------------------
Blake Webster
www.webcamsearch.com
Quote Reply
Re: Eliot - translation.cgi In reply to
Yep...that is the problem.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
BTW: Your quick and dirty solution in your site does NOT work.

You need to use the following codes in your link.html file:

Code:
<a href="http://babelfish.altavista.digital.com/cgi-bin/translate?urltext=<%URL%>">Auto-Translate</a>

Using the jump.cgi link causes too many errors as I assume you have tested already.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Eliot - translation.cgi In reply to
Eliot,
I downloaded it directly from Bmxer's site. The only change I made was to point LWP to a local library because it wasn't installed. It's got to be something to do with it still because translate.cgi worked just fine when I put it on my offline copy. Does LWP require other modules to be installed?

--Drew
Quote Reply
Re: Eliot - translation.cgi In reply to
You need to have the full LWP module installed on your server in order for this mod and other LWP mods to work.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Re: Eliot - translation.cgi In reply to
Glad you found it...

Again...a public service announcement...

Are you having problems with your Links Directory? Do you need ideas for Modifying your Links Directroy?

Then have we got a deal for you....

Check out the Resource Center...filled with great ideas and FAQs about Gossamer-Threads scripts...first place to check for all your LINKS and DBMAN, and even FILEMAN needs!

Can't find what you are looking for in the Resource Center...well, we got a variety of forums in the Gossamer Threads scripts forums to help you find what you are looking for! Use the search engine, which will direct you to related Threads!

But that's not all...If you have questions about general Perl and CGI needs, check out the Perl/CGI Forum at Gossamer-Threads...search this forum for great ideas for customizing and de-bugging your cgi and perl scripts.

Thank you and have a great day!

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Re: Eliot - translation.cgi In reply to
Sorry but I didn't find where I can download translate.cgi
ok ok I found it Smile

[This message has been edited by jumaru2 (edited February 12, 2000).]