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 To use translations from meson you'll want to run: ninja xmlpool-pot xmlpool-update-po xmlpool-gmo which will generate the necessary files. --- src/util/xmlpool/LINGUAS | 1 + src/util/xmlpool/POTFILES | 1 + src/util/xmlpool/meson.build | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 src/util/xmlpool/LINGUAS create mode 100644 src/util/xmlpool/POTFILES diff --git a/src/util/xmlpool/LINGUAS b/src/util/xmlpool/LINGUAS new file mode 100644 index 00000000000..3620176519e --- /dev/null +++ b/src/util/xmlpool/LINGUAS @@ -0,0 +1 @@ +ca es de nl sv fr diff --git a/src/util/xmlpool/POTFILES b/src/util/xmlpool/POTFILES new file mode 100644 index 00000000000..d68d7009be4 --- /dev/null +++ b/src/util/xmlpool/POTFILES @@ -0,0 +1 @@ +src/util/xmlpool/t_options.h diff --git a/src/util/xmlpool/meson.build b/src/util/xmlpool/meson.build index 3d2de0cdc3a..9696a3d8a81 100644 --- a/src/util/xmlpool/meson.build +++ b/src/util/xmlpool/meson.build @@ -29,3 +29,6 @@ xmlpool_options_h = custom_target( capture : true, depend_files : files('ca.po', 'es.po', 'de.po', 'nl.po', 'sv.po', 'fr.po'), ) + +i18n = import('i18n') +i18n.gettext('xmlpool') -- 2.18.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev