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 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):