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

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



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 gnome org> wrote:
> > On Fri, Oct 19, 2012 at 11:22 AM, Christophe Fergeau
> > <cfergeau 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

Attachment: pgpn8WFp8cUYQ.pgp
Description: PGP signature


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