On Mon, Oct 22, 2012 at 10:19 AM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote: > 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... You mean, you need more details from me or we need to dig more into how its working for GtkBuilder/GSetting? I'll be doing the latter now anyways.. -- Regards, Zeeshan Ali (Khattak) FSF member#5124