[virt-tools-list] [libosinfo 5/5] Load localized values for entity params

Christophe Fergeau cfergeau at redhat.com
Mon Oct 22 07:19:19 UTC 2012


On Fri, Oct 19, 2012 at 11:51:14PM +0300, Zeeshan Ali (Khattak) wrote:
> On Fri, Oct 19, 2012 at 4:36 PM, Zeeshan Ali (Khattak)
> <zeeshanak at gnome.org> wrote:
> > On Fri, Oct 19, 2012 at 11:22 AM, Christophe Fergeau
> > <cfergeau at redhat.com> wrote:
> >> I don't think the format of values returned by g_get_language_names matches
> >> the format used by xml:lang. The former can be "en_US" while the latter
> >> apparently follows https://www.ietf.org/rfc/rfc4646.txt which says 'Subtags
> >> are distinguished and separated from one another by a hyphen ("-")'
> >
> > Oh? I tested with fi_FI.UTF8 and i get "fi_FI.utf8", "fi_FI" and "fi"
> > in the array returned.
> 
> Seems I totally missed your point here. Despite what the RFC in
> question is saying, intltool is getting the value of 'xml:lang' from
> the LINGUAS file (same as the name of .po file) and those are always
> with an '_' not '-' AFAICT [1].

Yes, looking at intltool-update.in, it seems to be doing that, which looks
like it's out of spec :-/

> While this approach still seem better, I failed to get it to work
> although it should have been as simple as: http://fpaste.org/tiKY/

Well, it's working for GtkBuilder and GSettings schemas, so it's possible
to get this approach to work ;) Without more details, it's not really
possible to try to help fix that...

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/20121022/33cf6d05/attachment.sig>


More information about the virt-tools-list mailing list