From db80d9b2b7df709314eb76f69085a4cbfe63ae97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Apr 2026 06:21:25 +0530 Subject: [PATCH] Skip checking korean website translations as too many errors --- setup/translations.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/translations.py b/setup/translations.py index b110cd89e5..0ec8ecda51 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -654,7 +654,7 @@ class GetTranslations(Translations): # {{{ def add_options(self, parser): parser.add_option('-e', '--check-for-errors', default=False, action='store_true', - help='Check for errors in .po files') + help='Only check for errors in .po files') def run(self, opts): require_git_master() @@ -727,6 +727,10 @@ class GetTranslations(Translations): # {{{ def check_group(self, group): files = glob.glob(os.path.join(self.TRANSLATIONS, group, '*.po')) + SKIP_BAD_LANGUAGES = ( + 'ko', # too many errors in the translations + ) if group == 'website' else () + files = [x for x in files if os.path.basename(x).rpartition('.')[0] not in SKIP_BAD_LANGUAGES] cmd = ['msgfmt', '-o', os.devnull, '--check-format'] # Disabled because too many such errors, and not that critical anyway # if group == 'calibre':