-
-
Notifications
You must be signed in to change notification settings - Fork 667
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
Update TurkishLocale #982
Update TurkishLocale #982
Conversation
If you give me some time I can add the |
Sure, take your time. Take a look at the Macedonian or Tagalog locale for a more comprehensive test suite. Cheers |
Cheers, thank you. I added |
Hi, Some localizations have problems. I am trying to understand. |
@beucismis could you provide the list of locales where you've noticed this? Typically, we would like humanize to represent the time difference of 1 week as "a week", not "week" across locales (same applies to the units 1 second, 1 month etc ). I'm not too sure if this possible to achieve in certain locales, but the goal is to be as close as possible to a rough translation of "a week". From experience with dehumanize, there are some locales that need work on this issue. @krisfremen @jadchaar, we might want to open this up to be a separate issue and have an open list of locales with issues. |
@anishnya agreed, we should open up issues and tackle them separately |
False. It should be "1 hafta önce" or "bir hafta önce". The English translation of "hafta önce" is "week ago". |
arrow/locales.py
Outdated
@@ -2311,12 +2312,16 @@ class TurkishLocale(Locale): | |||
"hours": "{0} saat", | |||
"day": "bir gün", | |||
"days": "{0} gün", | |||
"week": "hafta", |
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 write "bir hafta" instead of "hafta"?
"hafta": "week"
"bir hafta": "a week"
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.
"bir hafta" would be what we want.
Test results successful. |
Codecov Report
@@ Coverage Diff @@
## master #982 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 2054 2056 +2
Branches 330 330
=========================================
+ Hits 2054 2056 +2
Continue to review full report at Codecov.
|
Hey @beucismis. There are some extremely minor linting errors that need to be fixed. It is mainly just an issue with some of the longer assert statements within the test cases. See the output on the linter checks for more specifics. Other than that, everything else looks good to pull in. Let us know if you have any further questions, and we appreciate your contribution! |
Thanks for the contribution @beucismis! |
@anishnya thanks. |
Pull Request Checklist
Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:
tox
ormake test
to find out!).tox -e lint
ormake lint
to find out!).master
branch.If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!
Description of Changes
Update
TurkishLocale
class. Addedand_word
,week
,weeks
andmeridians
.Edit: Add
TestTurkishLocale
class intests/test_test_locales.py
.