[Mesa-dev] [PATCH] meson: generate translations for driconf
Eric Anholt
eric at anholt.net
Wed Jan 17 20:58:27 UTC 2018
Dylan Baker <dylan at pnwbakers.com> writes:
> Currently meson implements the same logic as SCons for translations,
> namely it doesn't do them. This patch changes meson to use logic more
> like autotools, and generate translations. To do this we have to go
> behind meson's back a bit, and wrap the whole thing up in a single
> python script.
>
> Meson has a module for gettext translations, but it assumes that one
> will have a pot file, and then .mo translations will be generated and
> checked into the source repo (or generated by hand using custom ninja
> targets before building), mesa assumes that the targets will be
> regenerated on each invocation of make or ninja. I think this can be
> fixed upstream, but in the mean time this adds support for using
> translations.
Is there a reason you have a new python script, instead of having each
msgfmt invcation generating a mo file in its own custom target, and then
the custom target for the gen_xmlpool.py call depending on that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180117/d73be75d/attachment-0001.sig>
More information about the mesa-dev
mailing list