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 abbreviation weekdays #484
Russian abbreviation weekdays #484
Conversation
Codecov Report
@@ Coverage Diff @@
## master #484 +/- ##
==========================================
+ Coverage 94.99% 94.99% +<.01%
==========================================
Files 302 302
Lines 2457 2459 +2
==========================================
+ Hits 2334 2336 +2
Misses 123 123
Continue to review full report at Codecov.
|
We'll need a maintener that knows russian that could approve this. Also it becomes more evident that we should be splitting all this "dates" related information to something more structured. Maybe inside every language we should separate the files to:
Just to give more perspective, but maybe this approach could affect performance. Maybe just one file with a better structure defining all that information by sections. @asadurski I would also like your input here. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christianfm10 please include tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume more common two-letter abbreviations are handled elsewhere, new three-letter abbreviations look good to me, except for one strange capitalization.
wednesday: | ||
- СрД |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably the last letter shouldn't be capitalized, so that would be Срд
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already fixed it. By the way, can you review the tests that i added? 🙏
Thanks for taking care of these! |
@asadurski thanks for your reply. I added "ru.py" file and tests, what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am reviewing this as accepted to not interfere with @lopuhin and @asadurski .
Thank you guys for jumping into this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍 Left a suggestion for one more common abbreviation for Sunday, and a question regarding case.
- Субботу | ||
sunday: | ||
- Вск |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, another common one is Вскр
@@ -66,34 +66,41 @@ | |||
], | |||
"monday": [ | |||
"понедельник", | |||
"пн" | |||
"пн", | |||
"Пнд" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not related to this PR, but I'm curious if case matters here, and why is пн
lower but Пнд
capitalized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalization doesn't matter when processing dates. However, If we add two different versions of the same word both are added to the py file. This is going to be fixed in this PR by @asadurski: #487
@christianfm10 Do you think you will have time to address @lopuhin’s feedback? Otherwise, @eLRuLL, @lopuhin, @asadurski, shall we merge as is? |
totally up to @lopuhin and @asadurski at this point I think |
In terms of Russian language, changes are good. From the dataparser side, I have the following questions:
|
It is not fine. We need to add a check for this to the CI. |
Added russian abbreviation weekdays:
Monday: Пнд
Tuesday: Втр
Wednesday: Срд
Thursday: Чтв
Friday: Птн
Saturday: Сбт
Sunday: Вск
Fixes #436