[Libosinfo] [PATCH] NetBSD: add NetBSD 6.x / 7.x data

Christophe Fergeau cfergeau at redhat.com
Wed Feb 14 10:52:01 UTC 2018


On Wed, Feb 14, 2018 at 11:44:48AM +0100, Christophe Fergeau wrote:
> Hey Vicente, thanks for the patches!
> 
> Could you also provide a patch for libosinfo to add test data for these
> ISOs? You can generate them with
> "iso_name=./NetBSD-6.0-amd64.iso isoinfo -d -i $iso_name >$iso_name.txt"
> 
> On Tue, Feb 06, 2018 at 03:13:59PM -0200, Vicente Chaves de Melo wrote:
> > ---
> >  data/os/netbsd.org/netbsd-6.0.xml.in | 75 ++++++++++++++++++++++++++++++++++++
> >  data/os/netbsd.org/netbsd-6.1.xml.in | 75 ++++++++++++++++++++++++++++++++++++
> >  data/os/netbsd.org/netbsd-7.0.xml.in | 75 ++++++++++++++++++++++++++++++++++++
> >  data/os/netbsd.org/netbsd-7.1.xml.in | 75 ++++++++++++++++++++++++++++++++++++
> >  4 files changed, 300 insertions(+)
> >  create mode 100644 data/os/netbsd.org/netbsd-6.0.xml.in
> >  create mode 100644 data/os/netbsd.org/netbsd-6.1.xml.in
> >  create mode 100644 data/os/netbsd.org/netbsd-7.0.xml.in
> >  create mode 100644 data/os/netbsd.org/netbsd-7.1.xml.in
> > 
> > diff --git a/data/os/netbsd.org/netbsd-6.0.xml.in b/data/os/netbsd.org/netbsd-6.0.xml.in
> > new file mode 100644
> > index 0000000..9897d59
> > --- /dev/null
> > +++ b/data/os/netbsd.org/netbsd-6.0.xml.in
> > @@ -0,0 +1,75 @@
> > +<?xml version="1.0" encoding="UTF-8"?>
> > +<libosinfo version="0.0.1">
> > +
> > +  <os id="http://netbsd.org/netbsd/6.0">
> > +    <short-id>netbsd6.0</short-id>
> > +    <name>NetBSD 6.0</name>
> > +    <name xml:lang="ca">NetBSD 6.0</name>
> > +    <name xml:lang="de">NetBSD 6.0</name>
> > +    <name xml:lang="es">NetBSD 6.0</name>
> > +    <name xml:lang="fr">NetBSD 6.0</name>
> > +    <name xml:lang="ja">NetBSD 6.0</name>
> > +    <name xml:lang="pl">NetBSD 6.0</name>
> > +    <name xml:lang="pt_BR">NetBSD 6.0</name>
> > +    <name xml:lang="uk">NetBSD 6.0</name>
> 
> The translations do not belong in the .xml.in files, but in the .po
> files. They are then merged in the XML data as part of the .xml.in ->
> .xml transformation.

Forgot to mention that you need to annotate the xml tag with a _:
<_name>NetBSD 6.0</_name> to mark it for translation.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20180214/105202f5/attachment.sig>


More information about the Libosinfo mailing list