Raised This Month: $ Target: $400
 0% 

How to adding translations function?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
highcoder
Member
Join Date: Jun 2018
Old 06-04-2018 , 08:41   How to adding translations function?
Reply With Quote #1

Hello to everyone!

What should we do to translate the messages of the plugin into different languages? Shortly, how is multi-language function added to the plugin? Could you give an example using the following simple plugin?

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Sample Plugin"
#define VERSION "1.0"
#define AUTHOR "John Doe"


public plugin_init() {

	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say", "sample")
	register_clcmd("say_team", "sample")
	
}

public sample(id) {

	client_print_color(id, id, "^4[INFO] ^3This is a sample text.")
	
}
highcoder is offline
 


Thread Tools
Display Modes

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 04:43.


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