virt-manager/po/meson.build
Pavel Hrdina 01acaa3836 meson: add po files
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-12 23:18:32 +01:00

35 lines
829 B
Meson

i18n = import('i18n')
i18n.merge_file(
input: desktop_file,
output: '@BASENAME@',
type: 'desktop',
po_dir: meson.current_source_dir(),
install: true,
install_dir: datadir / 'applications',
)
i18n.merge_file(
input: appdata_file,
output: '@BASENAME@',
type: 'xml',
po_dir: meson.current_source_dir(),
install: true,
install_dir: datadir / 'metainfo',
)
i18n.gettext(
meson.project_name(),
args: [
'--from-code=UTF-8',
'--keyword=_',
'--add-comments=translators',
'--directory=@0@'.format(meson.project_source_root()),
'--files-from=@0@'.format(meson.current_source_dir() / 'POTFILES'),
'--msgid-bugs-address=https://github.com/virt-manager/virt-manager/issues',
'--package-version=@0@'.format(meson.project_version()),
'--sort-by-file',
'--join-existing',
],
)