2020-06-29 19:55:39 +00:00
|
|
|
i18n = import('i18n')
|
|
|
|
|
|
|
|
i18n.gettext(
|
|
|
|
meson.project_name(),
|
|
|
|
args: [
|
2022-05-18 09:34:40 +00:00
|
|
|
'--from-code=UTF-8',
|
|
|
|
'--keyword=_',
|
|
|
|
'--keyword=N_',
|
2020-06-29 19:55:39 +00:00
|
|
|
'--add-comments=TRANSLATORS:',
|
2022-10-07 07:37:43 +00:00
|
|
|
'--directory=@0@'.format(meson.project_source_root()),
|
2022-10-07 07:31:32 +00:00
|
|
|
'--directory=@0@'.format(meson.project_build_root()),
|
2022-05-16 14:57:08 +00:00
|
|
|
'--files-from=@0@'.format(meson.current_source_dir() / 'POTFILES'),
|
2020-06-29 19:55:39 +00:00
|
|
|
'--msgid-bugs-address=https://libvirt.org/bugs.html',
|
|
|
|
'--package-version=@0@'.format(meson.project_version()),
|
|
|
|
'--sort-output',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
potfiles_dep = [
|
|
|
|
access_gen_sources,
|
|
|
|
admin_client_generated,
|
|
|
|
admin_driver_generated,
|
2024-01-24 18:23:54 +00:00
|
|
|
remote_protocol_generated,
|
2020-06-29 19:55:39 +00:00
|
|
|
remote_driver_generated,
|
|
|
|
remote_daemon_generated,
|
|
|
|
]
|
|
|
|
|
|
|
|
alias_target('libvirt-pot-dep', potfiles_dep)
|
2023-03-08 09:58:23 +00:00
|
|
|
|
|
|
|
run_target(
|
|
|
|
'libvirt-pot-check',
|
|
|
|
command: [
|
|
|
|
'@0@/scripts/check-pot.py'.format(meson.project_source_root()),
|
|
|
|
'@0@/po/libvirt.pot'.format(meson.project_source_root())
|
|
|
|
],
|
|
|
|
)
|