AuthMe / AuthMeReloaded

The best authentication plugin for the Bukkit/Spigot API!
https://www.spigotmc.org/resources/authmereloaded.6269/
GNU General Public License v3.0
628 stars 516 forks source link

Messages: support languages with different plural rules #1159

Open koca2000 opened 7 years ago

koca2000 commented 7 years ago

I wanted to update Czech translation of the plugin, but I found a problem with differences between Czech and English.

I'll explain: 1 second = 1 sekunda When is number bigger than 1 it's always 'seconds' in English, but in Czech it isn't: 2,3,4 sekundy 5+ sekund

So how would I translate it?

sgdc3 commented 7 years ago

@ljacqu what fo you think about that? I think it would be a very specific feature needed by a small number of users...

ljacqu commented 7 years ago

Very interesting problem. The current workaround we have is to use abbreviations, such as the Russian translation does (e.g. seconds is "sek." for both "sekundy" and the gen. pl. form (~sekundov?~ sekund))

Seeing that Czech has different rules than Russian I started looking into this and realize that there are quite a few different rules used by languages: http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html

This can be assigned to me and I will investigate how we could best implement more flexibility for the translations.