i18n = import('i18n') localedir = join_paths(get_option('prefix'), get_option('localedir')) add_project_arguments('-DGETTEXT_PACKAGE="weltschmerz"', language: 'c') add_project_arguments('-DLOCALEDIR="@0@"'.format(localedir), language: 'c') i18n.gettext(meson.project_name(), args: '--directory=' + meson.source_root())