2022-04-09 13:43:53 +03:00
|
|
|
i18n = import('i18n')
|
|
|
|
|
|
2025-03-30 23:09:53 +03:00
|
|
|
pymod = import('python')
|
|
|
|
|
python_po = pymod.find_installation('python3')
|
|
|
|
|
spa_json_dump_po = find_program('spa-json-dump', required: false)
|
|
|
|
|
|
|
|
|
|
if python_po.found() and spa_json_dump_po.found()
|
|
|
|
|
conf_pot = custom_target('conf.pot',
|
|
|
|
|
input : i18n_conf,
|
|
|
|
|
output : 'conf.pot',
|
|
|
|
|
build_by_default : true,
|
|
|
|
|
command : [
|
|
|
|
|
python_po, spa_json_po, '--spa-json-dump=' + spa_json_dump_po.full_path(),
|
2025-03-30 23:52:59 +03:00
|
|
|
'-k', '/wireplumber.settings.schema/[^/]*/(description|name)$',
|
2025-03-30 23:09:53 +03:00
|
|
|
'-o', '@CURRENT_SOURCE_DIR@/conf.pot',
|
|
|
|
|
'@INPUT@',
|
|
|
|
|
],
|
|
|
|
|
capture: true,
|
|
|
|
|
)
|
|
|
|
|
endif
|
|
|
|
|
|
2022-04-09 13:43:53 +03:00
|
|
|
i18n.gettext(
|
|
|
|
|
meson.project_name(),
|
|
|
|
|
preset: 'glib',
|
|
|
|
|
# Page width is set to 90 characters in order to avoid bad wrapping of the
|
|
|
|
|
# bug reporting address.
|
|
|
|
|
args: ['--msgid-bugs-address=https://gitlab.freedesktop.org/pipewire/wireplumber/issues/new',
|
|
|
|
|
'--width=90', '--keyword=I18n.gettext:1', '--keyword=I18n.ngettext:1,2']
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
po_dir = meson.current_source_dir()
|