Last modified: 2014-02-20 11:13:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51385, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49385 - cardinal directions in geocoordinate datatype are not localized
cardinal directions in geocoordinate datatype are not localized
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
: i18n
Depends on:
Blocks: 49387
  Show dependency treegraph
 
Reported: 2013-06-10 10:18 UTC by Lydia Pintscher
Modified: 2014-02-20 11:13 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Lydia Pintscher 2013-06-10 10:18:06 UTC
The geocoordinate datatype expects cardinal directions to be entered as N,E,S,W and so on and does not take other languages into account.
Comment 1 Neil Harris 2013-06-10 21:25:04 UTC
Here are some for starters. taken from the various language variants of http://en.wikipedia.org/wiki/Cardinal_direction :

English:

N North
S South
E East
W West

French:

N Nord
S Sud
E Est
O Ouese

German:

N Norden
S Süden
O Osten
W Westen

Italian:

N Nord
S Sud
E Est
O Ovest

Spanish:

N Norte
S Sur
E Este
O Oeste

Dutch:

N Noord
Z Zuid
O Oost
W West
Comment 2 Neil Harris 2013-06-10 21:30:19 UTC
Notice that this reveals a potential source of problems on input. 

Internationalization of the initials of the cardinal points, without knowledge of the locale the input is coming from, can make input ambiguous and locale-dependent: if we receive a coordinate of the form "33 N 22 O", does that mean the Italian "33 Nord 22 Ovest" = 33 N 22 W, or, in Dutch, "33 Noord 22 Oost" = 33 N 22 E ?
Comment 3 Neil Harris 2013-06-12 15:53:13 UTC
Here is a listing of the names of the cardinal points in some other languages:

http://www.compassmuseum.com/diverstext/cardinals.htm

Note the use of "Severní" for "North" in Czech, and "észak" for North in Hungarian. 

Given that large number of alternatives, and the use of the same initials for quite different cardinal points in different languages, it's hard to see how internationalized input could work in the general case, without a specific locale identifier being supplied with each string.
Comment 4 Neil Harris 2013-06-12 21:59:52 UTC
We should also allow for the coordinate reference system to be specified in all cases.

WGS84 has become almost universal for informal geocoordinates, thanks to GPS, and Wikipedia's mapping tools all assume WGS84 is used, so it's probably reasonable to assume that as a default, but there's lots of high-resolution geodata out there with different coordinate reference systems, for which discarding the CRS will result in significant errors.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links