Translation of text using HTTP_GET and ****** translate
#21

Here is some parts of my translation script made from itranslate so credits to him..

http://pawn.pastebin.com/bneCjpAL

It is working for me but едц seems to fail sometimes and ofc Russian doesn't work but Russian doesn't work at all on my server so...
Reply
#22

actually russian characters would work if you have a russian pc, so if someone is russian then they can see the russian fonts
Reply
#23

Quote:
Originally Posted by $$$PiMp
View Post
actually russian characters would work if you have a russian pc, so if someone is russian then they can see the russian fonts
Yes it does but I mean in pawno it wont work(I can be wrong but..).
Reply
#24

The HTTP client in the SA-MP server doesn't do automatic URL encoding for HTTP parameters. You need to encode these yourself before the request is sent.
Reply
#25

Quote:
Originally Posted by Kalcor
View Post
The HTTP client in the SA-MP server doesn't do automatic URL encoding for HTTP parameters. You need to encode these yourself before the request is sent.
Yes like my code: http://pawn.pastebin.com/bneCjpAL it replaces all spaces with + and some other symbols..
Reply
#26

ok i managed to get it running, thank you sooo much for all your help!!!

BTW do you think you will be able to let your script show the proper international characters?
Reply
#27

Quote:
Originally Posted by $$$PiMp
View Post
ok i managed to get it running, thank you sooo much for all your help!!!

BTW do you think you will be able to let your script show the proper international characters?
I say no on Russian (Because I have no real way of testing it and I doesn't need it) and yes (if I can) on цед they seem to work but not every time even with a real encoder like this one: http://dracoblue.net/dev/urlencode-in-pawn/141/ it wont work with all types of words that have едц in it. But some words works so I have no idea whats wrong..
But дец seems to work fine on my website so maybe there is something wrong with the http function... Will look more on that in this weekend...


Just one thing did you get Russian to work with pawnourl when you used itranslate?



Note that I will try to get this things fixed in this order:
1. Auto detection of langs. Should be easy but it's not:/
2. Fixing so цед works..
3. Making my php code look nice and clean and try to make it faster..
4. Maybe releasing a own translation script.. I will also release the php script if I do that. (I will ofc still be hosting my php script for pll that doesn't have a webhost. I need it myself so)
Reply
#28

I never managed to get the stupid pwncurl plugin to work XD

good luck with your plans
Reply
#29

Quote:
Originally Posted by $$$PiMp
View Post
I never managed to get the stupid pwncurl plugin to work XD

good luck with your plans
Ok so you are a windows user xD


EDIT:

Auto detect does now work Just use langin=auto or just delite langin= and it will try to auto detect the lang..
Reply
#30

yes i am a windows user XD but i tried some windows pwncurl plugins with no success :P

good thing you got auto detect working

Also i found that quotes are processed into \" or \'
and in game that becomes \&#39
so thats bad :S
Reply
#31

Just delete " for now... Will try to fix it this weekend when I come home..
Reply
#32

i cant because i cant make a string "'"
lol because its just quotes XD
Reply
#33

Ok I made an update and 2 new problems come up but it's better then before.. When you are using " after a word it will add a space before the " for some reason.. And if you use ' I only managed to convert it to " If I converted it to ' the translation didn't come at all so..


EDIT:

Now ' works but sometimes it will still be a \ before the '....

EDIT2:

Fixed some more bugs with using ' and ".. Now the only problems left is that ' will be converted to " and the other problem is that if you type ( I "love" ) it will be ( I "love " ) note the extra space..

EDIT3:

The bugs on EDIT:2 is fixed but only sometimes some strings will still got the bugs..
Reply
#34

Ok looks like you have really done a good job, seems that nothing can be perfect, but nevertheless i think that you have done an AMAZING job here

And if you release it i am sure people will love to have it XD
Reply
#35

Quote:
Originally Posted by $$$PiMp
View Post
Ok looks like you have really done a good job, seems that nothing can be perfect, but nevertheless i think that you have done an AMAZING job here

And if you release it i am sure people will love to have it XD
Thanks I also made a small update now should fix some problems..

Fixed:
1. Now едц works with no problems..
2. " and ' will not be ' anymore...
Reply
#36

ok quotes are ok, but russian characters still not working
Reply
#37

Quote:
Originally Posted by $$$PiMp
View Post
ok quotes are ok, but russian characters still not working
It doesn't work with pawnourl and what I know pawno only supports UTF-8... I't is maybe possible to fix but I have still no way of seeing if the charters are correct or not...

Also I tested this link http://carnage.webffs.com/******/?ms...=ru&langout=en in the web browser and it works... You need to encode the letters to be able to use it with http().. You know the web browser auto encodes the url the http() doesn't do that for you..

This link also works for me: http://carnage.webffs.com/******/?ms...=en&langout=ru so it's kinda a http() problem or a pawno problem..
Reply
#38

ok i think then the russian people with russian characters working can see them
Reply
#39

Quote:
Originally Posted by $$$PiMp
View Post
ok i think then the russian people with russian characters working can see them
Yes the chat seems to work for Russian players but what I know pawno doesn't work with it.. Can someone else that knows for sure tell us how Russian characters works in pawno?
Reply
#40

aha so the pwn scripts cant handle russian characters :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)