check all python files for gettext strings, not just selected ones

pull/81/head
Hartmut Holzgraefe 2022-11-06 13:42:55 +00:00
rodzic b92b18eab0
commit 8abbf82a1e
1 zmienionych plików z 9 dodań i 9 usunięć

18
i18n.py
Wyświetl plik

@ -27,19 +27,19 @@ import sys
import shutil
import optparse
import subprocess
import glob
def make_pot():
print("Make locale/ocitysmap.pot")
# TODO auto-generate source file list
subprocess.check_call(['xgettext', '-o', 'ocitysmap.pot', '-p', 'locale',
'-L', 'Python',
'ocitysmap/indexlib/StreetIndex.py',
'ocitysmap/indexlib/HealthIndex.py',
'ocitysmap/indexlib/NotesIndex.py',
'ocitysmap/indexlib/TreeIndex.py',
'ocitysmap/layoutlib/multi_page_renderer.py',
'ocitysmap/layoutlib/single_page_renderers.py',
])
cmd = ['xgettext',
'--output=ocitysmap.pot',
'--output-dir=locale',
'--language=Python',
'--from-code=UTF-8',
]
cmd += glob.glob("./**/*.py", recursive = True)
subprocess.check_call(cmd)
return
def make_po(languages):