Multilanguage gamemode - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multilanguage gamemode (
/showthread.php?tid=535210)
Multilanguage gamemode -
terrance - 02.09.2014
That is the best way to make multilanguage gamemode? Use files to keep each translation in certain file, or what? Need some advices
Re: Multilanguage gamemode -
Stinged - 02.09.2014
https://sampforum.blast.hk/showthread.php?tid=295580
This would be the best way to do that.
Example:
text.EN
Код:
[test]
TEST_MESSAGE = This is English TEST_MESSAGE
WHATEVER_MESSAGE = This is English WHATEVER_MESSAGE
text.FR
Код:
[test]
TEST_MESSAGE = This is French TEST_MESSAGE
WHATEVER_MESSAGE = This is French WHATEVER_MESSAGE
Then you load them like this:
pawn Код:
loadtext text[test];
public OnGameModeInit()
{
Langs_Add("EN", "English");
Langs_Add("FR", "French");
}
Then if you want to send a message:
pawn Код:
Text_Send(playerid, $TEST_MESSAGE);
Text_Send(playerid, $WHATEVER_MESSAGE);
Re: Multilanguage gamemode -
terrance - 02.09.2014
Looks interesting, I check this. Thank you!