Raise User Manual translations completion threshold

This commit is contained in:
Kovid Goyal 2014-10-17 11:34:15 +05:30
parent e155b2ac63
commit bf5c3f9be1

View File

@ -332,8 +332,8 @@ class Translations(POT): # {{{
with open(self.j(self.d(dest), 'stats.json'), 'wb') as f: with open(self.j(self.d(dest), 'stats.json'), 'wb') as f:
json.dump(stats, f) json.dump(stats, f)
total = translated + untranslated total = translated + untranslated
# Raise the 20% threshold in the future # Raise the 30% threshold in the future
if total and (translated / float(total)) > 0.2: if total and (translated / float(total)) > 0.3:
complete[x] = stats complete[x] = stats
with open(self.j(destbase, 'completed.json'), 'wb') as f: with open(self.j(destbase, 'completed.json'), 'wb') as f:
json.dump(complete, f, indent=True, sort_keys=True) json.dump(complete, f, indent=True, sort_keys=True)