meson: add po support

main
Rosen Penev 2 years ago
parent fcc45a3036
commit 3a1baf0c0c

@ -199,3 +199,4 @@ foreach g : gopt
endforeach endforeach
subdir('unitTests') subdir('unitTests')
subdir('po')

@ -0,0 +1,16 @@
gtext = find_program('xgettext', required: get_option('nls'))
if not gtext.found()
subdir_done()
endif
i18n = import('i18n')
i18n.gettext(
'exiv2',
preset: 'glib',
args: [
'--files-from=@0@/POTFILES.in'.format(meson.current_source_dir()),
'--copyright-holder="Exiv2 authors"',
'--msgid-bugs-address=https://github.com/Exiv2/exiv2/issues',
],
)
Loading…
Cancel
Save