forked from butscher/WikidPad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateI18N.py
36 lines (25 loc) · 852 Bytes
/
updateI18N.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import glob
import pygettext
def main():
updFiles = glob.glob(ur"WikidPad*.po")
updParams = []
# for uf in updFiles:
# updParams += [ur"-u", uf]
pySrcParams = [
ur"Consts.py",
ur"ExceptionLogger.py",
ur"WikidPadStarter.py",
ur"extensions",
ur"lib\pwiki",
ur"lib\pwiki\rtlibRepl",
ur"lib\pwiki\timeView",
ur"lib\pwiki\wikidata",
ur"lib\pwiki\wikidata\compact_sqlite",
ur"lib\pwiki\wikidata\original_gadfly",
ur"lib\pwiki\wikidata\original_sqlite"
]
params = [ur"-o", ur"WikidPad.pot", ur"--xrc=WikidPad.xrc"] + updParams + \
pySrcParams
pygettext.main(params)
if __name__ == '__main__':
main()