Re: [libosinfo 7/8] rfc: Infer ISO language from label

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 4, 2012 at 12:47 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
> On Mon, Dec 03, 2012 at 06:30:18PM +0200, Zeeshan Ali (Khattak) wrote:
>> I agree with you that it would be nice to avoid this mapping all
>> together but if its not possible/feasible, these mappings should be in
>> the XML like rest of OS specific stuff.
>
> I could do that, but the C code would still have to match the regex with
> data from the table, which is only useful to Windows anyway, so the C code
> would still be somehow Windows specific.
>
>
>> Then again, if we go that
>> route, I wonder if all this approach is really better than having
>> separate media entries for each combination of supported languages.
>
>
> If we put separate entries in the XML file, this will make it harder to add
> new volume IDs (plenty of places to update),

Not at all. You'll have entries like:

<media>
  <languages>fi_Fi,fr_FR</languages>
  <volume-id>WHATEVER</volume-id>
</media>
<media>
  <languages>fi_Fi,fr_FR,us_US</languages>
  <volume-id>(WHATEVER2)|(WHATEVER3)</volume-id>
</media>
...

Now if there is a new volume ID to be added, you'll either put it in a
new media entry or to an existing entry that has the same languages in
its list.

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux