A dictionary file contains a bunch of text tokens for different languages. For example, if I want to translate my previous sentence into French, I would first put this in a dictionary file:
Code:
[en]
HAWK_TALK = A dictionary file contains a bunch of text tokens for different languages.
[fr]
HAWK_TALK = Un dictionaire containez some bullshit and I suck at translating French so fuck this.
Then, I can put this in my plugin:
PHP Code:
client_print( id, print_chat, "Hawk552: %L", LANG_PLAYER, "HAWK_TALK" )
or
PHP Code:
client_print( id, print_chat, "Hawk552: %L", LANG_SERVER, "HAWK_TALK" )
Anyway, your %L token will be replaced with the given dictionary entry. For example, if the server's language is English, but the client's is French, then it'll print to them in French with the first example and English with the second.
__________________