From 8ab2421ae76e91cfe41a1067359cf32c010a320f Mon Sep 17 00:00:00 2001 From: EminY <57416756+emincan2000@users.noreply.github.com> Date: Mon, 2 Nov 2026 18:04:42 +0000 Subject: [PATCH] Use "sonra" for future times in Turkish --- src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po | 2 +- tests/test_i18n.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po b/src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po index dec52736..57178567 100644 --- a/src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po +++ b/src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po @@ -338,7 +338,7 @@ msgstr[1] "%d yıl" #: src/humanize/time.py:256 #, python-format msgid "%s from now" -msgstr "şu andan itibaren %s" +msgstr "%s sonra" #: src/humanize/time.py:256 #, python-format diff --git a/tests/test_i18n.py b/tests/test_i18n.py index 0d3ced84..2d54382b 100644 --- a/tests/test_i18n.py +++ b/tests/test_i18n.py @@ -96,6 +96,11 @@ def test_i18n() -> None: assert humanize.naturaltime(three_seconds) == "3 সেকেন্ড সময় আগে" assert humanize.precisedelta(one_min_three_seconds) == "1 মিনিট আর 7 সেকেন্ড" + humanize.i18n.activate("tr_TR") + assert humanize.naturaltime(three_seconds) == "3 saniye önce" + in_three_days = NOW + dt.timedelta(days=3) + assert humanize.naturaltime(in_three_days, when=NOW) == "3 gün sonra" + except FileNotFoundError: pytest.skip("Generate .mo with scripts/generate-translation-binaries.sh")