mirror of
https://github.com/labwc/labwc.git
synced 2026-03-31 07:11:19 -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
12
po/meson.build
Normal file
12
po/meson.build
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
i18n = import('i18n')
|
||||
add_project_arguments('-DGETTEXT_PACKAGE="' + meson.project_name() + '"',
|
||||
'-DLOCALEDIR="' + get_option('prefix') / get_option('localedir') + '"',
|
||||
language:'c')
|
||||
i18n.gettext(meson.project_name(),
|
||||
args: ['--directory=' + source_root,
|
||||
'--add-comments=TRANSLATORS',
|
||||
'--no-location',
|
||||
'--keyword=_',
|
||||
'--msgid-bugs=https://github.com/labwc/labwc/issues'],
|
||||
preset: 'glib'
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue