Google Translator - Auto Text-Translator v3
mIRC Code
+ 2 likes
Please Register to submit score.
| Average Score | 8.3 (of 3 scores) |
| Date Added | May 02, 2009 |
| Last Updated | May 03, 2009 |
| Tags | dialog google kirby mirc sockets translate translator |
Introduction
What's different about this than any other ones out there?
- Not only does this include the Traditional Google Translator, I've added an edition to make it actually translate your text to another language of your choice, automatically!
- So, what languages can I use? All 41 available languages to Google Translator:
Detect language, Albanian, Arabic, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Filipino, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Maltese, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukrainian, Vietnamese, including the addition of Detect Language for your convenience.
- So what kinds of things can I do with this?
In this script, you can do 4 kinds of things for translation:
- Translate text via alias (returns an echo) - Syntax: /translate <language|language2> <text>
- Translate text via bot command (returns a channel message) - Syntax: !translate <language|language2> <text>
- Translate text via dialog (returns translation to the dialog) - Syntax: /trans to open up the dialog
- Last but not least, talk normally in an active channel/query, and let the script translate for you. - Syntax: Open up the dialog or use the menu to turn the switch on/off
- Translate text via alias (returns an echo) - Syntax: /translate <language|language2> <text>
- Tabs?
In the dialog, there are two tabs.
- The first tab is a replica of the Traditional Google Translator (located here).
- The second tab is the enhancement. It allows you to adjust what language you are auto-translating to, along with enabling/disabling the whole thing, and adding exception channels (so the translations will not work in that channel).
- The first tab is a replica of the Traditional Google Translator (located here).
So why did I make this?
- I mainly wanted to focus on using regular expression identifiers such as $regex and $regsubex, to make scripts shorter, and ultimately, stay away from $htmlfree.
- I wanted to try to find a way to make a script without listing all of the possible languages, and in turn, "download" + "write" each of the languages and its abbreviations to separate text files located on another directory.
- Using only one variable that is "/set" and written to variables.ini.
What else? Some new accomplishments and points:
- I managed to use only 1 variable written to variables.ini, or variable that is actually /set. (I dislike using variables because I have OCD with them)
- You can define multi-line expressions. No need to convert them so that they are all in one line.
- Regex can be very helpful in scripts. They can shorten your scripts significantly.
- Original site is used: http://translate.google.com/. Only one site is used, no PHP parsers or anything.
- Though, surprisingly to me, the socket portion is very small, there are a few checks to see if the text files are there, which slightly bulks the script up, but shouldn't be a problem.
A final note if you will use this:
- Preferably, open up the dialog first, when you are using this script
- If the script gets buggy, use the menu option to "reset" everything
- When you load the script, the Auto Text-Translator and the Bot command are disabled - to turn them on, use the menu functions.
- You can add exception channels to the "Auto Text-Translator" in the second tab of the dialog.
- Please don't delete the text files or the directory that stores them, though the script does check to see if they are there or not, and recovers them.
Here's a picture:

Sorry if it looks a bit awkward, with the distorted/"looks like missing" text...I don't use the regular mIRC on Windows; instead, I use mIRC on Wine.
Nevertheless, enjoy! :D
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 2, 2009 10:25 pm
Posted on May 2, 2009 10:25 pm
/me claps for kirby
This is nice, think you perfected it the use of $regex and $regsubex is great to. I like how much time you put into making and perfecting your scripts.
This is nice, think you perfected it the use of $regex and $regsubex is great to. I like how much time you put into making and perfecting your scripts.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 2, 2009 10:29 pm
Posted on May 2, 2009 10:29 pm
Thanks Aucun50. =]
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 2, 2009 10:43 pm
Posted on May 2, 2009 10:43 pm
I can't get it to work at all ;/ I just get this....
[11:40:00pm] (~Ford_Lawnmower) !translate en|de testing
* Downloading Abbreviations and Languages from translate.google.com...
[11:40:51pm] (~Ford_Lawnmower) !translate en|fr testing
* Downloading Abbreviations and Languages from translate.google.com...
[11:40:00pm] (~Ford_Lawnmower) !translate en|de testing
* Downloading Abbreviations and Languages from translate.google.com...
[11:40:51pm] (~Ford_Lawnmower) !translate en|fr testing
* Downloading Abbreviations and Languages from translate.google.com...
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 1:25 am
Posted on May 3, 2009 1:25 am
* Syntax example: /translate [en|es] Hello, my name is kaly* Strings do not match. Hello, and are not valid.
[8:21am] ERROR > 421: Unknown command: NOOP
[8:21am] ERROR > 421: Unknown command: NOOP
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 1:26 am
Posted on May 3, 2009 1:26 am
* Strings do not match. [english and italian] are not valid.
[8:23am] ERROR > 421: Unknown command: NOOP
[8:23am] ERROR > 421: Unknown command: NOOP
[8:23am] ERROR > 421: Unknown command: NOOP
* Strings do not match. english and italian are not valid.
[8:23am] ERROR > 421: Unknown command: NOOP
[8:23am] ERROR > 421: Unknown command: NOOP
[8:23am] ERROR > 421: Unknown command: NOOP
[8:23am] ERROR > 421: Unknown command: NOOP
* Strings do not match. english and italian are not valid.
[8:23am] ERROR > 421: Unknown command: NOOP
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 4:17 am
Posted on May 3, 2009 4:17 am
I get these errors.
* /mkdir: unable to create 'C:\Program Files\mIRC\Translator' (line 147, WaiterJohn)
-
* Invalid format: $+ (line 168, WaiterJohn)
Line 147 is below
Line 168 is below
* /mkdir: unable to create 'C:\Program Files\mIRC\Translator' (line 147, WaiterJohn)
-
* Invalid format: $+ (line 168, WaiterJohn)
Line 147 is below
| Code: |
| $iif($isdir(Translator),noop $findfile(Translator,*,0,0,.remove $1-),mkdir Translator) |
Line 168 is below
| Code: |
| while (%x <= %y) { var %z $+(%z,$did(1,%x),$+($chr(37),$chr(48),$chr(65))) | inc %x } |
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 10:11 am
Posted on May 3, 2009 10:11 am
Make sure you're using Version 6.32 and up (variable length update).. I'll test this on Windows again, but I'm not sure why you're getting those errors at all.
As for winni2, you can't put the [] brackets.
As you can see in the screenshot, you must do something like this:
As for winni2, you can't put the [] brackets.
As you can see in the screenshot, you must do something like this:
| Code: |
| /translate en|es Hello, my name is kaly* |
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 10:31 am
Posted on May 3, 2009 10:31 am
Edit: I think I fixed the problem:
The space in between Detect and language was actually a $chr(160) space - I think the Hawkee site "misinterpreted" the $chr(160) space as a regular $chr(32) space.
I've changed it to:
, so now there should be the same number of items (lines) in each text file.
I've also tested this on mIRC Version 6.35, and it seems to work for me. Using the latest version will give you the best results. =/
@Scakk
I had a double $+; (I had a $+ inside of a $+).
I've changed it so that it's only one $+. That problem should be fixed.
But I don't know why you can't make another directory.
| Code: |
| gwrite languages.txt Detect language %x | gwrite abbreviations.txt auto %y |
The space in between Detect and language was actually a $chr(160) space - I think the Hawkee site "misinterpreted" the $chr(160) space as a regular $chr(32) space.
I've changed it to:
| Code: |
| gwrite languages.txt $+(Detect,$chr(160),language) %x | gwrite abbreviations.txt auto %y |
I've also tested this on mIRC Version 6.35, and it seems to work for me. Using the latest version will give you the best results. =/
@Scakk
| Quote: |
| * Invalid format: $+ (line 168, WaiterJohn) |
I had a double $+; (I had a $+ inside of a $+).
I've changed it so that it's only one $+. That problem should be fixed.
But I don't know why you can't make another directory.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 12:07 pm
Posted on May 3, 2009 12:07 pm
When I gave it a try I only used the dialog, but when I tried the commands I got the same problem as Scakk.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 3, 2009 2:41 pm
Posted on May 3, 2009 2:41 pm
/me replaces current translator dialog with this one
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 4, 2009 11:53 pm
Posted on May 4, 2009 11:53 pm
10 kirbz, works fine.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 5, 2009 1:11 am
Posted on May 5, 2009 1:11 am
hello, it works but there is the English language?
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 5, 2009 1:30 am
Posted on May 5, 2009 1:30 am
okay added some languages :D
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 5, 2009 1:30 am
Posted on May 5, 2009 1:30 am
okay added some languages
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 7, 2009 5:48 am
Posted on May 7, 2009 5:48 am
With mIRC Version 6.35, nothing shows up in 'your language' box & 'new language' box, it just "BLANK". so i can't do the translation using dialog. In my echo it just appears :
* Downloading Abbreviations and Languages from translate.google.com...
:S
* Downloading Abbreviations and Languages from translate.google.com...
:S
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 8, 2009 8:25 am
Posted on May 8, 2009 8:25 am
it !#$@ doubles damn lol i can't find one good one
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 8, 2009 2:32 pm
Posted on May 8, 2009 2:32 pm
I've tested this snippet on a clean mIRC v.6.35 with encountering any errors.
You shouldn't be getting any unless you have conflicting socket scripts or on input scripts, in which case, is not my fault.
You shouldn't be getting any unless you have conflicting socket scripts or on input scripts, in which case, is not my fault.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 9, 2009 4:15 am
Posted on May 9, 2009 4:15 am
yes, u were right kirby.. thanks :D rated 8/10.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on May 29, 2009 10:33 am
Posted on May 29, 2009 10:33 am
<3
would you mind posting the Language along with its corresponding abbrevaition?
eg: English - en or similiar
if you have the time ofc
would you mind posting the Language along with its corresponding abbrevaition?
eg: English - en or similiar
if you have the time ofc
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Aug 28, 2009 11:34 am
Posted on Aug 28, 2009 11:34 am
i can't get mine to work keeps giving me Strings do not match. eng and fr are not valid.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Oct 18, 2009 5:41 pm
Posted on Oct 18, 2009 5:41 pm
I've tried it on mIRC 6.35 and for some reason the only thing that appears in the tabs that you use to switch languages is detect language. Don't know whats going on. o.O
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Oct 20, 2009 10:03 am
Posted on Oct 20, 2009 10:03 am
i must be doing somethig wrong... coz this translater not working for me gives me this... (08:21) * Strings do not match. english and indonisia are not valid.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 7, 2009 10:39 pm
Posted on Nov 7, 2009 10:39 pm
I have mIRC 6.35 and tried to use this script on Windows 7 Ultimate x64. The script works fine with not really any errors, but the translating doesn't work to well. This is what happens:
<xV> !translate EN/ES Hi, my name is Tony.
-BUR- Strings do not match. EN/ES and are not valid.
<xV> !translate EN/ES Hi, my name is Tony.
-BUR- Strings do not match. EN/ES and are not valid.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 7, 2009 10:48 pm
Posted on Nov 7, 2009 10:48 pm
It's a pipe(|) inbetween the language codes. Not a slash(/)
| Quote: |
| Syntax: !translate <language|language2> |
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 7, 2009 10:52 pm
Posted on Nov 7, 2009 10:52 pm
Oh yeah, that's what I did the second time after I noticed I was using slashes.
<xV> !translate EN|ES Hi, my name is Tony.
-BUR- Strings do not match. EN and ES are not valid.
<xV> !translate EN|ES Hi, my name is Tony.
-BUR- Strings do not match. EN and ES are not valid.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 7, 2009 11:08 pm
Posted on Nov 7, 2009 11:08 pm
Oh, no idea then. You should be able to translate from english to spanish.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 15, 2009 10:00 am
Posted on Nov 15, 2009 10:00 am
Works for me xViBeSz. mIRC 6.35.
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 15, 2009 12:39 pm
Posted on Nov 15, 2009 12:39 pm
Gotta fix this. :-P
mIRC Snippet:
Google Translator - Auto Text-Translator v3
Posted on Nov 15, 2009 1:55 pm
Posted on Nov 15, 2009 1:55 pm
That would be nice. I like all of your scripts, haha.











