diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-01-10 14:37:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 14:37:56 +0000 |
commit | 91737e14539acf678d0f61ad23ac5bff2c8bb318 (patch) | |
tree | 71fa711b69863ef82585075905cd85e5d698a945 /po | |
parent | 222466954659b33034dc87c2bb0c3db059bc110c (diff) | |
parent | db52af5af5f8ce058cddc1e5e61f4ee16bbf3665 (diff) | |
download | systemd-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.build | 10 |
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 |