|
@@ -223,29 +223,36 @@ class NaturalTimeFormatter:
|
|
|
|
|
|
"past-second": ngettext_lazy("a second ago", "%(count)s seconds ago", "count"),
|
|
|
"now": gettext_lazy("now"),
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
"future-second": ngettext_lazy(
|
|
|
+
|
|
|
+
|
|
|
"a second from now", "%(count)s seconds from now", "count"
|
|
|
),
|
|
|
-
|
|
|
-
|
|
|
"future-minute": ngettext_lazy(
|
|
|
- "a minute from now", "%(count)s minutes from now", "count"
|
|
|
+
|
|
|
+
|
|
|
+ "a minute from now", "%(count)s minutes from now", "count",
|
|
|
),
|
|
|
-
|
|
|
-
|
|
|
"future-hour": ngettext_lazy(
|
|
|
- "an hour from now", "%(count)s hours from now", "count"
|
|
|
+
|
|
|
+
|
|
|
+ "an hour from now", "%(count)s hours from now", "count",
|
|
|
),
|
|
|
+
|
|
|
|
|
|
"future-day": gettext_lazy("%(delta)s from now"),
|
|
|
}
|
|
|
past_substrings = {
|
|
|
-
|
|
|
+
|
|
|
"year": npgettext_lazy(
|
|
|
- "naturaltime-past", "%(num)d year", "%(num)d years", "num"
|
|
|
+
|
|
|
+
|
|
|
+ "naturaltime-past", "%(num)d year", "%(num)d years", "num",
|
|
|
),
|
|
|
+
|
|
|
"month": npgettext_lazy(
|
|
|
"naturaltime-past", "%(num)d month", "%(num)d months", "num"
|
|
|
),
|
|
@@ -261,11 +268,13 @@ class NaturalTimeFormatter:
|
|
|
),
|
|
|
}
|
|
|
future_substrings = {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
"year": npgettext_lazy(
|
|
|
- "naturaltime-future", "%(num)d year", "%(num)d years", "num"
|
|
|
+
|
|
|
+
|
|
|
+ "naturaltime-future", "%(num)d year", "%(num)d years", "num",
|
|
|
),
|
|
|
+
|
|
|
"month": npgettext_lazy(
|
|
|
"naturaltime-future", "%(num)d month", "%(num)d months", "num"
|
|
|
),
|