diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-07-03 07:31:50 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-07-07 09:57:37 +0200 |
| commit | 509030344c66d2a2e27e50a690c43d577e5b943b (patch) | |
| tree | 09b7f6001c7cf640b6cd73416a96801f812e952e /share/qt | |
| parent | Merge pull request #4457 (diff) | |
| download | discoin-509030344c66d2a2e27e50a690c43d577e5b943b.tar.xz discoin-509030344c66d2a2e27e50a690c43d577e5b943b.zip | |
qt: Pick translation messages only from necessary files
Utility libraries (common, util) as well as extra tools shouldn't be
parsed for translation messages, only the server and wallet part qualify
here.
Diffstat (limited to 'share/qt')
| -rwxr-xr-x | share/qt/extract_strings_qt.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py index e6afe3b48..d4bd58513 100755 --- a/share/qt/extract_strings_qt.py +++ b/share/qt/extract_strings_qt.py @@ -7,8 +7,9 @@ from subprocess import Popen, PIPE import glob import operator import os +import sys -OUT_CPP="src/qt/bitcoinstrings.cpp" +OUT_CPP="qt/bitcoinstrings.cpp" EMPTY=['""'] def parse_po(text): @@ -47,7 +48,7 @@ def parse_po(text): return messages -files = glob.glob('src/*.cpp') + glob.glob('src/*.h') +files = sys.argv[1:] # xgettext -n --keyword=_ $FILES XGETTEXT=os.getenv('XGETTEXT', 'xgettext') |