[openstreetmap/openstreetmap-website] Only use language part of locale for Wikidata link (#1196)
notifications at github.com
Sat Apr 2 15:04:55 UTC 2016
The Wikidata link includes the locale in a parameter on the end of the URL. In my case this is "en-GB", so Wikidata shows me the interface in British English, which is useful. It also tries to show item labels in British English, but most items don't have a label in British English, instead it says "No label defined", this is less useful.
The best solution would be for Wikidata to use the English label if there is a no British English label. This is a simpler change that we can implement on the OSM side to use just the language part of the locale. In my case the locale passed to Wikidata will be "en", and I'll see labels in English.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Only use language part of locale for Wikidata link
-- File Changes --
M app/helpers/browse_helper.rb (2)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev