Re: postal_fmt & country_post in glibc locales

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




----- Original Message -----
> On 06/14/2016 11:19 AM, Bastien Nocera wrote:
> >
> >
> > ----- Original Message -----
> >> Does Fedora Workstation use this data?
> >
> > That's a bit broad, and might be better served with running a grep
> > over an exploded tree.
> >
> > _NL_ADDRESS_POSTAL_FMT is used in geocode-glib. It doesn't "print" using
> > it though:
> > https://git.gnome.org/browse/geocode-glib/tree/geocode-glib/geocode-glib.c#n216
> 
> This use is rather curious.  It formats addresses from a geolocation/map
> service in the local (user) locale, at least as far as the street
> name/dwelling number ordering is concerned.  I'm not sure if this is
> actually helpful because the address is meaningful mostly in its local
> context, and should be formatted as such.

You're reading the code wrong. Nominatim just gives us fields, it's up to us
to put them back in the right order.

I don't think that we'd want to see half the addresses with the number before, and
half with the number after if a location matched 2 separate countries with different
ideas on where the house number should be. Figuring out whether a location uses one
or the other when the country has multiple locales or is "disputed" is likely to
be a fun one too.

So we use the order of the user's locale. Easier.
--
desktop mailing list
desktop@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/desktop@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora KDE]     [Fedora Announce]     [Fedora Docs]     [Fedora Config]     [PAM]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux