Translate one language into two GM ?
#1

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

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;
}
Reply
#3

Take a look at this tutorial by ******
https://sampforum.blast.hk/showthread.php?tid=295580

He made an include called y_languages where you can define languages in a file and then use them in your script as you please.

It might help you out with your issue.
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)