egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BabelFishTranslator.tcl (current version: 1.12)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Fri Dec 07, 2007 5:02 am    Post subject: Reply with quote

other languages? english to greek? is that possible?

thanks
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Fri Dec 07, 2007 7:50 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat May 24, 2008 4:24 am    Post subject: Reply with quote

This script is broken as of May 24, 2008.

Can you fix this?

Thank You!

Very Happy
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Sat May 24, 2008 7:05 am    Post subject: Reply with quote

I'm aware of that, expect a new version soon. Wink
Back to top
View user's profile Send private message Visit poster's website
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Mon Jun 02, 2008 6:31 am    Post subject: Reply with quote

How soon is soon?

Very Happy
Back to top
View user's profile Send private message
schizosmurf
Voice


Joined: 12 Oct 2007
Posts: 15

PostPosted: Wed Jun 18, 2008 11:11 am    Post subject: Reply with quote

holycrap wrote:
How soon is soon?

Very Happy

not too soon apparently Sad
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Jun 18, 2008 3:29 pm    Post subject: Reply with quote

schizosmurf wrote:
holycrap wrote:
How soon is soon?

Very Happy

not too soon apparently Sad

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.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Fri Jun 27, 2008 7:16 am    Post subject: Reply with quote

 
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.
Back to top
View user's profile Send private message Visit poster's website
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Tue Jul 08, 2008 7:13 am    Post subject: Reply with quote

 
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.
Back to top
View user's profile Send private message Visit poster's website
schizosmurf
Voice


Joined: 12 Oct 2007
Posts: 15

PostPosted: Tue Jul 08, 2008 5:47 pm    Post subject: Reply with quote

thanks. much appreciated
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Wed Jul 09, 2008 7:27 pm    Post subject: Reply with quote

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


Code:

##### 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:

##### 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
}
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Jul 09, 2008 7:47 pm    Post subject: Reply with quote

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


Code:

##### 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:

##### 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:
  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.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Thu Jul 10, 2008 4:08 am    Post subject: Reply with quote

Thank You! Very Happy
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Mon May 30, 2011 5:57 am    Post subject: Reply with quote

Code:
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:
<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>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber