summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-01-10 14:37:56 +0000
committerGitHub <noreply@github.com>2021-01-10 14:37:56 +0000
commit91737e14539acf678d0f61ad23ac5bff2c8bb318 (patch)
tree71fa711b69863ef82585075905cd85e5d698a945 /po
parent222466954659b33034dc87c2bb0c3db059bc110c (diff)
parentdb52af5af5f8ce058cddc1e5e61f4ee16bbf3665 (diff)
downloadsystemd-91737e14539acf678d0f61ad23ac5bff2c8bb318.tar.gz
Merge pull request #18186 from DaanDeMeyer/translations-option
meson: Add option to disable translations
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