Skip checking korean website translations as too many errors

This commit is contained in:
Kovid Goyal 2026-04-09 06:21:25 +05:30
parent 04e409f4e9
commit db80d9b2b7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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':