mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix internal msgfmt implementation ignoring the empty msg
This commit is contained in:
parent
4cb0159211
commit
e0c1de3ef4
@ -46,12 +46,12 @@ def usage(code, msg=''):
|
||||
def add(id, str, fuzzy):
|
||||
"Add a non-fuzzy translation to the dictionary."
|
||||
global MESSAGES
|
||||
if not id:
|
||||
return
|
||||
if not fuzzy and str:
|
||||
MESSAGES[id] = str
|
||||
if id:
|
||||
STATS['translated'] += 1
|
||||
else:
|
||||
if id:
|
||||
STATS['untranslated'] += 1
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user