Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Russian: wrong display of the number in Russian language #855

Open
afuno opened this issue Jul 5, 2019 · 3 comments
Open

Russian: wrong display of the number in Russian language #855

afuno opened this issue Jul 5, 2019 · 3 comments

Comments

@afuno
Copy link

afuno commented Jul 5, 2019

ru:
  general:
    pluralization:
      subtopic:
        one: 1 подтема (1)
        few: "%{count} подтемы (2)"
        many: "%{count} подтем (3)"
        other: "%{count} подтем (4)"
. = t('general.pluralization.subtopic', count: '21')
. = t('general.pluralization.subtopic', count: '22')
. = t('general.pluralization.subtopic', count: 21)

Output:

21 подтем (4)    # ok - it is a string
22 подтем (4)    # ok - it is a string
1 подтема (1)    # not ok
@afuno
Copy link
Author

afuno commented Jul 5, 2019

mod10 = n % 10
mod100 = n % 100
if mod10 == 1 && mod100 != 11
:one

mod10 = n % 10

The variable mod10 has a value of 1. This is a problem.

@dmitry
Copy link

dmitry commented Sep 12, 2019

I don't see a problem here:

1 - одна подтема
11 - одинадцать подтем # probably here is the problem, but everything is ok with value 1
21 - двадцать одна подтема
31 - тридцать одна подтема

@digitalfrost digitalfrost changed the title Wrong display of the number of Russian language Russian: wrong display of the number in Russian language Sep 12, 2022
@digitalfrost
Copy link
Collaborator

Can this ticket be closed? Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants