diff --git a/meson.build b/meson.build index f9074e2..a9828a4 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/po/meson.build b/po/meson.build new file mode 100644 index 0000000..9eb4a1c --- /dev/null +++ b/po/meson.build @@ -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() +)