Re: [libosinfo 5/5] Load localized values for entity params

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

 



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@xxxxxxxxx> wrote:
> > On Fri, Oct 19, 2012 at 11:22 AM, Christophe Fergeau
> > <cfergeau@xxxxxxxxxx> 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: pgp1Tesx4XmI5.pgp
Description: PGP signature


[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