| View previous topic :: View next topic |
| Author |
Message |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Fri Dec 07, 2007 5:02 am Post subject: |
|
|
other languages? english to greek? is that possible?
thanks |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Fri Dec 07, 2007 7:50 am Post subject: |
|
|
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 |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Sat May 24, 2008 4:24 am Post subject: |
|
|
This script is broken as of May 24, 2008.
Can you fix this?
Thank You!
 |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Sat May 24, 2008 7:05 am Post subject: |
|
|
I'm aware of that, expect a new version soon.  |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Mon Jun 02, 2008 6:31 am Post subject: |
|
|
How soon is soon?
 |
|
| Back to top |
|
 |
schizosmurf Voice

Joined: 12 Oct 2007 Posts: 15
|
Posted: Wed Jun 18, 2008 11:11 am Post subject: |
|
|
| holycrap wrote: | How soon is soon?
 |
not too soon apparently  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Jun 18, 2008 3:29 pm Post subject: |
|
|
| schizosmurf wrote: | | holycrap wrote: | How soon is soon?
 |
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. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Fri Jun 27, 2008 7:16 am Post subject: |
|
|
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 |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Tue Jul 08, 2008 7:13 am Post subject: |
|
|
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 |
|
 |
schizosmurf Voice

Joined: 12 Oct 2007 Posts: 15
|
Posted: Tue Jul 08, 2008 5:47 pm Post subject: |
|
|
| thanks. much appreciated |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Wed Jul 09, 2008 7:27 pm Post subject: |
|
|
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.
| 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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Jul 09, 2008 7:47 pm Post subject: |
|
|
| 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.
| 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 |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Thu Jul 10, 2008 4:08 am Post subject: |
|
|
Thank You!  |
|
| Back to top |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Mon May 30, 2011 5:57 am Post subject: |
|
|
| 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 |
|
 |
|