From e312370817e445c8a93b326c65cfb49d0878d61c Mon Sep 17 00:00:00 2001 From: Eisha CHEN-YEN-SU Date: Thu, 17 May 2018 19:52:35 +0200 Subject: [PATCH] meson.build: Add l10n support Closes https://gitlab.gnome.org/World/fractal/issues/89 --- fractal-gtk/po/meson.build | 1 + meson.build | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 fractal-gtk/po/meson.build diff --git a/fractal-gtk/po/meson.build b/fractal-gtk/po/meson.build new file mode 100644 index 00000000..e9b77d79 --- /dev/null +++ b/fractal-gtk/po/meson.build @@ -0,0 +1 @@ +i18n.gettext(meson.project_name(), preset: 'glib') diff --git a/meson.build b/meson.build index b8c5a7a8..ce9a2d5d 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,9 @@ fractal_bindir = join_paths(fractal_prefix, get_option('bindir')) datadir = get_option('datadir') icondir = join_paths(datadir, 'icons') +i18n = import('i18n') + +subdir('fractal-gtk/po') subdir('fractal-gtk/res') cargo = find_program('cargo', required: false)