[ANY] Language Selector
2 Attachment(s)
A plugin that allows players to select the language they want SourceMod to translate text into. Translations must be provided by plugins for this to have any effect on them. Requires at least SourceMod 1.11. Features
How to install See the releases tab on GitHub for the latest download. Or download the one attached to the post (which could be out of date if I forget to update it). Download and extract the archive (.zip or .7z) into addons/sourcemod/ The LICENSE.txt is not required. After loading for the first time, cfg/sourcemod/plugin.langselect.cfg will be generated and can then be configured. If upgrading, remember the auto-generated config file may need to be deleted (but only if new ConVars were added). Commands Like all sm_ commands you can use ! or / too, like !language or /language PHP Code:
PHP Code:
Code:
1.0.1 - Minor fixes to commands and timers.If anyone wants to suffer and attempt to translate the gargantuan-sized translation file, please share it here and I might add it into the plugin (if it can be at least mostly verified). It contains 250+ phrases (mostly the names of languages), so it may be hard to verify your work unless you can show sources or proof. |
Re: [ANY] Language Selector
How about this?
https://forums.alliedmods.net/showthread.php?p=2444363 |
Re: [ANY] Language Selector
Quote:
You get the idea--my plugin does all of those things. |
Re: [ANY] Language Selector
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: [ANY] Language Selector
A lot to address here.
TL;DR - The point is, my plugin has a few more features than the other plugin that I think might be helpful to people. The language names in languages.cfg don't have translation support--you only get one set of names for the whole server and that by default includes improper names like "TChinese" or "KoreanA". My plugin supports translating the displayed names in the menu and in commands via a translation file. So it's per-client, not per-server. Although to be clear, only the English translation file exists currently because I don't speak any other language. And these translations are appended to the server-configured names, not replacing them. So for example, if your language was set to Japanese you could see: 1. English (英語) Or maybe if you visited a Russian server with your language set to Greek: 1. Английский (Αγγλικά) Yes, it's mostly pointless, but rather than limiting what languages are used it'd be better to support all of them, right? Quote:
Quote:
Quote:
But it works fine for hard-restricting people to a few languages, I guess. But what if you want the command to allow different languages than what are displayed on the menu? Maybe you want the menu to conveniently have the top 3 most common languages for your server, but the !language command to allow any other language that the server technically supports. Again I know, not very useful but the functionality is there if somebody wants it. Quote:
But I don't think "the other plugin doesn't have a working non-menu command" really counts as being better. |
Re: [ANY] Language Selector
Quote:
|
Re: [ANY] Language Selector
Quote:
|
| All times are GMT -4. The time now is 22:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.