what does register_dictionary() do?
I've seen register_dictionary() used in a very few plugins and all of those are base plugins written by the AMXX team, and I haven't been able to figure out what it is for from the code. I looked for it in the function list but it wasn't there. I am as a result extremely curious as to what it is for. Can anyone tell me?
|
used for support of other languages :wink:
Multi-Language-Support :wink: |
It's used in multi-lingual plugins. You pass it a file located in "data/lang", and it will make sure the file's translations are loaded into the database.
For example: register_dictionary("myplugin.txt") data/lang/myplugin.txt: Code:
[en]get_user_name(id, name, 31) client_print(id, print_chat, "%L", id, "greeting", name) |
Most if not all plugins will soon be using this because the mutli lingal system is just great :)
|
Cool. Thanks a bunch guys. That was really bugging me. :)
I'll have to use that now, it sounds great :) |
| All times are GMT -4. The time now is 17:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.