Open georgy7 opened 7 years ago
In Russian this is the common rule for all numbers with nouns. If a number ends with 1, the noun is the same as singular, if a number ends with 2‒4 (except for 12‒14), the noun is like in genitive case of singular ("2 часа" sounds like "2 of an hour"), and in other cases, they are like genitive case in plural ("5 часов" sounds like "5 of hours").
In "минуту назад" and "час назад", "minute" and "hour" are in the accusative case.
This sounds very interesting; I've thought about that previously. Do you want it to be extendible by users or only a flexible interface for you? Do you really need "a minute ago" or would "1 minute ago" be good enough? I find it very inconsistent using numbers and articles mixed. If you use "a minute ago" it would be consistent to use "two minutes ago" instead of "2 minutes ago". I tend to using numbers always.
@Bolpat Extendable for all languages, of course. I am just peering. Don't need this library right now.
I find it very inconsistent using numbers and articles mixed.
I would prefer "a minute ago" and "2 minutes ago". It could be сustomizable, I think.
How many seconds ago feel "just now"? I suspect it differs with cultures.
I suppose, it depends more on a person then his/her country/culture/language. Well, I would set this "just-now-limit" to 20 seconds.
I mean, there is a lot of languages in the world. I can not imagine, how to make the addition of a new language simple.