aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/po/meson.build
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--po/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..6870f58
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,7 @@
+i18n = import('i18n')
+
+localedir = join_paths(get_option('prefix'), get_option('localedir'))
+add_project_arguments('-DGETTEXT_PACKAGE="weltschmerz"', language: 'c')
+add_project_arguments('-DLOCALEDIR="@0@"'.format(localedir), language: 'c')
+
+i18n.gettext(meson.project_name(), args: '--directory=' + meson.source_root())