mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 20:07:25 +01:00
Fix internal msgfmt implementation ignoring the empty msg
This commit is contained in:
parent
4cb0159211
commit
e0c1de3ef4
1 changed files with 4 additions and 4 deletions
|
|
@ -46,13 +46,13 @@ 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
|
||||
STATS['translated'] += 1
|
||||
if id:
|
||||
STATS['translated'] += 1
|
||||
else:
|
||||
STATS['untranslated'] += 1
|
||||
if id:
|
||||
STATS['untranslated'] += 1
|
||||
|
||||
|
||||
def generate():
|
||||
|
|
|
|||
Loading…
Reference in a new issue