Skip to content

Commit d16e635

Browse files
authored
Use "sonra" for future times in Turkish (#501)
1 parent 38d9d91 commit d16e635

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ msgstr[1] "%d yıl"
338338
#: src/humanize/time.py:256
339339
#, python-format
340340
msgid "%s from now"
341-
msgstr "şu andan itibaren %s"
341+
msgstr "%s sonra"
342342

343343
#: src/humanize/time.py:256
344344
#, python-format

‎tests/test_i18n.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ def test_i18n() -> None:
9696
assert humanize.naturaltime(three_seconds) == "3 সেকেন্ড সময় আগে"
9797
assert humanize.precisedelta(one_min_three_seconds) == "1 মিনিট আর 7 সেকেন্ড"
9898

99+
humanize.i18n.activate("tr_TR")
100+
assert humanize.naturaltime(three_seconds) == "3 saniye önce"
101+
in_three_days = NOW + dt.timedelta(days=3)
102+
assert humanize.naturaltime(in_three_days, when=NOW) == "3 gün sonra"
103+
99104
except FileNotFoundError:
100105
pytest.skip("Generate .mo with scripts/generate-translation-binaries.sh")
101106

0 commit comments

Comments
 (0)