mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
po: Stop using 'glib' preset for i18n.gettext()
Due to a bug in meson versions earlier than 0.60, the --add-comments that's part of the 'glib' preset and the --add-comments=TRANSLATORS: that we add ourselves might be passed to xgettext in the wrong order, resulting in a bunch of comments that we don't care about being added to the potfile. Most of the options included in the 'glib' preset are not applicable to libvirt anyway, so just stop using the preset and pass a few extra options explicitly instead. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
a4ed1e935f
commit
325dd585fb
@ -14,6 +14,9 @@ potfiles = configure_file(
|
|||||||
i18n.gettext(
|
i18n.gettext(
|
||||||
meson.project_name(),
|
meson.project_name(),
|
||||||
args: [
|
args: [
|
||||||
|
'--from-code=UTF-8',
|
||||||
|
'--keyword=_',
|
||||||
|
'--keyword=N_',
|
||||||
'--add-comments=TRANSLATORS:',
|
'--add-comments=TRANSLATORS:',
|
||||||
'--directory=@0@'.format(meson.source_root()),
|
'--directory=@0@'.format(meson.source_root()),
|
||||||
'--directory=@0@'.format(meson.build_root()),
|
'--directory=@0@'.format(meson.build_root()),
|
||||||
@ -22,7 +25,6 @@ i18n.gettext(
|
|||||||
'--package-version=@0@'.format(meson.project_version()),
|
'--package-version=@0@'.format(meson.project_version()),
|
||||||
'--sort-output',
|
'--sort-output',
|
||||||
],
|
],
|
||||||
preset: 'glib',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
potfiles_dep = [
|
potfiles_dep = [
|
||||||
|
Loading…
Reference in New Issue
Block a user