Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter jamesbolt

    (@jamesbolt)

    Sure, you may credit me as Alexander Avramenko with link to twitter.

    Also, I have to say, in Ukrainian and Russian, and I think in some other Cyrillic languages, there are different endings of nouns with different numerals.

    For example, in English there are 2 types of endings (for singluar and plural).
    So, you say or write
    🙂

    1 second     minute    hour    day    week    month    year       ago
    2 seconds    minutes   hours   days   weeks   months   years      ago
    3 seconds    minutes   hours   days   weeks   months   years      ago
    4 seconds    minutes   hours   days   weeks   months   years      ago
    5 seconds    minutes   hours   days   weeks   months   years      ago
    ...
    13 seconds   minutes   hours   days   weeks   months   years      ago
    ...
    20 seconds   minutes   hours   days   weeks   months   years      ago
    and so on.

    In Ukrainian, we have 3 types of endings. (Info is below).
    So, we say or write.

    1    день    тиждень    місяць
    2    дні     тижні      місяці
    3    дні     тижні      місяці
    4    дні     тижні      місяці
    5    днів    тижнів     місяців
    6    днів    тижнів     місяців
    7    днів    тижнів     місяців
    8    днів    тижнів     місяців
    9    днів    тижнів     місяців
    10   днів    тижнів     місяців
    11   днів    тижнів     місяців
    ...
    20   днів    тижнів     місяців
    21   день    тиждень    місяць
    22   дні     тижні      місяці
    23   дні     тижні      місяці
    24   дні     тижні      місяці
    25   днів    тижнів     місяців
    26   днів    тижнів     місяців
    ...
    30   днів    тижнів     місяців

    So, if the number is one (1) or ends on one (1) AND greater that 20 we have one ending of the word/noun, like in

    1 день           місяць     рік
    21 день          місяць     рік
    31 день          місяць     рік
    51 день          місяць     рік
    91 день          місяць     рік
    2141 день        місяць     рік

    if the number is two (2), three (3), four (4) or ends on two (2), three (3), four (4) AND greater that 20 we have another ending of the word/noun, like in

    2 дні
    3 дні
    4 дні
    22 дні
    23 дні
    24 дні
    42 дні
    43 дні
    44 дні
    402 дні
    403 дні
    404 дні

    and in all other cases the ending is one (not the word ‘one’, lol), like in

    5 ... 9     днів
    10          днів
    11 ... 20   днів
    36 ... 40   днів
    76 ... 80   днів
    126 ... 130 днів

    So, I hope you, someday, upgrade your plugin with this data or info, I don’t really know 😀
    Basically, you should add only one variables for “the 2nd case” (Take a look on the spreadsheet, you’ll understand what I meant)

    Here, I’ve made a spreadsheet for you. There are both Ukrainian and Russian

    If you have any questions, feel free to ask.
    Thanks!

Viewing 1 replies (of 1 total)