Fix pgettext() not being recognized when extracting translatable strings. Fixes #1970038 [The "Miscellaneous" string is not translatable in some cases](https://bugs.launchpad.net/calibre/+bug/1970038)

This commit is contained in:
Kovid Goyal 2022-04-24 08:49:52 +05:30
parent c9a7b68532
commit 50a2be5ce7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -230,7 +230,7 @@ class POT(Command): # {{{
subprocess.check_call(['xgettext', '-f', fl.name,
'--default-domain=calibre', '-o', out.name, '-L', 'Python',
'--from-code=UTF-8', '--sort-by-file', '--omit-header',
'--no-wrap', '-k__', '--add-comments=NOTE:',
'--no-wrap', '-k__', '-kpgettext:1c,2', '--add-comments=NOTE:',
])
subprocess.check_call(['xgettext', '-j',
'--default-domain=calibre', '-o', out.name,