Skip to content

Commit 55c012d

Browse files
hebastolaanwj
authored andcommitted
qt: Extract translations correctly from UTF-8 formatted source
1 parent 7b87fca commit 55c012d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/qt/extract_strings_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def parse_po(text):
5858
print('Cannot extract strings: xgettext utility is not installed or not configured.',file=sys.stderr)
5959
print('Please install package "gettext" and re-run \'./configure\'.',file=sys.stderr)
6060
sys.exit(1)
61-
child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE)
61+
child = Popen([XGETTEXT,'--output=-','--from-code=utf-8','-n','--keyword=_'] + files, stdout=PIPE)
6262
(out, err) = child.communicate()
6363

6464
messages = parse_po(out.decode('utf-8'))

0 commit comments

Comments
 (0)