Skip to content

Commit 02e3b1b

Browse files
authored
Fix "ago" Greek translation and month typo (#1184)
1 parent 587af5f commit 02e3b1b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

arrow/locales.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ class FrenchCanadianLocale(FrenchBaseLocale, Locale):
654654
class GreekLocale(Locale):
655655
names = ["el", "el-gr"]
656656

657-
past = "{0} πριν"
657+
past = "πριν από {0}"
658658
future = "σε {0}"
659659
and_word = "και"
660660

@@ -697,7 +697,7 @@ class GreekLocale(Locale):
697697
"Φεβ",
698698
"Μαρ",
699699
"Απρ",
700-
"Μαϊ",
700+
"Μαΐ",
701701
"Ιον",
702702
"Ιολ",
703703
"Αυγ",

tests/test_locales.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,3 +3178,14 @@ def test_plurals_mk(self):
31783178
assert self.locale._format_timeframe("months", 11) == "11 oy"
31793179
assert self.locale._format_timeframe("year", 1) == "bir yil"
31803180
assert self.locale._format_timeframe("years", 12) == "12 yil"
3181+
3182+
3183+
@pytest.mark.usefixtures("lang_locale")
3184+
class TestGreekLocale:
3185+
def test_format_relative_future(self):
3186+
result = self.locale._format_relative("μία ώρα", "ώρα", -1)
3187+
3188+
assert result == "πριν από μία ώρα" # an hour ago
3189+
3190+
def test_month_abbreviation(self):
3191+
assert self.locale.month_abbreviations[5] == "Μαΐ"

0 commit comments

Comments
 (0)