<speechles> !tr @id hello indonesians how is the weather?
<sp33chy> Google: (auto->id) English to Indonesian translation
<sp33chy> halo Indonesia bagaimana cuaca?
<speechles> !tr halo Indonesia bagaimana cuaca?
<sp33chy> Google: (auto->en) Spanish to English translatio
<sp33chy> Indonesia bagaimana halo quack?
<speechles> !tr id@ halo Indonesia bagaimana cuaca?
<sp33chy> Google: (id->en) Indonesian to English translation
<sp33chy> Indonesia hello how the weather?
On auto (a !tr request with no source), it sometimes makes mistakes. Notice when using "auto" it wrongly guesses the source as Spanish? This supports every single language pair google translate offers as well as knowing which aren't available... yet.
Code: Select all
# set your default translation language here, this is what will be assumed
# if the user omits the 'translate to' portion of their input.
# en, es, it, nl, de, etc.. these are merely some examples, there are more available.
# ------
variable trans "en"
Change that above to "id" and it translates to Indonesian by default when no destination language to translate to is given.
This "feature" is found within
this script. It fully supports Indonesian in several sites (Of course most are google related), and supports literally any language you can imagine in requests, if your eggdrop is patched for utf-8 support.