From f15a7ae787b979e651d433073b7db8d672dbbcd4 Mon Sep 17 00:00:00 2001 From: Konstantin Weddige Date: Tue, 23 Feb 2021 19:52:36 +0100 Subject: [PATCH] Fix German time frames (#922) The rules for German timeframes for only_distance=True where incomplete. --- arrow/locales.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arrow/locales.py b/arrow/locales.py index f05227224..73b57533c 100644 --- a/arrow/locales.py +++ b/arrow/locales.py @@ -1807,7 +1807,7 @@ class GermanBaseLocale(Locale): timeframes = { "now": "gerade eben", - "second": "eine Sekunde", + "second": "einer Sekunde", "seconds": "{0} Sekunden", "minute": "einer Minute", "minutes": "{0} Minuten", @@ -1824,12 +1824,16 @@ class GermanBaseLocale(Locale): } timeframes_only_distance = timeframes.copy() + timeframes_only_distance["second"] = "eine Sekunde" timeframes_only_distance["minute"] = "eine Minute" timeframes_only_distance["hour"] = "eine Stunde" timeframes_only_distance["day"] = "ein Tag" + timeframes_only_distance["days"] = "{0} Tage" timeframes_only_distance["week"] = "eine Woche" timeframes_only_distance["month"] = "ein Monat" + timeframes_only_distance["months"] = "{0} Monate" timeframes_only_distance["year"] = "ein Jahr" + timeframes_only_distance["years"] = "{0} Jahre" month_names = [ "",