mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Raise User Manual translations completion threshold
This commit is contained in:
parent
e155b2ac63
commit
bf5c3f9be1
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user