From ac2e9ea1e797808d9d6f867faa55a04c4d1885f9 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 17 May 2021 13:20:07 +0200 Subject: [PATCH] qt: Extract translations correctly from UTF-8 formatted source --- share/qt/extract_strings_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py index 4f294a9b40..33861ac96a 100755 --- a/share/qt/extract_strings_qt.py +++ b/share/qt/extract_strings_qt.py @@ -58,7 +58,7 @@ if not XGETTEXT: print('Cannot extract strings: xgettext utility is not installed or not configured.',file=sys.stderr) print('Please install package "gettext" and re-run \'./configure\'.',file=sys.stderr) sys.exit(1) -child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE) +child = Popen([XGETTEXT,'--output=-','--from-code=utf-8','-n','--keyword=_'] + files, stdout=PIPE) (out, err) = child.communicate() messages = parse_po(out.decode('utf-8'))