GeoIP Language Selection
1 Attachment(s)
GeoIP Language Selection
Every time a player joins your server, they are assigned a language that SourceMod will use for translations. SourceMod does this by using the same language that the player installed with Steam. There are two drawbacks to this method:
Installation: Extract the contents of the *.zip to your SourceMod directory. Adding New Languages: When adding a new language, it's important to use the English name of the language. You can find a list of language codes here. We will use Greek as an example. Add the language to sourcemod/ configs/ languages.cfg: Code:
"Languages" Commands:
Quote:
|
Re: [ANY] GeoIP Language Selection
Changelog:
Country Clan Tags 1.1.0 ??? |
Re: [ANY] GeoIP Language Selection
Haha, fixed it. Thanks!
|
Re: [ANY] GeoIP Language Selection
Hi, I'm using your plugin and it works great but I have little problem with translations of admin menu. To be more specific custom plugins which are using translations and have some of its commands built-in admin menu are displaying wrong. For example, I'm using Spray Tracer (showthread.php?p=665448) but when I open admin menu, it sometimes shows english translations and sometimes czech translations. My question is, is this problem plugin-sided or server-sided? There are no error logs what so ever, so I'm pretty desperate, because I really want to use this plugin.
Thank you in advance, Vojtoun |
Re: [ANY] GeoIP Language Selection
Quote:
You can verify which language you are set to by bringing up the !language menu. If it says you are set to Czech and some custom menus are displaying in English, then it sounds like a problem with those plugins' menus. Are you sure that you have properly added a Czech translation for the Spray Tracer plugin? Otherwise it will default to English. |
Re: [ANY] GeoIP Language Selection
Translations are changing randomly while connected to the server. Both translations are ok, I've tried using them separatly and they are working properly. Here's a little description of what is going on:
1. I bring up admin menu and so far it's ok and everything is translated fine. 2. I choose Server Commands, and built-in functions of SourceMod are translated, but SprayTracer options are sometimes translated to english and sometimes to czech (this happens randomly and it changes without reconnecting, which is the one thing that's really weird, because I don't understand why it's choosing english translations one time and czech translations other time. Another thing I've noticed is, that it only affects admin menu translations, everything else is working fine. I apologize if my english isn't that good, but I've tried to desribe it as good as I can. If you want, I can paste here both english and czech translations of SprayTracer which I'm using. |
Re: [ANY] GeoIP Language Selection
It appears to be a bug with the Spray Tracer plugin. After looking at the source, I see that a lot of translations are formatted improperly.
For example: Code:
Should be: Code:
This is causing the menu to fall back to the server language (English in this case) on some occasions. I suggest reporting this bug to that specific plugin. |
Re: [ANY] GeoIP Language Selection
Ok, I'll give it a try :wink: Thank you for your help :)
|
Re: [ANY] GeoIP Language Selection
I use this
PHP Code:
PHP Code:
|
Re: [ANY] GeoIP Language Selection
Quote:
Quote:
|
All times are GMT -4. The time now is 01:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.