From 50a2be5ce7f57ab18ca34f98273e3e6ad093b54e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Apr 2022 08:49:52 +0530 Subject: [PATCH] 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) --- setup/translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/translations.py b/setup/translations.py index c875935c3c..2a16bba87b 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -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,