How to get client's game language ?
Hey guys,
I'm recently wondering how to get a client's game language. I'm totally aware of GetClientLanguage and cl_language but they do not return the client's game language, but the client's Steam language. For instance, if I have my Steam in japanese and my game in german; both methods will return japanese. It may be not available, as it seems that the game language option is only available in CSS/CSGO/TF2 (and probably some others). Red EDIT : https://mxr.alliedmods.net/sourcemod...anager.cpp#509 ; doesn't look good; everything seems to be based off cl_language |
Re: How to get client's game language ?
Sourcemod has multi-language api, just lookup how to print things using ML.
All print functions have language support, Then u need to create translation files, just try to find the tutorial. |
Re: How to get client's game language ?
...
That's not what I'm asking. Plus the way SM gets a language is by checking cl_language, which is the client's Steam language. |
Re: How to get client's game language ?
I believe this is only available client-side using ISteamApps::GetCurrentGameLanguage. Someone can correct me if I'm wrong there.
|
Re: How to get client's game language ?
Quote:
|
Re: How to get client's game language ?
On different websites I found
Code:
virtual const char *GetCurrentGameLanguage() = 0; |
All times are GMT -4. The time now is 18:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.