[virt-tools-list] [libosinfo 7/8] rfc: Infer ISO language from label
Christophe Fergeau
cfergeau at redhat.com
Wed Dec 5 09:15:05 UTC 2012
On Tue, Dec 04, 2012 at 04:08:00PM +0200, Zeeshan Ali (Khattak) wrote:
> On Tue, Dec 4, 2012 at 1:01 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
> > The values required for each of these setters
> > is really OS-specific. To properly isolate apps from this, we need to
> > have a data map concept, so libosinfo defines a canonical set of keyboard,
> > language and timezone values, and then maps to the OS-specific values
> > internally.
> >
> > This ISO language extraction is just another example of the need for
> > a general datamap capability IMHO, and while we only see it for Windows
> > currently, I would not be suprised if other OS we encounter in the future
> > need it too.
> >
> > I did actually start hacking up datamap support, but never finished it.
>
> Not sure there is really a need to do mapping in the code for at least
> the installers. Apart from app developers, we need to think about
> non-C-hackers to be able to add data (including installer script
> templates). If we put this in C, anyone wanting to add a new OS and/or
> its installer will then be required to have to hack on libosinfo in C.
They will need to make changes in the C code if they need a new datamap,
they won't need to if they can reuse the existing one. Doesn't the
alternative involve them writing some xslt instead?
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20121205/d29383bd/attachment.sig>
More information about the virt-tools-list
mailing list