summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
Diffstat (limited to 'po')
-rw-r--r--po/meson.build10
1 files changed, 7 insertions, 3 deletions
diff --git a/po/meson.build b/po/meson.build
index 193f614f4f..139f393e33 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,6 +1,10 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
i18n = import('i18n')
-i18n.gettext(meson.project_name(),
- preset : 'glib',
- data_dirs : '.')
+want_translations = get_option('translations')
+
+if want_translations
+ i18n.gettext(meson.project_name(),
+ preset : 'glib',
+ data_dirs : '.')
+endif