Skip to content

Commit

Permalink
Merge branch 'nls' into 'master'
Browse files Browse the repository at this point in the history
Meson: Add 'nls' option to disable translation

See merge request GNOME/glib!484
  • Loading branch information
xclaesse committed Nov 27, 2018
2 parents 389087e + 7412011 commit 4f3216d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1795,8 +1795,6 @@ glib_conf.set('HAVE_DCGETTEXT', 1)
glib_conf.set('HAVE_GETTEXT', 1)

glib_conf.set_quoted('GLIB_LOCALE_DIR', join_paths(glib_datadir, 'locale'))
# xgettext is optional (on Windows for instance)
xgettext = find_program('xgettext', required : false)

# libmount is only used by gio, but we need to fetch the libs to generate the
# pkg-config file below
Expand Down Expand Up @@ -1981,12 +1979,14 @@ subdir('gobject')
subdir('gthread')
subdir('gmodule')
subdir('gio')
if xgettext.found()
subdir('po')
endif
subdir('fuzzing')
subdir('tests')

# xgettext is optional (on Windows for instance)
if find_program('xgettext', required : get_option('nls')).found()
subdir('po')
endif

# Install glib-gettextize executable, if a UNIX-style shell is found
if have_sh
# These should not contain " quotes around the values
Expand Down
6 changes: 6 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ option('installed_tests',
type : 'boolean',
value : false,
description : 'enable installed tests')

option('nls',
type : 'feature',
value : 'auto',
yield: true,
description : 'Enable native language support (translations)')

0 comments on commit 4f3216d

Please sign in to comment.