Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Translations Support #41

Open
MAGNAT2645 opened this issue Nov 8, 2020 · 0 comments
Open

[Request] Translations Support #41

MAGNAT2645 opened this issue Nov 8, 2020 · 0 comments
Labels
C-enhancement Category: enhancement

Comments

@MAGNAT2645
Copy link

Would be good to add translations at least to client-side plugin (event names like Map Started, Map Ended, Player Connected, Player Disconnected) as i did here (for example):

public void OnClientConnected(int iClient) {
	if ( !g_cPlayerEvent.BoolValue )
		return;

	char szName[MAX_NAME_LENGTH];
	if ( !GetClientName( iClient, szName, sizeof szName) )
		return;

	char szEvent[128];
	FormatEx( szEvent, sizeof szEvent, "%T", "EVENT_PLAYER_CONNECTED", LANG_SERVER );
	EventMessage( szEvent, szName ).Dispatch();
}
	"EVENT_PLAYER_CONNECTED"
	{
		"en"			"Player Connected"
		"ru"			"К серверу подключается игрок"
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants