Raised This Month: $ Target: $400
 0% 

[BUG] Multilingual


  
 
 
Thread Tools Display Modes
Author Message
James
Senior Member
Join Date: Dec 2004
Old 01-14-2007 , 12:12   [BUG] Multilingual
#1

I use amx_setlang xx for set up server language of course. When I allow amx_client_languages 1, everything is OK, client has own setinfo lang parameter and can change languages through amx_langmenu.

But, for example: If i disallow amx_client_languages 0, I suppose language on server will be still same. But if I set: amx_client_languages 0, set_lang cz, ... amx_language and server_language are fine --> cz. But, If client connect with his config like this (setinfo lang en), he still view messages in english, not czech (and when I set amx_client_languages 0 so client should not set up his own language !)..

I fix this (Dont know if is it clean way):

Code:
public client_putinserver(id)
{
	if (get_cvar_num("amx_client_languages") && !is_user_bot(id))
		set_task(10.0, "dispInfo", id)
	
	//added by James
	if (get_cvar_num("amx_client_languages")==0)
		client_cmd(id, "setinfo ^"lang^" ^"cz^"")
}
James is offline
BAILOPAN
Join Date: Jan 2004
Old 01-14-2007 , 15:17   Re: [BUG] Multilingual
#2

Thanks for the report, I'm flagging this as a bug. The problem itself exists in Core.

Please do not use the workaround you have - you are changing your clients' languages to Czech for all servers they join.
__________________
egg
BAILOPAN is offline
 



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 10:56.


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