2021-03-28 12:56:19 -04:00
|
|
|
if conf_data.get('CONFIG_NLS')
|
2020-09-06 10:54:23 -04:00
|
|
|
i18n = import('i18n')
|
|
|
|
# define GETTEXT_PACKAGE
|
|
|
|
add_project_arguments('-DGETTEXT_PACKAGE="elinks"', language:'c')
|
|
|
|
i18n.gettext('elinks',
|
|
|
|
args: '--directory=' + meson.source_root()
|
|
|
|
)
|
|
|
|
endif
|
2022-10-09 11:09:58 -04:00
|
|
|
|
2022-10-12 12:14:28 -04:00
|
|
|
generate_potfiles = find_program('potfiles.py')
|
|
|
|
potfiles = custom_target('generate-potfiles', command:[generate_potfiles], output:'potfiles.list')
|
|
|
|
|
|
|
|
generate_pot = find_program('generate_pot.py')
|
|
|
|
generate_pot_tgt = custom_target('generate-pot', command:[generate_pot, meson.project_version()], depends:[potfiles], output:'elinks.pot')
|
|
|
|
|
2022-10-09 11:09:58 -04:00
|
|
|
check_po_sh = find_program('check_po.sh')
|
|
|
|
run_target('check-po', command:[check_po_sh])
|
2022-10-09 11:24:08 -04:00
|
|
|
|
|
|
|
update_po_sh = find_program('update_po.sh')
|
2022-10-12 12:14:28 -04:00
|
|
|
run_target('update-po', command:[update_po_sh], depends:[generate_pot_tgt])
|