Raised This Month: $ Target: $400
 0% 

Info about register_dictionary


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-21-2009 , 13:57   Re: Info about register_dictionary
Reply With Quote #1

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_printidprint_chat"Hawk552: %L"LANG_PLAYER"HAWK_TALK" 
or

PHP Code:
client_printidprint_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.
__________________

Last edited by Hawk552; 10-21-2009 at 14:33.
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode