Skip to content

Fix and complete the Korean translations - #528

Merged
hugovk merged 1 commit into
python-humanize:mainfrom
wonjangcloud9:fix-korean-translations
Nov 29, 2026
Merged

hugovk merged 1 commit into
python-humanize:mainfrom
wonjangcloud9:fix-korean-translations

Conversation

@wonjangcloud9

Copy link
Copy Markdown
Contributor

Changes proposed in this pull request:

  • The Korean catalogue had French and English words in place of Korean ones: billion was milliard, million was million, decillion was décillion. They are now the Korean number words (천, 백만, 십억, 조, …, 구골).
  • The ordinal suffix 번째 was right but every entry was flagged fuzzy, so gettext skipped it and ordinal(3) gave 3rd. The flags are removed.
  • Fills in zero, %d Byte(s) and %s and %s, which had no translation.

Output with humanize.i18n.activate("ko_KR"), before and after:

                                   before                      after
intword(1_200)                     1.2 thousand                1.2 천
intword(3_400_000)                 3.4 million                 3.4 백만
intword(2_000_000_000)             2.0 milliard                2.0 십억
intword(5_600_000_000_000)         5.6 trillion                5.6 조
ordinal(1), ordinal(3)             1st, 3rd                    1번째, 3번째
apnumber(0)                        zero                        영
naturalsize(300)                   300 Bytes                   300바이트
precisedelta(2 h 3 min)            2시간 and 3분                2시간, 3분
precisedelta(1 d 2 h 3 min)        1일, 2시간 and 3분           1일, 2시간, 3분

msgfmt --check --statistics on the file: before 35 translated, 29 fuzzy, 25 untranslated; after 69 translated, 20 untranslated. The 20 left are the size units (kB … QiB), which stay as they are in Korean.

Korean counts in units of 10⁴ (만, 억, 조, 경), so the words for 10¹⁵ and up are compounds: 천조 (10¹⁵), 백경 (10¹⁸), 십해 (10²¹), 자 (10²⁴), 천자 (10²⁷), 백양 (10³⁰), 십구 (10³³).

Prepared with AI assistance (Claude Code). I ran the calls above from a checkout with the compiled catalogue; I did not run the test suite.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@agentscanapp

agentscanapp Bot commented Nov 29, 2026

Copy link
Copy Markdown

Automation signals

Activity patterns show signs of automation.

View full analysis →

Evidence
  • Many forks in 3 days: 28 repositories forked within 3 days
  • PRs to many projects in one day: Opened PRs in 20 different repos within 24 hours
  • High PR volume (weekly): 60 PRs within a single 7-day window
  • Fork branch then PR within seconds: 30 fork branches followed by upstream PRs within 39s, out of 35 branches created in total

Last 5 PRs:

This is an automated analysis by AgentScan

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.35%. Comparing base (a950045) to head (6cf3cf7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #528   +/-   ##
=======================================
  Coverage   97.35%   97.35%           
=======================================
  Files          12       12           
  Lines        1022     1022           
=======================================
  Hits          995      995           
  Misses         27       27           
Flag Coverage Δ
macos-latest 97.26% <ø> (ø)
ubuntu-latest 95.00% <ø> (ø)
windows-latest 95.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hugovk
hugovk merged commit 74f1c4a into python-humanize:main Nov 29, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants