diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2013-09-14 11:48:27 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2013-09-14 11:53:28 -0400 |
commit | f3f09462cd5c9f9964a3c0631f5bdceab8768b0c (patch) | |
tree | 12951dd659108d88614f337bdac7e28045a1a873 /share | |
parent | f286aa1611c625e16fae7af83bd10f5607272c9d (diff) |
autotools: teach extract_strings_qt.py to respect the XGETTEXT env variable
Diffstat (limited to 'share')
-rwxr-xr-x | share/qt/extract_strings_qt.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py index 1267b1856a..a7bfc1f9fa 100755 --- a/share/qt/extract_strings_qt.py +++ b/share/qt/extract_strings_qt.py @@ -6,6 +6,7 @@ they can be picked up by Qt linguist. from subprocess import Popen, PIPE import glob import operator +import os OUT_CPP="src/qt/bitcoinstrings.cpp" EMPTY=['""'] @@ -49,7 +50,8 @@ def parse_po(text): files = glob.glob('src/*.cpp') + glob.glob('src/*.h') # xgettext -n --keyword=_ $FILES -child = Popen(['xgettext','--output=-','-n','--keyword=_'] + files, stdout=PIPE) +XGETTEXT=os.getenv('XGETTEXT', 'gettext') +child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE) (out, err) = child.communicate() messages = parse_po(out) |