I'm a bit confused about what happens when I use the different options for the 'target' parameter when using the multi-lingual support.
Quote:
|
Originally Posted by Scripting Tutorial in Documentation
Let's break this down. For each %L that appears, we need at least two parameters. The first parameter is the TARGET. This must be a player id, LANG_SERVER (meaning show in the server's native language), or LANG_PLAYER. LANG_PLAYER is a special modifier that should only be used when sending a message to all players - it means "show in every player's native language". The second parameter is the key string that identifies the language phrase to translate. Lastly, if the translated string requires any parameters itself (ours needs %d, one integer), that must be added as well.
|
I've been using LANG_PLAYER everytime I want to show text to 1 or more players. After rereading the documentation, I'm not sure if that's a good idea. According to what I quoted above, I believe I should be using the player's ID when I'm sending text to a single player. If I did that, would the text be displayed in that player's language?
In the following code, does using LANG_PLAYER hurt anything even though I'm sending the message to a single player?
Code:
client_print(id, print_chat, "[Restrict Names] %L", LANG_PLAYER, "REASON_RENAMED_SUM")
I'm just confused. Anyone have some light for me?