Skip to content

Use "sonra" for future times in Turkish - #501

Merged
hugovk merged 1 commit into
python-humanize:mainfrom
emincan2000:turkish-from-now
Nov 2, 2026
Merged

hugovk merged 1 commit into
python-humanize:mainfrom
emincan2000:turkish-from-now

Conversation

@emincan2000

Copy link
Copy Markdown
Contributor

The Turkish translation of "%s from now" is "şu andan itibaren %s", so naturaltime returns "şu andan itibaren 3 gün" for a date three days ahead. This reads as "for 3 days starting now" and describes a period rather than a point in time. The usual phrasing is "3 gün sonra", which also matches "%s önce" for past times.

I added Turkish checks to test_i18n for both directions. The future check fails with the old catalog. After generating the .mo files, the full test suite passes.

@hugovk hugovk added the changelog: Fixed For any bug fixes label Nov 2, 2026
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.70%. Comparing base (38d9d91) to head (8ab2421).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #501   +/-   ##
=======================================
  Coverage   99.70%   99.70%           
=======================================
  Files          12       12           
  Lines        1020     1024    +4     
=======================================
+ Hits         1017     1021    +4     
  Misses          3        3           
Flag Coverage Δ
macos-latest 97.26% <100.00%> (+0.01%) ⬆️
ubuntu-latest 97.26% <100.00%> (+0.01%) ⬆️
windows-latest 91.99% <0.00%> (-0.37%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hugovk
hugovk enabled auto-merge (squash) November 2, 2026 20:48
@hugovk

hugovk commented Nov 2, 2026

Copy link
Copy Markdown
Member

Thank you!

@hugovk
hugovk merged commit d16e635 into python-humanize:main Nov 2, 2026
44 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Fixed For any bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants