summaryrefslogtreecommitdiff
path: root/django/contrib/humanize
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2025-07-22 20:44:22 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit78298b51629e14c0e472898b635bc819d47b7f27 (patch)
treefc3302ebacba36e9b06d12f90b557c9314b9be1f /django/contrib/humanize
parent69a93a88edb56ba47f624dac7a21aacc47ea474f (diff)
Refs #36500 -- Corrected rewrapped long lines fixed via a script.
Manually reformatted some comments and docstrings where autofix_w505.py changed the meaning of the formatting.
Diffstat (limited to 'django/contrib/humanize')
-rw-r--r--django/contrib/humanize/templatetags/humanize.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/humanize/templatetags/humanize.py b/django/contrib/humanize/templatetags/humanize.py
index 91ffe3acad..26a9dd3a3f 100644
--- a/django/contrib/humanize/templatetags/humanize.py
+++ b/django/contrib/humanize/templatetags/humanize.py
@@ -215,8 +215,8 @@ def naturaltime(value):
class NaturalTimeFormatter:
time_strings = {
- # Translators: delta will contain a string like '2 months' or '1 month,
- # 2 weeks'
+ # Translators: delta will contain a string like '2 months' or
+ # '1 month, 2 weeks'
"past-day": gettext_lazy("%(delta)s ago"),
# Translators: please keep a non-breaking space (U+00A0) between count
# and time unit.
@@ -248,8 +248,8 @@ class NaturalTimeFormatter:
"an hour from now", "%(count)s hours from now", "count",
),
# fmt: on
- # Translators: delta will contain a string like '2 months' or '1 month,
- # 2 weeks'
+ # Translators: delta will contain a string like '2 months' or
+ # '1 month, 2 weeks'
"future-day": gettext_lazy("%(delta)s from now"),
}
past_substrings = {