HereAuth icon indicating copy to clipboard operation
HereAuth copied to clipboard

Add language files support

Open inxomnyaa opened this issue 8 years ago • 20 comments

inxomnyaa avatar Jan 18 '16 11:01 inxomnyaa

What do you mean by that, exactly? Per player language or per server language?

Because it is hard to try to know the language of a player when he is registering.

PEMapModder avatar Jan 18 '16 11:01 PEMapModder

Well.. the second thing. Per server. Because if you have spanish kids that can't read english..

inxomnyaa avatar Jan 18 '16 11:01 inxomnyaa

Then how do they know how to read English to choose a Spanish version of the server?

PEMapModder avatar Jan 18 '16 14:01 PEMapModder

Also, for the sake of management convenience, I prefer to create one config file per version new configurations.

PEMapModder avatar Jan 18 '16 14:01 PEMapModder

for example use /lang ____ to change language used in default configurations

dancing-ipsum avatar Jan 18 '16 16:01 dancing-ipsum

And how do you expect them to know such command? And what happens if every plugin uses /lang? Only one plugin will work.

PEMapModder avatar Jan 18 '16 17:01 PEMapModder

Not many plugins use /lang actually.

dancing-ipsum avatar Jan 18 '16 17:01 dancing-ipsum

As long as there is more than one plugin, it is incorrect. I guess we can detect language from server configuration.

PEMapModder avatar Jan 19 '16 07:01 PEMapModder

You could get the language by IP like Lifeboat does.

jarne avatar Jan 25 '16 11:01 jarne

@SURVAml that can be highly inaccurate.

PEMapModder avatar Jan 25 '16 11:01 PEMapModder

Just 1 language for a server. If you want to go save, use english. Done.

inxomnyaa avatar Jan 26 '16 18:01 inxomnyaa

agreed @PEMapModder i have ask.fm for displaying stuff in malay; user's country languge != user language preference and that just backfired a lot when traveling

i suggest using something like /$mastercmd lang /$mastercmd setlang so assume $mastercmd is HereAuth i dont think any plugin uses the cmd /hereauth so that will resolve all command issues

new issue: what language should server display on player first join

Thunder33345 avatar Feb 13 '16 15:02 Thunder33345

@Thunder33345 that's why there should only be one language for the whole server.

PEMapModder avatar Feb 13 '16 16:02 PEMapModder

What @thebigsmileXD suggested was to separate messages into another language file.

PEMapModder avatar Feb 13 '16 16:02 PEMapModder

or change default language in config.yml

dancing-ipsum avatar Feb 13 '16 16:02 dancing-ipsum

that will resolve the command problem

dancing-ipsum avatar Feb 13 '16 16:02 dancing-ipsum

@MCPEGamerJPatGitHub the purpose of separating messages is to allow easy switching of server's plugin language.

PEMapModder avatar Feb 13 '16 16:02 PEMapModder

@pemapmodder But commands will be a mess, when HereAuth has many configurations in the config file, making it very confusing for some users

dancing-ipsum avatar Feb 13 '16 16:02 dancing-ipsum

how does commands have anything to do with config?

PEMapModder avatar Feb 13 '16 16:02 PEMapModder

users might be confused

dancing-ipsum avatar Feb 20 '16 09:02 dancing-ipsum