Fix extracting Description key from contractor file for translation

This commit is contained in:
Piotr Drąg 2018-09-30 19:40:00 +02:00
parent 3afef2c5ac
commit ea9aebdb9c
2 changed files with 7 additions and 4 deletions

View file

@ -21,11 +21,13 @@ i18n.merge_file(
# Contractor file (Elementary OS) # Contractor file (Elementary OS)
if install_contractor_file if install_contractor_file
i18n.merge_file(
msgfmt = find_program('msgfmt')
custom_target(
input: 'geary-attach.contract.desktop.in', input: 'geary-attach.contract.desktop.in',
output: 'geary-attach.contract', output: 'geary-attach.contract',
type: 'desktop', command: [msgfmt, '--desktop', '--keyword=Description', '--template', '@INPUT@', '-d', po_dir, '-o', '@OUTPUT@'],
po_dir: po_dir,
install: true, install: true,
install_dir: join_paths(datadir, 'contractor') install_dir: join_paths(datadir, 'contractor')
) )

View file

@ -1,3 +1,4 @@
i18n.gettext(meson.project_name(), i18n.gettext(meson.project_name(),
preset: 'glib' preset: 'glib',
args: '--keyword=Description'
) )