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

Fix russian ordinal numbers #140

Closed
WAXII opened this issue Jun 18, 2023 · 1 comment
Closed

Fix russian ordinal numbers #140

WAXII opened this issue Jun 18, 2023 · 1 comment

Comments

@WAXII
Copy link

WAXII commented Jun 18, 2023

src/Russian/OrdinalNumeralGenerator.php

/**
 * @var string[]
 * @phpstan-var array<int, string>
 */
protected static $words = [
    1   => 'первый',
    2   => 'второй',
    3   => 'третий',
    4   => 'четвертый',
    5   => 'пятый',
    6   => 'шестой',
    7   => 'седьмой',
    8   => 'восьмой',
    9   => 'девятый',
    10  => 'десятый',
    11  => 'одиннадцатый',
    12  => 'двенадцатый',
    13  => 'тринадцатый',
    14  => 'четырнадцатый',
    15  => 'пятнадцатый',
    16  => 'шестнадцатый',
    17  => 'семнадцатый',
    18  => 'восемнадцатый',
    19  => 'девятнадцатый',
    20  => 'двадцатый',
    30  => 'тридцатый',
    40  => 'сороковой',
    50  => 'пятидесятый',
    60  => 'шестидесятый',
    70  => 'семидесятый',
    80  => 'восьмидесятый',
    90  => 'девяностый',
    100 => 'сотый',
    200 => 'двухсотый',
    300 => 'трехсотый',
    400 => 'четырехсотый',
    500 => 'пятисотый',
    600 => 'шестисотый',
    700 => 'семисотый',
    800 => 'восьмисотый',
    900 => 'девятисотый',
];

Errors fixed in 50, 60, 70, 80, 800

@wapmorgan
Copy link
Owner

3.2.29

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

No branches or pull requests

2 participants