aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-17 13:20:07 +0200
committerW. J. van der Laan <laanwj@protonmail.com>2021-05-17 13:21:13 +0200
commit55c012d20c84d6af866eb5f69efc18d4bf0c2582 (patch)
tree59b83b40567ed5dd3b487e15f5f8145fe3a8d2f6 /share
parent7b87fca930ff7129f267906e71be217851146ade (diff)
qt: Extract translations correctly from UTF-8 formatted source
Diffstat (limited to 'share')
-rwxr-xr-xshare/qt/extract_strings_qt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py
index 4efc4bd6f5..e4d438fdb0 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'))