Reduce the threshold for website translations to be included

This commit is contained in:
Kovid Goyal 2017-08-24 00:18:46 +05:30
parent 134035b18a
commit 31e693cd09
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -482,7 +482,7 @@ class Translations(POT): # {{{
self.compile_group(files, handle_stats=handle_stats) self.compile_group(files, handle_stats=handle_stats)
for locale, translated in stats.iteritems(): for locale, translated in stats.iteritems():
if translated > 30: if translated >= 20:
with open(os.path.join(tdir, locale + '.mo'), 'rb') as f: with open(os.path.join(tdir, locale + '.mo'), 'rb') as f:
raw = f.read() raw = f.read()
zi = ZipInfo(os.path.basename(f.name)) zi = ZipInfo(os.path.basename(f.name))