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:
Originally Posted by Grey83
It has no practical meaning: the name in English is clear to everyone, in addition, if accidentally switch to a language unknown to the user, a player may not find the right one (except by brute force).
|
Yes it's well established that everyone speaks English and can read the English names for languages. Translation is just a gimmick invented by google to sell their API.
(sarcasm)
Quote:
Originally Posted by Grey83
Does it make sense?
|
Never said it had to I just said I wanted the feature and the other plugin didn't have it ¯\_(ツ)_/¯
Quote:
Originally Posted by Grey83
The menu lists only those languages that are available on the server and are registered in the file .../addons/sourcemod/configs/languages.cfg.
|
I'm pretty sure the better design is for the
plugin to limit the languages, rather than disabling them server-wide.
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:
Originally Posted by Grey83
If the language is not on the server, then it will not be in the menu. If the player still chose a language that is not on the server, then he will see messages in the default language.
|
Fair point, the other plugin wouldn't need to know that since it doesn't have its own menu config or command to set it without a menu.
But I don't think "the other plugin doesn't have a working non-menu command" really counts as being better.
__________________