[AppStream] The AppStream XML locale apocalypse
Matthias Klumpp
matthias at tenstral.net
Mon Apr 17 12:50:54 UTC 2023
Am Mo., 17. Apr. 2023 um 10:44 Uhr schrieb Richard Hughes <hughsient at gmail.com>:
>
> On Sun, 16 Apr 2023 at 18:47, Matthias Klumpp <matthias at tenstral.net> wrote:
> > I did create a pretty small proof-of-concept patch against Gettext
> > that addresses the issue there directly:
> > https://savannah.gnu.org/bugs/?64025
>
> Okay, even better, thanks.
Let's see - From my past experience, Gettext reviews take forever and
the project also releases super rarely...
So I'm not sure if this will yield a solution in a reasonable amount
of time (but I'll be happy if I am surprised!).
> Anything I need to do in appstream-glib?
> I'm thinking of replacing the validation code with just a "please use
> appstreamcli instead" message anyway.
Maybe have that emitted as another validation hint? That would
actually be nice, so users learn about it and you don't get so many
bug reports about missing features.
For the locale stuff, I'd need to have a look at how locale are done
in appstream-glib, but most of them are handled explicitly there by
clients I think, so you might be fine, except for locale matching code
(which I adjusted in libappstream to work with either BCP47 or POSIX).
The question is: Is it worth the effort? Which tool is using
appstream-glib that will also realistically receive new metadata that
was generated using the corrected locale names? (all tools I know
either use libappstream or read XML directly via some XML-loading
library like libxmlb).
Cheers,
Matthias
--
I welcome VSRE emails. See http://vsre.info/
More information about the AppStream
mailing list