Commit 7834926a authored by Dylan Baker's avatar Dylan Baker

meson: add support for generating translation mo files

Meson has handy a handy built-in module for handling gettext called
i18n, this module works a bit differently than our autotools build does,
namely it doesn't automatically generate translations instead it creates
3 new top level targets to run. These are:

xmlpool-pot
xmlpool-update-po
xmlpool-gmo

v2: - Add new files to autotools dist tarball
Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
parent 2857b189
...@@ -59,7 +59,9 @@ EXTRA_DIST = \ ...@@ -59,7 +59,9 @@ EXTRA_DIST = \
$(POS) \ $(POS) \
$(MOS) \ $(MOS) \
SConscript \ SConscript \
meson.build meson.build \
LINGUAS \
POTFILES
BUILT_SOURCES = options.h BUILT_SOURCES = options.h
CLEANFILES = \ CLEANFILES = \
......
src/util/xmlpool/t_options.h
...@@ -35,3 +35,6 @@ xmlpool_options_h = custom_target( ...@@ -35,3 +35,6 @@ xmlpool_options_h = custom_target(
capture : true, capture : true,
depend_files : _langs_po_files, depend_files : _langs_po_files,
) )
i18n = import('i18n')
i18n.gettext('xmlpool')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment