Posts: 6
Threads: 2
Joined: Oct 2009
Reputation:
0
Hello,
I want to know if it is possible to translate a Gamemode in two language, such as English and French? The player can use both command is either English or French.
Thank you to you
Posts: 371
Threads: 8
Joined: Aug 2012
yes
pawn Код:
CMD:MrMagik(playerid)
{
if(PlayerInfo[playerid][Lang] == 1) // french
{
SendClientMessage(playerid,-1," Salut ");
}
if(PlayerInfo[playerid][Lang] == 2) // english
{
SendClientMessage(playerid,-1," Hello ");
}
return 1;
}
Posts: 6
Threads: 2
Joined: Oct 2009
Reputation:
0
Ok thank you, I have another question to you is it possible to translate into multiple languages? Example: English French Spanish Portuguese
And I have another question off topic, imagine that a French player and angals talks between you is it possible to implement a module that automatically translates their discussion in their languages?
thank you
Posts: 251
Threads: 24
Joined: Apr 2007
Reputation:
0
If you read the tutorial I provided you with, you will find that you can have as many languages as you want.
As for the translating part, only your imagination stops you. You can create a plugin/include that can use for example ****** translate to translate and then send the information to the clients in their selected language. This requires some knowledge in different codes than the pawn language though.
I'm not sure if it's possible, but it might work out with the native HTTP functions (My guess is that it doesn't, but it's worth to check out).