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

View file

@ -1,5 +1,5 @@
project(
'waybox',
'Waybox',
'c',
version: '0.0.1',
license: 'MIT',
@ -28,5 +28,6 @@ wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
xkbcommon = dependency('xkbcommon')
subdir('po')
subdir('protocol')
subdir('waybox')

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()
)