kopia lustrzana https://github.com/hholzgra/ocitysmap
check all python files for gettext strings, not just selected ones
rodzic
b92b18eab0
commit
8abbf82a1e
18
i18n.py
18
i18n.py
|
|
@ -27,19 +27,19 @@ import sys
|
||||||
import shutil
|
import shutil
|
||||||
import optparse
|
import optparse
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import glob
|
||||||
|
|
||||||
def make_pot():
|
def make_pot():
|
||||||
print("Make locale/ocitysmap.pot")
|
print("Make locale/ocitysmap.pot")
|
||||||
# TODO auto-generate source file list
|
# TODO auto-generate source file list
|
||||||
subprocess.check_call(['xgettext', '-o', 'ocitysmap.pot', '-p', 'locale',
|
cmd = ['xgettext',
|
||||||
'-L', 'Python',
|
'--output=ocitysmap.pot',
|
||||||
'ocitysmap/indexlib/StreetIndex.py',
|
'--output-dir=locale',
|
||||||
'ocitysmap/indexlib/HealthIndex.py',
|
'--language=Python',
|
||||||
'ocitysmap/indexlib/NotesIndex.py',
|
'--from-code=UTF-8',
|
||||||
'ocitysmap/indexlib/TreeIndex.py',
|
]
|
||||||
'ocitysmap/layoutlib/multi_page_renderer.py',
|
cmd += glob.glob("./**/*.py", recursive = True)
|
||||||
'ocitysmap/layoutlib/single_page_renderers.py',
|
subprocess.check_call(cmd)
|
||||||
])
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def make_po(languages):
|
def make_po(languages):
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue