2017-12-06 14:54:24 -08:00
|
|
|
if get_option('nls')
|
|
|
|
i18n = import('i18n')
|
2020-04-11 15:11:25 -07:00
|
|
|
# define GETTEXT_PACKAGE
|
|
|
|
add_project_arguments('-DGETTEXT_PACKAGE="terminology"', language:'c')
|
|
|
|
i18n.gettext(meson.project_name(),
|
|
|
|
args: [
|
|
|
|
'--directory=' + meson.source_root(),
|
|
|
|
'--keyword=_',
|
|
|
|
'--keyword=d_:1',
|
|
|
|
'--keyword=P_:1,2',
|
|
|
|
'--keyword=dP_:1,2',
|
|
|
|
'--keyword=N_',
|
|
|
|
'--keyword=NP_:1,2',
|
|
|
|
'--from-code=UTF-8',
|
|
|
|
'--foreign-user'
|
|
|
|
])
|
2017-12-06 14:54:24 -08:00
|
|
|
config_data.set('ENABLE_NLS', '1')
|
|
|
|
endif
|
2020-09-15 12:45:17 -07:00
|
|
|
|
|
|
|
# maintainer shortcut for updating po stuff
|
|
|
|
run_target ('po',
|
|
|
|
command: ['ninja', '-C', meson.build_root(),
|
|
|
|
meson.project_name() + '-pot',
|
|
|
|
meson.project_name() + '-update-po']
|
|
|
|
)
|