summaryrefslogtreecommitdiff
path: root/po/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'po/meson.build')
-rw-r--r--po/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..cf61bee
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,15 @@
+i18n.gettext(project_name, preset: 'glib')
+
+i18n_sources = []
+
+foreach file : srcs + ui_defs + i18n_data
+ i18n_sources += '@0@'.format(file)
+endforeach
+
+potfiles = configure_file(
+ input: 'POTFILES.in',
+ output: '@BASENAME@',
+ configuration: configuration_data({
+ 'SOURCES': '\n'.join(i18n_sources)
+ }),
+)