This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

BabelFishTranslator.tcl (current version: 1.12)

Support & discussion of released scripts, and announcements of new releases.
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

other languages? english to greek? is that possible?

thanks
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

Yes, as long it is supported by BabelFish.

All you need to do is to edit variable translatorlanguages to add the pair you want, and to modify the help given when you type !translate langlist to reflect the new languages.
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

This script is broken as of May 24, 2008.

Can you fix this?

Thank You!

:D
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

I'm aware of that, expect a new version soon. ;)
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

How soon is soon?

:D
User avatar
schizosmurf
Voice
Posts: 15
Joined: Fri Oct 12, 2007 10:50 am

Post by schizosmurf »

holycrap wrote:How soon is soon?

:D
not too soon apparently :(
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

schizosmurf wrote:
holycrap wrote:How soon is soon?

:D
not too soon apparently :(
Until it is fixed, You can use Unofficial incith google script which allows Google Translations, including greek among others. Supports any translation pairs google allows, no need to customize a thing to get more, as google adds them the script supports them.
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

 
Sorry for the longer than expected "long".
I don't have much time for programming right now but don't worry, I don't forget you.
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

 
New version available : v1.12

- script has been fixed, according to website changes (babelfish.yahoo.com). Thanks to Ennery.

You can find a working link to download it in the first post of this thread.
User avatar
schizosmurf
Voice
Posts: 15
Joined: Fri Oct 12, 2007 10:50 am

Post by schizosmurf »

thanks. much appreciated
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

How do I make it so that it will notice the "user" and not send message to the channel? I edit the code below but it is still noticing everyone in the channel. It is annoying every time someone input the command wrong and everyone sees the message.

Thanks ahead of time. :D

Code: Select all

##### Syntax
proc bftrans::translator_syntax { chan } {
	variable private
	if $private {set private 0}
	puthelp "privmsg $chan :\037Syntax :\037 \002!translate\002 \00314<\003languages\00314> <\003word or sentence\00314> \00307| \003Display the translation for a given word or sentence. For a list of available languages, type \002!translate langlist\002"
	return
}

I changed it to.

Code: Select all

##### Syntax
proc bftrans::translator_syntax { nick } {
	variable private
	if $private {set private 0}
	puthelp "notice $nick :\037Syntax :\037 \002!translate\002 \00314<\003languages\00314> <\003word or sentence\00314> \00307| \003Display the translation for a given word or sentence. For a list of available languages, type \002!translate langlist\002"
	return
}
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

holycrap wrote:How do I make it so that it will notice the "user" and not send message to the channel? I edit the code below but it is still noticing everyone in the channel. It is annoying every time someone input the command wrong and everyone sees the message.

Thanks ahead of time. :D

Code: Select all

##### Syntax
proc bftrans::translator_syntax { chan } {
	variable private
	if $private {set private 0}
	puthelp "privmsg $chan :\037Syntax :\037 \002!translate\002 \00314<\003languages\00314> <\003word or sentence\00314> \00307| \003Display the translation for a given word or sentence. For a list of available languages, type \002!translate langlist\002"
	return
}

I changed it to.

Code: Select all

##### Syntax
proc bftrans::translator_syntax { nick } {
	variable private
	if $private {set private 0}
	puthelp "notice $nick :\037Syntax :\037 \002!translate\002 \00314<\003languages\00314> <\003word or sentence\00314> \00307| \003Display the translation for a given word or sentence. For a list of available languages, type \002!translate langlist\002"
	return
}
You probably don't realize this, but changing the parameter declaration sure, will let it use $nick instead of $chan. But the passed argument will still be channel. This just confuses things and is fine if you leave it as $nick or $chan it makes no difference. What you want to change is this:

Code: Select all

  if {$arg == ""} {
  	bftrans::translator_syntax $chan
		if $private {set private 0}
		return
specifically, the bftrans::translator_syntax part, change the $chan to $nick. Problem solved.
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

Thank You! :D
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

Code: Select all

variable translatorlanguages "en-es en-fr en-it en-de en-nl en-pt es-en en-zt fr-en it-en de-en nl-en pt-en zt-en"
I try adding Chinese "en-zt" and eggdrop is showing blank as output. Does this mean eggdrop does not support non-english characters? I used "en-zt" from the bablefish translator page pasted below.

Any help would be much appreciated!

Code: Select all

<option value="zh_en">Chinese-simp to English</option>
<option value="zh_zt">Chinese-simp to Chinese-trad</option>
<option value="zt_en" selected>Chinese-trad to English</option>

<option value="zt_zh">Chinese-trad to Chinese-simp</option>
<option value="en_zh">English to Chinese-simp</option>
<option value="en_zt">English to Chinese-trad</option>
<option value="en_nl">English to Dutch</option>
<option value="en_fr">English to French</option>
<option value="en_de">English to German</option>
<option value="en_el">English to Greek</option>
<option value="en_it">English to Italian</option>
<option value="en_ja">English to Japanese</option>

<option value="en_ko">English to Korean</option>
<option value="en_pt">English to Portuguese</option>
<option value="en_ru">English to Russian</option>
<option value="en_es">English to Spanish</option>
<option value="nl_en">Dutch to English</option>
<option value="nl_fr">Dutch to French</option>
<option value="fr_nl">French to Dutch</option>
<option value="fr_en">French to English</option>
<option value="fr_de">French to German</option>

<option value="fr_el">French to Greek</option>
<option value="fr_it">French to Italian</option>
<option value="fr_pt">French to Portuguese</option>
<option value="fr_es">French to Spanish</option>
<option value="de_en">German to English</option>
<option value="de_fr">German to French</option>
<option value="el_en">Greek to English</option>
<option value="el_fr">Greek to French</option>
<option value="it_en">Italian to English</option>

<option value="it_fr">Italian to French</option>
<option value="ja_en">Japanese to English</option>
<option value="ko_en">Korean to English</option>
<option value="pt_en">Portuguese to English</option>
<option value="pt_fr">Portuguese to French</option>
<option value="ru_en">Russian to English</option>
<option value="es_en">Spanish to English</option>
<option value="es_fr">Spanish to French</option>
Post Reply