aboutsummaryrefslogtreecommitdiffstats
path: root/po/meson.build
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-12-06 23:54:24 +0100
committerBoris Faure <billiob@gmail.com>2017-12-06 23:54:24 +0100
commit6513de27bb6962547bae859a52ffbb1385c4b018 (patch)
tree012fb1c0f3dcfcc723d5d6d9330a08e3de1c207d /po/meson.build
parentthemes: add Nord theme (diff)
downloadterminology-6513de27bb6962547bae859a52ffbb1385c4b018.tar.gz
meson: add 'nls' option. Closes https://phab.enlightenment.org/T6398
Diffstat (limited to 'po/meson.build')
-rw-r--r--po/meson.build62
1 files changed, 33 insertions, 29 deletions
diff --git a/po/meson.build b/po/meson.build
index 6cb7469..498bbb1 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,29 +1,33 @@
-i18n = import('i18n')
-i18n.gettext('terminology',
- languages: [
- 'ca',
- 'de',
- 'el',
- 'eo',
- 'es',
- 'fi',
- 'fr',
- 'hi',
- 'it',
- 'ko',
- 'ms',
- 'sl',
- 'sr',
- 'tr',
- 'vi'
- ],
- args: [
- '--keyword=_',
- '--keyword=d_:1',
- '--keyword=P_:1,2',
- '--keyword=dP_:1,2',
- '--keyword=N_',
- '--keyword=NP_:1,2',
- '--from-code=UTF-8',
- '--foreign-user'
- ])
+if get_option('nls')
+ i18n = import('i18n')
+ i18n.gettext('terminology',
+ languages: [
+ 'ca',
+ 'de',
+ 'el',
+ 'eo',
+ 'es',
+ 'fi',
+ 'fr',
+ 'hi',
+ 'it',
+ 'ko',
+ 'ms',
+ 'sl',
+ 'sr',
+ 'tr',
+ 'vi'
+ ],
+ args: [
+ '--keyword=_',
+ '--keyword=d_:1',
+ '--keyword=P_:1,2',
+ '--keyword=dP_:1,2',
+ '--keyword=N_',
+ '--keyword=NP_:1,2',
+ '--from-code=UTF-8',
+ '--foreign-user'
+ ])
+ config_data.set('HAVE_GETTEXT', '1')
+ config_data.set('ENABLE_NLS', '1')
+endif