Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbe4949

Browse files
yangs1202jadchaar
andauthored
Modifying Spelling 제작년, Remove poorly used expressions (#1181)
* Modifying Spelling `제작년`, Remove poorly used expressions * add test Modifying Spelling `제작년`, Remove poorly used expressions --------- Co-authored-by: Jad Chaar <jadchaar@users.noreply.github.com>
1 parent 714db9c commit cbe4949

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎arrow/locales.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,6 @@ class KoreanLocale(Locale):
11401140
}
11411141

11421142
special_dayframes = {
1143-
-3: "그끄제",
11441143
-2: "그제",
11451144
-1: "어제",
11461145
1: "내일",
@@ -1149,7 +1148,7 @@ class KoreanLocale(Locale):
11491148
4: "그글피",
11501149
}
11511150

1152-
special_yearframes = {-2: "제작년", -1: "작년", 1: "내년", 2: "내후년"}
1151+
special_yearframes = {-2: "재작년", -1: "작년", 1: "내년", 2: "내후년"}
11531152

11541153
month_names = [
11551154
"",

‎tests/test_locales.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,14 +2390,14 @@ def test_format_relative(self):
23902390
assert self.locale._format_relative("2시간", "hours", -2) == "2시간 전"
23912391
assert self.locale._format_relative("하루", "day", -1) == "어제"
23922392
assert self.locale._format_relative("2일", "days", -2) == "그제"
2393-
assert self.locale._format_relative("3일", "days", -3) == "그끄제"
2393+
assert self.locale._format_relative("3일", "days", -3) == "3일 전"
23942394
assert self.locale._format_relative("4일", "days", -4) == "4일 전"
23952395
assert self.locale._format_relative("1주", "week", -1) == "1주 전"
23962396
assert self.locale._format_relative("2주", "weeks", -2) == "2주 전"
23972397
assert self.locale._format_relative("한달", "month", -1) == "한달 전"
23982398
assert self.locale._format_relative("2개월", "months", -2) == "2개월 전"
23992399
assert self.locale._format_relative("1년", "year", -1) == "작년"
2400-
assert self.locale._format_relative("2년", "years", -2) == "제작년"
2400+
assert self.locale._format_relative("2년", "years", -2) == "재작년"
24012401
assert self.locale._format_relative("3년", "years", -3) == "3년 전"
24022402

24032403
def test_ordinal_number(self):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /