mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-21 09:34:12 +03:00
14a6bd64ed
With setup.py we cleared po/virt-manager.pot file and created a new fresh content using gettext. I missed that fact when converting to meson and with the --join-existing argument the comments for each msgid were growing with references to their location in source files. There is no need to clear the file and generate it again because removing the --join-existing will end up with the same result. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
34 lines
806 B
Meson
34 lines
806 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',
|
|
],
|
|
)
|