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.
This commit is contained in:
1 parent
4ed2315e86
commit
509030344c
3 files changed
+46
-37
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user