SA-MP Forums Archive
iTranslate - Translate Text from/in every language !!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: iTranslate - Translate Text from/in every language !!! (/showthread.php?tid=151678)

Pages: 1 2


[0.2X] iTranslate - Translate Text from/in every language !!! - Trooper[Y] - 31.05.2010

NOTE:
This Script is outdated !
Not only that its written for 0.2X, 0.3a includes a http function, which makes pwncurl unnecessary.
Also a script got released, which needs no big file or a plugin for detecting the players country.
One word - in 0.2x this was sth good, now you can make it 500% better yourself...


Cheers together.

I just wondered, why theres no translation plugin for SAMP Servers.
As i found pwncurl, i thought "hey, do it yourself. you already did so many things with this less feedback, no one ever remembers you, no one knows you, youve never seen any script with your scripts, but maybe this aint it !"

So, let me start with the credits:
*DracoBlue (pwncurl)
*Totto8492 (GeoIP)
*[HiC]Thekiller & [HiC]Cam (Demo-Gamemode)


Setup (Server) :
1. Download the Package
2. Extract it and copy every folder to your samp server direction
3. Setup server.cfg (read the example server.cfg to see everything you need)
4. Run the Server

Setup (Script) :
1. After youve made the server ready, add
Quote:

#include <iTranslate>

to the top of your script.
2. Add
Quote:

iTranslate_OnPlayerConnect(playerid);

at the top of the callback
Quote:

public OnPlayerConnect(playerid)

Commands / Syntax you can use now :
Quote:

translate(playerid,string[],endstring[],fromplayer);

playerid = player to send the message to (means, the text will be translated to his language)
string = the string to get translated
endstring = the string to store the translated text in
fromplayer = player who wrote string[] (-1 = no player = english)
return 1 by sucess, returns 0 + print error (+ writes src.txt for debugging) by any mistakes
Quote:

iTranslate_OnPlayerConnect(playerid);

Just add this under OnPlayerConnect, as the script needs to get the language of the user
return always 1

Example (from the gamemode) :
Code:
public Inter_SendClientMessage(playerid,color,msg[],fromplayer)
{
	new gettranslation[2048];
	if(translate(playerid,msg,gettranslation,fromplayer)) SendClientMessage(playerid,color,gettranslation);
	return 1;
}
Tips :
1. Dont translate multiple lines in multiple translations. This takes too many ressources. Translate it once and split it !
2. Use simple english ! Words like "spawn" can sound very urgent in different languages.

Download :
http://rapidshare.com/files/39365859...late_Linux.rar (~15,5 MB)


Re: iTranslate - Translate Text from/in every language !!! - [03]Garsino - 31.05.2010

I have one word to say: amazing! Your ideas are original and amazing Keep up the nice work!


Re: iTranslate - Translate Text from/in every language !!! - Ravia_Devaia - 31.05.2010

Nice!


Re: iTranslate - Translate Text from/in every language !!! - Calgon - 31.05.2010

Excellent. I was considering doing something similar a while ago, but good work, if I made it it'd probably be a pawn implementation though, but anywho, good work!


Re: iTranslate - Translate Text from/in every language !!! - Trooper[Y] - 31.05.2010

Quote:
Originally Posted by Calgon
Excellent. I was considering doing something similar a while ago, but good work, if I made it it'd probably be a pawn implementation though, but anywho, good work!
Would be better, even i think, for this feature of automatic detection of the country, and translating it for him, you dont need to worry over installing 2 plugins.

Big credits to both plugin-writers, i just completed their work

@Garsino:
Looks like my new signature pays off


Re: iTranslate - Translate Text from/in every language !!! - GhOsT[X] - 31.05.2010

Very Nice. (Creative and Innovative)
There is a nice alternative too:http://www.gtaonline.fr/forums/index...ic,8438.0.html.

And a version for windows: someone could try addapting to this plugin (UrlDownloader):http://www.gtaonline.fr/forums/index...ic,8043.0.html.

Instead of the PWNCurl.


Re: iTranslate - Translate Text from/in every language !!! - Trooper[Y] - 31.05.2010

Also tried with urldownloader, but using cahe-files is very bad....



Re: iTranslate - Translate Text from/in every language !!! - Toni - 31.05.2010

Very nice, Servers can be more international now


Re: iTranslate - Translate Text from/in every language !!! - [HUN]Gamestar - 31.05.2010

really nice..amazing...thanks.

Windows version?


Re: iTranslate - Translate Text from/in every language !!! - GhOsT[X] - 31.05.2010

yeah, urldownloader uses cache, then is difficult =(.

But how i said: Nice job m8


Re: iTranslate - Translate Text from/in every language !!! - $$$PiMp - 31.05.2010

Very nice! But can you make a mirror, i cant use rapidshare because i share an ip with like an entire country :S


Re: iTranslate - Translate Text from/in every language !!! - ViruZZzZ_ChiLLL - 31.05.2010

What the above posters said, very original and awesome script

and yeah... Can you change the download link to... IDK.. maybe..
http://solidfiles.com or http://mediafire.com


Re: iTranslate - Translate Text from/in every language !!! - Toni - 31.05.2010

Could Anyone Give me an Example Script? (eg a translation to french or something?) I'm a little bit confused.


Re: iTranslate - Translate Text from/in every language !!! - Toni - 01.06.2010

Quote:
Originally Posted by Seif_
Quote:
Originally Posted by Tɧ϶ Tσηί™
Could Anyone Give me an Example Script? (eg a translation to french or something?) I'm a little bit confused.
Basically, this checks where you're from and translates the text you want to be translated into your country's language.
HOLY FUCK
*downloads shortly

EDIT:

Give me a command to test? please?


Re: iTranslate - Translate Text from/in every language !!! - [HiC]TheKiller - 01.06.2010

Thx for random credits =P. I'll download this now.

P.S. Want me to upload it somewhere else? 1.5kb download speeds are killing me lol.

http://www.datafilehost.com/download-2a4cd63e.html
Datafilehost gets around 60KB/s


Re: iTranslate - Translate Text from/in every language !!! - LasVegasMafiaStoriesRP - 01.06.2010

OMG! Never tought that is possible, AMAIZING!


Re: iTranslate - Translate Text from/in every language !!! - hab2ever - 01.06.2010

Nice!!!!


Re: iTranslate - Translate Text from/in every language !!! - Zamaroht - 02.06.2010

What an amazing idea you had, congratulations, great work.


Re: iTranslate - Translate Text from/in every language !!! - RoamPT - 03.06.2010

Nice work dude, ohh could you compile it to Windows version?


Re: iTranslate - Translate Text from/in every language !!! - zSuYaNw - 03.06.2010

magnificent