mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
qt: Extract translations correctly from UTF-8 formatted source
This commit is contained in:
committed by
W. J. van der Laan
parent
7b87fca930
commit
55c012d20c
@@ -58,7 +58,7 @@ if not XGETTEXT:
|
|||||||
print('Cannot extract strings: xgettext utility is not installed or not configured.',file=sys.stderr)
|
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)
|
print('Please install package "gettext" and re-run \'./configure\'.',file=sys.stderr)
|
||||||
sys.exit(1)
|
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()
|
(out, err) = child.communicate()
|
||||||
|
|
||||||
messages = parse_po(out.decode('utf-8'))
|
messages = parse_po(out.decode('utf-8'))
|
||||||
|
|||||||
Reference in New Issue
Block a user