From cbe4949c49feb1501875818d7b63c15c9306f269 Mon Sep 17 00:00:00 2001 From: Yangs Date: Sat, 19 Oct 2024 23:53:28 +0900 Subject: [PATCH] =?UTF-8?q?Modifying=20Spelling=20`=EC=A0=9C=EC=9E=91?= =?UTF-8?q?=EB=85=84`,=20Remove=20poorly=20used=20expressions=20(#1181)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Modifying Spelling `제작년`, Remove poorly used expressions * add test Modifying Spelling `제작년`, Remove poorly used expressions --------- Co-authored-by: Jad Chaar --- arrow/locales.py | 3 +-- tests/test_locales.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arrow/locales.py b/arrow/locales.py index c1b7869b..7f91b565 100644 --- a/arrow/locales.py +++ b/arrow/locales.py @@ -1140,7 +1140,6 @@ class KoreanLocale(Locale): } special_dayframes = { - -3: "그끄제", -2: "그제", -1: "어제", 1: "내일", @@ -1149,7 +1148,7 @@ class KoreanLocale(Locale): 4: "그글피", } - special_yearframes = {-2: "제작년", -1: "작년", 1: "내년", 2: "내후년"} + special_yearframes = {-2: "재작년", -1: "작년", 1: "내년", 2: "내후년"} month_names = [ "", diff --git a/tests/test_locales.py b/tests/test_locales.py index 2122b9c7..f58eb221 100644 --- a/tests/test_locales.py +++ b/tests/test_locales.py @@ -2390,14 +2390,14 @@ def test_format_relative(self): assert self.locale._format_relative("2시간", "hours", -2) == "2시간 전" assert self.locale._format_relative("하루", "day", -1) == "어제" assert self.locale._format_relative("2일", "days", -2) == "그제" - assert self.locale._format_relative("3일", "days", -3) == "그끄제" + assert self.locale._format_relative("3일", "days", -3) == "3일 전" assert self.locale._format_relative("4일", "days", -4) == "4일 전" assert self.locale._format_relative("1주", "week", -1) == "1주 전" assert self.locale._format_relative("2주", "weeks", -2) == "2주 전" assert self.locale._format_relative("한달", "month", -1) == "한달 전" assert self.locale._format_relative("2개월", "months", -2) == "2개월 전" assert self.locale._format_relative("1년", "year", -1) == "작년" - assert self.locale._format_relative("2년", "years", -2) == "제작년" + assert self.locale._format_relative("2년", "years", -2) == "재작년" assert self.locale._format_relative("3년", "years", -3) == "3년 전" def test_ordinal_number(self):