Added building the .pot and .gmo files

This commit is contained in:
Keith Bowes 2020-03-09 17:08:08 -04:00
parent 30a54d8b01
commit d8bb6cc1c2
2 changed files with 9 additions and 1 deletions

7
po/meson.build Normal file
View file

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