summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2022-05-19 06:54:40 -0400
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-07-30 13:58:22 +0900
commit64a42770064fac0d05892dfc5b3f105680677afd (patch)
treeb9784a522c70f6bae066246290da968b7cef4509 /po
parent792d5e87b6b3489500244109f3079071d7acb5a7 (diff)
downloadsystemd-64a42770064fac0d05892dfc5b3f105680677afd.tar.gz
meson: move i18n module import to only when it is used
When translations are disabled, it's not necessary to `import('i18n')` and do nothing with it. Also, importing it is (slightly) slow as Meson needs to load another implementation file from disk, so why bother with that work? More particularly, muon does not yet implement this module and fails to setup. Since there's already an option to disable using it, it makes sense to let that option completely skip the not-implemented functionality and actually succeed.
Diffstat (limited to 'po')
-rw-r--r--po/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/po/meson.build b/po/meson.build
index 139f393e33..0a140b40b5 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
-i18n = import('i18n')
want_translations = get_option('translations')
if want_translations
+ i18n = import('i18n')
i18n.gettext(meson.project_name(),
preset : 'glib',
data_dirs : '.')