mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
nls: add native language support
- adds labwc.pot and po files for de, es, it and sv - added notes in NEWS.md and CONTRIBUTING.md - addresses #269 - conditional upon `msgfmt` being installed - can be disabled at build time
This commit is contained in:
parent
e75af14d3d
commit
cbed8acf01
15 changed files with 301 additions and 10 deletions
|
|
@ -75,6 +75,15 @@ have_xwayland = xcb.found() and wlroots_has_xwayland
|
|||
conf_data = configuration_data()
|
||||
conf_data.set10('HAVE_XWAYLAND', have_xwayland)
|
||||
|
||||
msgfmt = find_program('msgfmt', required: get_option('nls'))
|
||||
if msgfmt.found()
|
||||
source_root = meson.current_source_dir()
|
||||
conf_data.set('HAVE_NLS', 1)
|
||||
subdir('po')
|
||||
else
|
||||
conf_data.set('HAVE_NLS', 0)
|
||||
endif
|
||||
|
||||
labwc_inc = include_directories('include')
|
||||
|
||||
subdir('protocols')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue