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.schizosmurf wrote:not too soon apparentlyholycrap wrote:How soon is soon?
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
}
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: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: 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 }
Code: Select all
if {$arg == ""} {
bftrans::translator_syntax $chan
if $private {set private 0}
return
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"
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>