iTranslate - Translate Text from/in every language !!!
#1

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)
Reply
#2

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

Nice!
Reply
#4

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!
Reply
#5

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
Reply
#6

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.
Reply
#7

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

Very nice, Servers can be more international now
Reply
#9

really nice..amazing...thanks.

Windows version?
Reply
#10

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

But how i said: Nice job m8
Reply
#11

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

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
Reply
#13

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

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?
Reply
#15

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
Reply
#16

OMG! Never tought that is possible, AMAIZING!
Reply
#17

Nice!!!!
Reply
#18

What an amazing idea you had, congratulations, great work.
Reply
#19

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

magnificent
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)